I'm really confused, or maybe overthinking it, but how would I factor something like $x^4+2x-4$ in $\mathbb{Z}_5[x]$?
Asked
Active
Viewed 179 times
2
-
There are many algorithms for that. Some examples are Berlekamp's algorithm and XL algorithm. In general, it's not easy to determine if a given polynomial is irreducible or not, and it's even more difficult to find its factorization. – Daniel Mar 27 '15 at 03:50
2 Answers
1
Let $P(x) \in \mathbb{Z}_5[x]$ with $P(x) = x^4+2x-4$
First we add $5$, which does not change $P(x)$. Then we notice that $x+1$ is a factor. $$P(x) = x^4 + 2x + 1 = (x+1)(x^3-x^2+x+1) = \boxed{(x+1)(x^3+4x^2+x+1)}$$
As Daniel Escudero states in a comment, determining that this second factor is irreducible is difficult.
Zubin Mukerjee
- 17,832
0
$\,a\equiv0\,$ is not a root. If $\,a\not\equiv 0\,$ then by Fermat $\,\color{#c00}{a^4\equiv 1}\,$ so $\,0\equiv f(a)\equiv \color{#c00}{a^4}+2a+1\equiv 2a+2,\,$ so $\,a\equiv -1\,$ is the only root of $\,f.\,$ Thus $\,f(x) = (x+1)g(x),\,$ and $\,g\,$ is irreducible, being a cubic with no roots (note $\,g(-1)\not\equiv 0\,$ by $\,f'(-1)\not\equiv 0,\,$ so $\,-1\,$ is not a double root of $\,f).$
Bill Dubuque
- 272,048