Section 4.2 made a commutative ring
for every commutative ring (Theorem 4.2.4).
This section attaches to each non-zero polynomial its
degree, the position of its last
non-zero coefficient, and asks the school question: is
the degree of a product the sum of the degrees? Over
it is. Over
it is not,
and the reason is a single product of two elements of
. Sorting out
which rings behave like leads to the integral
domains, and to the two facts later chapters use most: a
polynomial ring over an integral domain has no zero
divisors, and its units are the units of .
Throughout, is
a commutative ring (Number Systems: From to , Definition 2.3.1),
and polynomials are coefficient sequences (Definition 4.1.1),
with the sum and product of Definition 4.2.1.
Degree and
leading coefficient
Here is the computation that drives the section.
Multiply
by by
the product formula of Definition 4.2.1,
once in and
once in . The
coefficients of
are and those of are , so
and for . Over the product is , with its
last non-zero coefficient in position . Over the same sums
are read modulo :
,
and the product is , whose last non-zero coefficient sits in
position . The top
coefficient of the product was , the product of
the top coefficients of the factors, and in that product is
(Number Systems: From to , Example (Multiplication modulo six and modulo five)).
To state any of this we need a name for “the position
of the last non-zero coefficient”. A non-zero polynomial
has one, because only finitely many of its coefficients
are non-zero.
The degree of a polynomial is the position of its
last non-zero coefficient; the leading coefficient is
the coefficient sitting there.
Definition
4.3.1 (Degree, Leading Coefficient,
Monic)
Let be a
commutative ring and .
- (a) If , the
degree is the largest with . The
leading coefficient of is , and is
monic if .
- (b) The zero
polynomial has degree , and no
leading coefficient.
Here is
a symbol not in , with the conventions
and
for every , and .
In words: (a) looks along the coefficient sequence
and stops at the last place where it is non-zero; that
place is the degree, and the entry there is the leading
coefficient. A polynomial is monic when that entry is
. Clause (b) gives
the zero polynomial, which has no non-zero coefficient
at all, a degree below every natural number.
Well-definedness. Let , and let be admissible for : for every (Definition 4.1.1).
The set is non-empty, since is not the zero
sequence, and every element of is at most . Read in (Number Systems: From to , Proposition 2.2.3),
is a non-empty
set of integers bounded above, so it has a greatest
element (Number Systems: From to , Proposition 2.3.6).
That element is . Two facts come with it, and every proof
below uses them: The second says that is itself
admissible for ,
and the least admissible : any smaller would leave the
non-zero coefficient beyond it.
Examples.
- In ,
with leading coefficient ; is monic of
degree . The
monomial with
has degree
and leading
coefficient .
- A non-zero constant has degree . The constant has degree , not : degree means “a constant, and
not the zero one”.
- Degree depends on the ring. The integer polynomial
has
degree in ; its coefficients
read in
give , of
degree . Read in
they give
(, ), monic of
degree .
- The degenerate ring. If in , then every is (Number Systems: From to , Proposition 2.3.2
(b)), so ,
and the only polynomial over is the zero sequence.
Every polynomial over the zero ring has degree , and no
polynomial over it is monic. This is why “monic” will
never need the hypothesis : a monic polynomial is non-zero, so its
ring has .
Non-example by minimal change. The
sequence has no degree: the set of its non-zero
positions is all of , which has no
greatest element. It fails exactly the clause “only
finitely many” of Definition 4.1.1,
which is what made bounded above.
↺Second readingWhy
the degree of the zero polynomial is minus
infinity
Any value given to is a convention, and the choice is made so
that the rule “degrees add under products” survives the
zero polynomial. For every , , so the
rule asks for . If were an integer , then in any ring with
the case
, of degree
, would give . No integer
works; a symbol with
does. The order then lets “” include the zero polynomial, which is
what the sets at the end of this section need.
Warning. The leading coefficient is
the coefficient of the highest power,
not the first one written. In ,
the leading coefficient is , and the polynomial is
not monic although its has coefficient . And the zero
polynomial has no leading coefficient at all: “”
silently assumes .
The degree
of a sum
A sum cannot raise the degree, because adding
coefficients position by position creates no non-zero
coefficient beyond the last non-zero ones of the
summands.
Theorem
4.3.1 (Degree of a Sum)
Let be a
commutative ring and . Then with equality when .
Idea. Beyond the larger of the two
degrees both summands have only zero coefficients, so
the sum does too. When one degree is strictly larger,
the other summand contributes at that top position,
and the top coefficient survives.
Proof. Let . If , then , so and both sides are . Otherwise , and for we have and , so and (by the two facts
after Definition 4.3.1
when the polynomial is non-zero, and trivially when it
is ). Hence for every , by Definition 4.2.1
and (F3). So either , with degree , or and its last
non-zero coefficient is at a position . In both cases
.
Now let ; by symmetry , so and . Then , and so and . With the first part, .
The degree
of a product
The opening computation suggests how a product
behaves at the top. In , a term can be non-zero only if
and ; for that leaves exactly one term.
We call this move look at the top
coefficient.
Theorem
4.3.2 (Degree of a Product)
Let be a
commutative ring, let be non-zero, and let , .
- (a) for every
, and
.
Hence for all , zero or
not; and if
or , then
and .
- (b)
if and only if , and then . This
holds in particular
- when has
no zero divisors ( implies or ), for example when
is a field (Theorem 2.1.1 (f));
together with the last clause of (a), then holds for all , zero or
not;
- when is a
unit of (Number Systems: From to , Definition 3.5.1),
in particular when is monic.
In words: (a) says that the product has nothing above
position , and
that what sits at is the product of the two leading
coefficients, in every commutative ring; (b) says that
the degree formula holds precisely when that one product
is non-zero, and names two common situations where it
is.
Idea. The top of a product comes
from the tops of the factors alone. Above every term has a factor
beyond the top of
or beyond the top of ; at exactly one term
escapes, .
So the only question is whether can be , and that is a question
about , not about
polynomials.
Before reading on: which line needs to have no zero
divisors, and which works in every ring?
Proof. (a) Let and , and
consider the term of (Definition 4.2.1).
If , then
. If , then ,
and
(so )
unless
and . So every
term with ,
or with , has a factor , and is by Number Systems: From to , Proposition 2.3.2
(b) with (F6).
For , all terms of are , so by (Σ3) of Lemma 4.1.1 (b)
(with ). For
, every
term with
is , and , so (Σ3) with
leaves
For the inequality, let be
arbitrary. If , every coefficient of is a sum of terms
(Number Systems: From to , Proposition 2.3.2
(b), (F6)), so , and both sides of the inequality are by the
conventions of Definition 4.3.1,
which is also the last clause of (a); likewise if . If and , the left side is
.
Otherwise ,
and since for every , its last non-zero coefficient is at a
position :
.
(b) By (a), is admissible for , and . If this element is
non-zero, then , its last non-zero coefficient is at , and so and
. If it is , then for every
, so
.
For the two situations: and by Definition 4.3.1,
so if has no zero
divisors, . If is a unit and , then , by (F6), (F7), (F5) and Number Systems: From to , Proposition 2.3.2
(b), against ; so . A monic has , a unit since
. This
proves the theorem.
The answer to the prompt. Part (a), including the
inequality, uses only (F1)–(F7), (F9), Number Systems: From to , Proposition 2.3.2
(b), (Σ3) of Lemma 4.1.1
(b), and the two facts after Definition 4.3.1
and its conventions, all valid in every commutative
ring: it holds over as over . Part (b) as an
equivalence also holds in every ring. “No zero divisors”
enters in one line, the first sentence of the last
paragraph, and only to decide that ; the unit
hypothesis is a second, different way to decide the same
thing.
Quick check. Let with
and
. What
are , and , where ? Can you
say what is?
Solution. and , by Theorem 4.3.2
(b): is a field
(Number Systems: From to , Theorem 2.4.3),
so it has no zero divisors. , by the
equality case of Theorem 4.3.1,
since . The
degree of
is not determined: it is if , at most if is monic, and if . The difference
has coefficient
at position , and
that coefficient decides.
Integral
domains
Theorem 4.3.2
(b) asks for one property of : a product of two
non-zero elements is non-zero. The integers have it,
every field has it, lacks it. A ring
that has it, and is not the zero ring, gets a name.
An integral domain is a commutative ring in which
a product is zero only when a factor is zero.
Definition
4.3.2 (Integral Domain)
An integral domain is a commutative
ring with and no
zero divisors: for all , if , then or .
In words: the zero ring is excluded, and the rule “a
product vanishes only if a factor vanishes”, the rule
used to solve at school, holds in . Equivalently, by
contraposition: the product of two non-zero elements is
non-zero.
Example
(Which Rings Are Integral Domains)
Decide which of the following are integral domains:
; a field, and
in particular
and for a
prime ; for not prime (Sets, Relations, and Cardinality, Definition 2.2.2);
; and with
componentwise operations, and .
Solution. : yes. It is a
commutative ring with (Number Systems: From to , Theorem 2.3.1),
and an ordered commutative ring (Number Systems: From to , Theorem 2.3.4),
so implies
or by Number Systems: From to , Proposition 2.3.5
(f).
A field: yes. A field has (Definition 2.1.1) and no
zero divisors (Theorem 2.1.1 (f)). So
(Number Systems: From to , Theorem 2.4.3)
and for
prime (Number Systems: From to , Theorem 3.5.2)
are integral domains.
for
not prime:
no. By Sets, Relations, and Cardinality, Definition 2.2.2,
has a positive
divisor ; write . As in the proof of Number Systems: From to , Theorem 3.5.2
(),
and
.
Then :
otherwise
with ,
and Number Systems: From to , Proposition 3.1.1
(e) would give , against . Likewise . But , by the multiplication of Number Systems: From to , Definition 3.4.2
(Number Systems: From to , Theorem 3.4.1
(b)).
:
no. It has (Number Systems: From to , Theorem 3.4.3
(c)); it is the zero ring.
: no. Each ring axiom holds
componentwise, because it holds in each coordinate in
, with zero
and one
.
But , with both factors
non-zero.
Putting the second and third answers together with Number Systems: From to , Theorem 3.5.2:
for , is an integral
domain if and only if it is a field, if and only if
is prime.
Now the payoff. Over an integral domain the degree
formula holds without exception, and the polynomial ring
inherits the property it was built from.
Corollary
4.3.3 (Polynomial Rings over Integral
Domains)
Let be a
commutative ring.
- (a) If is an integral domain,
and
, then or . So is an integral
domain.
- (b) (Cancellation)
If is an integral
domain, , and , then .
- (c) Conversely, if
is an integral
domain, then so is .
Proof. (a) Let and . Since has no zero divisors,
Theorem 4.3.2
(b) gives , so and
. By
contraposition, implies or . Moreover is a commutative
ring (Theorem 4.2.4
(a)), and
in because
in (Theorem 4.2.4
(b)). So is an
integral domain.
(b) By (F9) of and Number Systems: From to , Proposition 2.3.2
(c), . By (a) and , , so (add
to both sides, with (F2), (F1), (F4), (F3)).
(c) The map from to is injective and
preserves sums, products and (Theorem 4.2.4
(b)). If in
, then the one of
, which is
, equals , the zero
polynomial, against in .
If in , then is the zero polynomial, so or , and by
injectivity
or .
With , Definition 4.3.1,
Theorem 4.3.2
(b) and part (a) are the polynomial algebra that the
ordered field of Number Systems: From to , Example (A Non-Archimedean Ordered Field)
took on school credit: the degree and the leading
coefficient of a polynomial, the rule , and
the absence of zero divisors in (the letter there plays the part of
our ). Building
fractions of
polynomials is a further step, which this volume does
not take.
The cancellation law (b) is what makes it legitimate
to “divide both sides by ” in an identity of
polynomials over , or . Over it fails: with and .
Units of a
polynomial ring
The degree also tells us which polynomials can be
inverted. If
and degrees add, then , so both are constants.
Proof. Let be a unit of , with . Since in (Corollary 4.3.3
(a)) and (Number Systems: From to , Proposition 2.3.2
(b) in the commutative ring , Theorem 4.2.4
(a)), we have , and likewise . By Theorem 4.3.2
(b), . Two natural numbers with sum are both , so :
and with , ( is admissible for and by the facts after Definition 4.3.1,
so Proposition 4.2.1
with
applies). Then (Theorem 4.2.4
(b)), so by
injectivity of , and .
Conversely, if with , then , so the constant is a unit of .
For a field ,
consists
of the non-zero elements (by (F8), and is not a unit since
by Number Systems: From to , Proposition 2.3.2
(b) and (F6)). So the units of are the non-zero
constants. Over , an integral domain
(Example (Which Rings Are Integral Domains)),
the units of
are the constants
and , since
(the examples after Number Systems: From to , Definition 3.5.1):
is a unit of
and not of
.
Warning. Without “integral
domain”, non-constant units exist. In , by the product formula: the coefficients are
,
and . So
is a unit
of degree , its
own inverse. The proof above breaks at Theorem 4.3.2
(b): , so degrees do not add.
Polynomials
of bounded degree
Many later arguments fix a bound on the degree:
interpolation through points looks for a polynomial of degree at
most , and the
linear-algebra companion treats such polynomials as a
vector space. Two sets get names.
Definition
4.3.3 (Polynomials of Degree at Most n)
Let be a
commutative ring and . The set of polynomials of degree
at most
is
There are two ways to describe this set, and it is
worth seeing that they agree. A polynomial has exactly when
for every
: for by the two facts
after Definition 4.3.1,
and for both
hold. By Proposition 4.2.1,
such a is the sum
of its first monomials, and every such sum, with
arbitrary, has its coefficients beyond equal to . So The first description is about degrees; the
second is the one used for computing. Some of the , including , may be , and (all
; ).
The set is closed under the operations that do not
raise the degree. If , then by
Theorem 4.3.1;
, since for ; and for every constant , since for (Theorem 4.2.4
(d), Number Systems: From to , Proposition 2.3.2
(b)). It is not closed under products: when .
Example
(Membership in Polynomials of Bounded Degree)
Which of , ,
, and lie in
?
Which lie in ?
Solution. The degrees are , , , and : the last expression is
the polynomial ,
since its coefficient in position is . An
expression containing can still have degree
below ; the degree
belongs to the polynomial, not to the way it is written.
So all five lie in , and
exactly and
lie in , the set
of constants.
Definition
4.3.4 (Polynomials of Degree Exactly n)
Let be a
commutative ring and . The set of polynomials of degree
exactly
is .
The second description also counts these sets over a
finite ring. Over , whose elements are (Number Systems: From to , Theorem 3.4.3
(b)), consists of the polynomials , and distinct
pairs
give distinct polynomials, since and are the coefficients
(Proposition 4.2.1).
So it has elements, one for each pair. Those in are the
ones with : , that is of them.
The remaining are
the constants .
Example
(Comparing the Two Sets)
Decide whether each of , and lies in and in
. Then
express through and for , and decide whether is closed
under addition.
Solution. has degree , so it lies in both
sets. has
degree : it lies
in
but not in . The zero polynomial has degree : it lies in and not in
.
For , a
polynomial of degree at most has degree exactly
or degree at most
, and not
both, so
is
not closed under addition: and both have degree
, and their sum
has degree
. It does not
contain either.
In the linear-algebra companion, the first of the two
sets is a subspace of the space of polynomials and the
second is not, for exactly these two reasons.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) In the proof of
Theorem 4.3.2,
where is the hypothesis “ has no zero divisors”
used?
- (b) Run the proof of
Theorem 4.3.2
(a) on
and ,
once over and
once over :
what is , and
which element is ?
- (c) True or false:
for all . Justify your answer.
- (d) Give the idea of
the proof of Theorem 4.3.2
in two sentences.
- (e) For which is an integral
domain?
Solution.
(a) Only in (b),
to conclude that from and . Part (a), the vanishing above and the value at
, holds in
every commutative ring.
(b) , , , and : over this is , so ; over it is , so (in fact
, by the warning
after the theorem).
(c) False: , give , of degree
, while
. Equality is only guaranteed when (Theorem 4.3.1).
(d) In the -th coefficient of with , every term
but has a
factor beyond the top of or of , hence vanishes. So the
product’s top is the product of the tops, and the degree
formula holds exactly when that one product in is non-zero.
(e) Exactly for
prime. If is prime, is an integral
domain (Example (Which Rings Are Integral Domains)),
so is
one by Corollary 4.3.3
(a). If is not
prime, is
not an integral domain (Example (Which Rings Are Integral Domains)),
so is
not one by Corollary 4.3.3
(c).
B. Practice
Exercise
(B1: Put the proof in order)
Below are eight lines. Six of them, in a suitable
order, form a proof of Corollary 4.3.3
(a), “if is an
integral domain and in ,
then or ”; two are
distractors. Write an admissible order, say which other
orders are admissible, and say why each distractor
fails.
- (i) has no zero divisors,
so .
- (ii) By
contraposition, implies or .
- (iii) Let and
,
so and
.
- (iv) , and this is non-zero because each of
its terms is non-zero.
- (v) Hence has a non-zero
coefficient, so .
- (vi) Suppose and .
- (vii) By Theorem 4.3.2
(a), .
- (viii) because
is a commutative
ring.
Solution. An admissible order is
(vi), (iii), (vii), (i), (v), (ii). Line (vi) must come
first: it introduces the assumptions that and need (the degree of the
zero polynomial is , not a position).
Line (iii) must come before (vii) and (i), which use
, , , . Lines (vii) and (i)
do not use each other, so they may come in either order;
both must precede (v), which combines them. Line (ii)
closes the contrapositive and comes last. So the
admissible orders are exactly
Line (iv) fails twice: the terms with are , not non-zero, and even
a sum of non-zero terms can be (). Line
(viii) gives a false reason: in the commutative ring
, and but . The
hypothesis that does the work is “no zero divisors”,
which is line (i).
Exercise
(B2: Units in polynomial rings)
- (a) Show that for
every commutative ring , each unit of is a unit of : .
- (b) Find the inverse
of in
.
- (c) Show that is a
unit of .
Hint: in (b), what is in ?
Solution.
(a) The second
paragraph of the proof of Proposition 4.3.4
uses nothing about beyond Theorem 4.2.4
(b): if in
, then , which is the one of .
(b) By the
product formula, has coefficients , and , so
it equals . Since
, the
inverse is . (It is unique by Number Systems: From to , Definition 3.5.1.)
(c) Let , with coefficients . The
coefficients of are, by the product formula, and . In , , so , and is a unit, its own
inverse. Again is not an
integral domain, and Proposition 4.3.4
does not apply.
Solution. Since has the
elements (Number Systems: From to , Theorem 3.4.3
(b)), the non-zero elements form a
set with
elements.
At most . By the
description after Definition 4.3.3,
is
the set of polynomials with for every . By Exercise (B1: Polynomials of bounded length as tuples)
with , is a bijection from this set onto (for , with read as , as there). A tuple
is the same as the function , , so by Sets, Relations, and Cardinality, Exercise (C2: Counting products and functions)
(b) there are of them. So has
elements.
Exactly . The same
bijection maps onto the tuples with
: such a
tuple is a pair of an arbitrary ,
choices as
before, and a non-zero , choices. By Sets, Relations, and Cardinality, Exercise (C2: Counting products and functions)
(a), there are of them. (For these are the non-zero constants,
and .) For example, over there are polynomials of
degree at most
and
of degree exactly .
C. Going deeper
Exercise
(C1: Exit check: polynomial rings over integral
domains)
Let be a
commutative ring. Prove Theorem 4.3.2
(a) and (b) (for (b), the equivalence, the leading
coefficient, and the case of no zero divisors), and then
prove Corollary 4.3.3
(a) and (c).
Solution. Degree of a
product. Let , , , so , , and for ,
for . Let
and
. If
, then
. If , then , with
equality only when and ; otherwise . So for every term
of
is (Number Systems: From to , Proposition 2.3.2
(b) with (F6)), and ; for , every term with is , and the sum is by (Σ3) of Lemma 4.1.1.
Hence when , and trivially when ; if or , then and both sides are
.
If , then
has a non-zero coefficient at and none beyond, so
and . If , all coefficients from on vanish, and
.
No zero divisors. Let be an integral domain
and .
Then ,
since has no zero
divisors, so has
a non-zero coefficient and . Contraposition
gives (a); with a commutative ring
(Theorem 4.2.4
(a)) and because in ,
is an integral
domain.
The converse. Let be an integral
domain. If in
, the one of is the zero
polynomial, a contradiction. If in , then (Lemma 4.2.2
(b)), so one factor is the zero polynomial, and its only
possibly non-zero coefficient, or , is .
Marking scheme. (10 points)
- 3: shows that every coefficient of above vanishes, treating
both cases
and of the
index argument, and the case or of the
inequality.
- 2: shows that ,
with the other terms of that coefficient shown to be
.
- 1: derives and from
, and that this holds when has no zero
divisors.
- 1: shows the converse direction of the equivalence:
gives .
- 2: concludes that has no zero divisors
and in
.
- 1: proves the converse through the constants.
Fatal errors (0 for the step): “the leading term of
is ”
without showing that the other terms of the -th coefficient
vanish; using in an arbitrary commutative
ring. A proof through the lowest
non-zero coefficients (as in the repair of Exercise (C2: Find the error))
earns the same points for (a) of the corollary, with the
index argument mirrored.
Exercise
(C2: Find the error)
Here is an argument.
Claim. If is an integral domain,
then has no
zero divisors.
Proof. Let be
non-zero. (1) Then and . (2) The constant term of is . (3)
Since has no zero
divisors, . (4) So .
Is the claim true? Does the argument prove it? If
not, name the first line that fails, say why, give a
counterexample to that step, and repair the proof.
Solution. The claim is true: it is
Corollary 4.3.3
(a). The argument does not prove it.
The failing line is (1). A non-zero
polynomial may have constant term : is non-zero, with
. That is a
counterexample to the step from “” to “”. The step
generalizes from the constants, where it is true, to all
polynomials, where no result supports it: it cites a
general “fact” that is neither proved nor true, entry
(N9) of Logic and Proof, Example (What is not allowed).
Lines (2), (3) and (4) are correct: (2) is the product
formula at ,
and (3), (4) follow once (1) is granted.
Two repairs. The book’s repair looks at the
top coefficients: with , , Theorem 4.3.2
(a) gives .
The argument can also be repaired at the
bottom. Let and be the least indices
with
and ;
they exist because the sets of non-zero positions are
non-empty subsets of (Number Systems: From to , Proposition 2.3.6,
bounded below by ). In , a term
with has
, and a term
with has
, so . By
(Σ3), , which is non-zero since has no zero divisors.
So . This
is the index argument of Theorem 4.3.2,
mirrored.