So I have this result
$1 + z + z^2 + ... + z^n = \frac{z^{n+1}-1}{z-1}$
which I proved already. Now I am supposed to use that result and De Moivre's formula to establish this identity
$1 + \cos\theta + \cos2\theta +... + \cos n\theta = \frac{1}{2} + \frac{\sin[(n+\frac{1}{2})\theta]}{2\sin(\frac{\theta}{2})}$
Can anyone help me?