2 problems found
Solution:
Prove that $$ \sum_{k=0}^n \sin k\theta = \frac { \cos \tfrac12\theta - \cos (n+ \tfrac12) \theta} {2\sin \tfrac12\theta}\;. \tag{*}$$
Solution: \begin{align*} && \sum_{k=0}^n \sin k\theta &= \textrm{Im} \left ( \sum_{k=0}^n e^{i k \theta}\right)\\ &&&= \textrm{Im} \left ( \frac{e^{i(n+1)\theta}-1}{e^{i \theta}-1} \right)\\ &&&= \textrm{Im} \left ( \frac{e^{i(n+\tfrac12)\theta}-e^{-i\theta/2}}{e^{i \theta/2}-e^{-i \theta/2}} \right)\\ &&&= \textrm{Im} \left ( \frac{(e^{i(n+\tfrac12)\theta}-e^{-i\theta/2})/2i}{(e^{i \theta/2}-e^{-i \theta/2})/2i} \right)\\ &&&= \textrm{Im} \left ( \frac{(e^{i(n+\tfrac12)\theta}-e^{-i\theta/2})/i}{2\sin \tfrac12 \theta} \right)\\ &&&= \frac{\cos \tfrac12 \theta - \cos(n+ \tfrac12)\theta}{2\sin \tfrac12 \theta} \end{align*}