Mathwords logoMathwords

Gauss's Lemma (Polynomials) — Definition, Formula & Example

Gauss's Lemma is the fact that if an integer polynomial can be factored using fractions, then it can also be factored using only integers, with factors of the same degrees. Allowing fractions never lets you factor a polynomial that integers alone cannot.

Call f∈Z[x]f \in \mathbb{Z}[x] primitive if the greatest common divisor of its coefficients, called its content c(f)c(f), equals 1. Gauss's Lemma states that the product of two primitive polynomials is primitive. Equivalently, c(gh)=c(g) c(h)c(gh) = c(g)\,c(h). As a consequence, if a nonconstant f∈Z[x]f \in \mathbb{Z}[x] factors as f=ghf = gh with g,h∈Q[x]g, h \in \mathbb{Q}[x], then there is a rational r≠0r \neq 0 such that rgrg and r−1hr^{-1}h lie in Z[x]\mathbb{Z}[x]. So a primitive polynomial is irreducible in Z[x]\mathbb{Z}[x] exactly when it is irreducible in Q[x]\mathbb{Q}[x].

Key Formula

c(gh)=c(g) c(h)c(gh) = c(g)\,c(h)
Where:
  • g,hg, h = Polynomials with integer coefficients
  • c(f)c(f) = The content of f: the greatest common divisor of its coefficients

How It Works

Proof idea: suppose gg and hh are primitive but some prime pp divides every coefficient of ghgh. Reduce all coefficients mod pp. Then gˉ hˉ=0\bar{g}\,\bar{h} = 0 in (Z/pZ)[x](\mathbb{Z}/p\mathbb{Z})[x]. That ring has no zero divisors, so gˉ=0\bar{g} = 0 or hˉ=0\bar{h} = 0. This means pp divides every coefficient of gg or of hh, which contradicts primitivity. To handle a polynomial that is not primitive, first pull out its content. For instance, 2x+42x + 4 has content 2 and 3x+63x + 6 has content 3. Their product 6x2+24x+246x^2 + 24x + 24 has content 6.

Worked Example

Problem: Over the rationals, f(x)=6x2+x−2f(x) = 6x^2 + x - 2 factors as (2x+43)(3x−32)\left(2x + \tfrac{4}{3}\right)\left(3x - \tfrac{3}{2}\right). Use the idea behind Gauss's Lemma to find a factorization with integer coefficients.
Step 1: Write each rational factor as a rational constant times a primitive integer polynomial. Both 3x+23x + 2 and 2x−12x - 1 have content 1.
2x+43=23(3x+2),3x−32=32(2x−1)2x + \tfrac{4}{3} = \tfrac{2}{3}(3x + 2), \qquad 3x - \tfrac{3}{2} = \tfrac{3}{2}(2x - 1)
Step 2: Collect the constants. By Gauss's Lemma, (3x+2)(2x−1)(3x+2)(2x-1) is primitive. Since ff is also primitive (gcd⁡(6,1,2)=1\gcd(6, 1, 2) = 1), the leftover constant must be ±1\pm 1. Here it equals 1.
f(x)=23⋅32 (3x+2)(2x−1)=1⋅(3x+2)(2x−1)f(x) = \tfrac{2}{3}\cdot\tfrac{3}{2}\,(3x+2)(2x-1) = 1\cdot(3x+2)(2x-1)
Step 3: Check by expanding the integer factors.
(3x+2)(2x−1)=6x2−3x+4x−2=6x2+x−2(3x+2)(2x-1) = 6x^2 - 3x + 4x - 2 = 6x^2 + x - 2
Answer: 6x2+x−2=(3x+2)(2x−1)6x^2 + x - 2 = (3x + 2)(2x - 1). The rational factors were rescaled into integer factors of the same degrees.

Why It Matters

In an abstract algebra course, Gauss's Lemma is the key step in proving that Z[x]\mathbb{Z}[x] has unique factorization. It is also why Eisenstein's criterion and the Rational Root Theorem can show irreducibility over Q\mathbb{Q} while you only work with integers. Computer algebra systems rely on the same fact when they factor integer polynomials.

Common Mistakes

Mistake: Assuming that every polynomial irreducible over Q\mathbb{Q} is irreducible over Z\mathbb{Z}.
Correction: This needs primitivity. The polynomial 2x+42x + 4 is irreducible over Q\mathbb{Q} because it has degree 1, yet 2x+4=2(x+2)2x + 4 = 2(x + 2) in Z[x]\mathbb{Z}[x], and 2 is not a unit in Z\mathbb{Z}. Pull out the content first, then apply the lemma to the primitive part.

Related Terms

  • Coefficient — Content is the gcd of these coefficients
  • Degree of a Polynomial — Integer factors keep the degrees of rational factors
  • Cubic Polynomial — Primitive cubics with no rational root are irreducible over integers
  • Lemma — Explains why a helper result like this is called a lemma
  • Integer Polynomial — The type of polynomial the lemma applies to
  • Factorization — Process of splitting polynomials into factors, which the lemma governs