Skip to content
The book

Polynomial rings and irreducibility tests

Why this is asked: Pick the right test: rational root, Eisenstein (possibly after a shift), or reduction mod p. Irreducible over ℚ does not mean irreducible mod every p.

In one sentence

K[x]K[x] over a field is Euclidean and so as well behaved as Z\mathbb{Z}, and every irreducibility test is a one-way implication whose failure proves nothing.

Why the exam asks it

Because "is this polynomial irreducible" is a question with several tests and no algorithm, so the skill is choosing the right one — and because "no roots" is an equivalence for degree 22 and 33 and false from degree 44, which is exactly the sort of boundary an option can sit on.

The idea

For KK a field, K[x]K[x] has a division algorithm, hence is Euclidean, hence a PID and a UFD. So irreducible elements generate maximal ideals, gcds exist and satisfy Bézout, and factorisation is unique.

Over a domain rather than a field, a polynomial of degree nn has at most nn roots. That fails without the domain hypothesis: x2−1x^2 - 1 has four roots in Z/8\mathbb{Z}/8, namely 1,3,5,71, 3, 5, 7.

Roots and degree

aa is a root   ⟺  (x−a)∣f\iff (x-a) \mid f. Hence:

  • Degree 22 or 33: irreducible   ⟺  \iff no root in KK. A factorisation must produce a linear factor.
  • Degree ≥4\ge 4: no root proves nothing. x4+4x^4 + 4 has no rational root and factors as (x2−2x+2)(x2+2x+2)(x^2-2x+2)(x^2+2x+2) — the Sophie Germain identity. So does (x2+1)2(x^2+1)^2.
test proves says nothing when it fails degree 2 or 3: no root irreducible — it is an equivalence there degree ≥ 4: no root nothing x⁴ + 4 = (x²−2x+2)(x²+2x+2) Eisenstein at p irreducible try a shift x → x + 1 first irreducible mod p irreducible over ℚ same degree required reducible mod p nothing x⁴ + 1 factors mod every prime Every test here is one-directional. Passing proves irreducibility; failing proves nothing at all, and the two rows in red are the ways an option turns that into a wrong answer.
Every irreducibility test is one-directional: passing proves irreducibility, failing proves nothing. The two red rows are where options turn that into a wrong answer.

The tests over Q\mathbb{Q}

Rational root theorem. A root p/qp/q in lowest terms has p∣a0p \mid a_0 and q∣anq \mid a_n. Finite list, quick to check, and it settles degrees 22 and 33 completely.

Gauss's lemma. A primitive polynomial in Z[x]\mathbb{Z}[x] is irreducible over Z\mathbb{Z}   ⟺  \iff irreducible over Q\mathbb{Q}. So the question can always be moved to Z\mathbb{Z}, which is what makes the next two tests legitimate.

Eisenstein at pp. If p∤anp \nmid a_n, p∣aip \mid a_i for all i<ni < n, and p2∤a0p^2 \nmid a_0, then ff is irreducible over Q\mathbb{Q}.

Eisenstein failing says nothing, and the standard rescue is a substitution. The cyclotomic polynomial Φ5=x4+x3+x2+x+1\Phi_5 = x^4+x^3+x^2+x+1 admits no Eisenstein prime; but

Φ5(x+1)=x4+5x3+10x2+10x+5\Phi_5(x+1) = x^4 + 5x^3 + 10x^2 + 10x + 5

is Eisenstein at 55. Since x↦x+1x \mapsto x+1 is a ring automorphism of Q[x]\mathbb{Q}[x], irreducibility transfers back. Trying x+1x+1 before concluding anything is the habit worth forming.

Reduction mod pp. If ff is monic and fˉ\bar f is irreducible in Fp[x]\mathbb{F}_p[x] of the same degree, then ff is irreducible over Q\mathbb{Q}.

This runs one way only, and the counterexample is worth carrying: x4+1x^4+1 is irreducible over Q\mathbb{Q} and reducible modulo every prime. So no amount of reduction will ever prove it irreducible, and reducibility mod pp never implies reducibility over Q\mathbb{Q}.

Finite fields

Fp[x]/(f)\mathbb{F}_p[x]/(f) is a field with pdeg⁡fp^{\deg f} elements exactly when ff is irreducible. That is the standard construction of Fpn\mathbb{F}_{p^n}, and it is why counting irreducible polynomials of each degree over Fp\mathbb{F}_p is a recurring question.

Over Fp\mathbb{F}_p, xp−xx^p - x factors as the product of (x−a)(x-a) over all a∈Fpa \in \mathbb{F}_p — every element is a root, by Fermat.

Where intuition breaks

"No roots, so irreducible." Only for degree 22 and 33. x4+4x^4+4 and (x2+1)2(x^2+1)^2 are the standard degree-44 refutations.

"Eisenstein fails, so reducible." Eisenstein is sufficient, never necessary. Try a shift before concluding anything.

"Reducible mod pp, so reducible over Q\mathbb{Q}." x4+1x^4+1 factors modulo every prime and is irreducible over Q\mathbb{Q}. The implication runs the other way: irreducible mod pp ⇒\Rightarrow irreducible over Q\mathbb{Q}.

"Irreducible over Q\mathbb{Q}, so irreducible mod pp." Same example. x2+x+1x^2+x+1 is irreducible over Q\mathbb{Q} and equals (x−1)2(x-1)^2 mod 33.

"A degree-nn polynomial has at most nn roots." Over a domain. In Z/8\mathbb{Z}/8, x2−1x^2-1 has four roots.

"Z[x]\mathbb{Z}[x] has a division algorithm." Only when the leading coefficient is a unit. xx divided by 22 has no quotient in Z[x]\mathbb{Z}[x], which is why Z[x]\mathbb{Z}[x] is not Euclidean.

"Irreducible over Z\mathbb{Z} and over Q\mathbb{Q} are different questions." For primitive polynomials, Gauss says they are the same. The distinction only matters for content: 2x2x is irreducible over Q\mathbb{Q} and factors as 2⋅x2 \cdot x over Z\mathbb{Z}.

The exam's angle

  1. Check the degree first. At 22 or 33, hunt for a rational root and you are done either way.
  2. At degree ≥4\ge 4, try Eisenstein, then Eisenstein after x→x+1x \to x+1, then reduction mod a small prime.
  3. Use reduction to prove irreducibility, never reducibility.
  4. For explicit factorisations, look for identities — x4+4x^4+4 and x4+4y4x^4+4y^4 are Sophie Germain, and xn−1x^n - 1 splits into cyclotomics.
  5. Over Fp\mathbb{F}_p, count. Questions about Fpn\mathbb{F}_{p^n} usually reduce to counting monic irreducibles of a given degree.

The night before

  • K[x]K[x] over a field: Euclidean, PID, UFD. Z[x]\mathbb{Z}[x] is none of the first two.
  • Degree ≤n\le n has ≤n\le n roots over a domain. x2−1x^2-1 has four roots in Z/8\mathbb{Z}/8.
  • Degree 22 or 33: irreducible   ⟺  \iff no root. Degree ≥4\ge 4: no root proves nothing — x4+4=(x2−2x+2)(x2+2x+2)x^4+4 = (x^2-2x+2)(x^2+2x+2).
  • Rational root: p∣a0p \mid a_0, q∣anq \mid a_n.
  • Gauss: primitive in Z[x]\mathbb{Z}[x] — irreducible over Z\mathbb{Z}   ⟺  \iff over Q\mathbb{Q}.
  • Eisenstein is sufficient only; try x→x+1x \to x+1. Φ5(x+1)\Phi_5(x+1) is Eisenstein at 55.
  • Reduction mod pp proves irreducibility, never reducibility. x4+1x^4+1 is irreducible over Q\mathbb{Q} and reducible mod every prime.
  • Fp[x]/(f)\mathbb{F}_p[x]/(f) is a field of pdeg⁡fp^{\deg f} elements   ⟺  f\iff f irreducible.

See it move

Irreducibility tests, in the order worth trying theminteractive

This visual is part of Trap Analysis

Rational roots, Eisenstein, reduction mod p — and the quartic that factors despite having no real roots.

Unlock interactive visuals

More in Rings and Fields

Take it further

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

Next: Field extensions, splitting fields, finite fields

Create a free account to keep your place and have this feed your study plan.

ShareWhatsAppTelegram

Open this in the full syllabus view · Unit 2