I'm curious if there is a simple expression for
1+cosθ+cos2θ+⋯+cosnθ
and
sinθ+sin2θ+⋯+sinnθ.
Using Euler's formula, I write z=eiθ, hence zk=eikθ=cos(kθ)+isin(kθ).
So it should be that
1+cosθ+cos2θ+⋯+cosnθ=ℜ(1+z+⋯+zn)=ℜ(1−zn+11−z).
Similarly,
sinθ+sin2θ+⋯+sinnθ=ℑ(z+⋯+zn)=ℑ(z−zn+11−z).
Can you pull out a simple expression from these, and if not, is there a better approach? Thanks!
Answer
Take the expression you have and multiply the numerator and denominator by 1−ˉz, and using zˉz=1:
1−zn+11−z=1−zn+1−ˉz+zn2−(z+ˉz)
But z+ˉz=2cosθ, so the real part of this expression is the real part of the numerator divided by 2−2cosθ. But the real part of the numerator is 1−cos(n+1)θ−cosθ+cosnθ, so the entire expression is:
1−cos(n+1)θ−cosθ+cosnθ2−2cosθ=12+cosnθ−cos(n+1)θ2−2cosθ
for the cosine case. You can do much the same for the case of the sine function.
No comments:
Post a Comment