Let $F$ be a field, $f \in F[x]$ of degree 2 or 3. Theorem: If $f$ has no roots, then $f$ is irreducible.
Using this theorem, I am trying to prove if $(x^3 + 2x + 1)$ is irreducible in $\mathbb{Z}_{3}[x]$. I am having a hard time finding roots for $(x^3 + 2x + 1)$ in $\mathbb{Z}_{3}[x]$ as the $x^3$ is throwing me off. When I have a degree 2 polynomial such as $(x^2 + 8)$ or $(x^2 + 1)$, it is a lot easier as degree-2 polynomials can be factored into $(x + n) \cdot (x + n)$. Is there an easier way to go about trying to find the roots of a degree-3 polynomial like $(x^3 + 2x + 1)$? Any feedback would be appreciated.
Let $f=X^3+2X+1\in (\mathbf{Z}/3\mathbf{Z})[X]$.
Let us check if $f$ has roots in $\mathbf{Z}/3\mathbf{Z}=\{\overline0,\overline1,\overline2\}$. (For $f\in(\mathbf{Z}/3\mathbf{Z})[X]$ to have a root in $\mathbf{Z}/3\mathbf{Z}$ means that there exists $x\in\mathbf{Z}/3\mathbf{Z}$ such that $f(x)\equiv0\bmod{3}$.)
We see that $f(\overline0),f(\overline1),f(\overline2)\not\equiv0\bmod{3}$, so $f$ has no roots in $\mathbf{Z}/3\mathbf{Z}$. Since the degree of $f$ is $\leqslant 3$, we can conclude that $f$ is irreducible over $(\mathbf{Z}/3\mathbf{Z})[X]$ by your previous question.