Home › Algebraic Equations › Lesson 3

Factorization over ℤ and ℚ

Lesson 3 of 13

Key idea of this section

rational root r/s in lowest terms of aₙxⁿ + ⋯ + a₀ ∈ ℤ[x]:  r | a₀ and s | aₙ
Gauss: content(fg) = content(f) · content(g)
Eisenstein: p | aᵢ (i < n), p ∤ aₙ, p² ∤ a₀  ⟹  f irreducible over ℚ

Over ℚ, irreducibility is subtle: there are irreducible polynomials of every degree, and deciding irreducibility is a genuine algorithmic problem. The tools of this lesson pass between ℚ[x] and ℤ[x], where divisibility of integers gives traction.

The rational root theorem

Theorem 3.1. Let f = aₙxⁿ + ⋯ + a₀ ∈ ℤ[x] with aₙa₀ ≠ 0. If r/s is a root with gcd(r, s) = 1, then r divides a₀ and s divides aₙ.

Proof. Multiply f(r/s) = 0 by sⁿ: aₙrⁿ + aₙ₋₁rⁿ⁻¹s + ⋯ + a₀sⁿ = 0. Every term except a₀sⁿ is divisible by r, so r | a₀sⁿ, and since gcd(r, s) = 1, r | a₀. Similarly every term except aₙrⁿ is divisible by s, so s | aₙ. ∎

In particular a monic integer polynomial has only integer rational roots; this is why √2, ∛5 and in general ᵏ√N for a positive integer N that is not a perfect k-th power are irrational. Example: the candidates for 2x³ − 3x² − 3x + 2 are ±1, ±2, ±1/2. Testing gives roots 2, −1 and 1/2, so 2x³ − 3x² − 3x + 2 = (x − 2)(x + 1)(2x − 1).

A polynomial of degree 2 or 3 over a field is irreducible if and only if it has no root in that field, since any factorization would include a linear factor. For degree 2 and 3 over ℚ, the rational root theorem therefore decides irreducibility. For degree 4 this is no longer enough: (x² + 1)² has no rational root but is reducible.

Content and Gauss's lemma

The content c(f) of a nonzero f ∈ ℤ[x] is the gcd of its coefficients; f is primitive if c(f) = 1. Every nonzero f ∈ ℚ[x] can be written as f = c · f₀ with c ∈ ℚ positive and f₀ ∈ ℤ[x] primitive, uniquely.

Lemma 3.2 (Gauss). The product of two primitive polynomials is primitive. Hence c(fg) = c(f)c(g).

Proof. Suppose f, g are primitive but a prime p divides every coefficient of fg. Reduce modulo p: the map ℤ[x] → 𝔽ₚ[x] is a ring homomorphism, so f̄ ḡ = 0 in 𝔽ₚ[x]. As 𝔽ₚ[x] is an integral domain, f̄ = 0 or ḡ = 0, meaning p divides all coefficients of f or of g, a contradiction. The formula for contents follows by writing f = c(f)f₀, g = c(g)g₀. ∎

Theorem 3.3. If a primitive f ∈ ℤ[x] factors in ℚ[x] as f = gh with deg g, deg h ≥ 1, then it factors in ℤ[x] as f = g₁h₁ with g₁, h₁ rational multiples of g, h. Consequently ℤ[x] is a unique factorization domain, whose irreducible elements are the primes of ℤ and the primitive polynomials irreducible in ℚ[x] (up to sign).

Proof. Write g = αg₀ and h = βh₀ with α, β ∈ ℚ positive and g₀, h₀ primitive. Then f = αβ g₀h₀, and by Gauss's lemma g₀h₀ is primitive. Writing αβ = r/s in lowest terms, s f = r g₀h₀, and comparing contents gives s = r, so αβ = 1 and f = g₀h₀. The statement about unique factorization follows by combining unique factorization in ℚ[x] with that in ℤ. ∎

The same argument works for any UFD R in place of ℤ, with its field of fractions in place of ℚ; inductively, R[x₁, …, xₙ] is a UFD whenever R is. This is how one knows, for instance, that ℤ[x, y] and K[x₁, …, xₙ] have unique factorization.

Eisenstein's criterion

Theorem 3.4 (Eisenstein, 1850; Schönemann, 1846). Let f = aₙxⁿ + ⋯ + a₀ ∈ ℤ[x] and p a prime with p | aᵢ for all i < n, p ∤ aₙ and p² ∤ a₀. Then f is irreducible in ℚ[x].

Proof. Dividing by the content (which is prime to p) we may assume f primitive, and by Theorem 3.3 it suffices to rule out a factorization f = gh in ℤ[x] with deg g = k, deg h = n − k, both at least 1. Reduce modulo p: f̄ = āₙxⁿ with āₙ ≠ 0. The degrees of g and h do not drop, because their leading coefficients multiply to aₙ, which p does not divide. Since 𝔽ₚ[x] has unique factorization and x is irreducible, ḡ = bxᵏ and h̄ = cxⁿ⁻ᵏ with b, c ≠ 0. As k, n − k ≥ 1, the constant terms of g and h are both divisible by p, so p² divides their product a₀, a contradiction. ∎

Eisenstein's criterion shows that xⁿ − p is irreducible over ℚ for every n ≥ 1 and every prime p, so ℚ has extensions of every degree. It often applies after a change of variable x ↦ x + c, which preserves irreducibility. The classical example is the cyclotomic polynomial Φₚ(x) = xᵖ⁻¹ + ⋯ + x + 1 = (xᵖ − 1)/(x − 1) for p prime:

Φₚ(x + 1) = ((x + 1)ᵖ − 1)/x = xᵖ⁻¹ + C(p, p−1)xᵖ⁻² + ⋯ + C(p, 2)x + p

All binomial coefficients C(p, k) with 0 < k < p are divisible by p, and the constant term is p, so Eisenstein applies with the prime p.

Reduction modulo p

If f ∈ ℤ[x] is primitive, p ∤ lc(f), and the reduction f̄ ∈ 𝔽ₚ[x] is irreducible, then f is irreducible over ℚ (a factorization in ℤ[x] would reduce to one with the same degrees). The converse fails badly: x⁴ + 1 is irreducible over ℚ (apply Eisenstein to (x + 1)⁴ + 1 = x⁴ + 4x³ + 6x² + 4x + 2 with p = 2) but it is reducible modulo every prime. Modulo 2 it is (x + 1)⁴, and modulo 3 it is (x² + x + 2)(x² + 2x + 2). The underlying reason is that its Galois group is the Klein four-group, which has no element of order 4 (Lesson 11). Practical factoring algorithms (Berlekamp, Cantor–Zassenhaus, then Hensel lifting and the lattice-based method of van Hoeij) factor modulo a prime, lift the factorization p-adically, and recombine the lifted factors; the Lenstra–Lenstra–Lovász algorithm (1982) made this provably polynomial-time.

Exercise

  • (a)
    Find all rational roots of 3x³ − x² − 12x + 4.
  • (b)
    Prove that Φ₅(x) = x⁴ + x³ + x² + x + 1 is irreducible over ℚ.
Show solution

Answers: (a) Grouping, 3x³ − x² − 12x + 4 = x²(3x − 1) − 4(3x − 1) = (3x − 1)(x² − 4), so the rational roots are 1/3, 2 and −2 (all of which appear in the list ±1, ±2, ±4, ±1/3, ±2/3, ±4/3 of candidates). (b) Φ₅(x + 1) = ((x + 1)⁵ − 1)/x = x⁴ + 5x³ + 10x² + 10x + 5, which is Eisenstein at p = 5; hence Φ₅(x + 1), and therefore Φ₅(x), is irreducible.

V.3.1