Prove $ \cos\left(\frac{2\pi}{5}\right) + \cos\left(\frac{4\pi}{5}\right) + \cos\left(\frac{6\pi}{5}\right)+ \cos\left(\frac{8\pi}{5}\right) = -1 $ $$
\cos\left(\frac{2\pi}{5}\right) + \cos\left(\frac{4\pi}{5}\right) + \cos\left(\frac{6\pi}{5}\right)+ \cos\left(\frac{8\pi}{5}\right) = -1
$$
Wolframalpha shows that it is a correct identity, although I can't prove it.
I've tried to use the formula 
$$ \cos(z) = \frac{e^ {iz} - e^ {iz}}{2} $$ but without any satisfying result.
This exercise is from chapter on series. 
EDIT: I corrected a mistake in the formula I wanted to use.

Let $\zeta_n = e^{2\pi i/n} = \cos \frac{2\pi}{n} + i \sin \frac{2\pi}{n}$ be a primitive $n^{\rm th}$ root of unity, so in particular, the roots of $z^5 - 1$ are $\zeta_5^k$ for $k = 0, 1, 2, 3, 4$.  Since the sum of the roots of a polynomial of degree $n$ is equal to the negative of the coefficient of the degree $n-1$ term, it follows that $$\sum_{k=0}^4 \zeta_5^k = 1 + \zeta_5 + \zeta_5^2 + \zeta_5^3 + \zeta_5^4 = 0.$$   Taking the real part of both sides of the equation immediately gives the desired identity.
