Gauss's lemma (polynomials) explained

In algebra, Gauss's lemma,[1] named after Carl Friedrich Gauss, is a theorem[2] about polynomials over the integers, or, more generally, over a unique factorization domain (that is, a ring that has a unique factorization property similar to the fundamental theorem of arithmetic). Gauss's lemma underlies all the theory of factorization and greatest common divisors of such polynomials.

Gauss's lemma asserts that the product of two primitive polynomials is primitive. (A polynomial with integer coefficients is primitive if it has 1 as a greatest common divisor of its coefficients.[3])

A corollary of Gauss's lemma, sometimes also called Gauss's lemma, is that a primitive polynomial is irreducible over the integers if and only if it is irreducible over the rational numbers. More generally, a primitive polynomial has the same complete factorization over the integers and over the rational numbers. In the case of coefficients in a unique factorization domain, "rational numbers" must be replaced by "field of fractions of ". This implies that, if is either a field, the ring of integers, or a unique factorization domain, then every polynomial ring (in one or several indeterminates) over is a unique factorization domain. Another consequence is that factorization and greatest common divisor computation of polynomials with integers or rational coefficients may be reduced to similar computations on integers and primitive polynomials. This is systematically used (explicitly or implicitly) in all implemented algorithms (see Polynomial greatest common divisor and Factorization of polynomials).

Gauss's lemma, and all its consequences that do not involve the existence of a complete factorization remain true over any GCD domain (an integral domain over which greatest common divisors exist). In particular, a polynomial ring over a GCD domain is also a GCD domain. If one calls primitive a polynomial such that the coefficients generate the unit ideal, Gauss's lemma is true over every commutative ring. However, some care must be taken when using this definition of primitive, as, over a unique factorization domain that is not a principal ideal domain, there are polynomials that are primitive in the above sense and not primitive in this new sense.

The lemma over the integers

If

F(X)=a0+a1X+...+anXn

is a polynomial with integer coefficients, then

F

is called primitive if the greatest common divisor of all the coefficients

a0,a1,...,an

is 1; in other words, no prime number divides all the coefficients.

Proof: Clearly the product f(x)g(x) of two primitive polynomials has integer coefficients. Therefore, if it is not primitive, there must be a prime p which is a common divisor of all its coefficients. But p cannot divide all the coefficients of either f(x) or g(x) (otherwise they would not be primitive). Let arxr be the first term of f(x) not divisible by p and let bsxs be the first term of g(x) not divisible by p. Now consider the term xr+s in the product, whose coefficient is

+ar+2bs-2+ar+1bs-1+arbs+ar-1bs+1+ar-2bs+2+.

The term arbs is not divisible by p (because p is prime), yet all the remaining ones are, so the entire sum cannot be divisible by p. By assumption all coefficients in the product are divisible by p, leading to a contradiction. Therefore, the coefficients of the product can have no common divisor and are thus primitive.

\square

The proof is given below for the more general case. Note that an irreducible element of Z (a prime number) is still irreducible when viewed as constant polynomial in Z[''X'']; this explains the need for "non-constant" in the statement.

Statements for unique factorization domains

See main article: Primitive part and content.

Gauss's lemma holds more generally over arbitrary unique factorization domains. There the content of a polynomial can be defined as the greatest common divisor of the coefficients of (like the gcd, the content is actually a set of associate elements). A polynomial with coefficients in a UFD is then said to be primitive if the only elements of that divide all coefficients of at once are the invertible elements of ; i.e., the gcd of the coefficients is one.

Primitivity statement: If is a UFD, then the set of primitive polynomials in is closed under multiplication. More generally, the content of a product

fg

of polynomials is the product

c(f)c(g)

of their individual contents.

Irreducibility statement: Let be a unique factorization domain and its field of fractions. A non-constant polynomial

f

in

R[x]

is irreducible in

R[x]

if and only if it is both irreducible in

F[x]

and primitive in

R[x]

.

(For the proofs, see

  1. General version
below.)

Let

R

be a unique factorization domain with field of fractions

F

. If

f\inF[x]

is a polynomial over

F

then for some

d

in

R

,

df

has coefficients in

R

, and so – factoring out the gcd

q

of the coefficients – we can write

df=qf'

for some primitive polynomial

f'\inR[x]

. As one can check, this polynomial

f'

is unique up to the multiplication by a unit and is called the primitive part (or primitive representative) of

f

and is denoted by

\operatorname{pp}(f)

. The procedure is compatible with product:

\operatorname{pp}(fg)=\operatorname{pp}(f)\operatorname{pp}(g)

.

The construct can be used to show the statement:

Indeed, by induction, it is enough to show

R[x]

is a UFD when

R

is a UFD. Let

f\inR[x]

be a non-zero polynomial. Now,

F[x]

is a unique factorization domain (since it is a principal ideal domain) and so, as a polynomial in

F[x]

,

f

can be factorized as:

f=g1g2...gr

where

gi

are irreducible polynomials of

F[x]

. Now, we write

f=cf'

for the gcd

c

of the coefficients of

f

(and

f'

is the primitive part) and then:

f=cf'=c\operatorname{pp}(g1)\operatorname{pp}(g2)\operatorname{pp}(gr).

Now,

c

is a product of prime elements of

R

(since

R

is a UFD) and a prime element of

R

is a prime element of

R[x]

, as

R[x]/(p)\congR/(p)[x]

is an integral domain. Hence,

c

admits a prime factorization (or a unique factorization into irreducibles). Next, observe that

f'=\operatorname{pp}(g1)\operatorname{pp}(gr)

is a unique factorization into irreducible elements of

R[x]

, as (1) each

\operatorname{pp}(gi)

is irreducible by the irreducibility statement and (2) it is unique since the factorization of

f'

can also be viewed as a factorization in

F[x]

and factorization there is unique. Since

c

and

f'

are uniquely determined by

f

up to unit elements, the above factorization of

f

is a unique factorization into irreducible elements.

\square

The condition that "R is a unique factorization domain" is not superfluous because it implies that every irreducible element of this ring is also a prime element, which in turn implies that every non-zero element of R has at most one factorization into a product of irreducible elements and a unit up to order and associate relationship. In a ring where factorization is not unique, say with p and q irreducible elements that do not divide any of the factors on the other side, the product shows the failure of the primitivity statement. For a concrete example one can take,,,, . In this example the polynomial (obtained by dividing the right hand side by) provides an example of the failure of the irreducibility statement (it is irreducible over R, but reducible over its field of fractions). Another well-known example is the polynomial, whose roots are the golden ratio and its conjugate showing that it is reducible over the field, although it is irreducible over the non-UFD which has as field of fractions. In the latter example the ring can be made into an UFD by taking its integral closure in (the ring of Dirichlet integers), over which becomes reducible, but in the former example R is already integrally closed.

General version

Let

R

be a commutative ring. If

f

is a polynomial in

R[x1,...,xn]

, then we write

\operatorname{cont}(f)

for the ideal of

R

generated by all the coefficients of

f

; it is called the content of

f

. Note that

\operatorname{cont}(af)=a\operatorname{cont}(f)

for each

a

in

R

. The next proposition states a more substantial property.

A polynomial

f

is said to be primitive if

\operatorname{cont}(f)

is the unit ideal

(1)

.[4] When

R=Z

(or more generally when

R

is a Bézout domain), this agrees with the usual definition of a primitive polynomial. (But if

R

is only a UFD, this definition is inconsistent with the definition of primitivity in
  1. Statements for unique factorization domains
.)

Proof: This is easy using the fact that

\sqrt{I}=(1)

implies

I=(1).

\square

Proof: (

) First note that the gcd of the coefficients of

f

is 1 since, otherwise, we can factor out some element

c\inR

from the coefficients of

f

to write

f=cf'

, contradicting the irreducibility of

f

. Next, suppose

f=gh

for some non-constant polynomials

g,h

in

F[x]

. Then, for some

d\inR

, the polynomial

dg

has coefficients in

R

and so, by factoring out the gcd

q

of the coefficients, we write

dg=qg'

. Do the same for

h

and we can write

f=cg'h'

for some

c\inF

. Now, let

c=a/b

for some

a,b\inR

. Then

bf=ag'h'

. From this, using the proposition, we get:

(b)\supset\operatorname{gcd}(\operatorname{cont}(bf))=(a)

.That is,

b

divides

a

. Thus,

c\inR

and then the factorization

f=cg'h'

constitutes a contradiction to the irreducibility of

f

.

(

\Leftarrow

) If

f

is irreducible over

F

, then either it is irreducible over

R

or it contains a constant polynomial as a factor, the second possibility is ruled out by the assumption.

\square

Proof of the proposition: Clearly,

\operatorname{cont}(fg)\subset\operatorname{cont}(f)\operatorname{cont}(g)

. If

ak{p}

is a prime ideal containing

\operatorname{cont}(fg)

, then

fg\equiv0

modulo

ak{p}

. Since

R/ak{p}[x1,...,xn]

is a polynomial ring over an integral domain and thus is an integral domain, this implies either

f\equiv0

or

g\equiv0

modulo

ak{p}

. Hence, either

\operatorname{cont}(f)

or

\operatorname{cont}(g)

is contained in

ak{p}

. Since

\sqrt{\operatorname{cont}(fg)}

is the intersection of all prime ideals that contain

\operatorname{cont}(fg)

and the choice of

akp

was arbitrary,

\operatorname{cont}(f)\operatorname{cont}(g)\subset\sqrt{\operatorname{cont}(fg)}

.

We now prove the "moreover" part. Factoring out the gcd's from the coefficients, we can write

f=af'

and

g=bg'

where the gcds of the coefficients of

f',g'

are both 1. Clearly, it is enough to prove the assertion when

f,g

are replaced by

f',g'

; thus, we assume the gcd's of the coefficients of

f,g

are both 1. The rest of the proof is easy and transparent if

R

is a unique factorization domain; thus we give the proof in that case here (and see [5] for the proof for the GCD case). If

\gcd(\operatorname{cont}(fg))=(1)

, then there is nothing to prove. So, assume otherwise; then there is a non-unit element dividing the coefficients of

fg

. Factorizing that element into a product of prime elements, we can take that element to be a prime element

\pi

. Now, we have:

(\pi)=\sqrt{(\pi)}\supset\sqrt{\operatorname{cont}(fg)}\supset\operatorname{cont}(f)\operatorname{cont}(g)

.Thus, either

(\pi)

contains

\operatorname{cont}(f)

or

\operatorname{cont}(g)

; contradicting the gcd's of the coefficients of

f,g

are both 1.

\square

f

, unique up to unit elements, is also called the content of

f

.

Applications

R

, the polynomial ring

R[X1,X2,...,Xn]

is also a unique factorization domain (see
  1. Statements for unique factorization domains
). Gauss's lemma can also be used to show Eisenstein's irreducibility criterion. Finally, it can be used to show that cyclotomic polynomials (unitary units with integer coefficients) are irreducible.

Gauss's lemma implies the following statement:

f(x)

is a monic polynomial in one variable with coefficients in a unique factorization domain

R

(or more generally a GCD domain), then a root of

f

that is in the field of fractions

F

of

R

is in

R

.[6] If

R=Z

, then it says a rational root of a monic polynomial over integers is an integer (cf. the rational root theorem). To see the statement, let

a/b

be a root of

f

in

F

and assume

a,b

are relatively prime. In

F[x]

we can write

f=(x-a/b)g

with

cg\inR[x]

for some

c\inR

. Then

cbf=(bx-a)cg

is a factorization in

R[x]

. But

bx-a

is primitive (in the UFD sense) and thus

cb

divides the coefficients of

cg

by Gauss's lemma, and so

f=(bx-a)h

with

h

in

R[x]

. Since

f

is monic, this is possible only when

b

is a unit.

A similar argument shows:

R

be a GCD domain with the field of fractions

F

and

f\inR[x]

. If

f=gh

for some polynomial

g\inR[x]

that is primitive in the UFD sense and

h\inF[x]

, then

h\inR[x]

.

The irreducibility statement also implies that the minimal polynomial over the rational numbers of an algebraic integer has integer coefficients.

Notes and References

  1. Article 42 of Carl Friedrich Gauss's Disquisitiones Arithmeticae (1801)
  2. This theorem is called a lemma for historical reasons.
  3. The indefinite article is used here since, when the coefficients belong to a unique factorization domain, "greatest" refers to the preorder of divisibility, rather than to the natural order of the integers, and, generally, there are several greatest common divisors.
  4. )
  5. Proof for the GCD case: The proof here is adopted from Book: Mines, R. . F. . Richman . W. . Ruitenburg . A Course in Constructive Algebra . Universitext . Springer-Verlag . 1988 . 0-387-96640-4 . We need the following simple lemma about gcd:
    • If

    \gcd(a,b)=\gcd(a,c)=1

    , then

    \gcd(a,bc)=1

    .(The proof of the lemma is not trivial but is by elementary algebra.)

    We argue by induction on the sum of the numbers of the terms in

    f,g

    ; that is, we assume the proposition has been established for any pair of polynomials with one less total number of the terms. Let

    (c)=\gcd(\operatorname{cont}(fg))

    ; i.e.,

    c

    is the gcd of the coefficients of

    fg

    . Assume

    (c)\ne(1)

    ; otherwise, we are done. Let

    f0,g0

    denote the highest-degree terms of

    f,g

    in terms of lexicographical monomial ordering. Then

    f0g0

    is precisely the leading term of

    fg

    and so

    c

    divides the (unique) coefficient of

    f0g0

    (since it divides all the coefficients of

    fg

    ). Now, if

    c

    does not have a common factor with the (unique) coefficient of

    f0

    and does not have a common factor with that of

    g0

    , then, by the above lemma,

    \gcd(c,\operatorname{cont}(f0g0))=(1)

    . But

    c

    divides the coefficient of

    f0g0

    ; so this is a contradiction. Thus, either

    c

    has a common factor with the coefficient of

    f0

    or does with that of

    g0

    ; say, the former is the case. Let

    (d)=\operatorname{gcd}(c,\operatorname{cont}(f0))

    . Since

    d

    divides the coefficients of

    fg-f0g=(f-f0)g

    , by inductive hypothesis,

    (d)\supset\operatorname{gcd}(\operatorname{cont}((f-f0)g))=\operatorname{gcd}(\operatorname{cont}(f-f0))\operatorname{gcd}(\operatorname{cont}(g))=\operatorname{gcd}(\operatorname{cont}(f-f0))

    .Since

    (d)

    contains

    \operatorname{cont}(f0)

    , it contains

    \operatorname{cont}(f)

    ; i.e.,

    (d)=(1)

    , a contradiction.

    \square

  6. In other words, it says that a unique factorization domain is integrally closed.