I just wanted to evaluate
n∑k=0coskθ
and I know that it should give
cos(nθ2)sin((n+1)θ2)sin(θ/2)
I tried to start by writing the sum as
1+cosθ+cos2θ+⋯+cosnθ
and expand each cosine by its series representation. But this soon looked not very helpful so I need some clue about how this partial sum is calculated more efficiently ...
Answer
Use:
sinθ2⋅cos(kθ)=12sin((k+12)θ)⏟fk+1−12sin((k−12)θ)⏟fk
Thus
sinθ2⋅n∑k=1cos(kθ)=n∑k=1(fk+1−fk)=fn+1−f1=12sin((n+12)θ)⏟sin(α+β)−12sinθ2⏟sin(α−β)=cos(α)sin(β)=cos(n+12θ)sin(n2θ)
where α=n+12θ and β=n2θ.
No comments:
Post a Comment