Compute $\cos\frac{\pi}{7}-\cos\frac{2\pi}{7}+\cos\frac{3\pi}{7}$
This question came after an exercise involving finding the $7$th roots of $-1$. The roots were $\operatorname{cis}\frac{\pi}{7},\operatorname{cis}\frac{3\pi}{7},\dots$
This made me wonder if I could somehow use those roots, along with the geometry of complex numbers, to compute the expression. Any insight would be helpful. Thanks!