I'm tasked with determining if $x^5-4x^3+x^2+1$ is irreducible in $\Bbb Z_7[x]$.
What I've Tried
So far, I have plugged in every number 0 through 6 to see if the polynomial has a root in $\Bbb Z_7[x]$. Unfortunately, $f(a) \neq 0$ (mod 7) for $a = 0$ through $a = 6$. So f(x) is not a product of a degree 1 and degree 4 polynomial.
So the only other possibility is to set this up as a quadratic times a cubic as follows:
$$x^5 - 4x^3+x^2+1=(ax^2+bx+c)(dx^3+ex^2+fx+g)$$
Then I can generate a system of equations for the variables: $$ad=1$$ $$ae+bd=0$$ $$af+be+cd=-4=3$$ $$ag+bf+ce=1$$ $$bg+cf=0$$ $$cg=1$$
But this looks miserable. For starters, there are 6 equations for 7 unknowns, so I'm not sure I could even solve such a system (or find a contradiction). Does anyone have any suggestions?
It's not fun, but you could do polynomial long decision with your three coeficients $a,b,c$ into the original equation.
Doing so I get 7 variables $a,b,c,d,e,f,g$ and 6 equations
$$ad=1$$ $$ae=-db$$ $$af=-4-dc-eb$$ $$ag=1-ec-fb$$ $$bg=fc$$ $$gc=1$$
In $\Bbb Z_7$.
As one of the commenters said we can always turn a non monic polynomial into a monic by distributing the leading coefficients inverse through.
If $ax^2+bx+c$ is a factor, then so is $a(x^2+a^{-1}bx+a^{-1}c)$.
Taking then, $a=1$ we have $d=1$ as well giving us
$$e=-b$$ $$f=-4-c-eb$$ $$g=1-ec-fb$$ $$bg=fc$$ $$gc=1$$
Which is still formidable. Yielding
$$f=-4-c+f^2c^2$$ $$1=c+fc^4-f^2c^4$$
Maybe a better approach is to long divide the quadratics which are irreducible in $\Bbb Z_7$. To see if any have zero remainder.
As it turns out $x^5-4x^3+x^2+1$ is an irreducible polynomial in $\Bbb Z_7$.