I have a function given by
1−e2iπxR(1−e2iπxR)
Using Euler's formula, I expand into real and complex components:
1−cos2πx−isin2πxR(1−cos2πxR−isin2πxR)
But for some reason, here I come unstuck. It seems obvious to me that the real part should be
1−cos2πxR(1−cos2πxR)
but this appears not to be the case. In fact, it's pretty obvious from the plots below (with R=3), that I'm wrong:
And it's not even as simple as multiplying through by 1R, as this plot charting the variance after multiplying through shows:
Could someone please explain what I'm doing wrong?
(I'd also appreciate help with the complex component.)
Answer
You are right in your use of Euler's formula to convert to rectangular coordinates, but you seemed to just divide the real part of the numerator by the real part of the denominator. To rectify the issue, you should multiply by the complex conjugate of the denominator on top and bottom (so that way the denominator becomes a real scalar that can be applied to both the imaginary and real parts of the numerator):
F=1−cos2πx−isin2πxR(1−cos2πxR−isin2πxR)⋅1−cos2πxR+isin2πxR1−cos2πxR+isin2πxR
Letting the following substitutions take place:
a=1−cos2πx
b=sin2πx
c=1−cos2πxR
d=sin2πxR
Then we get:
F=a−biR(c−di)⋅c+dic+di=ac+bd+i(ad−bc)R(c2+d2)
Thus:
Re(F)=ac+bdR(c2+d2)
Appropriate trig identities and algebraic manipulation can massage the above into a nicer form if you desire.
No comments:
Post a Comment