So I have seen the similar question and answers on here for $x^4 +1$, but I am having trouble extending anything there to this polynomial... I understand it is fairly trivial with Galois theory, but my class has just barely covered Field Extensions, so suffice it to say we have no Galois theory to play with.
I managed to prove it for the primes such that $p \equiv 1, 7 \pmod 8$, by noting that $2$ is a square modulo those primes and thus $x^4 - 2x^2 +1 = (x^2 -1 + 2qx)(x^2 - 1 - 2qx)$ for those $\mathbb{Z}_p$... however, trying to get a similar result for $3 \pmod 8$ and $5 \pmod 8$ has been stumping me for a long time, I am having a hard time making $q^2 = -1$ and $q^2 = -2$ give me something factorable...
I guess the worst part of all of this is that I don't think this solution is even particularly enlightening, in terms of abstract algebra. It's really just some number theory trickery. I don't think my course has prepared me theoretically for this problem, does anyone have an elementary approach to it?
We have $$x^4-10x^2+1 =(x^2-1)^2-8x^2 = (x^2-1-2ax)(x^2-1+2ax)$$ if $2=a^2$, or $$x^4-10x^2+1 =(x^2+1)^2-12x^2 =(x^2+1-2bx)(x^2+1+2bx)$$ if $3=b^2$. Thus the only cases that remain are those where neither $2$ nor $3$ is a square - but then $6$ is a square and with $6=c^2$, we find $$x^4-10x^2+1 =(x^2-5)^2-24=(x^2-5-2c)(x^2-5+2c).$$
(Note that we do not even need quadratic reciprocity or similar "advanced" stuff - all we need is that the product of non-squares is square, which follows from the fact that $\Bbb F_p^\times$ is cyclic).