What's a quick elegant way to compute the galois group of $\mathbb Q(\cos \frac \pi 8)/\mathbb Q$? I found the minimal polynomial to be $x^4-x^2-\frac 18$ but computing things directly is just horrible. I ended up getting $D_4$ and I'm not even sure it's correct...
Help!
It does seem that computing the Galois group of this extension is pretty terrible. However, $\cos(\pi/8) = \sqrt{2+\sqrt{2}}/2$, so $\mathbb{Q}(\cos(\pi/8)) = \mathbb{Q}(\sqrt{2+\sqrt{2}})$, which is a much nicer extension (note that $\sqrt{2+\sqrt{2}}$ has minimal polynomial $x^{4}-4x^{2}+2$, which is irreducible by Eisenstein at $2$). As outlined in the comments, one can show that this extension is cyclic with Galois group $\mathbb{Z}/4\mathbb{Z}$. More details can be found here as well.