5.3  Irreducible Polynomials and Unique Factorization

Over every field, x4−1=(x−1)(x+1)(x2+1). Over Q the last factor cannot be split further; over F5 it can, and x4−1 becomes a product of four factors of degree 1; over F2 all of them coincide, and x4−1=(x+1)4. So the “primes” of F[x] depend on the field F. Once F is fixed, though, every polynomial of positive degree splits into such primes in essentially one way, as every positive integer does in Number Systems: From N to R, Section 3.3, and for the same reason: a prime that divides a product divides one of the factors.

Sections 5.1 and 5.2 supplied the tools: division with remainder (Theorem 5.1.2), the monic greatest common divisor and its Bézout identity (Theorem 5.2.2). This section spends them. Throughout, F is a field, and F[x] is a commutative ring with no zero divisors (Theorem 4.2.4 (a), Corollary 4.3.3); degrees of products add (Theorem 4.3.2 (b)), and the units of F[x] are the non-zero constants (Proposition 5.1.1 (e)).

5.3.1. Irreducible polynomials

In Z, a prime is a number p≥2 whose only positive divisors are 1 and p. Two features of that definition need adjusting for polynomials. “Positive” has no meaning in F[x], and its job there was to ignore the units ±1; in F[x] the units are the non-zero constants, so we ignore those. And “p≥2” kept the units themselves from counting as primes; in F[x] the condition becomes “degree at least 1”.

An irreducible polynomial is one that cannot be split into two factors of smaller degree.

Definition 5.3.1 (Irreducible Polynomial)

Let F be a field and p∈F[x]. The polynomial p is irreducible over F if deg⁡p≥1 and, whenever p=gh with g,h∈F[x], one of g, h is a constant. A polynomial of degree at least 1 that is not irreducible over F is reducible over F.

In words: the first clause rules out 0 and the non-zero constants; the second says that every way of writing p as a product uses a constant factor. That constant is never 0, since p≠0. So p is reducible exactly when p=gh with deg⁡g≥1 and deg⁡h≥1; then deg⁡g+deg⁡h=deg⁡p (Theorem 4.3.2 (b)), so both factors have degree strictly less than deg⁡p.

Examples.

  • Every polynomial of degree 1 is irreducible. If p=gh with deg⁡p=1, the degrees of g and h are natural numbers adding up to 1, so one of them is 0.
  • x2+x=x(x+1) and x3=x⋅x2 are reducible over every field: each is a product of two factors of degree at least 1.
  • x2+1 is reducible over F2, where (x+1)2=x2+2x+1=x2+1 because 2=0. Over Q it is irreducible, as the next proposition shows. The polynomial is the same; the field changed, and with it the answer. This is why the definition says “over F”.
  • If p is irreducible and a∈F is non-zero, then ap is irreducible. First, deg⁡(ap)=deg⁡p≥1 (Theorem 4.3.2 (b)), and a factorization ap=gh gives p=(a−1g)h, so a−1g or h is a constant, and then so is g or h. Associates of irreducibles are irreducible.
Second readingThe degenerate cases: constants

The constants are kept out by the first clause, and each for a reason. Without it, the polynomial 0 would pass the second clause, since every factorization 0=gh has g=0 or h=0 (Corollary 4.3.3), a constant. But every polynomial divides 0 (Proposition 5.1.1 (a)), so 0 behaves like the integer 0, not like a prime. A non-zero constant a is a unit: it divides everything, and every factorization a=gh has two constant factors, since the degrees add up to 0. If units counted as irreducible, every factorization could be padded with as many of them as we like, just as (1,2,2,3,5) would pad the factorization of 60 if 1 were prime. The clause deg⁡p≥1 plays the part of the integer condition p≥2.

For polynomials of degree 2 and 3, irreducibility can be decided by looking for roots.

Proposition 5.3.1 (Irreducibility in Low Degree)

Let F be a field and p∈F[x].

  • (a) If deg⁡p≥2 and p has a root in F, then p is reducible over F.
  • (b) If deg⁡p∈{2,3}, then p is irreducible over F if and only if p has no root in F.

Proof. (a) Let c∈F be a root of p. By Theorem 5.1.3 (b), p=(x−c)q for some q∈F[x]. Then deg⁡q=deg⁡p−1≥1 by Theorem 4.3.2 (b), and deg⁡(x−c)=1, so neither factor is a constant and p is reducible.

(b) (⇒) is (a), read contrapositively. (⇐) Suppose p is reducible, so p=gh with deg⁡g,deg⁡h≥1 and deg⁡g+deg⁡h=deg⁡p∈{2,3}. Two natural numbers, each at least 1, with sum 2 or 3: one of them is 1. So p has a factor of degree 1, and Theorem 5.1.3 (c) gives a root of p in F.

For x2+1 over Q: for every c∈Q, c2≥0 (Number Systems: From N to R, Proposition 2.3.5 (e), with 02=0), so c2+1≥1>0 by (b) and (e) of the same proposition. There is no rational root, and (b) makes x2+1 irreducible over Q. The same lines work in every ordered field, so x2+1 is irreducible over R as well.

Warning. “No root” does not mean “irreducible” in degree 4 and above. For c∈Q, c4=(c2)2≥0, so c4+4≥4>0 (Number Systems: From N to R, Proposition 2.3.5 (h)): the polynomial x4+4 has no rational root. Yet x4+4=(x2+2x+2)(x2−2x+2), as expanding the right side shows: the terms in x3, x2 and x cancel. Proposition Proposition 5.3.1 (b) is about degrees 2 and 3 only, where every splitting must contain a factor of degree 1; in degree 4 a splitting may be 2+2, with no factor of degree 1 and so no root.

Quick check. Is 2x2+4 irreducible over Q? Is x2+2 irreducible over F3?

Solution. Over Q, yes: 2x2+4=2(x2+2), and x2+2 has no rational root (c2+2≥2>0, Number Systems: From N to R, Proposition 2.3.5 (e), (h)), so it is irreducible by Proposition 5.3.1 (b), and so is its associate 2x2+4. The factor 2 is a constant, so 2⋅(x2+2) is not a splitting into non-constants. Over F3, no: 12+2=3=0, so 1 is a root, and indeed x2+2=x2−1=(x−1)(x+1) in F3.

5.3.2. Euclid’s lemma for polynomials

The definition of an irreducible p speaks about the factors of p. Unique factorization needs a statement about the polynomials that p divides. As in Z, the bridge is the Bézout identity, and the move is the one of Number Systems: From N to R, Section 3.3: multiply the Bézout identity.

Theorem 5.3.2 (Euclid’s Lemma for Polynomials)

Let F be a field and f,g,h∈F[x]. If f∣gh and gcd(f,g)=1, then f∣h.

Proof. Since gcd(f,g)=1, Corollary 5.2.3 gives a,b∈F[x] with af+bg=1. Multiplying by h, h=h(af+bg)=(ah)f+b(gh). Now f∣f and f∣gh, so f divides the combination (ah)f+b(gh) (Proposition 5.1.1 (c)). Hence f∣h.

The hypothesis gcd(f,g)=1 is needed. In Q[x], x2∣x⋅x, but x2∤x, since a divisor of a non-zero polynomial has degree at most its degree (Proposition 5.1.1 (d)); here gcd(x2,x)=x.

For an irreducible p, the coprimality comes almost free, exactly as it did for a prime number.

Corollary 5.3.3 (An Irreducible Dividing a Product)

Let F be a field and p∈F[x] irreducible over F.

  • (a) For every f∈F[x]: p∣f or gcd(p,f)=1.
  • (b) For all g,h∈F[x]: if p∣gh, then p∣g or p∣h.
  • (c) If (q1,…,ql) is a list of polynomials in F[x], with l∈N, and p∣q1q2⋯ql, then l≥1 and p∣qj for some j∈{1,…,l}.
  • (d) If p and q are monic and irreducible over F and p∣q, then p=q.

Here q1q2⋯ql, also written ∏j=1lqj, is the product of a finite list in the commutative ring F[x], given by the recursion of Sets, Relations, and Cardinality, Definition 2.3.1 as Lemma 4.1.1 (a) reads it: the empty product is 1, and ∏j=1l+1qj=(∏j=1lqj)ql+1.

Idea. For (a), the gcd of p and f is a monic divisor of p, and an irreducible p has only two kinds of divisors: constants and associates of itself. Part (b) is Euclid’s lemma in the coprime case of (a). For (c), peel the last factor off the product and apply (b); induction on the length does the rest. For (d), the cofactor of p in q must be a constant, and comparing leading coefficients makes it 1.

Proof. (a) Since p≠0, the gcd d:=gcd(p,f) is monic (Definition 5.2.2, Theorem 5.2.2 (c)). It divides p: write p=du with u∈F[x]. As p is irreducible, d or u is a constant. If d is a constant, it is a monic constant, so d=1. If u is a constant, then u≠0 (as p≠0) and d=u−1p; since d∣f, f=dk=p(u−1k) for some k∈F[x], so p∣f.

(b) Let p∣gh. By (a), p∣g or gcd(p,g)=1, and in the second case Theorem 5.3.2 gives p∣h.

(c) By Logic and Proof, Axiom 4.2.1 (on N=ω, Number Systems: From N to R, Corollary 1.7.3 (b)) we prove, for every l∈N, the statement P(l): “for every list (q1,…,ql) in F[x] with p∣∏j=1lqj, we have l≥1 and p∣qj for some j≤l”.

Base case P(0). The empty product is 1, and p∤1: otherwise deg⁡p≤deg⁡1=0 by Proposition 5.1.1 (d), against deg⁡p≥1. So the hypothesis of P(0) never holds, and P(0) is true.

Step. Assume P(l), and let p∣∏j=1l+1qj=(∏j=1lqj)ql+1. By (b), p divides the first factor or p∣ql+1. In the first case P(l) gives j≤l with p∣qj; in the second, take j=l+1. Either way l+1≥1, and P(l+1) holds.

(d) Write q=pu with u∈F[x]. As q is irreducible, p or u is a constant, and p is not, since deg⁡p≥1. So u is a non-zero constant, and comparing leading coefficients (Theorem 4.3.2 (b)) gives 1=1⋅u. Hence u=1 and p=q.

Part (b) fails for reducible polynomials: x2∣x⋅x with x2∤x. Part (d) needs “monic”: x and 2x are irreducible over Q, and each divides the other.

The same multiplication of a Bézout identity combines two coprime divisors.

Proposition 5.3.4 (Coprime Divisors of a Polynomial)

Let F be a field and m,n,h∈F[x] with m∣h, n∣h and gcd(m,n)=1. Then mn∣h.

Proof. Write h=mk with k∈F[x]. Then n∣mk, and gcd(n,m)=gcd(m,n)=1, since the clauses of Definition 5.2.2 do not depend on the order of the two polynomials. By Theorem 5.3.2, n∣k; say k=nt. Then h=m(nt)=(mn)t, so mn∣h.

Without coprimality the conclusion fails: x∣x twice over, yet x⋅x=x2∤x.

Quick check. In F2[x], the polynomial x2+1 divides (x+1)(x+1), but divides neither factor. Does this contradict Corollary 5.3.3 (b)?

Solution. No. In F2[x], (x+1)(x+1)=x2+1, so x2+1 is reducible over F2, and the corollary says nothing about it. (It divides neither factor because each factor has degree 1<2, Proposition 5.1.1 (d).)

5.3.3. Factors that cannot be split further

The existence half of unique factorization needs a supply of irreducibles: every polynomial of positive degree must have an irreducible factor. In Z, the least divisor at least 2 was prime (Number Systems: From N to R, Lemma 3.3.4). For polynomials, size becomes degree, and the “least divisor” becomes a monic divisor of least positive degree.

Lemma 5.3.5 (An Irreducible Factor Exists)

Let F be a field and f∈F[x] with deg⁡f≥1. Then f has a monic irreducible divisor in F[x].

Idea. Among the monic divisors of positive degree, take one of least degree. A splitting of it into two non-constants would produce a monic divisor of smaller positive degree.

Proof. Let c be the leading coefficient of f, and let D:={deg⁡d:d∈F[x] monic, deg⁡d≥1, d∣f}⊆N. The monic associate c−1f has degree deg⁡f≥1 and divides f=c⋅(c−1f), so D is non-empty. By Sets, Relations, and Cardinality, Theorem 2.1.3 (on N=ω it is Number Systems: From N to R, Theorem 1.6.2), D has a least element n0; let p be a monic divisor of f of degree n0. Then deg⁡p=n0≥1.

Suppose p=gh with deg⁡g≥1 and deg⁡h≥1. Then deg⁡g=n0−deg⁡h<n0 (Theorem 4.3.2 (b)). Let g1 be the monic associate of g, so g=lc(g)g1 and deg⁡g1=deg⁡g. Then g1∣g, g∣p and p∣f, so g1∣f (Proposition 5.1.1 (b)), and deg⁡g1∈D is smaller than n0, against the choice of n0. So every factorization p=gh has a constant factor, and p is irreducible.

This is Number Systems: From N to R, Lemma 3.3.4 with degree in place of size; the twin is compared with, not used.

5.3.4. Unique factorization

Two facts about products of lists. The proof below handles lists of polynomials, and it uses two facts about their products, both proved by induction on the length from the recursion of the product. Let (q1,…,ql) be a list in F[x], with l∈N.

  • (L1) If every qj is non-zero, then ∏j=1lqj≠0, and its degree is ∑j=1ldeg⁡qj. If every qj is monic, so is the product.
  • (L2) If l≥1 and j∈{1,…,l}, let (q1′,…,ql−1′) be the list with the entry j removed: qt′:=qt for t<j and qt′:=qt+1 for j≤t≤l−1. Then ∏t=1lqt=(∏t=1l−1qt′)qj. In particular every entry of a list divides its product.

The names (L1), (L2) are used throughout this chapter.

Second readingProofs of (L1) and (L2)

(L1). Induction on l. For l=0 the product is 1, which is monic of degree 0, the empty sum. If the claim holds for l, then ∏j=1l+1qj=(∏j=1lqj)ql+1 is a product of two non-zero polynomials, so it is non-zero with degree ∑j=1ldeg⁡qj+deg⁡ql+1 and leading coefficient the product of the two leading coefficients (Theorem 4.3.2 (b)); that is 1⋅1=1 when both factors are monic.

(L2). Induction on l≥1, for all j≤l at once. For l=1, j=1, the shortened list is empty and both sides are q1. Suppose the claim holds for lists of length l, and let (q1,…,ql+1) and j≤l+1 be given. If j=l+1, the shortened list is (q1,…,ql) and the claim is the recursion itself. If j≤l, the claim for the list (q1,…,ql) and the same j gives ∏t=1lqt=(∏t=1l−1rt)qj, where (r1,…,rl−1) is (q1,…,ql) with entry j removed. The list (q1′,…,ql′) obtained from (q1,…,ql+1) has the first l−1 entries r1,…,rl−1 and the last entry ql′=ql+1. So, by the recursion twice and commutativity and associativity in F[x], ∏t=1l+1qt=(∏t=1l−1rt)qjql+1=((∏t=1l−1rt)ql+1)qj=(∏t=1lqt′)qj. The last clause of (L2) follows: qj divides (∏tqt′)qj.

Everything is now in place.

Theorem 5.3.6 (Unique Factorization of Polynomials)

Let F be a field and f∈F[x] with deg⁡f≥1 and leading coefficient c.

  • (a) Existence. There are k≥1 and monic polynomials p1,…,pk, irreducible over F, with f=cp1p2⋯pk.
  • (b) Uniqueness. If also f=c′q1q2⋯ql with c′∈F, l∈N and monic polynomials q1,…,ql irreducible over F, then c′=c, l=k, and there is a bijection σ:{1,…,k}→{1,…,l} (Sets, Relations, and Cardinality, Definition 1.4.5) with qσ(i)=pi for every i.

In words: every polynomial of positive degree is its leading coefficient times a product of monic irreducibles, and the leading coefficient and the irreducibles, counted with repetition, are determined by f; only their order is free. The bijection σ says “the same list, possibly in another order”: it matches each pi with an equal qσ(i), and each q is used exactly once.

Idea. Existence. Split off one monic irreducible factor (Lemma 5.3.5); the cofactor has smaller degree, so strong induction on the degree factors it.

Uniqueness. Divide by the leading coefficient, so that both products are equal products of monic irreducibles. The last factor pk+1 of one list divides the other product, so by Euclid’s lemma (in the form Corollary 5.3.3 (c)) it divides one of the qj, and, both being monic and irreducible, it equals it. Cancel it from both sides and use induction on the length.

Before reading on: where is Euclid’s lemma used, and why does “monic” turn “pk+1 is a constant times qj” into “pk+1=qj”?

Proof. Existence. We prove, by Logic and Proof, Theorem 4.2.2 on n∈N (read on ω: its proof uses only Logic and Proof, Axiom 4.2.1 and Number Systems: From N to R, Theorem 1.6.1 (a), (b), (d), as in Section 3.1), the statement E(n): “every monic g∈F[x] of degree n≥1 is a product p1⋯pk of a list of monic irreducibles, k≥1”. For n=0 there is nothing to prove. Let n≥1, assume E(m) for every m<n, and let g be monic of degree n. By Lemma 5.3.5, g=pu with p monic and irreducible, and u∈F[x]. Comparing leading coefficients (Theorem 4.3.2 (b)), 1=1⋅lc(u), so u is monic, and deg⁡u=n−deg⁡p<n. If deg⁡u=0, then u=1 and g=p is a list of length 1. Otherwise E(deg⁡u) gives u=p1⋯pr with monic irreducibles pi, and the list (p1,…,pr,p) has, by the recursion, the product (∏i=1rpi)p=up=g. This proves E(n).

Now let f be as in the theorem. Its monic associate c−1f has degree deg⁡f≥1, so c−1f=p1⋯pk by E(deg⁡f), and f=cp1⋯pk.

Uniqueness. By (L1), q1⋯ql is monic. As f≠0, c′≠0, and comparing leading coefficients in f=c′q1⋯ql (Theorem 4.3.2 (b)) gives c=c′⋅1=c′. Multiplying both expressions for f by c−1, p1p2⋯pk=q1q2⋯ql. It remains to prove, by Logic and Proof, Axiom 4.2.1 on k∈N, the statement U(k): “for every l∈N, if (p1,…,pk) and (q1,…,ql) are lists of monic irreducibles with ∏i=1kpi=∏j=1lqj, then l=k and there is a bijection σ:{1,…,k}→{1,…,l} with qσ(i)=pi for every i≤k”.

Base case U(0). The empty product is 1, of degree 0. By (L1), ∏j=1lqj has degree ∑jdeg⁡qj≥l, since each deg⁡qj≥1. So l=0, and the empty function ∅→∅ is the required bijection.

Step. Assume U(k), and let (p1,…,pk+1) and (q1,…,ql) be lists of monic irreducibles with the same product N. By the recursion, N=(∏i=1kpi)pk+1, so pk+1∣N=∏j=1lqj. By Corollary 5.3.3 (c), l≥1 and pk+1∣qj for some j≤l; by Corollary 5.3.3 (d), pk+1=qj. Let (q1′,…,ql−1′) be the q-list with entry j removed. By (L2), (∏i=1kpi)pk+1=N=(∏t=1l−1qt′)qj=(∏t=1l−1qt′)pk+1. Since pk+1≠0, we may cancel it (Corollary 4.3.3 (b)): ∏i=1kpi=∏t=1l−1qt′. The list (q1′,…,ql−1′) consists of monic irreducibles, so U(k), applied with l−1∈N, gives l−1=k and a bijection σ′:{1,…,k}→{1,…,l−1} with qσ′(i)′=pi.

Let τ:{1,…,l−1}→{1,…,l}∖{j} be τ(t):=t for t<j and τ(t):=t+1 for t≥j. It is a bijection (its inverse sends s<j to s and s>j to s−1), and qt′=qτ(t) by the definition of q′. Define σ:{1,…,k+1}→{1,…,l} by σ(i):=τ(σ′(i)) for i≤k and σ(k+1):=j. On {1,…,k}, σ is a bijection onto {1,…,l}∖{j}, a composite of two bijections; and it sends k+1 to the one remaining point j. So σ is injective and surjective, a bijection. Finally qσ(i)=qτ(σ′(i))=qσ′(i)′=pi for i≤k, and qσ(k+1)=qj=pk+1; and l=k+1. This proves U(k+1), and the theorem.

The answer to the prompt. Euclid’s lemma enters at one line, “pk+1∣qj for some j”: that is Corollary 5.3.3 (c), whose step is (b), which is Theorem 5.3.2 in the coprime case. “Monic” enters twice. Irreducibility of qj only gives qj=pk+1u with u a non-zero constant; both being monic forces u=1 (part (d)), and without that the cancellation would leave a stray constant u on one side. And the leading coefficients c,c′ can be compared only because the products of monic lists are monic.

Remark. In Z, Number Systems: From N to R, Section 3.3 stated uniqueness for non-decreasing lists of primes (Number Systems: From N to R, Theorem 3.3.5), so that two factorizations of the same number are literally equal. Polynomials have no natural order to sort by, so here “the same up to order” is said with a bijection of indices.

Example (The Factorizations of x4−1)

Factor x4−1 into monic irreducibles over Q, over R, over F3, over F5 and over F2.

Solution. Over every field, (x−1)(x+1)=x2−1 and (x2−1)(x2+1)=x4−1, by expanding, so x4−1=(x−1)(x+1)(x2+1). The two factors of degree 1 are irreducible. Everything depends on x2+1, which by Proposition 5.3.1 (b) is irreducible exactly when it has no root in the field.

  • Q and R. No root, since c2+1≥1>0 in an ordered field (after Proposition 5.3.1). So (x−1,x+1,x2+1) is the factorization, with leading coefficient 1.
  • F3. The values of x2+1 at 0,1,2 are 1,2,5=2: no root. The factorization is (x−1,x+1,x2+1) again, with x+1=x−2.
  • F5. Here 22+1=5=0, and indeed (x−2)(x−3)=x2−5x+6=x2+1 in F5. So x4−1=(x−1)(x−2)(x−3)(x−4), using x+1=x−4: four factors of degree 1.
  • F2. Here −1=1, so x−1=x+1, and x2+1=(x+1)2 (the example after Definition 5.3.1). So x4−1=(x+1)4: one irreducible, four times.

By Theorem 5.3.6, each of these lists is the only one up to order.

Quick check. Is x2+x+1 irreducible over F2? Over F3?

Solution. Over F2, its values at 0 and 1 are 1 and 3=1: no root, so it is irreducible (Proposition 5.3.1 (b)). Over F3, 1+1+1=3=0, so 1 is a root and it is reducible; indeed (x−1)2=x2−2x+1=x2+x+1 in F3.

5.3.5. Rational roots

Over Q, the low-degree test of Proposition 5.3.1 asks for rational roots, and there are infinitely many rationals to try. For a polynomial with integer coefficients and non-zero constant term the candidates can be listed (a zero constant term is dealt with by factoring out a power of x, below). The proof is about integers, not polynomials: here, unlike in the rest of this section, integer results of Number Systems: From N to R, Chapter 3 (Euclid’s lemma, lowest terms) are steps of the proof and not only compared with.

Theorem 5.3.7 (Rational Root Test)

Let n≥1, let a0,a1,…,an∈Z with an≠0, and let f:=∑i=0naixi∈Q[x]. If u∈Z, v∈Z>0, gcd(u,v)=1 and f(u/v)=0, then u∣a0 and v∣an in Z.

Idea. Clear denominators: vnf(u/v)=0 is an equation in Z in which every term but one is a multiple of u, and every term but another is a multiple of v. Then Euclid’s lemma for integers strips the powers of v from a0vn, one at a time.

Proof. Multiply f(u/v)=0 by vn. For i≤n, (u/v)ivi=ui and vn=vn−ivi (Lemma 4.1.1 (c), in the commutative ring Q), so anun+an−1un−1v+⋯+a1uvn−1+a0vn=0, an equation between integers. Every term except the last contains the factor u, and every term except the first contains the factor v (as n≥1). So a0vn=−u∑i=1naiui−1vn−i,anun=−v∑i=0n−1aiuivn−1−i, and u∣a0vn, v∣anun in Z.

We show u∣a0vn−j for every j≤n, by Logic and Proof, Axiom 4.2.1 on j. The case j=0 is the line above. If u∣a0vn−j with j<n, then a0vn−j=v⋅(a0vn−j−1), and gcd(u,v)=1, so Number Systems: From N to R, Theorem 3.3.1 gives u∣a0vn−(j+1). At j=n: u∣a0. The same induction with the roles of u and v exchanged (and gcd(v,u)=gcd(u,v)=1) turns v∣anun into v∣an.

Every rational root has such a form: by Number Systems: From N to R, Proposition 3.3.6, each r∈Q is u/v with u∈Z, v∈Z>0 and gcd(u,v)=1. So, when a0≠0, the rational roots of f are among the finitely many fractions u/v with u∣a0 and v a positive divisor of an: a divisor u of a0≠0 has −|a0|≤u≤|a0|, by Number Systems: From N to R, Proposition 3.1.1 (d), (e), and likewise 1≤v≤|an|. If a0=0, then 0 is a root; let k be the least index with ak≠0 (so k≤n). Then f=xkg with g:=∑i=0n−kai+kxi, which has integer coefficients and constant term ak≠0, and the non-zero rational roots of f are those of g, since f(r)=rkg(r) (Theorem 4.4.1) and Q has no zero divisors; apply the test to g when deg⁡g≥1, and when deg⁡g=0, g has no root. The test lists candidates; it does not say which of them are roots.

Example (A Cubic with No Rational Root)

Show that 3x3+x2−2 is irreducible over Q.

Solution. By Theorem 5.3.7, a rational root u/v in lowest terms has u∣−2 and v a positive divisor of 3. The divisors of −2 are ±1,±2, and the positive divisors of 3 are 1,3 (a positive divisor of 3 is at most 3, Number Systems: From N to R, Proposition 3.1.1 (e), and 3=1⋅2+1). So the candidates are ±1,±2,±1/3,±2/3. The values of f:=3x3+x2−2 at them are

c 1 −1 2 −2 1/3 −1/3 2/3 −2/3
f(c) 2 −4 26 −22 −16/9 −2 −2/3 −22/9

For instance f(2/3)=3⋅827+49−2=89+49−2=−23. None is 0, so f has no rational root, and as deg⁡f=3, Proposition 5.3.1 (b) makes f irreducible over Q.

Quick check. Which rational numbers can be roots of 2x2+3x−2? Which are?

Solution. The candidates are u/v with u∣−2 and v∈{1,2}: ±1,±2,±1/2. Evaluating, the roots are 1/2 and −2; indeed 2x2+3x−2=(2x−1)(x+2).

Remark (Looking ahead). Two sharper tests for irreducibility over Q, Gauss’s lemma and Eisenstein’s criterion, belong to a later algebra volume of the series; nothing in this volume uses them.

5.3.6. Exercises

A. Check your understanding

Exercise (A1)

These questions are about the uniqueness half of the proof of Theorem 5.3.6.

  • (a) Which line of the proof uses Euclid’s lemma, and through which result?
  • (b) Where is “monic” used?
  • (c) In F5[x], run the induction step on the two lists (p1,p2,p3,p4)=(x−1,x−2,x−3,x−4) and (q1,q2,q3,q4)=(x−4,x−3,x−2,x−1). Which j matches p4? What is the bijection σ at the end?
  • (d) Why must the empty list be allowed?
  • (e) Give the idea of the uniqueness proof in two sentences.

Solution.

  • (a) The line “pk+1∣qj for some j≤l”. It cites Corollary 5.3.3 (c), proved by induction from (b), which is Theorem 5.3.2 applied when gcd(p,g)=1.

  • (b) In pk+1=qj: from pk+1∣qj and irreducibility of qj we only get qj=upk+1 with u a non-zero constant, and comparing the leading coefficients 1=u needs both monic (Corollary 5.3.3 (d)). Also in c′=c: the products of the monic lists are monic by (L1).

  • (c) p4=x−4 divides q1q2q3q4; the only qj it divides is q1=x−4, so j=1 and σ(4)=1. The shortened list is (q1′,q2′,q3′)=(x−3,x−2,x−1), and τ(t)=t+1. The step for k=2 matches p3=x−3 with q1′, and so on down. Unwinding, σ(i)=5−i: q5−i=x−i=pi for i=1,2,3,4.

  • (d) The induction on k starts at k=0, and U(0) is about the empty list, whose product is 1; each step removes one entry, so the empty list is where every chain of steps ends.

  • (e) The last irreducible of one factorization divides the other product, so by Euclid’s lemma it divides, and so equals, one of the other’s irreducibles. Cancel it from both sides and apply the induction hypothesis to the two shorter lists.

B. Practice

Exercise (B1: Determine which)

Determine whether each polynomial is irreducible over the given field. Justify your answer.

  • (a) x2+2 over Q, over F2, over F3.
  • (b) x3+x+1 over F2 and over F3.
  • (c) x4+4 over Q.
  • (d) 3x3+x2−2, with its coefficients read in F2.

Solution.

  • (a) Over Q: irreducible, since c2+2≥2>0 for c∈Q (Number Systems: From N to R, Proposition 2.3.5 (e), (h)), so there is no root, and the degree is 2 (Proposition 5.3.1 (b)). Over F2: 2=0, so the polynomial is x2=x⋅x, reducible. Over F3: 2=−1, so it is x2−1=(x−1)(x+1), reducible.

  • (b) Over F2: the values at 0 and 1 are 1 and 3=1; no root, degree 3, irreducible. Over F3: the value at 1 is 3=0, so it is reducible (Proposition 5.3.1 (a)); indeed x3+x+1=(x−1)(x2+x+2) in F3.

  • (c) Reducible: x4+4=(x2+2x+2)(x2−2x+2) (the warning after Proposition 5.3.1), although it has no rational root.

  • (d) In F2, 3=1 and −2=0, so the polynomial is x3+x2=x2(x+1). It has the root 0 and degree 3, so it is reducible.

Exercise (B2: The polynomials vanishing at the square root of two)

Let s∈R be the non-negative square root of 2 (Number Systems: From N to R, Proposition 6.1.4, in the complete ordered field R), and let J:={f∈Q[x]:f(s)=0}, where f(s) is computed in R, reading Q[x]⊆R[x] coefficientwise. Prove that J=⟨x2−2⟩.

The beginning and the end of a proof are given.

J is an ideal of Q[x], since evaluation at s respects sums and products (Theorem 4.4.1). It contains x2−2, and 1∉J. Let d be a monic element of least degree in J. Let f∈J, and divide: f=qd+r with deg⁡r<deg⁡d (Theorem 5.1.2).

[Blank.]

So J=⟨d⟩. Then d∣x2−2, and deg⁡d≥2: deg⁡d=0 would make d=1∈J, and deg⁡d=1 would give d=x+a with a∈Q and s=−a, a rational number whose square is 2, against Number Systems: From N to R, Theorem 2.6.1. Hence d=x2−2.

Name the move, then complete it.

Solution. The move is least degree, then divide: in a set closed under the right operations, a remainder on division by an element of least degree lies in the set and has smaller degree, so it is 0.

Completion of the blank: r=f−qd, and f,d∈J, so r∈J because J is an ideal (it absorbs the multiple qd and is closed under differences). A non-zero r would be a non-zero element of J of degree less than deg⁡d; its monic associate would lie in J too and have the same degree, against the choice of d. So r=0, and f=qd∈⟨d⟩. Conversely every multiple of d lies in J. This is the argument of Theorem 5.2.1, run on J.

For the end: d∣x2−2 because x2−2∈J=⟨d⟩. So deg⁡d≤2 (Proposition 5.1.1 (d)), and with deg⁡d≥2, x2−2=du with u a constant; both being monic, u=1. In the language of this section, x2−2 is irreducible over Q: it has degree 2 and no rational root, since a root c would satisfy c2=2, against Number Systems: From N to R, Theorem 2.6.1 (Proposition 5.3.1 (b)). Every rational polynomial vanishing at s is a multiple of it.

Exercise (B3: The small irreducibles over the two-element field)

List all irreducible polynomials of degree at most 3 over F2, and prove that the list is complete.

Solution. Over F2 the only non-zero constant is 1, so every non-zero polynomial is monic and associates are equal. There are 2+4+8=14 polynomials of degree 1, 2 or 3: the coefficient of the top power is 1, and each lower coefficient is 0 or 1.

  • Degree 1: x and x+1, both irreducible (the first example after Definition 5.3.1).
  • Degrees 2 and 3: by Proposition 5.3.1 (b), irreducible exactly when there is no root. The value at 0 is the constant term, and the value at 1 is the sum of the coefficients, which is 0 in F2 exactly when the number of non-zero coefficients is even. So the irreducible ones have constant term 1 and an odd number of non-zero coefficients.

In degree 2, the candidates with constant term 1 are x2+1 (two non-zero coefficients) and x2+x+1 (three); only x2+x+1 is irreducible. In degree 3 they are x3+1, x3+x+1, x3+x2+1, x3+x2+x+1, with two, three, three and four non-zero coefficients; so x3+x+1 and x3+x2+1 are irreducible. The complete list is x,x+1,x2+x+1,x3+x+1,x3+x2+1.

C. Going deeper

Exercise (C1: Exit check: unique factorization)

Prove the uniqueness half of Theorem 5.3.6: if cp1⋯pk=c′q1⋯ql with c,c′∈F non-zero and all pi, qj monic irreducible over the field F, then c=c′, l=k, and the two lists agree up to a bijection of indices. You may cite Euclid’s lemma (Theorem 5.3.2) and Corollary 5.3.3.

Solution. The uniqueness part of the proof of Theorem 5.3.6 is a complete answer. Its steps, in order: the products of the monic lists are monic (L1), so comparing leading coefficients gives c=c′, and dividing by c leaves equal products; induction on k, with the statement quantified over every length l of the other list; base case k=0, where a non-empty list of monic irreducibles has a product of degree at least 1; in the step, pk+1 divides the other product, so it divides some qj by Corollary 5.3.3 (c), and equals it by (d); remove qj from its list (L2) and cancel pk+1≠0 (Corollary 4.3.3 (b)); the induction hypothesis on the shortened lists gives l−1=k and a bijection, extended by k+1↦j.

Marking scheme. (10 points) - 1: compares leading coefficients to get c=c′, with a reason that a product of monic polynomials is monic. - 2: sets up an induction on the length of one list (or a least counterexample), with the statement quantified over all lengths of the other list, and proves the base case by a degree argument. - 3: shows that an irreducible of one list divides the other product and equals one of its factors, citing Euclid’s lemma for several factors and “monic irreducible divides monic irreducible implies equal”. - 1: justifies the cancellation by the absence of zero divisors in F[x]. - 3: applies the induction hypothesis to the shortened lists, with the removal of the matched entry stated, and extends the bijection. Fatal errors (0 for the step): using the uniqueness for a polynomial of smaller degree without an induction set up; concluding pk+1=qj from pk+1∣qj without using that both are monic and irreducible. A proof by strong induction on deg⁡f maps to the same points: its set-up and the degree-0 case take the 2 points of the induction, and “the cofactor has a unique factorization” takes the last 3.

Exercise (C2: Find the error)

Here is a statement and an argument for it.

Claim. x4+1 is irreducible over Q.

Argument. (1) By Theorem 5.3.7, a rational root of x4+1 is u/v with u∣1 and v∣1, so the only candidates are 1 and −1. (2) Both give the value 1+1=2≠0, so x4+1 has no rational root. (3) By Proposition 5.3.1, a polynomial without roots is irreducible. (4) Hence x4+1 is irreducible over Q.

Is the claim true? Does the argument prove it? If not, name the line that fails, explain why, give a counterexample to the step, and repair the proof.

Solution. The claim is true; the argument does not prove it.

Lines (1) and (2) are correct. The failing line is (3). Proposition 5.3.1 (b) is stated for polynomials of degree 2 or 3, and x4+1 has degree 4: the line applies a result outside its hypotheses, a “fact” that is not available, entry (N9) of Logic and Proof, Example (What is not allowed). A counterexample to the step: x4+4 has no rational root and is reducible (the warning after Proposition 5.3.1).

Repair. Suppose x4+1=gh with deg⁡g,deg⁡h≥1. The leading coefficients multiply to 1, so replacing g, h by their monic associates we may take both monic. The degrees add up to 4. If one of them is 1, that factor has a root in Q (Theorem 5.1.3 (c)), against lines (1)–(2). So both have degree 2: g=x2+ax+b, h=x2+cx+d with a,b,c,d∈Q. Comparing coefficients in (x2+ax+b)(x2+cx+d)=x4+(a+c)x3+(b+d+ac)x2+(ad+bc)x+bd with x4+1 gives c=−a, b+d−a2=0, a(d−b)=0 and bd=1. Since Q has no zero divisors (Theorem 2.1.1 (f)), a=0 or d=b.

So no splitting exists, and x4+1 is irreducible over Q.

Exercise (C3: Infinitely many irreducibles)
  • (a) Let F be a field. Prove that no finite list contains every monic irreducible polynomial of F[x]: for every list (p1,…,pk) of monic irreducibles, k∈N, some monic irreducible is not an entry of it.
  • (b) Let p be prime. Prove that there are exactly pn monic polynomials of degree n in Fp[x], for each n∈N, and deduce that Fp[x] has monic irreducibles of arbitrarily large degree.

Solution (Hint 1). For (a), copy the integer argument: consider p1⋯pk+1. For (b), a monic polynomial of degree n is determined by its n lower coefficients.

Solution (Hint 2). For (a): by (L1) the product has degree at least 1 when k≥1, so N:=p1⋯pk+1 has a monic irreducible factor (Lemma 5.3.5).

Solution. (a) If k=0, the polynomial x is monic and irreducible and not an entry. Let k≥1 and P:=p1⋯pk. By (L1), P is monic of degree ∑ideg⁡pi≥1. Then N:=P+1 has deg⁡N=deg⁡P≥1 (Theorem 4.3.1, the degrees of P and 1 differ), so N has a monic irreducible divisor q (Lemma 5.3.5). If q=pi for some i, then q∣P by (L2), and q∣N−P=1 (Proposition 5.1.1 (c)), so deg⁡q≤0 (Proposition 5.1.1 (d)), against deg⁡q≥1. So q is a monic irreducible that is not an entry of the list.

(b) A monic polynomial of degree n has n lower coefficients a0,…,an−1∈Fp, and by Definition 4.1.1 (equality coefficientwise) the map sending it to (a0,…,an−1) is a bijection onto the set Tn of such tuples; its inverse puts 1 in position n and zeros above. We show |Tn|=pn by Logic and Proof, Axiom 4.2.1 on n. T0 has one element, the empty tuple, and p0=1. The tuples of length n+1 split by their last entry into p pairwise disjoint sets, one for each element of Fp, which has p elements (Definition 2.2.1); each is in bijection with Tn (drop the last entry). Applying Sets, Relations, and Cardinality, Proposition 3.1.5 p−1 times (an induction on the number of pieces), |Tn+1|=p⋅pn=pn+1.

So for each M∈N, the monic polynomials of degree at most M form a finite set: a union of the finitely many finite sets for n=0,…,M, pairwise disjoint, again by Sets, Relations, and Cardinality, Proposition 3.1.5. Suppose every monic irreducible of Fp[x] had degree at most M. Then they would form a subset of a finite set, hence a finite set (Sets, Relations, and Cardinality, Proposition 3.1.6), and a bijection {1,…,k}→ that set (Sets, Relations, and Cardinality, Definition 3.1.2) would be a list containing every monic irreducible, against (a). So for every M there is a monic irreducible of degree greater than M.

Marking scheme. (10 points) - 2: (a) builds a polynomial N of degree ≥1 that is 1 more than a multiple of p1⋯pk (e.g. p1⋯pk+1, or xp1⋯pk+1), and shows deg⁡N≥1 for every k, k=0 included (or treats k=0 separately). - 3: (a) takes a monic irreducible factor q of N and shows q is no pi, since it would divide 1. - 3: (b) counts the monic polynomials of degree n through their coefficient tuples, with an induction or a cited counting result. - 2: (b) concludes by contradiction with (a): a bound on the degrees would make the irreducibles a finite set, hence a list. Fatal errors (0 for the step): claiming that N itself is irreducible; taking “the product of all monic irreducibles” without a finite list.

Exercise (C4: Greatest common divisor and least common multiple)

Let f,g∈F[x] be monic, d:=gcd(f,g), and write f=df1, g=dg1.

  • (a) Prove that gcd(f1,g1)=1.
  • (b) Prove that L:=df1g1 is a monic common multiple of f and g that divides every common multiple of f and g, and that d⋅L=fg.
  • (c) In Q[x], let f=g=2x (not monic). The gcd is x, and the monic common multiple dividing every common multiple is x. Show that gcd(f,g)⋅x≠fg.

Solution. (a) Since f≠0, d is monic, so d≠0. By Theorem 5.2.2 (d), d=af+bg for some a,b∈F[x], so d⋅1=d(af1+bg1). Canceling d (Corollary 4.3.3 (b)), af1+bg1=1, and gcd(f1,g1)=1 by Corollary 5.2.3.

(b) Comparing leading coefficients in f=df1 (Theorem 4.3.2 (b)) gives lc(f1)=1; likewise g1 is monic, so L is monic (L1). It is a common multiple: L=fg1=gf1. Let h be a common multiple, h=fk=gm with k,m∈F[x]. Then df1k=dg1m, and canceling d, f1k=g1m. So g1∣f1k, and gcd(g1,f1)=1 by (a), hence g1∣k by Theorem 5.3.2; say k=g1t. Then h=df1g1t=Lt, and L∣h. Finally d⋅L=(df1)(dg1)=fg.

(c) gcd(2x,2x)=x by Definition 5.2.2: x is monic and divides 2x, and every common divisor h of 2x and 2x divides 2−1(2x)=x (Proposition 5.1.1 (b)). Next, x is monic and a common multiple of f=g=2x, since 2−1(2x)=x. It divides every common multiple h: x∣2x and 2x∣h, so x∣h by Proposition 5.1.1 (b). Any other monic L′ with these two properties satisfies x∣L′ and L′∣x, so L′=x by Proposition 5.1.1 (f). But x⋅x=x2≠4x2=fg, since 1≠4 in Q. The identity of (b) needs f and g monic. For non-zero f, g, the monic associates lc(f)−1f and lc(g)−1g have the same common divisors and the same common multiples as f and g, since each divides the other; so (b) applied to them gives d⋅L=lc(f)−1lc(g)−1fg.