I'm new to this site, english is not my mother tongue, and I'm just learning LaTeX. I'm basically a noob, so please be indulgent if I break any rule or habits.
I'm stuck at proving the following equation. I suppose I should use the formula for geometric series ($\sum\limits_{k=0}^{n}q^k=\frac{1-q^{n+1}}{1-q}$), and also use somewhere that $e^{î\theta}=cos(\theta)+i\sin(\theta)$
So here is the equation I have to prove : $$\frac{1}{2}+cos(\theta)+cos(2\theta)+...+cos(n\theta)=\frac{sin(n+\frac{1}{2}\theta)}{2sin(\frac{\theta}{2})}$$
Thanks for your help