I came across a problem in a book recently that asked to find a cubic polynomial with roots $\cos{2\pi/7}, \cos{4\pi/7}, \cos{6\pi/7}$. There were no extra conditions on the problem. It just asks you to find a cubic polynomial with those roots. It was marked as one of the harder problems, so I was kind of confused because it seems obvious that a polynomial like $$\left(x-\cos\frac{2\pi}{7}\right)\left(x-\cos\frac{4\pi}{7}\right)\left(x-\cos\frac{6\pi}{7}\right)$$ should work.
But when I looked up the solution in the solutions manual, it turns out that you can use an obscure trig identity for $\cos{7\theta}$ to eventually construct the polynomial $$8x^3+4x^2-4x-1$$
I'm really lost. What's wrong with my trivial example?