Given an irreducible $f\in \mathbb Q[x]$, how to determine the number of roots of $f=0$ in $\mathbb Q[x]/(f)$?
For some simple examples, I know how to do. If $f(x)=x^2+x-1$, the we use $x\in\mathbb Q[x]/(f)$ to represent $(-1+\sqrt 5)/2$, and $-x-1$ will be another root.
If $f=x^3-2$, $x\in\mathbb Q[x]/(f)$ will represent $2^{1/3}$, and it is the only root of $f=0$ in $\mathbb Q[x]/(f)$, since the other roots are complex.
But for more complicated $f$, e.g. $f=x^4+x^2+2$, I have no idea how to find the number of roots in the extended field. Thank you.
The more concrete way of thinking about it is, if we take one of the roots such as $r = \sqrt{-\frac{1}{2}+i\frac{\sqrt{7}}{2}}$, which of the other roots can we express in terms of $r$?
In this case, we have $-r = -\sqrt{-\frac{1}{2}+i\frac{\sqrt{7}}{2}}$, another root of $f$. The other two roots are $\pm \sqrt{-1 - r^2}$, so we want to know if there is any element of $\mathbb Q[x]/(f)$ which squares to $-1-x^2$.
The brute force approach is to take an arbitrary element $p = a_0 + a_1 x + a_2 x^2 + a_3 x^3$, square it, and check if it's possible to get $p^2 = -1-x^2$. This is a painful but not really difficult computation; you'll quickly see that either $a_0 = a_2 = 0$ or $a_1 = a_3 = 0$, and then get a quadratic equation to solve with no rational roots.
(So we conclude that $\mathbb Q[x]/(f)$ has only two elements $t$ such that $t^4+t^2+2=0$: $t= \pm x$.)
It might also help to observe that if $p^2 = -1-x^2$, then $(px)^2 = -x^2-x^4 = 2$. I'm pretty sure that this is a contradiction, but I don't actually know what I'm talking about when it comes to field extensions - I just felt really bad when I came across this question and saw everybody interpreting it as "how do I find the roots of $x^4+x^2+2=0$?"