0

Is there a closed form solution to the following sum:

$$\sum_{i = 1}^n i \cos(\beta i)?$$

Thank you very much.

1 Answers1

2

Hint: We have $$\sum_{k=1}^n k\cos(\beta k) = \Re\sum_{k=1}^nk\,(e^{i\beta})^k,$$ and $$\sum_{k=1}^nk\,z^k = z\,\frac d{dz}\sum_{k=1}^n z^k = z\,\frac d{dz}\Big(\frac{z(1-z^n)}{1-z}\Big).$$


Using the hints above, you should arrive at $$\sum_{k=1}^nk\cos(\beta k) = \frac{(n+1)\cos(n\beta) - n\cos((n+1)\beta)-1}{4\sin^2(\beta/2)}.$$

Luke Collins
  • 8,838
  • Great! Thank you very much! – user304347 Apr 06 '20 at 16:57
  • Thank you! Can we use this technique to obtain a closed form for

    $$\sum_{k = 1}^n k \cos\left(\alpha n + \beta k\right)?$$

    I tired... but didn't obtain anything useful. Thanks again!

    – user304347 Apr 06 '20 at 23:36
  • @user304347 Yes, since that would correspond to $$\Re\Big(e^{i\alpha n}\sum_{k=1}^nk (e^{i\beta})^k\Big) = \frac{(n+1)\cos(n(\alpha+\beta))-n \cos(\beta+n(\alpha+\beta))-\cos(n\alpha)}{4 \sin^2(\beta /2)},$$ which you get by the same technique. – Luke Collins Apr 07 '20 at 09:49
  • Thanks again! Yes, I've made a little mistake... now I have the same result. – user304347 Apr 07 '20 at 11:23