Factoring $x^4-2x^3+2x^2+x+4$

factoringpolynomials

I need to show that the polynomial is not irreducible and I am trying to factor the polynomial
$$x^4-2x^3+2x^2+x+4$$

I checked from a calculator that it has a factor but how do I get it by myself?

I tried grouping but It didnt work I got
$x^2(x^2-2x+2)+x+4$ And I dont know how should I proceed. My guts tell me that it should be of the form:
$(x^2-ax+k)(x^2+bx+l)$, should I just try to figure out the constants by trying out?

Best Answer

If we can write $$p(x)= q(x)r(x)$$ say in $\mathbb{Z}$ then we can do that also in $\mathbb{Z}_m$ where $m$ is an arbitrary integer $>1$. So there exists $q_1,r_1$ such that

$$p(x)\equiv_m q_1(x)r_1(x)$$ and $$r(x) \equiv_m r_1(x) \;\;\;\wedge\;\;\; q(x) \equiv_m q_1(x) $$

and we might hope that $r(x) = r_1(x)$ or $q(x) =q_1(x)$.


If we try this in your case for mod $2$ we get $$p(x) \equiv_2 x^4+x \equiv_2 x(x+1)(x^2+x+1)$$

and we see that $x^2+x+1$ actually divide $p(x)$.

Related Question