6.3  Irreducible Polynomials and Unique Factorization

Every integer n≥2 is a product of primes, and Chapter 0 remarked that the convention “1 is not prime” is what makes such factorizations unique. Polynomials over a field behave the same way, with irreducible polynomials in the role of primes and nonzero constants in the role of ±1. This section defines irreducible polynomials, proves Euclid’s lemma from the gcd machinery of the previous section, and proves that every nonconstant polynomial factors into irreducibles in exactly one way. The catch is that “irreducible” depends on the field: the same polynomial may factor over R but not over Q, or over F5 but not over F3. So we also collect tools for deciding irreducibility over specific fields: roots in low degree, the Rational Root Theorem, and Eisenstein’s criterion. Throughout, F is a field.

6.3.1. Irreducible polynomials

For integers, the building blocks are the primes: integers p≥2 whose only positive divisors are 1 and p (Definition 0.2.2). To transplant this to F[x], recall from the first section that every nonzero constant divides every polynomial, and that multiplying by a nonzero constant changes nothing for divisibility. So the trivial divisors of p are the nonzero constants and the associates cp. A building block should have no others.

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

Definition 6.3.1 (Irreducible Polynomial)

Let F be a field. A polynomial p∈F[x] is irreducible over F if

  • (1) p is nonconstant, that is, deg⁡p≥1; and
  • (2) whenever p=gh with g,h∈F[x], one of g,h is a constant.

A nonconstant polynomial that is not irreducible is reducible over F.

In words: condition (1) excludes 0 and the nonzero constants. Condition (2) says every factorization of p is trivial: one factor is a constant, which is nonzero because p≠0, and the other is then an associate of p. The phrase over F is part of the notion, since g and h must lie in F[x].

Since degrees add (Theorem 0.8.3), a factorization p=gh with p≠0 has deg⁡g+deg⁡h=deg⁡p. So g is constant exactly when deg⁡h=deg⁡p. This gives a working form of the definition: a nonconstant p is reducible if and only if p=gh with 1≤deg⁡g<deg⁡p and 1≤deg⁡h<deg⁡p.

Example (First Irreducible and Reducible Polynomials)
  • (a) Show that every polynomial of degree 1 is irreducible over every field.
  • (b) Show that the constants 0 and 2 are not irreducible over Q.
  • (c) Show that x2+x is reducible over every field, and that x3 is reducible over every field.

Solution.

  • (a) If deg⁡p=1 and p=gh, then deg⁡g+deg⁡h=1 with both degrees in N, so one of them is 0: one factor is a constant. Condition (1) holds since deg⁡p=1. Hence p is irreducible, whatever the field. For example x, 2x+4, and x−2 (over R) are irreducible.

  • (b) Both are constants, so condition (1) fails. They are the degenerate cases, and they matter: 2 divides everything in Q[x], like 1 among the integers, and it is not a building block.

  • (c) x2+x=x(x+1) with both factors of degree 1, and x3=x⋅x2 with factors of degrees 1 and 2. In each case both factors are nonconstant, so condition (2) fails.

Why insist on “nonconstant”? For the same reason 1 is not a prime. If nonzero constants were allowed as building blocks, factorizations could never be unique: x=2⋅12x=2⋅3⋅16x=⋯ over Q, with any number of constant factors. The factorization theorem below pulls out one constant in front and uses only nonconstant, monic irreducibles.

For polynomials of degree 2 and 3, irreducibility is decided by roots alone.

Theorem 6.3.1 (Irreducibility in Degree 2 and 3)

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

  • (a) p has a factor of degree 1 in F[x] if and only if p has a root in F. In particular, 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) (⇐) If c∈F is a root, then p=(x−c)q by Theorem 6.1.3 (b). (⇒) If p=(ax+b)q with a≠0, then c=−a−1b satisfies ac+b=0, so p(c)=0⋅q(c)=0 by Theorem 0.8.5. For the last sentence, if deg⁡p≥2 and p=(x−c)q, then deg⁡q=deg⁡p−1≥1, so both factors are nonconstant of degree less than deg⁡p, and p is reducible.

  • (b) We prove both directions by contraposition. (⇒) If p has a root, it is reducible by (a), since deg⁡p≥2. (⇐) Suppose p is reducible. By the working form of the definition, p=gh with deg⁡g,deg⁡h≥1 and deg⁡g+deg⁡h=deg⁡p∈{2,3}. Two integers that are at least 1 and sum to 2 or 3 cannot both be at least 2, so one of g,h has degree 1. By (a), p has a root in F. This proves the theorem.

Now the standard examples, each checked with the theorem.

  • x2+1 over R and over C. For real c, c2+1≥1>0, so there is no real root, and x2+1 is irreducible over R (and over Q). Over C, x2+1=(x−i)(x+i) is reducible.
  • x2−2 over Q and over R. A rational root would be a rational number with square 2, which does not exist (Theorem 0.2.3). So x2−2 is irreducible over Q. Over R, x2−2=(x−2)(x+2).
  • x2+x+1 over F2. The values at 0 and 1 are 1 and 1+1+1=1. No root, so it is irreducible over F2. It is the only irreducible polynomial of degree 2 over F2 (Exercise B3).

The nonexample by minimal change is x2+x over F2: change the constant term of x2+x+1 from 1 to 0, and 0 becomes a root, so x2+x=x(x+1) is reducible. What fails is condition (2).

Warning. “No roots” implies “irreducible” only in degrees 2 and 3. The polynomial (x2+1)2=x4+2x2+1 has no real root, since its values are at least 1, but it is reducible over R: it is a product of two factors of degree 2. In degree 4 and higher, a polynomial can split into nonlinear factors without having any root.

Quick check. Over which of the fields Q, Q(2) (Example (Q(2) Is a Field)), R is x2−2 irreducible? Is x2+1 irreducible over F5?

Solution. Over Q only. The field Q(2) contains 2, a root of x2−2, so x2−2=(x−2)(x+2) is reducible there, and likewise over R; over Q it is irreducible, as shown above. Over F5, 22+1=5=0, so 2 is a root and x2+1 is reducible by Theorem 6.3.1: indeed x2+1=(x−2)(x+2) in F5[x].

6.3.2. Euclid’s lemma

What makes primes useful is not their definition but a property the definition implies: if a prime divides a product, it divides one of the factors. For polynomials this follows quickly from the previous section. The first step is that an irreducible polynomial has only two possible gcds with anything.

Lemma 6.3.2 (The gcd with an Irreducible Polynomial)

Let F be a field, p∈F[x] irreducible over F, and f∈F[x]. Then either p∣f or gcd(p,f)=1.

Proof. Let d=gcd(p,f). Since p≠0, d is monic, and d∣p by Theorem 6.2.3 (a), say p=du. Since p is irreducible, d or u is a constant. If d is a constant, then d=1, since d is monic. If u is a constant, it is nonzero, and p=ud divides every multiple of d; since d∣f by Theorem 6.2.3 (a), Proposition 6.1.2 (a) gives p∣f. This proves the lemma.

Theorem 6.3.3 (Euclid’s Lemma for Polynomials)

Let F be a field and p∈F[x] irreducible over F. If q,r∈F[x] and p∣qr, then p∣q or p∣r.

Proof. Suppose p∤q. By Lemma 6.3.2, gcd(p,q)=1. Since p∣qr, Theorem 6.2.8 gives p∣r. This proves the theorem.

The hypothesis “irreducible” is essential. The polynomial x2 divides x⋅x but divides neither factor; the lemma does not apply because x2=x⋅x is reducible. Over F2, x2+1=(x+1)2 divides (x+1)(x+1) but not x+1, for the same reason.

For unique factorization we need the lemma for products of any length, and we need to know what “divides” means between two monic irreducibles.

Corollary 6.3.4 (Euclid’s Lemma for Several Factors)

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

  • (a) If q1,…,qk∈F[x] with k≥1 and p∣q1q2⋯qk, then p∣qi for some i.
  • (b) If q is irreducible over F, p∣q, and p,q are both monic, then p=q.

Proof.

  • (a) We use induction on k. For k=1 there is nothing to prove. Let k≥2 and assume the statement for k−1 factors. Since p∣(q1⋯qk−1)qk, Theorem 6.3.3 gives p∣q1⋯qk−1 or p∣qk. In the first case the induction hypothesis gives p∣qi for some i≤k−1. Either way the statement holds for k.

  • (b) Write q=pu. Since q is irreducible, p or u is constant. But p is not constant, being irreducible, so u is a nonzero constant. Comparing leading coefficients of the monic polynomials q and p gives u=1, so p=q.

6.3.3. Unique factorization

Here is the theorem that Chapter 0’s remark about primes was pointing towards, now for polynomials. The constant in front is forced to be the leading coefficient; the rest is a product of monic irreducibles, unique up to order.

Theorem 6.3.5 (Unique Factorization in F[x])

Let F be a field and f∈F[x] nonconstant.

  • (a) Existence. There are a nonzero constant c∈F, an integer k≥1, and monic polynomials p1,…,pk∈F[x], each irreducible over F, with f=cp1p2⋯pk.
  • (b) Uniqueness. If also f=c′q1q2⋯ql with c′∈F nonzero, l≥1, and q1,…,ql monic and irreducible over F, then c=c′, k=l, and after renumbering the qj we have pi=qi for every i.

In both factorizations, the constant is the leading coefficient of f.

Idea. Existence: if f is irreducible, stop; otherwise split it into two factors of smaller degree and factor each of them, which is strong induction on the degree. Uniqueness: compare leading coefficients to get c=c′. Then pk divides q1⋯ql, so by Euclid’s lemma it equals some qj. Cancel it from both sides; the two shorter factorizations are equal by induction on the number of factors k. The one thing to watch is that after canceling, the right-hand side must still have at least one factor.

Proof. First a remark used in both parts. A product of monic polynomials is monic, by Theorem 0.8.3 and induction on the number of factors. So if f=cp1⋯pk with the pi monic, then the leading coefficient of f is c⋅1=c. This proves the final sentence of the theorem.

  • (a) We prove by strong induction on n≥1 (Theorem 0.2.10 with n0=1) that every f of degree n has a factorization as in (a). Let deg⁡f=n, assume the statement for all degrees 1≤m<n, and let c be the leading coefficient of f.

    Case 1: f is irreducible over F. Then f=c(c−1f). The polynomial c−1f is monic, and it is irreducible: it is nonconstant, and if c−1f=gh, then f=(cg)h, so cg or h is constant, hence g or h is constant. So k=1, p1=c−1f works.

    Case 2: f is reducible over F. By the working form of the definition, f=gh with 1≤deg⁡g<n and 1≤deg⁡h<n. By the induction hypothesis, g=ap1⋯ps and h=bps+1⋯ps+t with a,b nonzero constants, s,t≥1, and all pi monic irreducible. Then f=(ab)p1⋯ps+t, with ab≠0 by Theorem 0.7.1. This is a factorization as in (a), with k=s+t.

  • (b) By the first remark, c and c′ are both the leading coefficient of f, so c=c′. Multiplying by c−1, we get p1⋯pk=q1⋯ql. So it suffices to prove, by induction on k≥1, the statement

U(k): whenever p1⋯pk=q1⋯ql with l≥1 and all pi,qj monic and irreducible over F, we have k=l, and after renumbering the qj, pi=qi for every i.

We first note: if a monic irreducible q equals a product r1⋯rm of m≥2 monic irreducibles, then q=r1⋅(r2⋯rm) with both factors nonconstant, since each ri has degree at least 1; this contradicts the irreducibility of q. So a monic irreducible is never a product of two or more monic irreducibles. (∗)

Base case k=1. Then p1=q1⋯ql. By (∗), l=1, and so p1=q1.

Inductive step. Let k≥2 and assume U(k−1). Suppose p1⋯pk=q1⋯ql. If l=1, then q1=p1⋯pk with k≥2, which is impossible by (∗). So l≥2. Now pk∣q1⋯ql, so by Corollary 6.3.4 (a), pk∣qj for some j, and by Corollary 6.3.4 (b), pk=qj. Renumber the q’s so that j=l. Then (p1⋯pk−1)pk=(q1⋯ql−1)pk, and since pk≠0, Corollary 0.8.4 (2) lets us cancel it: p1⋯pk−1=q1⋯ql−1, with k−1≥1 and l−1≥1 factors. By U(k−1), k−1=l−1, and after renumbering q1,…,ql−1, pi=qi for i≤k−1. Together with pk=qk, this proves U(k).

By induction, U(k) holds for every k≥1, which proves (b).

Grouping equal factors, every nonconstant f∈F[x] can be written uniquely as f=cp1e1p2e2⋯pses with c the leading coefficient, p1,…,ps distinct monic irreducibles over F, and exponents ei≥1. The monic irreducible factors of the characteristic and minimal polynomials of an operator will organize the structure theory of Chapters 9 and 10.

Warning. Uniqueness needs the normalization “monic”. Without it, constants can move between factors: over Q, 2x2−2=(2x−2)(x+1)=(x−1)(2x+2)=(12x−12)(4x+4). All of these are “factorizations into irreducibles”, and they differ only by associates. The theorem removes this freedom by collecting all constants into c. Uniqueness also refers to a fixed field: over Q the factorization of x2−2 is x2−2 itself, and over R it is (x−2)(x+2).

The next example shows the field dependence in one table.

Example (Factoring x4−1 Over Six Fields)

Factor x4−1 into a constant times monic irreducibles over Q, R, C, F2, F3, and, for contrast, F5.

Solution. Over every field, x4−1=(x2−1)(x2+1)=(x−1)(x+1)(x2+1), by expanding. The factors x−1 and x+1 are irreducible by Example (First Irreducible and Reducible Polynomials) (a). Everything depends on x2+1, which by Theorem 6.3.1 is irreducible exactly when it has no root in the field. The constant in front is always the leading coefficient 1.

  • Q and R. For real c, c2+1≥1, so there is no root, and x2+1 is irreducible.
  • C. x2+1=(x−i)(x+i).
  • F2. Here −1=1, so x−1=x+1, and x2+1=(x+1)2 because 2x=0. All four factors coincide.
  • F3. The values of x2+1 at 0,1,2 are 1,2,5=2. No root, so x2+1 is irreducible. Also x−1=x+2.
  • F5. 22+1=5=0 and 32+1=10=0, so x2+1=(x−2)(x−3)=(x+3)(x+2).
field factorization of x4−1 into monic irreducibles
Q (x−1)(x+1)(x2+1)
R (x−1)(x+1)(x2+1)
C (x−1)(x+1)(x−i)(x+i)
F2 (x+1)4
F3 (x+1)(x+2)(x2+1)
F5 (x+1)(x+2)(x+3)(x+4)

By Theorem 6.3.5, each row is the factorization over that field, up to order. Notice that the numbers of irreducible factors are 3,3,4,4,3,4, and that over F2 a repeated factor appears although x4−1 has no repeated factor over the other fields.

6.3.4. Tools over Q: rational roots and Eisenstein’s criterion

Over Q, Theorem 6.3.1 reduces irreducibility of a quadratic or cubic to the question of rational roots. There are infinitely many rational numbers to try, but for integer coefficients only finitely many candidates can work. We write Z[x] for the polynomials in Q[x] whose coefficients are all integers, as in the first section. Every rational number can be written as u/v with u∈Z, v≥1, and the only positive integer dividing both u and v equal to 1: take v≥1 as small as possible, since a common divisor e>1 would give the representation (u/e)/(v/e) with a smaller denominator. We say u/v is in lowest terms.

Theorem 6.3.6 (Rational Root Theorem)

Let f=anxn+an−1xn−1+⋯+a0∈Z[x] with n≥1 and an≠0. If u/v∈Q is in lowest terms and f(u/v)=0, then u∣a0 and v∣an.

Idea. Clear denominators: vnf(u/v)=anun+an−1un−1v+⋯+a0vn=0. Every term except the last contains u, so u divides a0vn; every term except the first contains v, so v divides anun. Since u and v share no factor, the powers of v can be stripped off one at a time, using Bézout for integers.

Proof. Multiplying f(u/v)=0 by vn gives anun+an−1un−1v+⋯+a1uvn−1+a0vn=0. Hence a0vn=−u(anun−1+an−1un−2v+⋯+a1vn−1), so u∣a0vn; and anun=−v(an−1un−1+⋯+a0vn−1), so v∣anun.

Since v≥1 and the only positive common divisor of u and v is 1, Lemma 0.7.2 gives integers s,t with us+vt=1. If b∈Z and k≥1 with u∣bvk, then bvk−1=bvk−1(us+vt)=u(bvk−1s)+t(bvk) is a sum of two multiples of u, so u∣bvk−1. Applying this n times to b=a0 gives u∣a0. Similarly, if v∣cuk with k≥1, then cuk−1=s(cuk)+v(cuk−1t), so v∣cuk−1; applying this n times to c=an gives v∣an. This proves the theorem.

A polynomial in Q[x] with fractional coefficients can first be multiplied by a common denominator; this does not change its roots or its irreducibility.

Example (A Cubic That Is Irreducible Over Q)

Decide whether f=2x3−3x2+4x−1 is irreducible over Q.

Solution. By Theorem 6.3.6, a rational root u/v in lowest terms has u∣−1 and v∣2 with v≥1. So u=±1 and v∈{1,2}, and the candidates are 1,−1,12,−12. Evaluating, f(1)=2,f(−1)=−10,f(12)=14−34+2−1=12,f(−12)=−14−34−2−1=−4. None is 0, so f has no rational root. Since deg⁡f=3, Theorem 6.3.1 shows that f is irreducible over Q.

Beyond degree 3, roots are not enough, as the warning after Theorem 6.3.1 showed. One classical criterion handles many polynomials of any degree at once. It looks at divisibility of the coefficients by a prime.

Theorem 6.3.7 (Eisenstein’s Criterion)

Let f=anxn+an−1xn−1+⋯+a0∈Z[x] with n≥1, and let p be a prime such that

  • (1) p∤an;
  • (2) p∣ai for every i=0,1,…,n−1;
  • (3) p2∤a0.

Then f is irreducible over Q.

The proof needs one more idea, Gauss’s lemma: a polynomial with integer coefficients that factors over Q already factors over Z, with factors of the same degrees. With it, one reduces the coefficients modulo p and compares. Exercise C2 of this section proves Gauss’s lemma and then Eisenstein’s criterion, step by step; no result of this chapter depends on the criterion. Here we only use it in examples.

Example (Irreducible Polynomials of Every Degree Over Q)
  • (a) Show that xn−2 is irreducible over Q for every n≥1. (b) Show that x4+10x+5 is irreducible over Q.

Solution.

  • (a) Take p=2. The leading coefficient 1 is not divisible by 2; the coefficients a1,…,an−1 are 0 and a0=−2, all divisible by 2; and 4∤−2. By Theorem 6.3.7, xn−2 is irreducible over Q. So over Q there are irreducible polynomials of every degree. (Over R, by contrast, xn−2 has the root 2n and is reducible for n≥2.)

  • (b) Take p=5: 5∤1; 5 divides 0,0,10,5; and 25∤5. So x4+10x+5 is irreducible over Q. Roots alone could not have shown this, since a quartic may factor into two quadratics.

Eisenstein’s criterion is sufficient, not necessary. The polynomial x2+1 is irreducible over Q, but no prime divides its constant term 1, so condition (2) fails for every p.

6.3.5. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define what it means for p∈F[x] to be irreducible over F.
  • (b) State the Unique Factorization Theorem in F[x].
  • (c) Determine whether the following statement is true: “a polynomial in R[x] of degree at least 1 with no real root is irreducible over R.” Justify your answer.
  • (d) Is the constant 2 irreducible over Q? Is 2x+4?
  • (e) Is x2+1 irreducible over F5? Justify your answer.
  • (f) Name a tool that reduces the irreducibility of a cubic in Z[x] over Q to finitely many evaluations.

Solution.

  • (a) 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 (Definition 6.3.1).
  • (b) Every nonconstant f∈F[x] can be written as f=cp1⋯pk with c∈F nonzero and p1,…,pk monic and irreducible over F; the constant c is the leading coefficient of f, and the pi are unique up to order (Theorem 6.3.5).
  • (c) False. (x2+1)2 has no real root, but it is the product of two nonconstant factors, so it is reducible over R. The statement is true in degrees 2 and 3 only (Theorem 6.3.1).
  • (d) No: 2 is constant, and irreducible polynomials are nonconstant by definition. Yes: 2x+4 has degree 1, so it is irreducible (Example (First Irreducible and Reducible Polynomials) (a)).
  • (e) No. In F5, 22+1=0, so x2+1=(x−2)(x+2) is reducible by Theorem 6.3.1.
  • (f) The Rational Root Theorem (Theorem 6.3.6), combined with Theorem 6.3.1.

B. Practice

Exercise (B1: Irreducible or Not?)

Determine whether each polynomial is irreducible over each of the given fields. Justify your answers.

  • (a) x2+2 over Q, R, F2, and F3.
  • (b) x3+x+1 over F2 and over F3.
  • (c) x3−3x−1 over Q.
  • (d) x4+4 over Q.
  • (e) x5−6x+3 over Q.

Solution.

  • (a) Over Q and R: for real c, c2+2≥2>0, so there is no root, and x2+2 is irreducible by Theorem 6.3.1. Over F2: 2=0, so x2+2=x⋅x is reducible. Over F3: 2=−1, so x2+2=x2−1=(x−1)(x+1) is reducible.
  • (b) Over F2: the values at 0 and 1 are 1 and 3=1, so there is no root, and the cubic is irreducible by Theorem 6.3.1. Over F3: the value at 1 is 3=0, so it is reducible; indeed x3+x+1=(x−1)(x2+x+2) in F3[x], as expanding shows: x3+x2+2x−x2−x−2=x3+x−2=x3+x+1.
  • (c) By Theorem 6.3.6, a rational root u/v in lowest terms has u∣−1 and v∣1, so it is 1 or −1. The values are 1−3−1=−3 and −1+3−1=1. No rational root, so the cubic is irreducible over Q by Theorem 6.3.1.
  • (d) Reducible, although it has no rational root (its values are at least 4): expanding, (x2+2x+2)(x2−2x+2)=x4−4x2+4+4x2=x4+4. This is the warning after Theorem 6.3.1 in action.
  • (e) Irreducible by Theorem 6.3.7 with p=3: 3∤1; 3 divides the coefficients 0,0,0,−6,3 of x4,x3,x2,x,1; and 9∤3.
Exercise (B2: Factoring x6−1 Over Q)

Factor x6−1 into monic irreducible polynomials over Q, and justify that each factor is irreducible. Hence find its factorization into monic irreducibles over F2 as well. Is it obtained by reducing the coefficients of each rational factor modulo 2? Explain why, in general, this has to be checked rather than assumed.

Solution. Using x6−1=(x3−1)(x3+1) and Exercise (B2: A Factor of xn−cn) (with c=1 and c=−1), x6−1=(x−1)(x2+x+1)(x+1)(x2−x+1), which one checks by expanding: (x−1)(x2+x+1)=x3−1 and (x+1)(x2−x+1)=x3+1. The linear factors are irreducible. For the quadratics, c2±c+1=(c±12)2+34>0 for real c, so they have no rational root and are irreducible by Theorem 6.3.1. By Theorem 6.3.5 this is the factorization over Q.

Over F2, reducing coefficients gives (x+1)(x2+x+1)(x+1)(x2+x+1), since −1=1. Here x+1 is irreducible and x2+x+1 is irreducible over F2 (it has no root), so the factorization over F2 is (x+1)2(x2+x+1)2. So yes, in this case the factorization is obtained by reduction, but only because the reduced factors happen to stay irreducible, and that has to be checked: two distinct rational factors, x−1 and x+1, became equal, and in general a factor that is irreducible over Q may become reducible after reduction, as x2+1 does over F2 in Example (Factoring x4−1 Over Six Fields).

Exercise (B3: Small Irreducibles Over F2)

List all irreducible polynomials over F2 of degree at most 3. Justify that your list is complete.

Hint: a polynomial over F2 has the root 0 exactly when its constant term is 0, and the root 1 exactly when its number of nonzero terms is even.

Solution. Every nonzero polynomial over F2 is monic, since its leading coefficient is 1. For f=∑akxk, f(0)=a0 and f(1)=∑ak, which is 0 exactly when the number of nonzero coefficients is even.

Degree 1: x and x+1, both irreducible (Example (First Irreducible and Reducible Polynomials) (a)).

Degrees 2 and 3: by Theorem 6.3.1, f is irreducible exactly when f(0)=1 and f(1)=1, that is, the constant term is 1 and the number of nonzero terms is odd. In degree 2, the polynomials with constant term 1 are x2+1 (two terms) and x2+x+1 (three terms), so only x2+x+1 is irreducible. In degree 3, they are x3+1 (two terms), x3+x+1 and x3+x2+1 (three terms), and x3+x2+x+1 (four terms). So the irreducible ones are x3+x+1 and x3+x2+1.

Hence the complete list is x, x+1, x2+x+1, x3+x+1, x3+x2+1.

C. Going deeper

Exercise (C1: Infinitely Many Irreducibles)

Let F be any field.

  • (a) Prove that there are infinitely many monic irreducible polynomials over F.
  • (b) Deduce that for every prime p and every N∈N, there is an irreducible polynomial over Fp of degree greater than N.
  • (c) Explain why (a) is immediate when F is infinite, and use Exercise (B3: Small Irreducibles Over F2) to name an irreducible polynomial of degree 3 over F2.

Hint for (a): imitate the proof that there are infinitely many primes (Theorem 0.2.13).

Solution.

  • (a) Suppose, for a contradiction, that p1,…,pk are all the monic irreducible polynomials over F. The list is nonempty, since x is monic and irreducible. Let f=p1p2⋯pk+1. Each pi has degree at least 1, so deg⁡(p1⋯pk)≥1 by Theorem 0.8.3, and f is nonconstant by Theorem 0.8.2. By Theorem 6.3.5 (a), f has a monic irreducible factor, which must be some pj. Then pj∣f and pj∣p1⋯pk, so pj∣f−p1⋯pk=1 by Proposition 6.1.2 (b). By Proposition 6.1.2 (c), deg⁡pj≤deg⁡1=0, contradicting deg⁡pj≥1. Hence there are infinitely many monic irreducibles.
  • (b) A monic polynomial of degree n over Fp is determined by its n lower coefficients, so there are exactly pn of them, and there are 1+p+⋯+pN monic polynomials of degree at most N, a finite number. By (a), infinitely many monic irreducibles exist, so some of them have degree greater than N.
  • (c) If F is infinite, the polynomials x−c for c∈F are infinitely many distinct monic polynomials of degree 1, all irreducible by Example (First Irreducible and Reducible Polynomials) (a). Over a finite field there are only finitely many polynomials of degree 1, so the content of (a) is that irreducibles of higher and higher degree keep appearing. Over F2, for example, x3+x+1 is irreducible of degree 3 by Exercise (B3: Small Irreducibles Over F2).
Exercise (C2: Gauss’s Lemma and Eisenstein’s Criterion)

Let Z[x] be as in Theorem 6.3.6, and let p be a prime. For g=∑bixi∈Z[x], define its reduction modulo p as g¯=∑[bi]xi∈Fp[x], where [b] is the class of b in Fp=Z/pZ (Example (Arithmetic on Z/nZ and the Field F2)).

  • (a) Prove that g+h―=g¯+h¯ and gh―=g¯h¯ for all g,h∈Z[x], and that deg⁡g¯≤deg⁡g.
  • (b) Let g,h∈Z[x], and suppose p divides every coefficient of gh. Prove that p divides every coefficient of g or every coefficient of h.
  • (c) (Gauss’s lemma.) Let f∈Z[x], and suppose f=gh with g,h∈Q[x]. Prove that there is a nonzero λ∈Q with λg∈Z[x] and λ−1h∈Z[x].
  • (d) Let F be a field, c∈F nonzero, n∈N, and u,v∈F[x] with uv=cxn. Prove that u=βxs and v=γxt for some nonzero β,γ∈F and s,t∈N.
  • (e) Prove Theorem 6.3.7.

Hint for (c): among all ways of writing kf=(αg)(βh) with α,β∈Q, αβ=k a positive integer, and αg,βh∈Z[x], take k as small as possible. Hint for (e): suppose f=gh with g,h nonconstant, use (c), and reduce modulo p.

Solution.

  • (a) By Example (Arithmetic on Z/nZ and the Field F2), [a]+[b]=[a+b] and [a][b]=[ab]. Let g=∑bixi and h=∑cixi. The coefficient of xk in g+h is bk+ck, whose class is [bk]+[ck], the coefficient of xk in g¯+h¯. The coefficient of xk in gh is ∑i+j=kbicj, whose class is ∑i+j=k[bi][cj], the coefficient of xk in g¯h¯ (Definition 0.8.2). Finally, if bi=0 then [bi]=0, so g¯ has no nonzero coefficient beyond position deg⁡g.
  • (b) The hypothesis says gh―=0. By (a), g¯h¯=0 in Fp[x]. Since p is prime, Fp is a field (Theorem 0.7.3), so Corollary 0.8.4 gives g¯=0 or h¯=0. That is, p divides every coefficient of g or every coefficient of h.
  • (c) Choose positive integers m,n with mg∈Z[x] and nh∈Z[x], for instance the products of the denominators of the coefficients. Let K be the set of positive integers k for which there are α,β∈Q with αβ=k, αg∈Z[x], and βh∈Z[x]. Then mn∈K, so by Theorem 0.2.11 K has a least element k, with corresponding α,β. Suppose k>1. By Proposition 0.2.12, some prime q divides k. Now (αg)(βh)=αβgh=kf, and every coefficient of kf is divisible by q. By (b) with the prime q, q divides every coefficient of αg or every coefficient of βh; say the first (the other case is symmetric). Then (α/q)g∈Z[x], βh∈Z[x], and (α/q)β=k/q is a positive integer smaller than k, which lies in K. This contradicts the minimality of k. Hence k=1, so β=α−1, and λ=α works.
  • (d) Since uv≠0, both u,v are nonzero. Write u=∑uixi, v=∑vjxj, let i0 and j0 be the smallest indices with ui0≠0 and vj0≠0, and let s=deg⁡u, t=deg⁡v. The coefficient of xi0+j0 in uv is ∑i+j=i0+j0uivj. A term with i<i0 has ui=0, and a term with i>i0 has j<j0, so vj=0. So this coefficient is ui0vj0≠0. The only nonzero coefficient of cxn is at xn, so i0+j0=n. By Theorem 0.8.3, also s+t=n. Since i0≤s and j0≤t, this forces i0=s and j0=t. So u has exactly one nonzero coefficient, u=usxs, and likewise v=vtxt.
  • (e) Suppose f is reducible over Q: f=gh with g,h∈Q[x], deg⁡g=s≥1, deg⁡h=t≥1, and s+t=n. By (c), replacing g,h by λg,λ−1h (which have the same degrees), we may assume g,h∈Z[x]. Write g0,h0 for their constant coefficients, so a0=g0h0. Reduce modulo p. By conditions (1) and (2), f¯=[an]xn with [an]≠0. By (a), g¯h¯=[an]xn, so by (d), g¯=βxs′ and h¯=γxt′ with β,γ≠0. By Theorem 0.8.3, s′+t′=n=s+t, while s′≤s and t′≤t by (a). Hence s′=s≥1 and t′=t≥1. So the constant coefficients of g¯ and h¯ are 0, that is, p∣g0 and p∣h0. Then p2∣g0h0=a0, contradicting condition (3). Therefore f is irreducible over Q; it is nonconstant since n≥1.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.