In
algebra
Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
, Gauss's lemma, named after
Carl Friedrich Gauss
Johann Carl Friedrich Gauss (; ; ; 30 April 177723 February 1855) was a German mathematician, astronomer, geodesist, and physicist, who contributed to many fields in mathematics and science. He was director of the Göttingen Observatory and ...
, is a
theorem
In mathematics and formal logic, a theorem is a statement (logic), statement that has been Mathematical proof, proven, or can be proven. The ''proof'' of a theorem is a logical argument that uses the inference rules of a deductive system to esta ...
[This ]theorem
In mathematics and formal logic, a theorem is a statement (logic), statement that has been Mathematical proof, proven, or can be proven. The ''proof'' of a theorem is a logical argument that uses the inference rules of a deductive system to esta ...
is called a lemma for historical reasons. about
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s over the
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s, or, more generally, over a
unique factorization domain
In mathematics, a unique factorization domain (UFD) (also sometimes called a factorial ring following the terminology of Bourbaki) is a ring in which a statement analogous to the fundamental theorem of arithmetic holds. Specifically, a UFD is ...
(that is, a
ring that has a unique factorization property similar to the
fundamental theorem of arithmetic
In mathematics, the fundamental theorem of arithmetic, also called the unique factorization theorem and prime factorization theorem, states that every integer greater than 1 is prime or can be represented uniquely as a product of prime numbers, ...
). 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
coefficient
In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
s is ''primitive'' if it has 1 as a
greatest common divisor
In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers , , the greatest co ...
of its coefficients.
[The indefinite article is used here since, when the coefficients belong to a ]unique factorization domain
In mathematics, a unique factorization domain (UFD) (also sometimes called a factorial ring following the terminology of Bourbaki) is a ring in which a statement analogous to the fundamental theorem of arithmetic holds. Specifically, a UFD is ...
, "greatest" refers to the preorder
In mathematics, especially in order theory, a preorder or quasiorder is a binary relation that is reflexive relation, reflexive and Transitive relation, transitive. The name is meant to suggest that preorders are ''almost'' partial orders, ...
of divisibility, rather than to the natural order of the integers, and, generally, there are several greatest common divisors.)
A
corollary
In mathematics and logic, a corollary ( , ) is a theorem of less importance which can be readily deduced from a previous, more notable statement. A corollary could, for instance, be a proposition which is incidentally proved while proving another ...
of Gauss's lemma, sometimes also called ''Gauss's lemma'', is that a primitive polynomial is
irreducible over the integers
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
it is irreducible over the
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s. 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
In abstract algebra, the field of fractions of an integral domain is the smallest field in which it can be embedded. The construction of the field of fractions is modeled on the relationship between the integral domain of integers and the fie ...
of ". This implies that, if is either a
field, the ring of integers, or a unique factorization domain, then every
polynomial ring
In mathematics, especially in the field of algebra, a polynomial ring or polynomial algebra is a ring formed from the set of polynomials in one or more indeterminates (traditionally also called variables) with coefficients in another 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
In algebra, the greatest common divisor (frequently abbreviated as GCD) of two polynomials is a polynomial, of the highest possible degree, that is a factor of both the two original polynomials. This concept is analogous to the greatest common d ...
and
Factorization of polynomials
In mathematics and computer algebra, factorization of polynomials or polynomial factorization expresses a polynomial with coefficients in a given field or in the integers as the product of irreducible factors with coefficients in the same doma ...
).
Gauss's lemma, as well as its consequences that do not involve the existence of a complete factorization, remain true over any
GCD domain
In mathematics, a GCD domain (sometimes called just domain) is an integral domain ''R'' with the property that any two elements have a greatest common divisor (GCD); i.e., there is a unique minimal principal ideal containing the ideal generated ...
(an
integral domain
In mathematics, an integral domain is a nonzero commutative ring in which the product of any two nonzero elements is nonzero. Integral domains are generalizations of the ring of integers and provide a natural setting for studying divisibilit ...
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
In mathematics, a commutative ring is a Ring (mathematics), ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring prope ...
.
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
In mathematics, a principal ideal domain, or PID, is an integral domain (that is, a non-zero commutative ring without nonzero zero divisors) in which every ideal is principal (that is, is formed by the multiples of a single element). Some author ...
, there are polynomials that are primitive in the above sense and not primitive in this new sense.
The lemma over the integers
If
is a polynomial with integer coefficients, then
is called ''
primitive'' if the greatest common divisor of all the coefficients
is 1; in other words, no
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
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 ''a''
''r''''x''
''r'' be the first term of ''f''(''x'') not divisible by ''p'' and let ''b''
''s''''x''
''s'' be the first term of ''g''(''x'') not divisible by ''p''. Now consider the term ''x''
''r''+''s'' in the product, whose coefficient is
:
The term ''a''
''r''''b''
''s'' 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.
The proof is given below for the more general case. Note that an
irreducible element
In algebra, an irreducible element of an integral domain is a non-zero element that is not invertible (that is, is not a unit), and is not the product of two non-invertible elements.
The irreducible elements are the terminal elements of a factor ...
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
Gauss's lemma holds more generally over arbitrary
unique factorization domain
In mathematics, a unique factorization domain (UFD) (also sometimes called a factorial ring following the terminology of Bourbaki) is a ring in which a statement analogous to the fundamental theorem of arithmetic holds. Specifically, a UFD is ...
s. There the ''
content'' of a polynomial can be defined as the
greatest common divisor
In mathematics, the greatest common divisor (GCD), also known as greatest common factor (GCF), of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers , , the greatest co ...
of the coefficients of (like the gcd, the content is actually a set of
associate elements
In mathematics, an integral domain is a nonzero commutative ring in which the product of any two nonzero elements is nonzero. Integral domains are generalizations of the ring of integers and provide a natural setting for studying divisibility ...
). 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
of polynomials is the product
of their individual contents.
Irreducibility statement: Let be a unique factorization domain and its
field of fractions
In abstract algebra, the field of fractions of an integral domain is the smallest field in which it can be embedded. The construction of the field of fractions is modeled on the relationship between the integral domain of integers and the fie ...
. A non-constant polynomial
in