Misplaced Pages

Gauss's lemma (polynomials)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
The greatest common divisor of the coefficients is a multiplicative function This article is about Gauss's lemma for polynomials. For other uses, see Gauss's lemma (disambiguation).

In algebra, Gauss's lemma, named after Carl Friedrich Gauss, is a theorem 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.)

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 R, "rational numbers" must be replaced by "field of fractions of R". This implies that, if R is either a field, the ring of integers, or a unique factorization domain, then every polynomial ring (in one or several indeterminates) over R 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 ) = a 0 + a 1 X + + a n X n {\displaystyle F(X)=a_{0}+a_{1}X+\dots +a_{n}X^{n}} is a polynomial with integer coefficients, then F {\displaystyle F} is called primitive if the greatest common divisor of all the coefficients a 0 , a 1 , , a n {\displaystyle a_{0},a_{1},\dots ,a_{n}} is 1; in other words, no prime number divides all the coefficients.

Gauss's lemma (primitivity) — If P(X) and Q(X) are primitive polynomials over the integers, their product P(X)Q(X) is also primitive.

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 arx be the first term of f(x) not divisible by p and let bsx be the first term of g(x) not divisible by p. Now consider the term x in the product, whose coefficient is

+ a r + 2 b s 2 + a r + 1 b s 1 + a r b s + a r 1 b s + 1 + a r 2 b s + 2 + . {\displaystyle \cdots +a_{r+2}b_{s-2}+a_{r+1}b_{s-1}+a_{r}b_{s}+a_{r-1}b_{s+1}+a_{r-2}b_{s+2}+\cdots .}

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. {\displaystyle \square }

Gauss's lemma (irreducibility) — A non-constant polynomial in Z is irreducible in Z if and only if it is both irreducible in Q and primitive in Z.

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; this explains the need for "non-constant" in the statement.

Statements for unique factorization domains

Main article: Primitive part and content

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

Primitivity statement: If R is a UFD, then the set of primitive polynomials in R is closed under multiplication. More generally, the content of a product f g {\displaystyle fg} of polynomials is the product c ( f ) c ( g ) {\displaystyle c(f)c(g)} of their individual contents.

Irreducibility statement: Let R be a unique factorization domain and F its field of fractions. A non-constant polynomial f {\displaystyle f} in R [ x ] {\displaystyle R} is irreducible in R [ x ] {\displaystyle R} if and only if it is both irreducible in F [ x ] {\displaystyle F} and primitive in R [ x ] {\displaystyle R} .

(For the proofs, see #General version below.)

Let R {\displaystyle R} be a unique factorization domain with field of fractions F {\displaystyle F} . If f F [ x ] {\displaystyle f\in F} is a polynomial over F {\displaystyle F} then for some d {\displaystyle d} in R {\displaystyle R} , d f {\displaystyle df} has coefficients in R {\displaystyle R} , and so – factoring out the gcd q {\displaystyle q} of the coefficients – we can write d f = q f {\displaystyle df=qf'} for some primitive polynomial f R [ x ] {\displaystyle f'\in R} . As one can check, this polynomial f {\displaystyle f'} is unique up to the multiplication by a unit and is called the primitive part (or primitive representative) of f {\displaystyle f} and is denoted by pp ( f ) {\displaystyle \operatorname {pp} (f)} . The procedure is compatible with product: pp ( f g ) = pp ( f ) pp ( g ) {\displaystyle \operatorname {pp} (fg)=\operatorname {pp} (f)\operatorname {pp} (g)} .

The construct can be used to show the statement:

  • A polynomial ring over a UFD is a UFD.

Indeed, by induction, it is enough to show R [ x ] {\displaystyle R} is a UFD when R {\displaystyle R} is a UFD. Let f R [ x ] {\displaystyle f\in R} be a non-zero polynomial. Now, F [ x ] {\displaystyle F} is a unique factorization domain (since it is a principal ideal domain) and so, as a polynomial in F [ x ] {\displaystyle F} , f {\displaystyle f} can be factorized as:

f = g 1 g 2 g r {\displaystyle f=g_{1}g_{2}\dots g_{r}}

where g i {\displaystyle g_{i}} are irreducible polynomials of F [ x ] {\displaystyle F} . Now, we write f = c f {\displaystyle f=cf'} for the gcd c {\displaystyle c} of the coefficients of f {\displaystyle f} (and f {\displaystyle f'} is the primitive part) and then:

f = c f = c pp ( g 1 ) pp ( g 2 ) pp ( g r ) . {\displaystyle f=cf'=c\operatorname {pp} (g_{1})\operatorname {pp} (g_{2})\cdots \operatorname {pp} (g_{r}).}

Now, c {\displaystyle c} is a product of prime elements of R {\displaystyle R} (since R {\displaystyle R} is a UFD) and a prime element of R {\displaystyle R} is a prime element of R [ x ] {\displaystyle R} , as R [ x ] / ( p ) R / ( p ) [ x ] {\displaystyle R/(p)\cong R/(p)} is an integral domain. Hence, c {\displaystyle c} admits a prime factorization (or a unique factorization into irreducibles). Next, observe that f = pp ( g 1 ) pp ( g r ) {\displaystyle f'=\operatorname {pp} (g_{1})\cdots \operatorname {pp} (g_{r})} is a unique factorization into irreducible elements of R [ x ] {\displaystyle R} , as (1) each pp ( g i ) {\displaystyle \operatorname {pp} (g_{i})} is irreducible by the irreducibility statement and (2) it is unique since the factorization of f {\displaystyle f'} can also be viewed as a factorization in F [ x ] {\displaystyle F} and factorization there is unique. Since c {\displaystyle c} and f {\displaystyle f'} are uniquely determined by f {\displaystyle f} up to unit elements, the above factorization of f {\displaystyle f} is a unique factorization into irreducible elements. {\displaystyle \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 pa = qb with p and q irreducible elements that do not divide any of the factors on the other side, the product (p + qX)(a + qX) = pa + (p+a)qX + qX = q(b + (p+a)X + qX) shows the failure of the primitivity statement. For a concrete example one can take R = Z, p = 1 + i√5, a = 1 − i√5, q = 2, b = 3. In this example the polynomial 3 + 2X + 2X (obtained by dividing the right hand side by q = 2) provides an example of the failure of the irreducibility statement (it is irreducible over R, but reducible over its field of fractions Q). Another well-known example is the polynomial XX − 1, whose roots are the golden ratio φ = (1 + √5)/2 and its conjugate (1 − √5)/2 showing that it is reducible over the field Q, although it is irreducible over the non-UFD Z which has Q as field of fractions. In the latter example the ring can be made into an UFD by taking its integral closure Z in Q (the ring of Dirichlet integers), over which XX − 1 becomes reducible, but in the former example R is already integrally closed.

General version

Let R {\displaystyle R} be a commutative ring. If f {\displaystyle f} is a polynomial in R [ x 1 , , x n ] {\displaystyle R} , then we write cont ( f ) {\displaystyle \operatorname {cont} (f)} for the ideal of R {\displaystyle R} generated by all the coefficients of f {\displaystyle f} ; it is called the content of f {\displaystyle f} . Note that cont ( a f ) = a cont ( f ) {\displaystyle \operatorname {cont} (af)=a\operatorname {cont} (f)} for each a {\displaystyle a} in R {\displaystyle R} . The next proposition states a more substantial property.

Proposition — For each pair of polynomials f , g {\displaystyle f,g} in R [ x 1 , , x n ] {\displaystyle R} ,

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

where {\displaystyle {\sqrt {\cdot }}} denotes the radical of an ideal. Moreover, if R {\displaystyle R} is a GCD domain (e.g., a unique factorization domain), then

gcd ( cont ( f g ) ) = gcd ( cont ( f ) ) gcd ( cont ( g ) ) {\displaystyle \operatorname {gcd} (\operatorname {cont} (fg))=\operatorname {gcd} (\operatorname {cont} (f))\operatorname {gcd} (\operatorname {cont} (g))}

where gcd ( I ) {\displaystyle \operatorname {gcd} (I)} denotes the unique minimal principal ideal containing a finitely generated ideal I {\displaystyle I} .

A polynomial f {\displaystyle f} is said to be primitive if cont ( f ) {\displaystyle \operatorname {cont} (f)} is the unit ideal ( 1 ) {\displaystyle (1)} . When R = Z {\displaystyle R=\mathbb {Z} } (or more generally when R {\displaystyle R} is a Bézout domain), this agrees with the usual definition of a primitive polynomial. (But if R {\displaystyle R} is only a UFD, this definition is inconsistent with the definition of primitivity in #Statements for unique factorization domains.)

Corollary — Two polynomials f , g {\displaystyle f,g} are primitive if and only if the product f g {\displaystyle fg} is primitive.

Proof: This is easy using the fact that I = ( 1 ) {\displaystyle {\sqrt {I}}=(1)} implies I = ( 1 ) . {\displaystyle I=(1).} {\displaystyle \square }

Corollary — Suppose R {\displaystyle R} is a GCD domain (e.g., a unique factorization domain) with the field of fractions F {\displaystyle F} . Then a non-constant polynomial f {\displaystyle f} in R [ x ] {\displaystyle R} is irreducible if and only if it is irreducible in F [ x ] {\displaystyle F} and the gcd of the coefficients of f {\displaystyle f} is 1.

Proof: ( {\displaystyle \Rightarrow } ) First note that the gcd of the coefficients of f {\displaystyle f} is 1 since, otherwise, we can factor out some element c R {\displaystyle c\in R} from the coefficients of f {\displaystyle f} to write f = c f {\displaystyle f=cf'} , contradicting the irreducibility of f {\displaystyle f} . Next, suppose f = g h {\displaystyle f=gh} for some non-constant polynomials g , h {\displaystyle g,h} in F [ x ] {\displaystyle F} . Then, for some d R {\displaystyle d\in R} , the polynomial d g {\displaystyle dg} has coefficients in R {\displaystyle R} and so, by factoring out the gcd q {\displaystyle q} of the coefficients, we write d g = q g {\displaystyle dg=qg'} . Do the same for h {\displaystyle h} and we can write f = c g h {\displaystyle f=cg'h'} for some c F {\displaystyle c\in F} . Now, let c = a / b {\displaystyle c=a/b} for some a , b R {\displaystyle a,b\in R} . Then b f = a g h {\displaystyle bf=ag'h'} . From this, using the proposition, we get:

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

That is, b {\displaystyle b} divides a {\displaystyle a} . Thus, c R {\displaystyle c\in R} and then the factorization f = c g h {\displaystyle f=cg'h'} constitutes a contradiction to the irreducibility of f {\displaystyle f} .

( {\displaystyle \Leftarrow } ) If f {\displaystyle f} is irreducible over F {\displaystyle F} , then either it is irreducible over R {\displaystyle R} or it contains a constant polynomial as a factor, the second possibility is ruled out by the assumption. {\displaystyle \square }

Proof of the proposition: Clearly, cont ( f g ) cont ( f ) cont ( g ) {\displaystyle \operatorname {cont} (fg)\subset \operatorname {cont} (f)\operatorname {cont} (g)} . If p {\displaystyle {\mathfrak {p}}} is a prime ideal containing cont ( f g ) {\displaystyle \operatorname {cont} (fg)} , then f g 0 {\displaystyle fg\equiv 0} modulo p {\displaystyle {\mathfrak {p}}} . Since R / p [ x 1 , , x n ] {\displaystyle R/{\mathfrak {p}}} is a polynomial ring over an integral domain and thus is an integral domain, this implies either f 0 {\displaystyle f\equiv 0} or g 0 {\displaystyle g\equiv 0} modulo p {\displaystyle {\mathfrak {p}}} . Hence, either cont ( f ) {\displaystyle \operatorname {cont} (f)} or cont ( g ) {\displaystyle \operatorname {cont} (g)} is contained in p {\displaystyle {\mathfrak {p}}} . Since cont ( f g ) {\displaystyle {\sqrt {\operatorname {cont} (fg)}}} is the intersection of all prime ideals that contain cont ( f g ) {\displaystyle \operatorname {cont} (fg)} and the choice of p {\displaystyle {\mathfrak {p}}} was arbitrary, cont ( f ) cont ( g ) cont ( f g ) {\displaystyle \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 = a f {\displaystyle f=af'} and g = b g {\displaystyle g=bg'} where the gcds of the coefficients of f , g {\displaystyle f',g'} are both 1. Clearly, it is enough to prove the assertion when f , g {\displaystyle f,g} are replaced by f , g {\displaystyle f',g'} ; thus, we assume the gcd's of the coefficients of f , g {\displaystyle f,g} are both 1. The rest of the proof is easy and transparent if R {\displaystyle R} is a unique factorization domain; thus we give the proof in that case here (and see for the proof for the GCD case). If gcd ( cont ( f g ) ) = ( 1 ) {\displaystyle \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 f g {\displaystyle fg} . Factorizing that element into a product of prime elements, we can take that element to be a prime element π {\displaystyle \pi } . Now, we have:

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

Thus, either ( π ) {\displaystyle (\pi )} contains cont ( f ) {\displaystyle \operatorname {cont} (f)} or cont ( g ) {\displaystyle \operatorname {cont} (g)} ; contradicting the gcd's of the coefficients of f , g {\displaystyle f,g} are both 1. {\displaystyle \square }

  • Remark: Over a GCD domain (e.g., a unique factorization domain), the gcd of all the coefficients of a polynomial f {\displaystyle f} , unique up to unit elements, is also called the content of f {\displaystyle f} .

Applications

It follows from Gauss's lemma that for each unique factorization domain R {\displaystyle R} , the polynomial ring R [ X 1 , X 2 , . . . , X n ] {\displaystyle R} is also a unique factorization domain (see #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:

  • If f ( x ) {\displaystyle f(x)} is a monic polynomial in one variable with coefficients in a unique factorization domain R {\displaystyle R} (or more generally a GCD domain), then a root of f {\displaystyle f} that is in the field of fractions F {\displaystyle F} of R {\displaystyle R} is in R {\displaystyle R} .

If R = Z {\displaystyle R=\mathbb {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 {\displaystyle a/b} be a root of f {\displaystyle f} in F {\displaystyle F} and assume a , b {\displaystyle a,b} are relatively prime. In F [ x ] {\displaystyle F} we can write f = ( x a / b ) g {\displaystyle f=(x-a/b)g} with c g R [ x ] {\displaystyle cg\in R} for some c R {\displaystyle c\in R} . Then

c b f = ( b x a ) c g {\displaystyle cbf=(bx-a)cg}

is a factorization in R [ x ] {\displaystyle R} . But b x a {\displaystyle bx-a} is primitive (in the UFD sense) and thus c b {\displaystyle cb} divides the coefficients of c g {\displaystyle cg} by Gauss's lemma, and so

f = ( b x a ) h {\displaystyle f=(bx-a)h}

with h {\displaystyle h} in R [ x ] {\displaystyle R} . Since f {\displaystyle f} is monic, this is possible only when b {\displaystyle b} is a unit.

A similar argument shows:

  • Let R {\displaystyle R} be a GCD domain with the field of fractions F {\displaystyle F} and f R [ x ] {\displaystyle f\in R} . If f = g h {\displaystyle f=gh} for some polynomial g R [ x ] {\displaystyle g\in R} that is primitive in the UFD sense and h F [ x ] {\displaystyle h\in F} , then h R [ x ] {\displaystyle h\in R} .

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

Notes

  1. This theorem is called a lemma for historical reasons.
  2. 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.
  3. A generator of the principal ideal is a gcd of some generators of I (and it exists because R {\displaystyle R} is a GCD domain).
  4. Proof for the GCD case: The proof here is adopted from Mines, R.; Richman, F.; Ruitenburg, W. (1988). A Course in Constructive Algebra. Universitext. Springer-Verlag. ISBN 0-387-96640-4. We need the following simple lemma about gcd:
    • If gcd ( a , b ) = gcd ( a , c ) = 1 {\displaystyle \gcd(a,b)=\gcd(a,c)=1} , then gcd ( a , b c ) = 1 {\displaystyle \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 {\displaystyle 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 ( cont ( f g ) ) {\displaystyle (c)=\gcd(\operatorname {cont} (fg))} ; i.e., c {\displaystyle c} is the gcd of the coefficients of f g {\displaystyle fg} . Assume ( c ) ( 1 ) {\displaystyle (c)\neq (1)} ; otherwise, we are done. Let f 0 , g 0 {\displaystyle f_{0},g_{0}} denote the highest-degree terms of f , g {\displaystyle f,g} in terms of lexicographical monomial ordering. Then f 0 g 0 {\displaystyle f_{0}g_{0}} is precisely the leading term of f g {\displaystyle fg} and so c {\displaystyle c} divides the (unique) coefficient of f 0 g 0 {\displaystyle f_{0}g_{0}} (since it divides all the coefficients of f g {\displaystyle fg} ). Now, if c {\displaystyle c} does not have a common factor with the (unique) coefficient of f 0 {\displaystyle f_{0}} and does not have a common factor with that of g 0 {\displaystyle g_{0}} , then, by the above lemma, gcd ( c , cont ( f 0 g 0 ) ) = ( 1 ) {\displaystyle \gcd(c,\operatorname {cont} (f_{0}g_{0}))=(1)} . But c {\displaystyle c} divides the coefficient of f 0 g 0 {\displaystyle f_{0}g_{0}} ; so this is a contradiction. Thus, either c {\displaystyle c} has a common factor with the coefficient of f 0 {\displaystyle f_{0}} or does with that of g 0 {\displaystyle g_{0}} ; say, the former is the case. Let ( d ) = gcd ( c , cont ( f 0 ) ) {\displaystyle (d)=\operatorname {gcd} (c,\operatorname {cont} (f_{0}))} . Since d {\displaystyle d} divides the coefficients of f g f 0 g = ( f f 0 ) g {\displaystyle fg-f_{0}g=(f-f_{0})g} , by inductive hypothesis,
    ( d ) gcd ( cont ( ( f f 0 ) g ) ) = gcd ( cont ( f f 0 ) ) gcd ( cont ( g ) ) = gcd ( cont ( f f 0 ) ) {\displaystyle (d)\supset \operatorname {gcd} (\operatorname {cont} ((f-f_{0})g))=\operatorname {gcd} (\operatorname {cont} (f-f_{0}))\operatorname {gcd} (\operatorname {cont} (g))=\operatorname {gcd} (\operatorname {cont} (f-f_{0}))} .
    Since ( d ) {\displaystyle (d)} contains cont ( f 0 ) {\displaystyle \operatorname {cont} (f_{0})} , it contains cont ( f ) {\displaystyle \operatorname {cont} (f)} ; i.e., ( d ) = ( 1 ) {\displaystyle (d)=(1)} , a contradiction. {\displaystyle \square }
  5. In other words, it says that a unique factorization domain is integrally closed.

References

  1. Article 42 of Carl Friedrich Gauss's Disquisitiones Arithmeticae (1801)
  2. ^ Atiyah & Macdonald 1969, Ch. 1., Exercise 2. (iv) and Exercise 3.
  3. Eisenbud 1995, Exercise 3.4. (a)
  4. Atiyah & Macdonald 1969, Ch. 1., Exercise 2. (iv)
  5. Atiyah & Macdonald 1969, Ch. 1., Exercise 1.13.
  6. Eisenbud 1995, Exercise 3.4.c; The case when R is a UFD.
Categories: