Prove that $x^4 + x^2 - 1$ is irreducible
My attempt:
I will try to prove that $x^4 + x^2 - 1$ is irreducible over $\mathbb{Z} / 3\mathbb{Z}$. Is this approach valid:
By Fermat's little theorem, $x^4 \equiv x^2 \pmod{3}$. Therefore, $x^4 + x^2 - 1 \equiv 2x^2- 1 \pmod{3}$. It can be checked that $2x^2 - 1$ has no linear factors over $\mathbb{Z} / 3\mathbb{Z}$ and hence it is irreducible.
Is this correct?
Despite the comments to the contrary, you can not show irreducibility this way. After all, the cubic $x^3$ is manifestly reducible $\pmod 3$ but $x^3\equiv x\pmod 3$. Keep in mind that congruences of that form only mean that they take same values in the finite field of three elements. $x^3$ and $x$ are not the same polynomial.
It is true that $x^4+x^2-1$ is irreducible $\pmod 3$ but I don't see any way to show other than by looking for factors.