How do I prove that $\sum_{i=1}^m \cos^2\left(\frac{2\pi i}{m}\right) = \sum_{i=1}^m \sin^2\left(\frac{2\pi i}{m}\right) = \frac{m}{2}$?
How can we sum up $\sin$ and $\cos$ series when the angles are in arithmetic progression?