For any $0<\theta<\pi$ and the integer $n\geqslant 1$ show that:
$$\sin\theta+\frac{\sin 2\theta}{2}+...+\frac{\sin n\theta}{n}>0$$
Denote by $s_n(\theta)$ the left-hand side of the inequality to be shown. Put $\vartheta=\frac{\theta}{2}$ for brevity.
Since $s'_n(\theta)=Re(e^{i\theta}+e^{i\theta}+...+e^{ni\theta})=\frac{\cos(n+1)\vartheta\sin n\vartheta}{\sin\vartheta}$
I have been trying to understand how the author gets from here $s'_n(\theta)=Re(e^{i\theta}+e^{i\theta}+...+e^{ni\theta})$to this expression$\frac{\cos(n+1)\vartheta\sin n\varphi}{\sin\varphi}$.
I think $s'_n(\theta)=-n\cos(\theta)$ so I thought of using the sum of geometric series $\frac{a-ar^n}{1-r}$(since $0<\theta<\pi$) to obtain $\frac{\cos(n+1)\vartheta\sin n\vartheta}{\sin\vartheta}$. However I got nowhere.
Question:
How did the author derive $\frac{\cos(n+1)\vartheta\sin n\vartheta}{\sin\vartheta}$?
Thanks in advance!