I'm having truble calculating right side of this equation
$$\cos1 + \cos 2 + \cdots + \cos n = -\frac{1}{2} + \frac{\sin(n+\frac{1}{2})}{2\sin\frac{1}{2}}$$ for $n = 1$.
I've managed to reach that $$cos1 = -\frac{1}{2} + \frac{\cos^2 1 -\cos1 -\sin^2 1}{2(1-\cos1)}$$
Can i get any tips on how to solve this equation? (If it's even correct at this point).
Thanks.
For $n=1$, the right-hand side is $$ -\frac{1}{2}+\frac{\sin(3/2)}{2\sin(1/2)} $$ Let $\alpha=1/2$ for simplicity; you get $$ -\frac{1}{2}+\frac{\sin3\alpha}{2\sin\alpha} = -\frac{1}{2}+\frac{3\sin\alpha-4\sin^3\alpha}{2\sin\alpha}= \frac{-1+3-4\sin^2\alpha}{2}=1-2\sin^2\alpha=\cos2\alpha=\cos1 $$