The Euclidean Algorithm for Polynomials

Compute a polynomial gcd by remainders and explain which division operations depend on the coefficient field.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Remainders preserve common divisors
  2. A two-step example exposes a shared factor

Remainders preserve common divisors

Over a field, divide \(f\) by nonzero \(g\) to write \(f=qg+r\) with \(\deg r<\deg g\) unless \(r=0\). Every common divisor of \(f,g\) divides \(r\), and every common divisor of \(g,r\) divides \(f\). Thus each step preserves the gcd up to multiplication by a nonzero scalar. Degrees strictly decrease, so the last nonzero remainder can be normalized to a monic gcd.

A two-step example exposes a shared factor

Dividing \(x^3-1\) by \(x^2-1\) with quotient \(x\) leaves \(x-1\). The next division has remainder zero since \(x^2-1=(x+1)(x-1)\). Keeping track of each remainder as a linear combination gives an extended algorithm. The field assumption makes leading coefficients invertible, including in finite fields. Computer algebra considers elimination when several variables prevent a single degree from organizing all divisions.[1]

References

  1. Eric Lehman, F. Thomson Leighton and Albert R. Meyer, Mathematics for Computer Science ↩