4.3  Degree, Leading Coefficients, and Integral Domains

Section 4.2 made R[x] a commutative ring for every commutative ring R (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 Z it is. Over Z/6Z it is not, and the reason is a single product of two elements of R. Sorting out which rings behave like Z 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 R.

Throughout, R is a commutative ring (Number Systems: From N to R, Definition 2.3.1), and polynomials are coefficient sequences (Definition 4.1.1), with the sum and product of Definition 4.2.1.

4.3.1. Degree and leading coefficient

Here is the computation that drives the section. Multiply p=2x+1 by q=3x2+x by the product formula of Definition 4.2.1, once in Z[x] and once in (Z/6Z)[x]. The coefficients of p are 1,2,0,0,… and those of q are 0,1,3,0,…, so (pq)0=p0q0=0,(pq)1=p0q1+p1q0=1,(pq)2=p0q2+p1q1+p2q0=3+2=5,(pq)3=p0q3+p1q2+p2q1+p3q0=2⋅3=6, and (pq)k=0 for k≥4. Over Z the product is 6x3+5x2+x, with its last non-zero coefficient in position 3=1+2. Over Z/6Z the same sums are read modulo 6: (pq)3=[6]=[0], and the product is [5]x2+x, whose last non-zero coefficient sits in position 2. The top coefficient of the product was 2⋅3, the product of the top coefficients of the factors, and in Z/6Z that product is [0] (Number Systems: From N to R, 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 R be a commutative ring and p∈R[x].

  • (a) If p≠0, the degree deg⁡p is the largest n∈N with pn≠0. The leading coefficient of p is lc(p):=pdeg⁡p, and p is monic if lc(p)=1.
  • (b) The zero polynomial has degree deg⁡0:=−∞, and no leading coefficient.

Here −∞ is a symbol not in N, with the conventions −∞<n and −∞+n=n+(−∞)=−∞ for every n∈N, 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 1. Clause (b) gives the zero polynomial, which has no non-zero coefficient at all, a degree below every natural number.

Well-definedness. Let p≠0, and let N be admissible for p: pk=0 for every k>N (Definition 4.1.1). The set S:={n∈N:pn≠0} is non-empty, since p is not the zero sequence, and every element of S is at most N. Read in Z⊇N (Number Systems: From N to R, Proposition 2.2.3), S is a non-empty set of integers bounded above, so it has a greatest element (Number Systems: From N to R, Proposition 2.3.6). That element is deg⁡p. Two facts come with it, and every proof below uses them: pdeg⁡p≠0,pk=0  for every k>deg⁡p. The second says that deg⁡p is itself admissible for p, and the least admissible N: any smaller N would leave the non-zero coefficient pdeg⁡p beyond it.

Examples.

  • In Q[x], deg⁡(3x2−x+2)=2 with leading coefficient 3; x2+1 is monic of degree 2. The monomial axn with a≠0 has degree n and leading coefficient a.
  • A non-zero constant a=ax0 has degree 0. The constant 0 has degree −∞, not 0: degree 0 means “a constant, and not the zero one”.
  • Degree depends on the ring. The integer polynomial 6x3+5x2+x has degree 3 in Z[x]; its coefficients read in Z/6Z give [5]x2+x, of degree 2. Read in Z/5Z they give x3+x ([6]=[1], [5]=[0]), monic of degree 3.
  • The degenerate ring. If 1=0 in R, then every a∈R is a=a⋅1=a⋅0=0 (Number Systems: From N to R, Proposition 2.3.2 (b)), so R={0}, and the only polynomial over R 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 1≠0: a monic polynomial is non-zero, so its ring has 1=lc(p)≠0.

Non-example by minimal change. The sequence (1,1,1,…) has no degree: the set S of its non-zero positions is all of N, which has no greatest element. It fails exactly the clause “only finitely many” of Definition 4.1.1, which is what made S bounded above.

Second readingWhy the degree of the zero polynomial is minus infinity

Any value given to deg⁡0 is a convention, and the choice is made so that the rule “degrees add under products” survives the zero polynomial. For every q, 0⋅q=0, so the rule asks for deg⁡0=deg⁡0+deg⁡q. If deg⁡0 were an integer d, then in any ring with 1≠0 the case q=x, of degree 1, would give d=d+1. No integer works; a symbol −∞ with −∞+n=−∞ does. The order −∞<n then lets “deg⁡p≤n” include the zero polynomial, which is what the sets R[x]≤n at the end of this section need.

Warning. The leading coefficient is the coefficient of the highest power, not the first one written. In 2+x−5x3∈Q[x], the leading coefficient is −5, and the polynomial is not monic although its x has coefficient 1. And the zero polynomial has no leading coefficient at all: “lc(p)” silently assumes p≠0.

4.3.2. 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 R be a commutative ring and p,q∈R[x]. Then deg⁡(p+q)≤max(deg⁡p,deg⁡q), with equality when deg⁡p≠deg⁡q.

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 0 at that top position, and the top coefficient survives.

Proof. Let M:=max(deg⁡p,deg⁡q). If M=−∞, then p=q=0, so p+q=0 and both sides are −∞. Otherwise M∈N, and for k>M we have k>deg⁡p and k>deg⁡q, so pk=0 and qk=0 (by the two facts after Definition 4.3.1 when the polynomial is non-zero, and trivially when it is 0). Hence (p+q)k=pk+qk=0+0=0 for every k>M, by Definition 4.2.1 and (F3). So either p+q=0, with degree −∞<M, or p+q≠0 and its last non-zero coefficient is at a position ≤M. In both cases deg⁡(p+q)≤M.

Now let deg⁡p≠deg⁡q; by symmetry deg⁡q<deg⁡p, so p≠0 and M=deg⁡p. Then qM=0, and (p+q)M=pM+qM=pM+0=pM≠0, so p+q≠0 and deg⁡(p+q)≥M. With the first part, deg⁡(p+q)=M.

Remark. The inequality is strict exactly when deg⁡p=deg⁡q=M∈N and the leading coefficients cancel, pM+qM=0: for example (x2+x)+(−x2+1)=x+1, of degree 1<2, and x+(−x)=0, of degree −∞<1.

4.3.3. The degree of a product

The opening computation suggests how a product behaves at the top. In (pq)k=∑i=0kpiqk−i, a term can be non-zero only if i≤deg⁡p and k−i≤deg⁡q; for k=deg⁡p+deg⁡q that leaves exactly one term. We call this move look at the top coefficient.

Theorem 4.3.2 (Degree of a Product)

Let R be a commutative ring, let p,q∈R[x] be non-zero, and let m:=deg⁡p, n:=deg⁡q.

  • (a) (pq)k=0 for every k>m+n, and (pq)m+n=lc(p)lc(q). Hence deg⁡(pq)≤deg⁡p+deg⁡q for all p,q∈R[x], zero or not; and if p=0 or q=0, then pq=0 and deg⁡(pq)=−∞=deg⁡p+deg⁡q.
  • (b) deg⁡(pq)=m+n if and only if lc(p)lc(q)≠0, and then lc(pq)=lc(p)lc(q). This holds in particular
    • when R has no zero divisors (ab=0 implies a=0 or b=0), for example when R is a field (Theorem 2.1.1 (f)); together with the last clause of (a), deg⁡(pq)=deg⁡p+deg⁡q then holds for all p,q∈R[x], zero or not;
    • when lc(p) is a unit of R (Number Systems: From N to R, Definition 3.5.1), in particular when p is monic.

In words: (a) says that the product has nothing above position m+n, and that what sits at m+n 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 m+n every term piqk−i has a factor beyond the top of p or beyond the top of q; at m+n exactly one term escapes, pmqn. So the only question is whether pmqn can be 0, and that is a question about R, not about polynomials.

Before reading on: which line needs R to have no zero divisors, and which works in every ring?

Proof. (a) Let k≥m+n and 0≤i≤k, and consider the term piqk−i of (pq)k (Definition 4.2.1). If i>m, then pi=0. If i≤m, then k−i≥k−m≥n, and k−i>n (so qk−i=0) unless k=m+n and i=m. So every term with i≠m, or with k>m+n, has a factor 0, and is 0 by Number Systems: From N to R, Proposition 2.3.2 (b) with (F6).

For k>m+n, all terms of (pq)k are 0, so (pq)k=0 by (Σ3) of Lemma 4.1.1 (b) (with j=0). For k=m+n, every term with i≠m is 0, and m≤m+n, so (Σ3) with j=m leaves (pq)m+n=pmqn=lc(p)lc(q).

For the inequality, let p,q∈R[x] be arbitrary. If p=0, every coefficient of pq is a sum of terms 0⋅qk−i=0 (Number Systems: From N to R, Proposition 2.3.2 (b), (F6)), so pq=0, 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 q=0. If p,q≠0 and pq=0, the left side is −∞<m+n. Otherwise pq≠0, and since (pq)k=0 for every k>m+n, its last non-zero coefficient is at a position ≤m+n: deg⁡(pq)≤m+n.

(b) By (a), m+n is admissible for pq, and (pq)m+n=lc(p)lc(q). If this element is non-zero, then pq≠0, its last non-zero coefficient is at m+n, and so deg⁡(pq)=m+n and lc(pq)=(pq)m+n=lc(p)lc(q). If it is 0, then (pq)k=0 for every k≥m+n, so deg⁡(pq)<m+n.

For the two situations: pm≠0 and qn≠0 by Definition 4.3.1, so if R has no zero divisors, pmqn≠0. If u:=pm is a unit and uqn=0, then qn=(u−1u)qn=u−1(uqn)=u−1⋅0=0, by (F6), (F7), (F5) and Number Systems: From N to R, Proposition 2.3.2 (b), against qn≠0; so pmqn≠0. A monic p has pm=1, a unit since 1⋅1=1. This proves the theorem.

The answer to the prompt. Part (a), including the inequality, uses only (F1)–(F7), (F9), Number Systems: From N to R, 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 Z/6Z as over Q. 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 pmqn≠0; the unit hypothesis is a second, different way to decide the same thing.

Warning. The degree formula is not automatic. In (Z/6Z)[x], the opening computation gives ([2]x+[1])([3]x2+x)=[5]x2+x, a product of polynomials of degrees 1 and 2 that has degree 2, not 3. The coefficient (pq)3 is lc(p)lc(q)=[2][3]=[6]=[0] (Number Systems: From N to R, Example (Multiplication modulo six and modulo five)). Part (a) of Theorem 4.3.2 holds here; the hypothesis of (b) fails.

Quick check. Let p,q∈Q[x] with deg⁡p=3 and deg⁡q=2. What are deg⁡(pq), deg⁡(p+q) and deg⁡(p2), where p2:=pp? Can you say what deg⁡(p−x3) is?

Solution. deg⁡(pq)=5 and deg⁡(p2)=6, by Theorem 4.3.2 (b): Q is a field (Number Systems: From N to R, Theorem 2.4.3), so it has no zero divisors. deg⁡(p+q)=3, by the equality case of Theorem 4.3.1, since 3≠2. The degree of p−x3 is not determined: it is 3 if lc(p)≠1, at most 2 if p is monic, and −∞ if p=x3. The difference has coefficient lc(p)−1 at position 3, and that coefficient decides.

4.3.4. Integral domains

Theorem 4.3.2 (b) asks for one property of R: a product of two non-zero elements is non-zero. The integers have it, every field has it, Z/6Z 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 R with 1≠0 and no zero divisors: for all a,b∈R, if ab=0, then a=0 or b=0.

In words: the zero ring is excluded, and the rule “a product vanishes only if a factor vanishes”, the rule used to solve (x−1)(x−2)=0 at school, holds in R. 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: Z; a field, and in particular Q and Z/pZ for a prime p; Z/nZ for n≥2 not prime (Sets, Relations, and Cardinality, Definition 2.2.2); Z/1Z; and Z×Z with componentwise operations, (a,b)+(c,d):=(a+c,b+d) and (a,b)(c,d):=(ac,bd).

Solution. Z: yes. It is a commutative ring with 1≠0 (Number Systems: From N to R, Theorem 2.3.1), and an ordered commutative ring (Number Systems: From N to R, Theorem 2.3.4), so ab=0 implies a=0 or b=0 by Number Systems: From N to R, Proposition 2.3.5 (f).

A field: yes. A field has 1≠0 (Definition 2.1.1) and no zero divisors (Theorem 2.1.1 (f)). So Q (Number Systems: From N to R, Theorem 2.4.3) and Z/pZ for p prime (Number Systems: From N to R, Theorem 3.5.2) are integral domains.

Z/nZ for n≥2 not prime: no. By Sets, Relations, and Cardinality, Definition 2.2.2, n has a positive divisor r∉{1,n}; write n=rs. As in the proof of Number Systems: From N to R, Theorem 3.5.2 (⇒), 1<r<n and 0<s<n. Then [r]≠[0]: otherwise n∣r with n,r>0, and Number Systems: From N to R, Proposition 3.1.1 (e) would give n≤r, against r<n. Likewise [s]≠[0]. But [r][s]=[rs]=[n]=[0], by the multiplication of Number Systems: From N to R, Definition 3.4.2 (Number Systems: From N to R, Theorem 3.4.1 (b)).

Z/1Z: no. It has [1]=[0] (Number Systems: From N to R, Theorem 3.4.3 (c)); it is the zero ring.

Z×Z: no. Each ring axiom holds componentwise, because it holds in each coordinate in Z, with zero (0,0) and one (1,1)≠(0,0). But (1,0)(0,1)=(1⋅0,0⋅1)=(0,0), with both factors non-zero.

Putting the second and third answers together with Number Systems: From N to R, Theorem 3.5.2: for n≥2, Z/nZ is an integral domain if and only if it is a field, if and only if n 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 R be a commutative ring.

  • (a) If R is an integral domain, p,q∈R[x] and pq=0, then p=0 or q=0. So R[x] is an integral domain.
  • (b) (Cancellation) If R is an integral domain, p,q,r∈R[x], pq=pr and p≠0, then q=r.
  • (c) Conversely, if R[x] is an integral domain, then so is R.

Proof. (a) Let p≠0 and q≠0. Since R has no zero divisors, Theorem 4.3.2 (b) gives deg⁡(pq)=deg⁡p+deg⁡q∈N, so deg⁡(pq)≠−∞ and pq≠0. By contraposition, pq=0 implies p=0 or q=0. Moreover R[x] is a commutative ring (Theorem 4.2.4 (a)), and 1≠0 in R[x] because 1≠0 in R (Theorem 4.2.4 (b)). So R[x] is an integral domain.

(b) By (F9) of R[x] and Number Systems: From N to R, Proposition 2.3.2 (c), p(q−r)=pq−pr=0. By (a) and p≠0, q−r=0, so q=r (add r to both sides, with (F2), (F1), (F4), (F3)).

(c) The map a↦ax0 from R to R[x] is injective and preserves sums, products and 1 (Theorem 4.2.4 (b)). If 1=0 in R, then the one of R[x], which is 1x0, equals 0x0, the zero polynomial, against 1≠0 in R[x]. If ab=0 in R, then (ax0)(bx0)=(ab)x0=0x0 is the zero polynomial, so ax0=0x0 or bx0=0x0, and by injectivity a=0 or b=0.

With R=Q, Definition 4.3.1, Theorem 4.3.2 (b) and part (a) are the polynomial algebra that the ordered field Q(t) of Number Systems: From N to R, Example (A Non-Archimedean Ordered Field) took on school credit: the degree and the leading coefficient of a polynomial, the rule lc(pq)=lc(p)lc(q), and the absence of zero divisors in Q[t] (the letter t there plays the part of our x). Building fractions p/q 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 p” in an identity of polynomials over Z, Q or Fp. Over Z/6Z it fails: [2]⋅[3]x=[0]=[2]⋅[0] with [2]≠[0] and [3]x≠[0].

4.3.5. Units of a polynomial ring

The degree also tells us which polynomials can be inverted. If pq=1 and degrees add, then deg⁡p+deg⁡q=0, so both are constants.

Proposition 4.3.4 (Units of a Polynomial Ring)

Let R be an integral domain. Then the units of R[x] are exactly the constants a with a∈R× (Number Systems: From N to R, Definition 3.5.1): identifying a with ax0, (R[x])×=R×.

Proof. Let p be a unit of R[x], with pq=1. Since 1≠0 in R[x] (Corollary 4.3.3 (a)) and 0⋅q=0 (Number Systems: From N to R, Proposition 2.3.2 (b) in the commutative ring R[x], Theorem 4.2.4 (a)), we have p≠0, and likewise q≠0. By Theorem 4.3.2 (b), deg⁡p+deg⁡q=deg⁡1=0. Two natural numbers with sum 0 are both 0, so deg⁡p=deg⁡q=0: p=ax0 and q=bx0 with a=p0, b=q0∈R (0 is admissible for p and q by the facts after Definition 4.3.1, so Proposition 4.2.1 with N=0 applies). Then (ab)x0=(ax0)(bx0)=1x0 (Theorem 4.2.4 (b)), so ab=1 by injectivity of a↦ax0, and a∈R×.

Conversely, if a∈R× with ab=1, then (ax0)(bx0)=(ab)x0=1x0, so the constant a is a unit of R[x].

For a field F, F× consists of the non-zero elements (by (F8), and 0 is not a unit since 0⋅b=0≠1 by Number Systems: From N to R, Proposition 2.3.2 (b) and (F6)). So the units of F[x] are the non-zero constants. Over Z, an integral domain (Example (Which Rings Are Integral Domains)), the units of Z[x] are the constants 1 and −1, since Z×={1,−1} (the examples after Number Systems: From N to R, Definition 3.5.1): 2 is a unit of Q[x] and not of Z[x].

Warning. Without “integral domain”, non-constant units exist. In (Z/4Z)[x], (1+[2]x)2=1+[4]x+[4]x2=1, by the product formula: the coefficients are 1⋅1, 1⋅[2]+[2]⋅1 and [2][2]. So 1+[2]x is a unit of degree 1, its own inverse. The proof above breaks at Theorem 4.3.2 (b): lc(p)lc(p)=[2][2]=[0], so degrees do not add.

4.3.6. Polynomials of bounded degree

Many later arguments fix a bound on the degree: interpolation through n+1 points looks for a polynomial of degree at most n, 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 R be a commutative ring and n∈N. The set of polynomials of degree at most n is R[x]≤n:={p∈R[x]:deg⁡p≤n}.

There are two ways to describe this set, and it is worth seeing that they agree. A polynomial has deg⁡p≤n exactly when pk=0 for every k>n: for p≠0 by the two facts after Definition 4.3.1, and for p=0 both hold. By Proposition 4.2.1, such a p is the sum p0+p1x+⋯+pnxn of its first n+1 monomials, and every such sum, with a0,…,an∈R arbitrary, has its coefficients beyond n equal to 0. So R[x]≤n={a0+a1x+⋯+anxn:a0,…,an∈R}. The first description is about degrees; the second is the one used for computing. Some of the ai, including an, may be 0, and 0∈R[x]≤n (all ai=0; −∞≤n).

The set is closed under the operations that do not raise the degree. If p,q∈R[x]≤n, then p+q∈R[x]≤n by Theorem 4.3.1; −p∈R[x]≤n, since (−p)k=−pk=−0=0 for k>n; and ap∈R[x]≤n for every constant a, since (ap)k=apk=a⋅0=0 for k>n (Theorem 4.2.4 (d), Number Systems: From N to R, Proposition 2.3.2 (b)). It is not closed under products: xn⋅x∉R[x]≤n when 1≠0.

Example (Membership in Polynomials of Bounded Degree)

Which of 3x2−2x+1, 5x+7, −4, 0 and x3−x3+x lie in Q[x]≤2? Which lie in Q[x]≤0?

Solution. The degrees are 2, 1, 0, −∞ and 1: the last expression is the polynomial x, since its coefficient in position 3 is 1+(−1)=0. An expression containing x3 can still have degree below 3; the degree belongs to the polynomial, not to the way it is written. So all five lie in Q[x]≤2, and exactly −4 and 0 lie in Q[x]≤0, the set of constants.

Definition 4.3.4 (Polynomials of Degree Exactly n)

Let R be a commutative ring and n∈N. The set of polynomials of degree exactly n is R[x]=n:={p∈R[x]:deg⁡p=n}.

The second description also counts these sets over a finite ring. Over F3=Z/3Z, whose elements are 0,1,2 (Number Systems: From N to R, Theorem 3.4.3 (b)), F3[x]≤1 consists of the polynomials a0+a1x, and distinct pairs (a0,a1) give distinct polynomials, since a0 and a1 are the coefficients (Proposition 4.2.1). So it has 3⋅3=9 elements, one for each pair. Those in F3[x]=1 are the ones with a1≠0: x,x+1,x+2,2x,2x+1,2x+2, that is 3⋅2=6 of them. The remaining 3 are the constants 0,1,2.

Example (Comparing the Two Sets)

Decide whether each of x2+1, 3x−2 and 0 lies in Q[x]≤2 and in Q[x]=2. Then express R[x]≤n through R[x]=n and R[x]≤n−1 for n≥1, and decide whether Q[x]=2 is closed under addition.

Solution. x2+1 has degree 2, so it lies in both sets. 3x−2 has degree 1: it lies in Q[x]≤2 but not in Q[x]=2. The zero polynomial has degree −∞: it lies in Q[x]≤2 and not in Q[x]=2.

For n≥1, a polynomial of degree at most n has degree exactly n or degree at most n−1, and not both, so R[x]≤n=R[x]=n∪R[x]≤n−1,R[x]=n∩R[x]≤n−1=∅.

Q[x]=2 is not closed under addition: x2+x and −x2+1 both have degree 2, and their sum x+1 has degree 1. It does not contain 0 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.

4.3.7. Exercises

A. Check your understanding

Exercise (A1)
  • (a) In the proof of Theorem 4.3.2, where is the hypothesis “R has no zero divisors” used?
  • (b) Run the proof of Theorem 4.3.2 (a) on p=2x+1 and q=3x2+x, once over Z and once over Z/6Z: what is m+n, and which element is (pq)m+n?
  • (c) True or false: deg⁡(p+q)=max(deg⁡p,deg⁡q) for all p,q∈Q[x]. Justify your answer.
  • (d) Give the idea of the proof of Theorem 4.3.2 in two sentences.
  • (e) For which n≥2 is (Z/nZ)[x] an integral domain?

Solution.

  • (a) Only in (b), to conclude that lc(p)lc(q)≠0 from lc(p)≠0 and lc(q)≠0. Part (a), the vanishing above m+n and the value at m+n, holds in every commutative ring.

  • (b) m=1, n=2, m+n=3, and (pq)3=p1q2=2⋅3: over Z this is 6≠0, so deg⁡(pq)=3; over Z/6Z it is [6]=[0], so deg⁡(pq)<3 (in fact 2, by the warning after the theorem).

  • (c) False: p=x, q=−x give p+q=0, of degree −∞, while max(deg⁡p,deg⁡q)=1. Equality is only guaranteed when deg⁡p≠deg⁡q (Theorem 4.3.1).

  • (d) In the k-th coefficient of pq with k≥m+n, every term but pmqn has a factor beyond the top of p or of q, hence vanishes. So the product’s top is the product of the tops, and the degree formula holds exactly when that one product in R is non-zero.

  • (e) Exactly for n prime. If n is prime, Z/nZ is an integral domain (Example (Which Rings Are Integral Domains)), so (Z/nZ)[x] is one by Corollary 4.3.3 (a). If n is not prime, Z/nZ is not an integral domain (Example (Which Rings Are Integral Domains)), so (Z/nZ)[x] 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 R is an integral domain and pq=0 in R[x], then p=0 or q=0”; two are distractors. Write an admissible order, say which other orders are admissible, and say why each distractor fails.

  • (i) R has no zero divisors, so pmqn≠0.
  • (ii) By contraposition, pq=0 implies p=0 or q=0.
  • (iii) Let m:=deg⁡p and n:=deg⁡q, so pm≠0 and qn≠0.
  • (iv) (pq)m+n=∑i=0m+npiqm+n−i, and this is non-zero because each of its terms is non-zero.
  • (v) Hence pq has a non-zero coefficient, so pq≠0.
  • (vi) Suppose p≠0 and q≠0.
  • (vii) By Theorem 4.3.2 (a), (pq)m+n=pmqn.
  • (viii) pmqn≠0 because R 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 m and n need (the degree of the zero polynomial is −∞, not a position). Line (iii) must come before (vii) and (i), which use m, n, pm, qn. 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 (vi), (iii), (vii), (i), (v), (ii)and(vi), (iii), (i), (vii), (v), (ii).

Line (iv) fails twice: the terms piqm+n−i with i≠m are 0, not non-zero, and even a sum of non-zero terms can be 0 (1+(−1)=0). Line (viii) gives a false reason: in the commutative ring Z/6Z, [2]≠[0] and [3]≠[0] but [2][3]=[0]. 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 R, each unit of R is a unit of R[x]: R×⊆(R[x])×.
  • (b) Find the inverse of 1+[3]x in (Z/9Z)[x].
  • (c) Show that 1+[2]x+[2]x2 is a unit of (Z/4Z)[x].

Hint: in (b), what is [3]2 in Z/9Z?

Solution.

  • (a) The second paragraph of the proof of Proposition 4.3.4 uses nothing about R beyond Theorem 4.2.4 (b): if ab=1 in R, then (ax0)(bx0)=(ab)x0=1x0, which is the one of R[x].

  • (b) By the product formula, (1+[3]x)(1−[3]x) has coefficients 1, [3]−[3]=[0] and −[3][3]=−[9]=[0], so it equals 1. Since −[3]=[6], the inverse is 1+[6]x. (It is unique by Number Systems: From N to R, Definition 3.5.1.)

  • (c) Let p:=1+[2]x+[2]x2, with coefficients 1,[2],[2]. The coefficients of p2=pp are, by the product formula, (p2)0=1,(p2)1=[2]+[2]=[4],(p2)2=[2]+[4]+[2]=[8],(p2)3=[4]+[4]=[8], and (p2)4=[2][2]=[4]. In Z/4Z, [4]=[8]=[0], so p2=1, and p is a unit, its own inverse. Again Z/4Z is not an integral domain, and Proposition 4.3.4 does not apply.

Exercise (B3: Counting polynomials over a finite field)

Let p be a prime and n∈N. How many elements do Fp[x]≤n and Fp[x]=n have?

Hint: Exercise (B1: Polynomials of bounded length as tuples).

Solution. Since Fp=Z/pZ has the p elements 0,1,…,p−1 (Number Systems: From N to R, Theorem 3.4.3 (b)), the non-zero elements 1,…,p−1 form a set with p−1 elements.

At most n. By the description after Definition 4.3.3, Fp[x]≤n is the set of polynomials q with qk=0 for every k>n. By Exercise (B1: Polynomials of bounded length as tuples) with N=n, q↦(q0,…,qn) is a bijection from this set onto Fpn+1 (for n=0, with Fp1 read as Fp, as there). A tuple (a0,…,an) is the same as the function {1,…,n+1}→Fp, i↦ai−1, so by Sets, Relations, and Cardinality, Exercise (C2: Counting products and functions) (b) there are pn+1 of them. So Fp[x]≤n has pn+1 elements.

Exactly n. The same bijection maps Fp[x]=n onto the tuples (a0,…,an) with an≠0: such a tuple is a pair of an arbitrary (a0,…,an−1), pn choices as before, and a non-zero an, p−1 choices. By Sets, Relations, and Cardinality, Exercise (C2: Counting products and functions) (a), there are (p−1)pn of them. (For n=0 these are the p−1 non-zero constants, and (p−1)p0=p−1.) For example, over F2 there are 23=8 polynomials of degree at most 2 and 1⋅22=4 of degree exactly 2.

C. Going deeper

Exercise (C1: Exit check: polynomial rings over integral domains)

Let R 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 p,q≠0, m=deg⁡p, n=deg⁡q, so pm≠0, qn≠0, and pi=0 for i>m, qj=0 for j>n. Let k≥m+n and 0≤i≤k. If i>m, then pi=0. If i≤m, then k−i≥n, with equality only when k=m+n and i=m; otherwise qk−i=0. So for k>m+n every term piqk−i of (pq)k is 0 (Number Systems: From N to R, Proposition 2.3.2 (b) with (F6)), and (pq)k=0; for k=m+n, every term with i≠m is 0, and the sum is pmqn by (Σ3) of Lemma 4.1.1. Hence deg⁡(pq)≤m+n when pq≠0, and trivially when pq=0; if p=0 or q=0, then pq=0 and both sides are −∞.

If pmqn≠0, then pq has a non-zero coefficient at m+n and none beyond, so deg⁡(pq)=m+n and lc(pq)=pmqn. If pmqn=0, all coefficients from m+n on vanish, and deg⁡(pq)<m+n.

No zero divisors. Let R be an integral domain and p,q≠0. Then pmqn≠0, since R has no zero divisors, so pq has a non-zero coefficient and pq≠0. Contraposition gives (a); with R[x] a commutative ring (Theorem 4.2.4 (a)) and 1x0≠0x0 because 1≠0 in R, R[x] is an integral domain.

The converse. Let R[x] be an integral domain. If 1=0 in R, the one 1x0 of R[x] is the zero polynomial, a contradiction. If ab=0 in R, then (ax0)(bx0)=(ab)x0=0 (Lemma 4.2.2 (b)), so one factor is the zero polynomial, and its only possibly non-zero coefficient, a or b, is 0.

Marking scheme. (10 points)

  • 3: shows that every coefficient of pq above m+n vanishes, treating both cases i>m and i≤m of the index argument, and the case p=0 or q=0 of the inequality.
  • 2: shows that (pq)m+n=lc(p)lc(q), with the other terms of that coefficient shown to be 0.
  • 1: derives deg⁡(pq)=deg⁡p+deg⁡q and lc(pq)=lc(p)lc(q) from lc(p)lc(q)≠0, and that this holds when R has no zero divisors.
  • 1: shows the converse direction of the equivalence: lc(p)lc(q)=0 gives deg⁡(pq)<m+n.
  • 2: concludes that R[x] has no zero divisors and 1≠0 in R[x].
  • 1: proves the converse through the constants.

Fatal errors (0 for the step): “the leading term of pq is lc(p)lc(q)xm+n” without showing that the other terms of the (m+n)-th coefficient vanish; using deg⁡(pq)=deg⁡p+deg⁡q 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 R is an integral domain, then R[x] has no zero divisors.

Proof. Let p,q∈R[x] be non-zero. (1) Then p0≠0 and q0≠0. (2) The constant term of pq is (pq)0=p0q0. (3) Since R has no zero divisors, p0q0≠0. (4) So pq≠0.

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 0: p=x is non-zero, with p0=0. That is a counterexample to the step from “p≠0” to “p0≠0”. 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 k=0, and (3), (4) follow once (1) is granted.

Two repairs. The book’s repair looks at the top coefficients: with m=deg⁡p, n=deg⁡q, Theorem 4.3.2 (a) gives (pq)m+n=pmqn≠0.

The argument can also be repaired at the bottom. Let i0 and j0 be the least indices with pi0≠0 and qj0≠0; they exist because the sets of non-zero positions are non-empty subsets of N (Number Systems: From N to R, Proposition 2.3.6, bounded below by 0). In (pq)i0+j0=∑i=0i0+j0piqi0+j0−i, a term with i<i0 has pi=0, and a term with i>i0 has i0+j0−i<j0, so qi0+j0−i=0. By (Σ3), (pq)i0+j0=pi0qj0, which is non-zero since R has no zero divisors. So pq≠0. This is the index argument of Theorem 4.3.2, mirrored.