Lably
Skip to content

Polynomial greatest common divisor

Greatest common divisor of polynomials

  • 27 min read
  • 7 chapters

Related on Lably

Through Polynomial, Factorization and Greatest common divisor

In the important case of univariate polynomials over a field, the polynomial GCD may be computed as for the integer GCD, with the Euclidean algorithm using long division. The polynomial GCD is defined only up to the multiplication by an invertible constant.

The similarity between integer GCD and polynomial GCD allows extending to univariate polynomials all the properties that may be deduced from the Euclidean algorithm and Euclidean division. Moreover, the polynomial GCD has specific properties that make it a fundamental notion in various areas of algebra. Typically, the roots of the GCD of two polynomials are the common roots of the two polynomials, and this provides information on the roots without computing them. For example, the multiple roots of a polynomial are the roots of the GCD of the polynomial and its derivative, and further GCD computations allow computing the square-free factorization of the polynomial, which provides polynomials whose roots are the roots of a given multiplicity of the original polynomial.

The greatest common divisor may be defined and exists, more generally, for multivariate polynomials over a field, over the ring of integers, and over any unique factorization domain. There exist algorithms to compute them as soon as one has a GCD algorithm in the ring of coefficients. These algorithms proceed by a recursion on the number of variables to reduce the problem to a variant of the Euclidean algorithm. They are a fundamental tool in computer algebra, because computer algebra systems use them systematically to simplify fractions: this was the motivation for much of the modern theory of polynomial GCD.

General definition

Let p and q be polynomials with coefficients in an integral domain F, typically a field or the integers. A greatest common divisor of p and q is a polynomial d that divides p and q, and such that every common divisor of p and q also divides d. Every pair of polynomials (not both zero) has a GCD if and only if F is a unique factorization domain.

If F is a field and p and q are not both zero, a polynomial d is a greatest common divisor if and only if it divides both p and q, and it has the greatest degree among the polynomials having this property. If p = q = 0, the GCD is 0; however some authors consider that it is not defined in this case.

The greatest common divisor of p and q is usually denoted gcd(p, q).

The greatest common divisor is unique only up to multiplication by an invertible constant. That is, if d is a GCD of p and q, then the polynomial c is another GCD if and only if there is an invertible element u of F such that c=ud and d=u−1c.In the case of the integers, this ambiguity may be removed by choosing the unique positive GCD, rather than its negative. For univariate polynomials over a field, one can instead choose the standard GCD to be the unique monic choice (having leading coefficient 1), but over more general coefficient rings there is no standard choice. Therefore, equalities like d = gcd(p, q) or gcd(p, q) = gcd(r, s) should be understood to mean "d is a GCD of p and q" and "p and q have the same set of GCDs as r and s". In particular, gcd(p, q) = 1 means that the invertible constants are the only common divisors: in this case, by analogy with the ring of integers, one says that p and q are coprime polynomials.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Number theory