I have been trying to solve the following polynomial factoring: $$ f(x) = 1 + x^2 + x^4,\quad f∈Z_3[x] $$ But I am stuck with: $$ \begin{align} f(x) &= 1 - 2x^2 + x^4 \\ &= (x^2 -1)^2 \\ &= x^2 -1 \\ &= (x + 1)(x - 1) \end{align} $$
How should I progress pass this?
We have that $(1+x^2+x^4)(1-x^2)=(1-x^6)$ hence $$ f(x) = (1-x+x^2)(1+x+x^2) = \Phi_3(x)\,\Phi_6(x) $$ and over $\mathbb{F}_3$ $$ f(x) = (1+2x+x^2)(1-2x+x^2) = (1+x)^2 (1-x)^2 $$ completely splits. If $p$ is a prime $\geq 5$ and $h$ is the least integer such that $6\mid (p^h-1)$,
$f(x)$ completely splits over $\mathbb{F}_{p^h}$.