Section 5.1 gave a division with
remainder (Theorem 5.1.2).
This section asks what two polynomials have in common.
Here is a concrete version of the question. Which
polynomials over can be written as
Taking and gives , and hence, multiplying and by any , every multiple . Nothing
else can occur: and , so divides every such
combination (Proposition 5.1.1
(c)). So the answer is “all multiples of , and nothing else”.
Why , and why
should the answer be the set of multiples of a single
polynomial? The integer version of this question, in
Number Systems: From to , Section 3.2,
was answered by a least element; here the answer is a
polynomial of least degree.
As in Section 5.1, is a field and is a commutative
ring (Theorem 4.2.4
(a)). So the general notions of Number Systems: From
to , Chapter 3 apply
to it without change: ideals (Number Systems: From to , Definition 3.4.1,
clauses (I1)–(I3)), quotient rings (Number Systems: From to , Theorem 3.4.1)
and units (Number Systems: From to , Definition 3.5.1).
We recall the clauses: a subset is an
ideal if (I1) , (I2) for all , and (I3)
for all
and
all .
The ideal
generated by finitely many polynomials
The combinations in the opening question form a set
that deserves a name and a symbol.
Definition
5.2.1 (Ideal Generated by Polynomials)
Let be a
field, and .
The set is the ideal generated by
.
For one polynomial, is the set of
multiples of .
In words: collects every way of
multiplying each by a polynomial and
adding up. The coefficients range over
all of , not over . The name is earned by
two facts.
It is an ideal, and it contains every . (I1): . (I2): . (I3): . These are the
ring laws of
applied to finite sums (Lemma 4.1.1
(b)). Taking and the other coefficients shows .
It lies inside every ideal that contains every
. If is an ideal with ,
then each by (I3), and their sum lies in by (I2), applied times. So .
So is the smallest ideal containing
.
This “smallest” clause is how we will compare two such
ideals: to show , it is enough to show that each lies in .
Examples:
- , the degenerate case. It is
the only ideal generated by one polynomial that contains
no non-zero element, and the main theorem below treats
it separately.
- for a non-zero constant : every equals .
- For ,
let , the polynomials with root
. It is an ideal:
, , and , by Theorem 4.4.1.
Moreover : by the factor theorem (Theorem 5.1.3
(b)), if
and only if , that is, .
- In the opening question, .
↺Second readingA
non-example: large degree
The set satisfies
(I1) and (I3) (a non-zero multiple of a polynomial of
degree at least
has degree at least , by Theorem 4.3.2
(b)). But (I2) fails: and lie in , and their sum has degree . So is not an ideal. “Large
degree” is not a property that sums keep, because
leading terms can cancel.
Quick check. Is an ideal of ? Name the first
clause that fails.
Solution. No. (I1) fails already:
the zero polynomial has . (So do (I2), since , and (I3),
with .)
Compare , which is an
ideal.
Every ideal
has one generator
Every example above turned out to be the set of
multiples of a single polynomial. That is no
accident.
Theorem
5.2.1 (Ideals of Are
Principal)
Let be a field
and an ideal of
.
- (a) If , then .
- (b) If , there is
exactly one monic with .
Moreover is the
only monic element of of least degree among
the non-zero elements of .
Idea. Take a non-zero element of
of least degree,
and scale it to be monic; call it . Its multiples lie in
by absorption.
Conversely, divide any by :
the remainder lies in and has smaller degree
than , so it
cannot be a non-zero element of . It is , and is a multiple of . Uniqueness comes from
Proposition 5.1.1
(f): two monic generators divide each other.
Before reading on: where is “least degree” used,
and why is made
monic?
Proof.
(a) If , then .
(b)
Existence. Let . The set is a non-empty subset of , so it has a least
element (Sets, Relations, and Cardinality, Theorem 2.1.3;
on it
is Number Systems: From to , Theorem 1.6.2).
Choose a non-zero with , let , and let .
Then by
(I3), and is
monic of degree
(Proposition 5.1.1
(f), Theorem 4.3.2
(b)).
For
, by (I3). So
.
Let
. Since
, Theorem 5.1.2
(a) gives with and . Then , by (I3) and (I2). If , then and , against
the choice of as
least. So ,
and . Hence .
Uniqueness. Let be monic with
. Then and (each generator lies in its own ideal),
so
and .
Both are monic, so by Proposition 5.1.1
(f).
The least-degree description. Let be any monic
element of with
. The argument of and used only
that is a
non-zero element of of degree ; run with in place of
, it gives , and uniqueness gives . This
proves the theorem.
The answer to the prompt. “Least degree” is used
once, in : the
remainder lies in
and has degree
below , so
minimality forces . The minimality is about
non-zero elements, which is why is the conclusion
and not a contradiction. Making monic plays no part in
the existence of a generator: itself generates , and so does when in . It is what makes the
generator unique, because among the
associates of ,
all of which generate , exactly one is
monic.
An ideal of the form is
called principal, hence the name of the
theorem. The proof’s move is the one this chapter is
built on, and we name it: least degree, then
divide. In a set of polynomials closed under
the right operations, take a non-zero element of least degree; divide
any element of the set by ; the remainder lies in
the set and has smaller degree, so it is . It is the polynomial
form of “least positive element, then divide” from
Number Systems: From to , Section
3.2.
↺Second readingComparison
with the integers, and two
indeterminates
The integer twin is Number Systems: From to , Theorem 3.4.2:
every ideal of
is for exactly
one .
There “”
picked the generator; here “monic” does. In polynomials
in two indeterminates the theorem fails
(the polynomials with zero constant term are an example,
which we state without proof; Exercise A1 asks which
step of the proof breaks there, without proving the
failure).
The
greatest common divisor
A common divisor of and is a polynomial with and . Every non-zero
constant is one (Proposition 5.1.1
(a)). For integers, Number Systems: From to , Section 3.2
took the largest common divisor. For
polynomials, “largest” can only refer to the degree, and
associates have the same degree: and are both common
divisors of
and in
, of the same
degree. So the definition asks instead for the property
that Bézout’s theorem gave the integer gcd, and fixes
one associate by asking it to be monic.
The greatest common divisor is the monic common
divisor that every common divisor divides.
Definition
5.2.2 (Greatest Common Divisor of
Polynomials)
Let be a field
and ,
not both . A greatest
common divisor of and is a
monic such that , , and for every common divisor
of and . We set .
In words: is a
common divisor, it is “on top” of all common divisors
for the relation , and it is
monic.
At most one. If and are both greatest
common divisors of and , each is a common
divisor, so each divides the other; both are monic, so
(Proposition 5.1.1
(f)). We write for it once it is known to exist, and the
next theorem shows it always does. The condition is
symmetric in and
, so .
↺Second readingWhy
is
Every polynomial divides , so the common divisors
of and are all polynomials,
and the only polynomial that every polynomial divides is
(Proposition 5.1.1
(a) and (d)); but
is not monic. The value keeps “every common
divisor divides the gcd” true, and it keeps true, since . The gcd clause of Lemma 5.2.4
uses the value in the case .
Theorem
5.2.2 (Bézout’s Theorem for Polynomials)
Let be a
field, let be not both , and let be the monic polynomial
with (Theorem 5.2.1).
- (a) and .
- (b) Every common
divisor of and
divides .
- (c) . So exists, and
.
- (d) for
some .
- (e) has the
largest degree among the common divisors of and , and a common divisor
of that degree is an associate of .
The ideal contains and , one of which is
non-zero, so and the monic exists and is unique by
Theorem 5.2.1
(b).
Idea. Everything is read off from
, used in both directions.
Since and lie in the ideal, they
are multiples of .
Since lies in the
ideal, it is a combination of and , and a combination is
divisible by every common divisor.
Proof.
(a) , so and are multiples of .
(b) Since , there are with
.
If and
, then
by Proposition 5.1.1
(c).
(c) By (a) and
(b), is a monic
common divisor that every common divisor divides; so
by
Definition 5.2.2.
Then .
(d) This is from
(b).
(e) Let be a common divisor. By
(b), , and
, so by Proposition 5.1.1
(d). If , write ; then by Theorem 4.3.2
(b), so is a
non-zero constant and and are associates. This
proves the theorem.
For the opening question: with monic, and , because is a monic common divisor and a combination,
so every common divisor divides it.
↺Second readingWhy
the definition is not the integer one
Number Systems: From to , Section 3.2
defined the integer gcd as the largest
common divisor (Number Systems: From to , Definition 3.2.2)
and then proved Bézout’s theorem (Number Systems: From to , Theorem 3.2.1).
Here the order is reversed: the definition uses the
divisibility property, which for integers was a
consequence, and part (e) recovers “largest” as a
consequence, up to associates.
Pairs with no common divisor of positive degree get a
name.
Definition
5.2.3 (Coprime Polynomials)
Let be a
field. Polynomials are coprime over if .
For example,
and are
coprime over every field, since and the
next corollary applies; and are not, since .
Corollary
5.2.3 (Coprime Means 1 Is a Combination)
Let be a field
and .
Then and are coprime if and only
if for
some .
Proof. If , then
are not both
, since , and
Theorem 5.2.2
(d) gives with
.
Let
. Then
are not both
, since otherwise
.
Since , every lies in by
(I3), so . The
polynomial is
monic, so by the uniqueness in Theorem 5.2.1
(b) it is the monic generator of , and
Theorem 5.2.2
(c) gives .
Quick check. Find
in .
Solution. , so divides both, and every common divisor
divides . But
is not
monic. Its monic associate has the same divisors and multiples (Proposition 5.1.1
(f), (b)), so , not .
The
Euclidean algorithm
Bézout’s theorem finds as an element
of least degree, which is no way to compute it. A
computation needs a step that lowers degrees without
changing the ideal. Division with remainder is that
step.
Lemma
5.2.4 (One Step of the Euclidean
Algorithm)
Let be a field
and with . Then , and hence
.
Proof. , and ; by the
smallest-ideal property of Definition 5.2.1,
. and , so in the same way.
For the gcds: if , then , and both gcds are . Otherwise
, so and are not both . By Theorem 5.2.2
(c), and
are
monic generators of the same ideal, so they are equal by
the uniqueness in Theorem 5.2.1
(b).
The lemma does not ask to be the remainder.
Choosing the remainder makes the degree drop, and
repeating the step gives a sequence. To define “repeat”
without “and so on”, we use the recursion theorem, as in
Number Systems: From to , Theorem 3.2.4.
Theorem
5.2.5 (The Euclidean Algorithm for
Polynomials)
Let be a field
and
with .
Define pairs for by and where, when ,
is the remainder of on division by . Then:
- (a) for every ;
- (b) there is a least
with
; moreover
, and for every ;
- (c) , and is the monic
associate of .
In practice the sequence is written as a chain of
divisions , , each dividing the previous divisor by
the previous remainder, until a remainder is . The degrees of the
remainders fall, and is the last non-zero remainder if , and itself if (then ).
↺Second readingWhy
the sequence exists
The sequence is well defined. Let send to , where is the remainder of
on division by
, if , and to if . This is a
function, since the remainder exists and is unique (Theorem 5.1.2
(a)). The recursion theorem (Sets, Relations, and Cardinality, Theorem 2.3.1,
read on by Number Systems: From to , Corollary 1.7.3
(b)), with , starting value and step ,
gives exactly one sequence of pairs with the displayed
properties.
Idea. Part (a) is Lemma 5.2.4
once per step, carried along by induction. For (b), the
degrees of the second entries are natural numbers that
drop by at least one per step while the entries are
non-zero, so a zero entry must come within steps. For
(c), at the first zero, (a) reads , and the
monic generator of this ideal is the gcd.
Proof.
(a) We use Logic and Proof, Axiom 4.2.1
(through Number Systems: From to , Corollary 1.7.3
(b)) on , for
: “”. holds since .
Suppose . If
, then
for some , and
Lemma 5.2.4
gives . If
, the pair
does not change, and is .
(b) A
bound. We show by Logic and Proof, Axiom 4.2.1
on the statement
: “if are all
non-zero, then ”. holds since . Suppose , and let be
non-zero. Then , so has , and as both degrees lie
in , . With , , which is .
The first zero. If were
all non-zero for , then would give ,
impossible for a non-zero polynomial. So
is non-empty, and it has a least element (Sets, Relations, and Cardinality, Theorem 2.1.3).
Since , . By the choice of , are
non-zero, so gives , that is, . For
, , so and by Theorem 5.1.2
(a).
- (c) Since , , so the
step gives . By (a) with , and since , where . Let . The
monic associate generates the same ideal as , because each is a
multiple of the other (). So is a monic
generator of , and since , Theorem 5.2.2
(c) and the uniqueness in Theorem 5.2.1
(b) give .
To find
with , run the step of Lemma 5.2.4
backwards.
Algorithm.
Back-substitution. Write out the
divisions for , so that and . Start from
. Then, for in turn, rewrite a
combination as one of and , by substituting
: After the combination is one of and ; multiply it by
to get ,
and multiply out to check. (By hand one starts from the
last division with a non-zero remainder, as in the
example below.)
Nothing rests on the procedure: existence is Theorem 5.2.2
(d), and multiplying out checks the found.
Example
(A run of the Euclidean algorithm)
In ,
compute
for and , and write it as .
Solution. The chain of divisions
(each by Theorem 5.1.2,
the remainder of degree below the divisor’s) is So runs through , , , : and . Its monic
associate is ,
so by Theorem 5.2.5
(c).
Back-substitution, from the second division up: Multiplying by : Check: and ; the sum is .
Warning. Bézout coefficients are
not unique. Since , as well, with coefficients of degrees and . So “the” coefficients
mean nothing by themselves; back-substitution produces
one pair, and any other pair works as well.
Quick check. Run the algorithm on
and in . Are they
coprime?
Solution. , then , then .
The last non-zero remainder is , already monic, so
: they are coprime. Back-substitution gives
.
Changing
the field
The same pair of polynomials can be read over a
bigger field: is also an element of , where it factors
as . Factorizations depend on the field;
division and the gcd do not, because the Euclidean
algorithm never leaves the smaller field.
Recall that a subfield of a field
is a subset containing
and and closed under , , negatives and
inverses of non-zero elements (Definition 2.3.1; Proposition 2.3.1 is the
practical check). Then is a field with the
operations of ,
and : a polynomial with coefficients in is one with
coefficients in ,
and sums, products, degrees and leading coefficients are
computed by the same formulas in both rings. The
examples are , with by Proposition 1.1.1
and Theorem 1.2.4.
Proposition
5.2.6 (Division and gcd Do Not Depend on the
Field)
Let be a
field, a subfield, and .
- (a) If , the quotient and
the remainder of
on division by
are the same in and in .
- (b) If , then in if and only if in .
- (c) is the same
computed in or
in . In
particular, and
are coprime over
if and only if
they are coprime over .
In words: computing a quotient, a remainder or a
gcd never needs an element outside the smaller
field.
↺Second readingThe
proof: the algorithm never leaves the smaller
field
Proof.
(a) Let with and be the
division in
(Theorem 5.1.2
(a)). The same equation holds in , and the degrees are
the same there, so it is a division with remainder in
. By the
uniqueness in ,
it is the division there.
(b) By (a), the
remainder is the
same in both rings, and by Theorem 5.1.2
(b), applied in each ring, holds in that ring if and only if .
(c) If , both gcds are
. If , then in either ring, generated by the monic
associate , so in either ring (Theorem 5.2.2
(c) and the uniqueness in Theorem 5.2.1
(b)). The inverse
is the same in
and in , since
is closed under
inverses and inverses in are unique (Theorem 2.1.1 (c)). If
, run Theorem 5.2.5
in and in
. By Logic and Proof, Axiom 4.2.1
(through Number Systems: From to , Corollary 1.7.3
(b)) on , the
pairs
agree: they agree for , and if they agree at , the next pair is with the same
remainder by
(a), or the same pair. So the first index with is the same in
both runs, the polynomial at that index is the
same, and so is its monic associate, by the remark on
inverses. By Theorem 5.2.5
(c), the two gcds are equal. In particular one is if and only if the
other is.
For example, and are coprime over ( and ; apply Lemma 5.2.4
and Corollary 5.2.3),
so they are coprime over as well, although
has factors of degree only over .
Quick check. Compute in . Over , divides both.
Why is the gcd over still not ?
Solution. The divisions are and , so and , which is
monic: in . By Proposition 5.2.6
(c) it is
in too. The
common divisor is not the gcd because the gcd must be
divisible by every common divisor, and
is
another one; both divide .
Exercises
A. Check your
understanding
Exercise
(A1)
These questions are about the proof of Theorem 5.2.1.
- (a) Where is “least
degree” used?
- (b) Why is made monic, and what
would fail without it?
- (c) Run the proof on
: show that
is an ideal, and
find .
- (d) The polynomials
in two indeterminates over
with zero constant term (such as , , ) are closed
under sums and under multiplication by any polynomial in
. Name the step
of the proof that has no analogue there. (A prose
answer; no proof that the theorem fails is asked
for.)
- (e) State the idea
of the proof in two sentences.
Solution.
(a) Once, in
: the
remainder lies in and has degree below
; since
is least among
the degrees of non-zero elements of , cannot be non-zero, so
.
(b) For
uniqueness. Every associate of generates (for instance when in : ),
so without a normalization “the generator” would not be
one polynomial. Exactly one associate is monic (Proposition 5.1.1
(f)).
(c) in
the notation after Definition 5.2.1.
Each clause (I1)–(I3) holds in and in , hence in the
intersection. The polynomial lies in , since and . No
non-zero element of has degree at most
: if with and
,
adding gives , so (as in ),
and then . So
the least degree is , and the proof’s is the monic element
(any
element of degree , scaled to be monic, is
by the
uniqueness clause). Hence .
(d) The division
step,
with , which the proof applies to an arbitrary
and the
element of least
degree. Two indeterminates have no division with
remainder of that kind. In this ideal, and both have the least
possible degree, ,
and dividing by
would need a
leftover in the ideal of degree below , that is, ; so would have to divide
, and it does not.
(That this ideal is generated by no single polynomial is
true, but not proved here.)
(e) Take a
non-zero element
of of least
degree, made monic. Dividing any element of by leaves a remainder that
lies in and has
smaller degree, so it is , and consists of the
multiples of .
B. Practice
Exercise
(B1: A gcd and its common root)
In , let
and . Compute with the Euclidean algorithm, and write it
as . Hence
show that is the
only common root of and in .
Solution. The divisions are So ,
, and
(Theorem 5.2.5
(c)). Back-substitution: so Check: and ; the sum is .
Common roots. and , so is a common root. Let
be any
common root. By Theorem 5.1.3
(b), divides
and , so it divides by Theorem 5.2.2
(b). Both are monic of degree , so they are associates
by Theorem 5.2.2
(e) (equal degree), hence equal (Proposition 5.1.1
(f)). So , and .
Exercise
(B2: A gcd over the field with two elements)
In , let
and . Show that and
that .
Solution. In , and . First, , so that is, , a division with remainder.
Next, , so .
The algorithm stops with , which is monic, so .
Finally , since in .
C. Going deeper
Exercise
(C1: Exit check: ideals of and Bézout)
Let be a
field.
- (a) Prove that for
every ideal of there is exactly one
monic with .
- (b) Let , not both
, and let be the monic generator
of . Prove that , , that every
common divisor of
and divides , that , and that
for
some .
Solution.
- (a) A
generator. The degrees of the non-zero elements of
form a non-empty
subset of ,
which has a least element (Sets, Relations, and Cardinality, Theorem 2.1.3).
Let be
non-zero of degree , and . Then by (I3), and
is monic of
degree . Every
multiple lies in
by (I3), so . Conversely, let , and divide:
with
(Theorem 5.1.2
(a)). Then by (I3) and (I2). If , it is a non-zero
element of of
degree less than ,
against the choice of ; so and .
Hence .
Uniqueness. If also with monic, then and , so and divide each other.
Then
for a non-zero constant (Proposition 5.1.1
(f)), and comparing leading coefficients gives .
- (b) The ideal is
not , since it
contains and
; let be its monic generator,
from (a). Since , and . Since , for some . If and , then (Proposition 5.1.1
(c)). So is a
monic common divisor that every common divisor divides:
by
Definition 5.2.2.
Marking scheme. (10 points) - 1: a
non-zero element of least degree exists, with the
well-ordering of cited. - 1: it is
made monic, and the monic element is shown to lie in
(absorption). -
3: an arbitrary element of is divided by , and the remainder is
shown to lie in .
- 2: minimality of the degree forces the remainder to be
. - 1: uniqueness
of the monic generator (by any route: mutual
divisibility, or minimality of the degree applied to the
difference). - 2: , , , and “every common divisor divides ” are read off from
, and is
concluded from the definition.
Fatal errors (0 for the step): assuming that the gcd
is a combination of and (circular); “ divides because has least degree”, with
no division step; citing Theorem 5.2.5
(c) or the gcd clause of Lemma 5.2.4
for (b) (both are proved from Bézout’s theorem). A
second route for (b), the Euclidean algorithm with
back-substitution by induction on the number of steps,
may use the ideal equality of Lemma 5.2.4;
it earns the 2 points of (b) when it shows that the
monic associate of the last non-zero remainder divides
and , is a combination of
them, and is divisible by every common divisor.
Existence in (a) has no second route here.
Exercise
(C2: Scaling the gcd)
Let be a
field, , and monic. Prove that .
Solution (Hint 1). Compare the
ideals and .
Solution (Hint 2). Show first that
.
Solution. If , then , and both
sides are : .
Otherwise let , monic, with (Theorem 5.2.2
(c)). Since is
monic, , and
one of , is non-zero (Corollary 4.3.3
(a)); so Theorem 5.2.2
applies to
as well.
The ideals. For , . As range over , ranges over , so
The generator. is monic, since
(Theorem 4.3.2
(b)). By Theorem 5.2.2
(c), with monic; by
the uniqueness in Theorem 5.2.1
(b), .
This is the polynomial twin of Number Systems: From to , Exercise (C2: Scaling the gcd)
( for ), with “monic” in place of “positive”.
Without “monic” the formula fails: in .
Marking scheme. (10 points) - 2:
treats by
the convention, and checks that , are not both otherwise (no zero
divisors in ).
- 4: shows , citing . - 2: shows is monic. - 2:
concludes by the uniqueness of the monic
generator.
Fatal errors (0 for the step): asserting that every
common divisor of and is times a common divisor
of and (false: divides and , and
is not times a polynomial);
using factorizations into irreducibles, which this
section does not have. A second route ( is a
monic common divisor and a combination, so every common
divisor divides it) scores 2 for the zero case, 3 for
“monic common divisor and combination”, 3 for “every
common divisor divides ”, 2 for the conclusion
by Definition 5.2.2.
Exercise
(C3: The gcd of two binomials)
Let be a
field. For , not both , prove that in
(here ,
and is
the integer gcd). Compute .
Solution. Two remarks. For
, is monic of
degree . And for
, by
the power laws (Lemma 4.1.1
(c)), since .
We prove, by Logic and Proof, Axiom 4.2.1
(through Number Systems: From to , Corollary 1.7.3
(b)) on , the
statement :
“for all , not both , with , the
displayed formula holds”. holds vacuously:
forces
. Suppose
, and let , not both
. If , use . Otherwise .
Case . Then . The gcd of and is
the monic generator of (Theorem 5.2.2
(c)), which is . On the integer side, the common divisors of
and are the divisors of
, and the greatest
is (Number Systems: From to , Proposition 3.1.1
(a), (e)), so . Both sides are . Case is the same,
since both gcds are symmetric.
Case . Both gcds are symmetric, so we may
suppose . By
the identity above and Lemma 5.2.4,
The pair is not , since , and , so applies to it: the
right side is . Finally , so Number Systems: From to , Lemma 3.2.3
gives . This proves .
Since every pair has for , the formula holds for all . For , : , so
.
Each polynomial step is one step
of the subtractive Euclidean algorithm on the
exponents.