while trying to solve a problem, I stumbled upon a way of finding $\cos\left(\frac{\pi}{5}\right)$ using identities and the cubic formula. Is it possible to find other values of sine or cosine in a similar way ?
Consider $$\cos\left(\frac{\pi}{5}\right) - \cos\left(\frac{2\pi}{5}\right).$$ Using the difference of cosines identity, we have $$\cos\left(\frac{\pi}{5}\right) - \cos\left(\frac{2\pi}{5}\right) = -2\sin\left(\frac{3\pi}{10}\right)\sin\left(-\frac{\pi}{10}\right).$$
Now we change the RHS using the identity $\sin(x) = \cos\left(\frac{\pi}{2}-x\right)$ and the fact that $\sin(x)$ is odd.
$$-2\sin\left(\frac{3\pi}{10}\right)\sin\left(-\frac{\pi}{10}\right) = 2\cos\left(\frac{\pi}{5}\right) \cos\left(\frac{2\pi}{5}\right)$$ So, $$\cos\left(\frac{\pi}{5}\right) - \cos\left(\frac{2\pi}{5}\right) = 2\cos\left(\frac{\pi}{5}\right) \cos\left(\frac{2\pi}{5}\right)$$
Now we make use of the identity $\cos(2x)=2\cos^2(x)-1$. $$\cos\left(\frac{\pi}{5}\right) - 2\cos^2\left(\frac{\pi}{5}\right)+1 = 2\cos\left(\frac{\pi}{5}\right) \left(2\cos^2\left(\frac{\pi}{5}\right)-1\right)$$ Let $y=\cos\left(\frac{\pi}{5}\right)$ and we have $$y-y^2+1=2y(2y^2-1)$$ $$4y^3+2y^2-3y-1=0$$ which has the correct solution $$ y=\frac{\sqrt{5}+1}{4} =\cos\left(\dfrac{\pi}{5}\right) $$ One of the roots is also $\sin\left(\dfrac{\pi}{10}\right)$ which I'm guessing is because you end up with the same cubic if you apply the above to sin too.



Using complex numbers we can derive $\sin(\frac{\pi}{5})$ and $\cos(\frac{\pi}{5})$ $$ z^5=-1 \implies z^4-z^3+z^2-z+1=0 \implies z^2+\frac{1}{z^2}-z-\frac{1}{z}+1=0 $$ By substitution $t=z+\frac{1}{z}$ we get: $$ t^2-t-1=0 \implies t=\frac{1\pm\sqrt{5}}{2} $$ And because $\cos(\frac{\pi}{5})$ is positive, we may consider just $t=\frac{1+\sqrt{5}}{2}$
$$ z^2-z\frac{1+\sqrt{5}}{2}+1=0 \implies z=\frac{1+\sqrt{5}}{4}\pm i\frac{\sqrt{10-2\sqrt{5}}}{4} $$ And we get that $\cos(\frac{\pi}{5}) = \frac{1+\sqrt{5}}{4} $ and $\sin(\frac{\pi}{5})= \frac{\sqrt{10-2\sqrt{5}}}{4}$