KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesThe Polynomial Euclidean Algorithm over a FieldEngineering · Engineering MathematicsLesson 759/884← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin Joginpolynomial GCDEuclidean algorithmextended EuclideanBezout
On this page

Ask about this page

KEVOS AIThe Polynomial Euclidean Algorithm over a Field

KEVOS knowledge first · trusted web sources when needed

Polynomial Arithmetic and GCD

The Polynomial Euclidean Algorithm over a Field

The Euclidean and extended Euclidean algorithms for polynomials over a field, and their role in inversion and interpolation.

Engineering / MathematicsPolynomial Arithmetic and GCD2 min readKV-MATH-0557

Over a field, the polynomial Euclidean algorithm is a direct transcription of the integer one, with degree playing the role of magnitude. It terminates in at most the degree many steps and suffers no coefficient growth.

The algorithm

gcd(f, g) = gcd(g, f mod g), gcd(f, 0) = fDegree strictly decreases at each step, guaranteeing termination.

Key point

Over a field the number of steps is at most the degree, and coefficients stay in the field. This is the case where the algorithm is genuinely simple — the difficulties in polynomial GCD over a UFD are entirely absent.

Normalisation

The GCD is defined only up to a unit, so a convention is needed. The standard choice over a field is to make the result monic.

Pitfall

Without normalisation, two runs of the algorithm on the same input can return associates that compare unequal. Any code that tests GCDs for equality must normalise.

The extended algorithm

Carrying Bezout coefficients through gives polynomials expressing the GCD as a combination of the inputs.

gcd(f, g) = u f + v g, deg u < deg g, deg v < deg fThe degree bounds hold for the canonical solution.

Inversion in a quotient ring

An element of the quotient by an irreducible polynomial is invertible exactly when it is coprime to that polynomial, and the extended algorithm produces the inverse.

Inversion in a polynomial quotient ring

  1. Run extended EuclidAgainst the defining polynomial.
  2. Check the GCDIf it is not constant, the element is not invertible — and the GCD is a proper factor of the modulus.
  3. NormaliseScale the Bezout coefficient so the product is one.

Key point

A failed inversion returns a factor of the modulus. This is exploited deliberately in factorisation: a non-trivial GCD against a random element splits the polynomial — see equal degree splitting.

Half-GCD

As with integers, a divide-and-conquer variant achieves O(M(d) log d) by computing the transformation matrix for many steps at once. It matters only at high degree, but it is the basis of fast rational reconstruction and of Schoof's algorithm.

Resultants from the remainder sequence

The sequence of remainders carries more information than the GCD alone: the resultant can be read from the leading coefficients along the way. See resultants.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 3.2.1. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Related pages

  • The Euclidean Algorithm: Classical and Binary Variants
  • The Extended Euclidean Algorithm and Bezout Coefficients
  • Polynomial Division with Remainder
  • Unique Factorisation Domains, Content and Primitive Parts

Continue learning

Polynomial Division with RemainderArticle · Engineering MathematicsNEXT LESSON →Unique Factorisation Domains, Content and Primitive PartsArticle · Engineering MathematicsPolynomial Multiplication StrategiesArticle · Engineering MathematicsPolynomial GCD over a Unique Factorisation DomainArticle · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®