Books
Theme
Text size
Width

[ and ] go to the previous and next page.

The eigenvalues of a square matrix will turn out to be the roots of a polynomial attached to it, its characteristic polynomial (Section 7.3). So we need to know how many roots a polynomial can have, when it has any at all, and how its roots show up in its factors. All of this rests on multiplying and dividing polynomials. So far (Definition 1.2.13), 𝐹[𝑥] has only been a vector space. This section gives it a multiplication and develops the algebra of 𝐹[𝑥] that the rest of the book uses. Throughout, 𝐹 is a field.

7.1.1Multiplying polynomials

To multiply 𝑎0+𝑎1𝑥+𝑎2𝑥2 by 𝑏0+𝑏1𝑥, we expand with the distributive law, use 𝑥𝑖𝑥𝑗=𝑥𝑖+𝑗, and collect equal powers of 𝑥:

(𝑎0+𝑎1𝑥+𝑎2𝑥2)(𝑏0+𝑏1𝑥)=𝑎0𝑏0+(𝑎0𝑏1+𝑎1𝑏0)𝑥+(𝑎1𝑏1+𝑎2𝑏0)𝑥2+𝑎2𝑏1𝑥3.

The coefficient of 𝑥𝑘 collects the products 𝑎𝑖𝑏𝑗 with 𝑖+𝑗=𝑘. A polynomial is its sequence of coefficients (Definition 1.2.13), so we take this rule as the definition.

Definition 7.1.1 (Product of polynomials). Let 𝑝=(𝑎0,𝑎1,𝑎2,…) and 𝑞=(𝑏0,𝑏1,𝑏2,…) be polynomials in 𝐹[𝑥]. Their product is 𝑝𝑞=(𝑐0,𝑐1,𝑐2,…), where

𝑐𝑘=∑𝑖=0𝑘𝑎𝑖𝑏𝑘−𝑖=𝑎0𝑏𝑘+𝑎1𝑏𝑘−1+⋯+𝑎𝑘𝑏0.

We also write 𝑐𝑘=∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗, a sum over the pairs (𝑖,𝑗) of nonnegative integers with 𝑖+𝑗=𝑘.

The product is again a polynomial. If 𝑎𝑖=0 for 𝑖>𝑚 and 𝑏𝑗=0 for 𝑗>𝑛, then for 𝑘>𝑚+𝑛 every pair with 𝑖+𝑗=𝑘 has 𝑖>𝑚 or 𝑗>𝑛, so every term of 𝑐𝑘 is 0 (Proposition 1.1.15).

Two special cases connect the definition with the notation of Notation 1.2.15. First, 𝑥𝑗𝑥𝑘=𝑥𝑗+𝑘, because the only nonzero term of the product is 1⋅1, in position 𝑗+𝑘. In particular 𝑥𝑘 is the product of 𝑘 copies of 𝑥, so the notation 𝑥𝑘 means what it says. Second, a constant 𝑐=(𝑐,0,0,…) times 𝑞 is (𝑐𝑏0,𝑐𝑏1,…), which is the scalar multiple 𝑐𝑞 of Definition 1.2.13. So writing 𝑐𝑞 is unambiguous.

Example 7.1.2 (Products over three fields).
  1. (a)Over ℚ, the product (1+𝑥)(1−𝑥+𝑥2) has coefficients 𝑐0=1, 𝑐1=1⋅(−1)+1⋅1=0, 𝑐2=1⋅1+1⋅(−1)=0, and 𝑐3=1⋅1=1. So (1+𝑥)(1−𝑥+𝑥2)=1+𝑥3.
  2. (b)Over ℂ, (𝑥−𝑖)(𝑥+𝑖)=𝑥2+(𝑖−𝑖)𝑥−𝑖2=𝑥2+1.
  3. (c)Over 𝔽2, (1+𝑥)2=1+(1+1)𝑥+𝑥2=1+𝑥2. So 𝑥2+1 is a square in 𝔽2[𝑥], while in ℝ[𝑥] it is not even a product of two polynomials of degree 1 (Corollary 7.1.42).

Proposition 7.1.3 (𝐹[𝑥] is a commutative ring). For all 𝑝,𝑞,𝑟∈𝐹[𝑥] and 𝑐∈𝐹:

  1. (a)𝑝𝑞=𝑞𝑝;
  2. (b)(𝑝𝑞)𝑟=𝑝(𝑞𝑟);
  3. (c)𝑝(𝑞+𝑟)=𝑝𝑞+𝑝𝑟;
  4. (d)1𝑝=𝑝;
  5. (e)𝑐(𝑝𝑞)=(𝑐𝑝)𝑞=𝑝(𝑐𝑞).

In particular, 𝐹[𝑥] with its addition and this multiplication is a commutative ring (Definition 1.1.20).

Proof.routine

Uses. Definition 7.1.1 (Product of polynomials), Proposition 1.2.14 (𝐹[𝑥] is a vector space), Definition 1.1.20 (Commutative ring), Definition 1.1.1 (Field)

Techniques. Compute entry by entry (Technique 2.4.15)

Hint 1. Compare the 𝑘-th coefficients of the two sides of each identity, the way one compares entries of matrices.
Hint 2. For (b), write the 𝑘-th coefficient of each side as a single sum over the triples (𝑖,𝑗,𝑙) of nonnegative integers with 𝑖+𝑗+𝑙=𝑘.
Sketch. Each identity holds coefficient by coefficient. The 𝑘-th coefficient of 𝑝𝑞 is ∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗, which is symmetric in 𝑝 and 𝑞. Both sides of (b) have 𝑘-th coefficient ∑𝑖+𝑗+𝑙=𝑘𝑎𝑖𝑏𝑗𝑑𝑙. Parts (c), (d), and (e) follow from distributivity in 𝐹, and the additive ring axioms are those of the vector space 𝐹[𝑥].

Write 𝑝=(𝑎𝑖), 𝑞=(𝑏𝑗), and 𝑟=(𝑑𝑙). All sums below are finite, so they can be reordered and regrouped freely.

(a) The 𝑘-th coefficient of 𝑝𝑞 is ∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗, and that of 𝑞𝑝 is ∑𝑗+𝑖=𝑘𝑏𝑗𝑎𝑖. These are sums over the same pairs, and 𝑎𝑖𝑏𝑗=𝑏𝑗𝑎𝑖.

(b) By distributivity, the 𝑘-th coefficient of (𝑝𝑞)𝑟 is

∑𝑚+𝑙=𝑘(∑𝑖+𝑗=𝑚𝑎𝑖𝑏𝑗)𝑑𝑙=∑𝑖+𝑗+𝑙=𝑘𝑎𝑖𝑏𝑗𝑑𝑙,

since each triple (𝑖,𝑗,𝑙) with 𝑖+𝑗+𝑙=𝑘 occurs exactly once on the left, with 𝑚=𝑖+𝑗. In the same way, the 𝑘-th coefficient of 𝑝(𝑞𝑟) is ∑𝑖+𝑚=𝑘𝑎𝑖(∑𝑗+𝑙=𝑚𝑏𝑗𝑑𝑙)=∑𝑖+𝑗+𝑙=𝑘𝑎𝑖𝑏𝑗𝑑𝑙. By associativity in 𝐹, the two agree.

(c) The 𝑘-th coefficient of 𝑝(𝑞+𝑟) is ∑𝑖+𝑗=𝑘𝑎𝑖(𝑏𝑗+𝑑𝑗)=∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗+∑𝑖+𝑗=𝑘𝑎𝑖𝑑𝑗, which is the 𝑘-th coefficient of 𝑝𝑞+𝑝𝑟.

(d) Since 1=(1,0,0,…), the only possibly nonzero term in the 𝑘-th coefficient of 1𝑝 is 1⋅𝑎𝑘=𝑎𝑘.

(e) ∑𝑖+𝑗=𝑘(𝑐𝑎𝑖)𝑏𝑗=𝑐∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗=∑𝑖+𝑗=𝑘𝑎𝑖(𝑐𝑏𝑗).

Finally, the axioms of a commutative ring that involve only addition (commutativity, associativity, a zero element, and negatives) hold because 𝐹[𝑥] is a vector space (Proposition 1.2.14). Together with (a)–(d), this makes 𝐹[𝑥] a commutative ring. □

By (c), (e), and 𝑥𝑖𝑥𝑗=𝑥𝑖+𝑗, polynomials are multiplied by expanding and collecting terms:

(∑𝑖𝑎𝑖𝑥𝑖)(∑𝑗𝑏𝑗𝑥𝑗)=∑𝑖,𝑗𝑎𝑖𝑏𝑗𝑥𝑖+𝑗.

From now on we compute with polynomials as in school. The identities of Section 1.1.2 that do not use multiplicative inverses, such as 𝟎𝑝=𝟎, (−1)𝑝=−𝑝, and the sign rules, have the same proofs in every commutative ring, so they hold in 𝐹[𝑥].

Intuition. In a product of two polynomials, the highest power of 𝑥 comes only from the two leading terms, (𝑎𝑥𝑚)(𝑏𝑥𝑛)=𝑎𝑏𝑥𝑚+𝑛. Every other pair of terms lands lower. Over a field 𝑎𝑏≠0 when 𝑎,𝑏≠0, so nothing can cancel the top term. Over ℤ/4ℤ, where 2⋅2=0, the same definition would give (2𝑥+1)2=4𝑥2+4𝑥+1=1, and the degree would drop.
Proposition 7.1.4 (Degree of a product). Let 𝑝,𝑞∈𝐹[𝑥] be nonzero, with leading coefficients 𝑎 and 𝑏. Then 𝑝𝑞≠𝟎, deg(𝑝𝑞)=deg𝑝+deg𝑞, and the leading coefficient of 𝑝𝑞 is 𝑎𝑏. With the conventions −∞+𝑛=𝑛+(−∞)=−∞+(−∞)=−∞, the formula deg(𝑝𝑞)=deg𝑝+deg𝑞 holds for all 𝑝,𝑞∈𝐹[𝑥].

Proof.routine

Uses. Definition 7.1.1 (Product of polynomials), Definition 1.2.16 (Degree), Proposition 1.1.17 (No zero divisors), Proposition 1.1.15 (Multiplying by zero)

Hint 1. Let 𝑚=deg𝑝 and 𝑛=deg𝑞. Which pairs (𝑖,𝑗) can give a nonzero term 𝑎𝑖𝑏𝑗?
Hint 2. Only pairs with 𝑖≤𝑚 and 𝑗≤𝑛, so 𝑖+𝑗≤𝑚+𝑛. For 𝑘=𝑚+𝑛 only the pair (𝑚,𝑛) survives.
Sketch. A term 𝑎𝑖𝑏𝑗 is nonzero only if 𝑖≤𝑚 and 𝑗≤𝑛. So the coefficients of 𝑝𝑞 vanish beyond position 𝑚+𝑛, and the coefficient of 𝑥𝑚+𝑛 is 𝑎𝑚𝑏𝑛=𝑎𝑏, which is nonzero because 𝐹 has no zero divisors. If 𝑝 or 𝑞 is 𝟎, every coefficient of 𝑝𝑞 is 0.

Write 𝑝=(𝑎𝑖) and 𝑞=(𝑏𝑗), and let 𝑚=deg𝑝 and 𝑛=deg𝑞, so that 𝑎=𝑎𝑚 and 𝑏=𝑏𝑛. A term 𝑎𝑖𝑏𝑗 can be nonzero only if 𝑎𝑖≠0 and 𝑏𝑗≠0, that is, only if 𝑖≤𝑚 and 𝑗≤𝑛, and then 𝑖+𝑗≤𝑚+𝑛. Hence the 𝑘-th coefficient of 𝑝𝑞 is 0 for 𝑘>𝑚+𝑛, and for 𝑘=𝑚+𝑛 the only pair that can contribute is (𝑚,𝑛). So the coefficient of 𝑥𝑚+𝑛 in 𝑝𝑞 is 𝑎𝑏, which is nonzero by Proposition 1.1.17. Therefore 𝑝𝑞≠𝟎, deg(𝑝𝑞)=𝑚+𝑛, and 𝑎𝑏 is the leading coefficient of 𝑝𝑞.

If 𝑝=𝟎 or 𝑞=𝟎, every term 𝑎𝑖𝑏𝑗 has a factor 0, so 𝑝𝑞=𝟎 (Proposition 1.1.15), and both sides of the formula are −∞. □

Definition 7.1.5 (Monic polynomial). A nonzero polynomial is monic if its leading coefficient is 1.

For example, 𝑥2−3𝑥+2 and every product (𝑥−𝑐1)(𝑥−𝑐2)⋯(𝑥−𝑐𝑛) are monic, by Proposition 7.1.4, while 2𝑥+1 is not. Every nonzero 𝑝 is 𝑎 times a monic polynomial for exactly one 𝑎∈𝐹, namely its leading coefficient 𝑎: indeed 𝑝=𝑎(𝑎−1𝑝), and 𝑐𝑢 has leading coefficient 𝑐 when 𝑢 is monic.

The proposition gives an argument that recurs throughout the book.

Technique 7.1.6 (Compare degrees and leading coefficients). To show that a polynomial is zero, or that an identity between polynomials cannot hold, compare the degrees of the two sides, and when the degrees agree, their leading coefficients. Over a field the degree of a product is the sum of the degrees (Proposition 7.1.4), and a sum has degree at most the larger of the two degrees, with equality when they differ (Proposition 1.2.18). The typical use: if 𝑠𝑔=ℎ with 𝑠≠𝟎 and degℎ<deg𝑠, then 𝑔=𝟎, because a nonzero multiple of 𝑠 has degree at least deg𝑠.

Reach for it in uniqueness statements about polynomials (quotients and remainders, greatest common divisors, and later minimal polynomials), and to show that a polynomial is constant or zero. Leading coefficients settle what degrees alone cannot, for instance that two monic polynomials that divide each other are equal. The canonical example is the uniqueness half of Theorem 7.1.14. Proposition 1.5.24 was an earlier instance.

Corollary 7.1.7 (No zero divisors, cancellation, and units). Let 𝑝,𝑞,𝑟∈𝐹[𝑥].

  1. (a)If 𝑝𝑞=𝟎, then 𝑝=𝟎 or 𝑞=𝟎.
  2. (b)If 𝑝≠𝟎 and 𝑝𝑞=𝑝𝑟, then 𝑞=𝑟.
  3. (c)𝑝 has a multiplicative inverse in 𝐹[𝑥] if and only if 𝑝 is a nonzero constant.

Proof.routine

Uses. Proposition 7.1.4 (Degree of a product), Proposition 7.1.3 (𝐹[𝑥] is a commutative ring)

Techniques. Compare degrees and leading coefficients (Technique 7.1.6)

Hint 1. (a) is a restatement of part of Proposition 7.1.4. For (b), move everything to one side.
Hint 2. For (c), if 𝑝𝑞=1, take degrees of both sides.
Sketch. (a) A product of nonzero polynomials is nonzero. (b) 𝑝(𝑞−𝑟)=𝟎 with 𝑝≠𝟎 forces 𝑞−𝑟=𝟎. (c) If 𝑝𝑞=1, then deg𝑝+deg𝑞=0 with both degrees nonnegative, so deg𝑝=0; nonzero constants 𝑐 have the inverse 𝑐−1.

(a) If 𝑝 and 𝑞 are both nonzero, then 𝑝𝑞≠𝟎 by Proposition 7.1.4.

(b) By Proposition 7.1.3, 𝑝(𝑞−𝑟)=𝑝𝑞−𝑝𝑟=𝟎. Since 𝑝≠𝟎, (a) gives 𝑞−𝑟=𝟎, that is, 𝑞=𝑟.

(c) A nonzero constant 𝑐 has the inverse 𝑐−1, since 𝑐⋅𝑐−1=1. Conversely, suppose 𝑝𝑞=1. Then 𝑝 and 𝑞 are nonzero, and deg𝑝+deg𝑞=deg1=0 by Proposition 7.1.4. Both degrees are nonnegative integers, so deg𝑝=0, and 𝑝 is a nonzero constant. □

So 𝐹[𝑥] shares two features with the integers: a product of nonzero elements is nonzero, and few elements are invertible (in ℤ, only ±1). In particular 𝑥 has no inverse, and 𝐹[𝑥] is not a field. The analogy with ℤ continues in Section 7.1.2 with division with remainder.

Exercise 7.1.8.routine
  1. (a)Over ℚ, compute (𝑥2−𝑥+1)(𝑥2+𝑥+1) and, for 𝑛≥1, (1−𝑥)(1+𝑥+𝑥2+⋯+𝑥𝑛−1).
  2. (b)Over 𝔽2, compute (1+𝑥+𝑥2)2. Over 𝔽3, compute (1+𝑥)3.

Solution.

Uses. Proposition 7.1.3 (𝐹[𝑥] is a commutative ring), Definition 7.1.1 (Product of polynomials)

Hint 1. For the first product in (a), write the factors as (𝑥2+1)−𝑥 and (𝑥2+1)+𝑥. In the second, most terms cancel in pairs.
Hint 2. For (b), expand as over ℤ, then reduce the coefficients modulo 2 or 3.
Sketch. (a) (𝑥2+1)2−𝑥2=𝑥4+𝑥2+1, and the second product telescopes to 1−𝑥𝑛. (b) (1+𝑥+𝑥2)2=1+2𝑥+3𝑥2+2𝑥3+𝑥4, which is 1+𝑥2+𝑥4 over 𝔽2; (1+𝑥)3=1+3𝑥+3𝑥2+𝑥3, which is 1+𝑥3 over 𝔽3.

(a) Since 𝐹[𝑥] is a commutative ring, (𝑢−𝑣)(𝑢+𝑣)=𝑢2−𝑣2. With 𝑢=𝑥2+1 and 𝑣=𝑥,

(𝑥2−𝑥+1)(𝑥2+𝑥+1)=(𝑥2+1)2−𝑥2=𝑥4+𝑥2+1.

For the second product,

(1−𝑥)∑𝑘=0𝑛−1𝑥𝑘=∑𝑘=0𝑛−1𝑥𝑘−∑𝑘=0𝑛−1𝑥𝑘+1=1−𝑥𝑛,

since every 𝑥𝑘 with 1≤𝑘≤𝑛−1 occurs once in each sum and cancels.

(b) Expanding, (1+𝑥+𝑥2)2=1+2𝑥+3𝑥2+2𝑥3+𝑥4. In 𝔽2, 2=0 and 3=1, so the square is 1+𝑥2+𝑥4. Similarly (1+𝑥)3=1+3𝑥+3𝑥2+𝑥3, and in 𝔽3 this is 1+𝑥3.

Evaluation and substitution

Evaluating a polynomial at a scalar (Definition 1.2.17) uses only that scalars can be added, multiplied, and raised to powers. The same formula makes sense with a polynomial in place of the scalar.

Definition 7.1.9 (Substitution). Let 𝑝=∑𝑘=0𝑑𝑎𝑘𝑥𝑘∈𝐹[𝑥] and 𝑟∈𝐹[𝑥]. The polynomial obtained by substituting 𝑟 into 𝑝 is

𝑝(𝑟)=∑𝑘=0𝑑𝑎𝑘𝑟𝑘∈𝐹[𝑥],

where 𝑟0=1 and 𝑟𝑘 is the product of 𝑘 copies of 𝑟.

For instance 𝑝(𝑥)=𝑝, since 𝑥𝑘 is the 𝑘-th power of 𝑥, and if 𝑝=𝑥2−3, then 𝑝(𝑥+1)=(𝑥+1)2−3=𝑥2+2𝑥−2. If 𝑟=𝑐 is a constant, then 𝑝(𝑐) is the constant polynomial whose value is the scalar 𝑝(𝑐) of Definition 1.2.17, so the two notations agree.

Proposition 7.1.10 (Evaluation respects sums and products). Let 𝑝,𝑞∈𝐹[𝑥] and 𝑐∈𝐹, and let 𝑡 be either a scalar in 𝐹 or a polynomial in 𝐹[𝑥]. Then

(𝑝+𝑞)(𝑡)=𝑝(𝑡)+𝑞(𝑡),(𝑐𝑝)(𝑡)=𝑐𝑝(𝑡),(𝑝𝑞)(𝑡)=𝑝(𝑡)𝑞(𝑡).

Proof.routine

Uses. Definition 1.2.17 (Evaluation), Definition 7.1.9 (Substitution), Definition 7.1.1 (Product of polynomials), Proposition 7.1.3 (𝐹[𝑥] is a commutative ring), Proposition 1.2.18 (Degree and evaluation versus the operations)

Hint 1. Write 𝑝=∑𝑖𝑎𝑖𝑥𝑖 and 𝑞=∑𝑗𝑏𝑗𝑥𝑗, and substitute 𝑡 into the formula for the coefficients of 𝑝𝑞.
Hint 2. Regroup the double sum ∑𝑘∑𝑖+𝑗=𝑘 as a sum over all pairs (𝑖,𝑗), and use 𝑡𝑖+𝑗=𝑡𝑖𝑡𝑗.
Sketch. The first two identities are the computation of Proposition 1.2.18(c). For the product, (𝑝𝑞)(𝑡)=∑𝑘(∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗)𝑡𝑘=∑𝑖,𝑗(𝑎𝑖𝑡𝑖)(𝑏𝑗𝑡𝑗)=𝑝(𝑡)𝑞(𝑡), by distributivity, 𝑡𝑖+𝑗=𝑡𝑖𝑡𝑗, and commutativity, all of which hold in 𝐹 and in the commutative ring 𝐹[𝑥].

In both cases 𝑡 lies in a commutative ring, 𝐹 or 𝐹[𝑥] (Proposition 7.1.3), in which scalars multiply as in 𝐹 (for 𝐹[𝑥] this is Proposition 7.1.3(e)) and 𝑡𝑖𝑡𝑗=𝑡𝑖+𝑗. These are the only facts we use.

Choose 𝑑 with 𝑝=∑𝑖=0𝑑𝑎𝑖𝑥𝑖 and 𝑞=∑𝑗=0𝑑𝑏𝑗𝑥𝑗, and put 𝑎𝑖=𝑏𝑖=0 for 𝑖>𝑑. Then 𝑝+𝑞=∑𝑖(𝑎𝑖+𝑏𝑖)𝑥𝑖 and 𝑐𝑝=∑𝑖(𝑐𝑎𝑖)𝑥𝑖, and distributivity gives (𝑝+𝑞)(𝑡)=𝑝(𝑡)+𝑞(𝑡) and (𝑐𝑝)(𝑡)=𝑐𝑝(𝑡), as in Proposition 1.2.18(c). For the product, 𝑝𝑞=∑𝑘=02𝑑(∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗)𝑥𝑘, so

(𝑝𝑞)(𝑡)=∑𝑘=02𝑑∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗𝑡𝑘=∑𝑖=0𝑑∑𝑗=0𝑑(𝑎𝑖𝑡𝑖)(𝑏𝑗𝑡𝑗)=(∑𝑖=0𝑑𝑎𝑖𝑡𝑖)(∑𝑗=0𝑑𝑏𝑗𝑡𝑗)=𝑝(𝑡)𝑞(𝑡).

The second equality regroups the terms by pairs (𝑖,𝑗) instead of by 𝑘=𝑖+𝑗 (the pairs with 𝑖>𝑑 or 𝑗>𝑑 contribute 0) and uses 𝑡𝑖+𝑗=𝑡𝑖𝑡𝑗 and commutativity. The third is distributivity. □

Remark 7.1.11 (Polynomials in a matrix). For 𝐴∈𝐹𝑛×𝑛 and 𝑝=∑𝑘=0𝑑𝑎𝑘𝑥𝑘, write 𝑝(𝐴)=𝑎0𝐼𝑛+𝑎1𝐴+⋯+𝑎𝑑𝐴𝑑, as in Proposition 4.1.31. The proof above used only that powers of 𝑡 satisfy 𝑡𝑖𝑡𝑗=𝑡𝑖+𝑗, that products distribute over sums, and that scalars commute with powers of 𝑡. It never multiplied 𝑡 by anything except its own powers and scalars. All of this holds for 𝐴 (Notation 2.4.16, Proposition 2.4.14), so

(𝑝+𝑞)(𝐴)=𝑝(𝐴)+𝑞(𝐴),(𝑐𝑝)(𝐴)=𝑐𝑝(𝐴),(𝑝𝑞)(𝐴)=𝑝(𝐴)𝑞(𝐴),

even though matrix multiplication is not commutative. In particular 𝑝(𝐴)𝑞(𝐴)=(𝑝𝑞)(𝐴)=(𝑞𝑝)(𝐴)=𝑞(𝐴)𝑝(𝐴): any two polynomials in the same matrix commute. Section 7.2 evaluates polynomials at operators in the same way.

Corollary 7.1.12 (Substituting twice). Let 𝑝,𝑟∈𝐹[𝑥], and let 𝑡 be a scalar in 𝐹 or a polynomial in 𝐹[𝑥]. Then (𝑝(𝑟))(𝑡)=𝑝(𝑟(𝑡)).

Proof.routine

Uses. Proposition 7.1.10 (Evaluation respects sums and products), Definition 7.1.9 (Substitution), induction on 𝑘

Techniques. Check it on a basis (Technique 2.2.7)

Hint 1. Both sides respect sums and scalar multiples in 𝑝. So it is enough to check the identity for 𝑝=𝑥𝑘.
Hint 2. For 𝑝=𝑥𝑘 the left side is (𝑟𝑘)(𝑡). Apply the product rule of Proposition 7.1.10 𝑘 times.
Sketch. By Proposition 7.1.10, 𝑝↦(𝑝(𝑟))(𝑡) and 𝑝↦𝑝(𝑟(𝑡)) both respect sums and scalar multiples, and every polynomial is a finite combination of the 𝑥𝑘. For 𝑝=𝑥𝑘, (𝑟𝑘)(𝑡)=𝑟(𝑡)𝑘 by Proposition 7.1.10 and induction on 𝑘, and this is 𝑥𝑘(𝑟(𝑡)).

Let 𝑠=𝑟(𝑡). By Proposition 7.1.10, applied first with 𝑟 and then with 𝑡, the map 𝑝↦(𝑝(𝑟))(𝑡) respects sums and scalar multiples, and so does 𝑝↦𝑝(𝑠). Every polynomial is a finite linear combination of 1,𝑥,𝑥2,…, so it suffices to prove the identity for 𝑝=𝑥𝑘, 𝑘≥0.

For 𝑝=𝑥𝑘 we have 𝑥𝑘(𝑟)=𝑟𝑘 and 𝑥𝑘(𝑠)=𝑠𝑘, so we must show (𝑟𝑘)(𝑡)=𝑠𝑘. For 𝑘=0 both sides are 1. If (𝑟𝑘)(𝑡)=𝑠𝑘, then by Proposition 7.1.10, (𝑟𝑘+1)(𝑡)=(𝑟𝑘𝑟)(𝑡)=(𝑟𝑘)(𝑡)𝑟(𝑡)=𝑠𝑘𝑠=𝑠𝑘+1. □

For example, substituting 𝑥+1 into 𝑝(𝑥+1) gives 𝑝((𝑥+1)+1)=𝑝(𝑥+2): take 𝑟=𝑡=𝑥+1. This is the fact used in Exercise 2.3.48.

7.1.2Division with remainder

For integers 𝑎 and 𝑏>0 there are integers 𝑞 and 𝑟 with 𝑎=𝑏𝑞+𝑟 and 0≤𝑟<𝑏. Polynomials can be divided the same way, with the degree in place of size. Long division, familiar from school, computes the quotient: at each step, subtract a multiple of the divisor that cancels the leading term of what is left.

Example 7.1.13 (Long division). Over ℚ, divide 𝑝=2𝑥4−𝑥3+3𝑥2+𝑥−1 by 𝑠=2𝑥2+1. The leading term 2𝑥4 of 𝑝 is 𝑥2 times the leading term 2𝑥2 of 𝑠, so we subtract 𝑥2𝑠. The leading term of what is left is −𝑥3=(−12𝑥)⋅2𝑥2, so we subtract −12𝑥𝑠, and so on:

𝑝−𝑥2𝑠=−𝑥3+2𝑥2+𝑥−1,𝑝−(𝑥2−12𝑥)𝑠=2𝑥2+32𝑥−1,𝑝−(𝑥2−12𝑥+1)𝑠=32𝑥−2.

The last line has degree 1<2=deg𝑠, so we stop. With 𝑞=𝑥2−12𝑥+1 and 𝑟=32𝑥−2,

𝑝=(2𝑥2+1)(𝑥2−12𝑥+1)+(32𝑥−2).

The coefficient −12 appeared because we divided by the leading coefficient 2 of 𝑠. Over ℤ this step would be impossible: dividing by the leading coefficient of the divisor is the one place where long division needs a field. Over 𝔽3, where 2−1=2, the same steps give 𝑞=𝑥2+𝑥+1 and 𝑟=1.

Theorem 7.1.14 (Division with remainder). Let 𝑝,𝑠∈𝐹[𝑥] with 𝑠≠𝟎. There are unique polynomials 𝑞,𝑟∈𝐹[𝑥] such that

𝑝=𝑠𝑞+𝑟anddeg𝑟<deg𝑠.

We call 𝑞 the quotient and 𝑟 the remainder of 𝑝 on division by 𝑠.

The theorem is often called the division algorithm, after the procedure that proves it. If deg𝑠=0, the condition deg𝑟<0 means 𝑟=𝟎: division by a nonzero constant 𝑏 is exact, with 𝑞=𝑏−1𝑝.

Intuition. Uniqueness is a degree count. Two divisions 𝑝=𝑠𝑞+𝑟=𝑠𝑞′+𝑟′ give 𝑠(𝑞−𝑞′)=𝑟′−𝑟. The right side has degree less than deg𝑠, and a nonzero multiple of 𝑠 cannot, so 𝑞=𝑞′. For existence, one step of long division replaces 𝑝 by a polynomial of smaller degree, which suggests strong induction on deg𝑝. A second proof avoids division altogether and counts dimensions instead.

Proof (by induction on the degree).standard

Hint 1. Prove uniqueness and existence separately. For uniqueness, subtract two divisions 𝑝=𝑠𝑞+𝑟=𝑠𝑞′+𝑟′ and compare degrees.
Hint 2. For existence, use strong induction on deg𝑝. If deg𝑝<deg𝑠 there is nothing to do. Otherwise subtract from 𝑝 a multiple of 𝑠 that cancels its leading term.
Hint 3. With 𝑎 and 𝑏 the leading coefficients of 𝑝 and 𝑠, the polynomial 𝑝−(𝑎/𝑏)𝑥𝑛−𝑚𝑠 has degree less than 𝑛=deg𝑝. Divide it by the induction hypothesis, and add (𝑎/𝑏)𝑥𝑛−𝑚 to the quotient.
Sketch. If 𝑠𝑞+𝑟=𝑠𝑞′+𝑟′, then 𝑠(𝑞−𝑞′)=𝑟′−𝑟 has degree less than deg𝑠, which forces 𝑞=𝑞′, and then 𝑟=𝑟′. For existence, induct on 𝑛=deg𝑝. If 𝑛<𝑚=deg𝑠, take 𝑞=𝟎 and 𝑟=𝑝. Otherwise the leading terms of 𝑝 and (𝑎/𝑏)𝑥𝑛−𝑚𝑠 agree, so 𝑝1=𝑝−(𝑎/𝑏)𝑥𝑛−𝑚𝑠 has degree less than 𝑛. If 𝑝1=𝑠𝑞1+𝑟1, then 𝑝=𝑠(𝑞1+(𝑎/𝑏)𝑥𝑛−𝑚)+𝑟1.

Let 𝑚=deg𝑠, which is a nonnegative integer, and let 𝑏≠0 be the leading coefficient of 𝑠.

Uniqueness. Suppose 𝑝=𝑠𝑞+𝑟=𝑠𝑞′+𝑟′ with deg𝑟<𝑚 and deg𝑟′<𝑚. By Proposition 7.1.3, 𝑠(𝑞−𝑞′)=𝑟′−𝑟, and deg(𝑟′−𝑟)<𝑚 by Proposition 1.2.18(a) and (b). If 𝑞≠𝑞′, then by Proposition 7.1.4

deg(𝑠(𝑞−𝑞′))=𝑚+deg(𝑞−𝑞′)≥𝑚,

which is impossible. So 𝑞=𝑞′, and then 𝑟′−𝑟=𝑠⋅𝟎=𝟎, so 𝑟=𝑟′.

Existence. If 𝑝=𝟎, take 𝑞=𝑟=𝟎. For nonzero 𝑝 we use strong induction on 𝑛=deg𝑝: let 𝑛≥0, and assume that every polynomial of degree less than 𝑛 (including 𝟎) has a quotient and remainder on division by 𝑠. Let deg𝑝=𝑛, with leading coefficient 𝑎.

If 𝑛<𝑚, take 𝑞=𝟎 and 𝑟=𝑝. Suppose 𝑛≥𝑚. By Proposition 7.1.4, the polynomial (𝑎/𝑏)𝑥𝑛−𝑚𝑠 has degree (𝑛−𝑚)+𝑚=𝑛 and leading coefficient (𝑎/𝑏)𝑏=𝑎. So in

𝑝1=𝑝−(𝑎/𝑏)𝑥𝑛−𝑚𝑠,

the coefficient of 𝑥𝑛 is 𝑎−𝑎=0, and all coefficients beyond 𝑥𝑛 are 0. Hence deg𝑝1<𝑛, and by the induction hypothesis 𝑝1=𝑠𝑞1+𝑟1 for some 𝑞1,𝑟1 with deg𝑟1<𝑚. Then

𝑝=𝑝1+(𝑎/𝑏)𝑥𝑛−𝑚𝑠=𝑠(𝑞1+(𝑎/𝑏)𝑥𝑛−𝑚)+𝑟1,

as desired. □

Unwound, the induction is long division. The equation 𝑝=𝑠𝑞+𝑟 is an invariant, and deg𝑟 is a quantity that drops at every step, so this is an instance of Technique 3.3.5.

Algorithm 7.1.15 (Long division)

Input
Polynomials 𝑝,𝑠∈𝐹[𝑥] with 𝑠≠𝟎. Let 𝑚=deg𝑠 and let 𝑏 be the leading coefficient of 𝑠.
Output
The quotient 𝑞 and the remainder 𝑟 of 𝑝 on division by 𝑠.

1.

Set 𝑞=𝟎 and 𝑟=𝑝.

2.

If deg𝑟<𝑚, output 𝑞 and 𝑟 and stop.

3.

Otherwise, let 𝑑=deg𝑟 and let 𝑐 be the leading coefficient of 𝑟. Replace 𝑞 by 𝑞+(𝑐/𝑏)𝑥𝑑−𝑚 and 𝑟 by 𝑟−(𝑐/𝑏)𝑥𝑑−𝑚𝑠, and return to step 2.

At the start 𝑝=𝑠𝑞+𝑟, and step 3 adds (𝑐/𝑏)𝑥𝑑−𝑚𝑠 to 𝑠𝑞 and subtracts it from 𝑟, so 𝑝=𝑠𝑞+𝑟 remains true. The same step lowers deg𝑟, as in the proof. So the algorithm stops after at most deg𝑝−𝑚+1 steps, and then deg𝑟<𝑚.

The second proof is the one in LADR. It proves existence without constructing anything.

Proof of Theorem 7.1.14 (by linear algebra).standard

Uses. Proposition 1.5.24 (Distinct degrees), Example 4.1.7 (Dimensions of the standard spaces), Theorem 4.1.10 (Independent lists are short), Proposition 7.1.4 (Degree of a product), Proposition 7.1.3 (𝐹[𝑥] is a commutative ring)

Techniques. Uniqueness gives existence (Technique 3.4.21), Dimension counting (Technique 4.2.24)

Hint 1. Uniqueness is the degree count from the first proof. For existence, let 𝑛=deg𝑝≥𝑚=deg𝑠 and work in 𝐹[𝑥]≤𝑛. Which polynomials have the form 𝑠𝑞+𝑟 with deg𝑞≤𝑛−𝑚 and deg𝑟<𝑚?
Hint 2. They are the linear combinations of 1,𝑥,…,𝑥𝑚−1,𝑠,𝑥𝑠,…,𝑥𝑛−𝑚𝑠. Show that this list is a basis of 𝐹[𝑥]≤𝑛.
Hint 3. The list consists of 𝑛+1 nonzero polynomials with the distinct degrees 0,1,…,𝑛.
Sketch. Let 𝑛=deg𝑝≥𝑚 (otherwise take 𝑞=𝟎, 𝑟=𝑝). The 𝑛+1 polynomials 1,𝑥,…,𝑥𝑚−1,𝑠,𝑥𝑠,…,𝑥𝑛−𝑚𝑠 have the distinct degrees 0,…,𝑛, so they are independent, and since dim𝐹[𝑥]≤𝑛=𝑛+1, they form a basis. Expanding 𝑝 in this basis writes it as 𝑟+𝑠𝑞, with 𝑟 a combination of 1,…,𝑥𝑚−1 and 𝑞 a combination of 1,…,𝑥𝑛−𝑚. Uniqueness is as in the first proof.

Uniqueness was proved in the first proof without induction, so we prove existence. Let 𝑚=deg𝑠. If 𝑝=𝟎 or deg𝑝<𝑚, take 𝑞=𝟎 and 𝑟=𝑝. So let 𝑛=deg𝑝≥𝑚, and consider the list

ℬ︀=1,𝑥,…,𝑥𝑚−1,𝑠,𝑥𝑠,…,𝑥𝑛−𝑚𝑠

in 𝐹[𝑥]≤𝑛. By Proposition 7.1.4, deg(𝑥𝑗𝑠)=𝑗+𝑚, so the 𝑛+1 polynomials in ℬ︀ are nonzero with degrees 0,1,…,𝑚−1,𝑚,𝑚+1,…,𝑛, which are distinct. By Proposition 1.5.24, ℬ︀ is linearly independent. Its length 𝑛+1 equals dim𝐹[𝑥]≤𝑛 (Example 4.1.7), so ℬ︀ is a basis of 𝐹[𝑥]≤𝑛 by Theorem 4.1.10(b). Hence there are scalars with

𝑝=𝑎0+𝑎1𝑥+⋯+𝑎𝑚−1𝑥𝑚−1+𝑏0𝑠+𝑏1𝑥𝑠+⋯+𝑏𝑛−𝑚𝑥𝑛−𝑚𝑠.

Let 𝑟=∑𝑖=0𝑚−1𝑎𝑖𝑥𝑖 and 𝑞=∑𝑗=0𝑛−𝑚𝑏𝑗𝑥𝑗. By Proposition 7.1.3, 𝑝=𝑠𝑞+𝑟, and deg𝑟≤𝑚−1<𝑚. □

Intuition (Two proofs compared). The first proof constructs 𝑞 and 𝑟 and unwinds into long division, so it is the one to use for computing. The second never divides. Independence of the list ℬ︀ is the uniqueness statement for 𝑝=𝟎, and a dimension count upgrades it to spanning, which is existence. This is Technique 3.4.21, which proved polynomial interpolation in Section 3.4.5. In the language of Section 4.2, the map 𝐹𝑛+1→𝐹[𝑥]≤𝑛 sending a list of coefficients to the corresponding combination of ℬ︀ is an injective linear map between spaces of the same dimension, hence bijective (Corollary 4.2.18). The count works because the conditions deg𝑞≤𝑛−𝑚 and deg𝑟≤𝑚−1 leave exactly (𝑛−𝑚+1)+𝑚=𝑛+1 unknown coefficients, one for each coefficient of 𝑝.
Definition 7.1.16 (Divisibility). Let 𝑝,𝑠∈𝐹[𝑥]. We say that 𝑠 divides 𝑝, and write 𝑠∣𝑝, if 𝑝=𝑠𝑞 for some 𝑞∈𝐹[𝑥]. Then 𝑠 is a factor (or divisor) of 𝑝, and 𝑝 is a multiple of 𝑠.

If 𝑠≠𝟎, then 𝑠∣𝑝 exactly when the remainder of 𝑝 on division by 𝑠 is 𝟎, by the uniqueness in Theorem 7.1.14. Some consequences of the definition and of Proposition 7.1.4:

  • every 𝑠 divides 𝟎, and 𝟎 divides only 𝟎;
  • a nonzero constant 𝑐 divides every 𝑝, since 𝑝=𝑐(𝑐−1𝑝);
  • if 𝑠∣𝑝 and 𝑝≠𝟎, then deg𝑠≤deg𝑝;
  • if 𝑠∣𝑝 and 𝑝∣𝑠 with 𝑝,𝑠≠𝟎, then 𝑝=𝑐𝑠 for a nonzero constant 𝑐. (If 𝑝=𝑠𝑔 and 𝑠=𝑝ℎ, then 𝑠=𝑠𝑔ℎ, so 𝑔ℎ=1 by Corollary 7.1.7(b), and 𝑔 is a nonzero constant by Corollary 7.1.7(c).) In particular, two monic polynomials that divide each other are equal.

For example, 𝑥+1∣𝑥3+1 over every field, since 𝑥3+1=(𝑥+1)(𝑥2−𝑥+1).

The quotient and remainder do not depend on the field in which we compute them. This is useful when a polynomial with real coefficients is factored over ℂ.

Corollary 7.1.17 (Division does not depend on the field). Let 𝐹 be a subfield of a field 𝐾 (Definition 1.1.32), and let 𝑝,𝑠∈𝐹[𝑥] with 𝑠≠𝟎. The quotient and remainder of 𝑝 on division by 𝑠 in 𝐾[𝑥] are the quotient and remainder in 𝐹[𝑥]. In particular, 𝑠 divides 𝑝 in 𝐾[𝑥] if and only if 𝑠 divides 𝑝 in 𝐹[𝑥].

Proof.routine

Uses. Definition 1.1.32 (Subfield), Theorem 7.1.14 (Division with remainder), Definition 7.1.1 (Product of polynomials)

Techniques. Uniqueness via two candidates (Technique 1.1.8)

Hint 1. Divide in 𝐹[𝑥] first. Does the result still satisfy the conditions of Theorem 7.1.14 when it is read in 𝐾[𝑥]?
Hint 2. Use the uniqueness half of Theorem 7.1.14 over 𝐾.
Sketch. 𝐹[𝑥]⊆𝐾[𝑥], and sums, products, and degrees of polynomials with coefficients in 𝐹 are the same whether computed in 𝐹 or in 𝐾. So the quotient and remainder over 𝐹 also satisfy 𝑝=𝑠𝑞+𝑟 and deg𝑟<deg𝑠 in 𝐾[𝑥], and by uniqueness over 𝐾 they are the quotient and remainder there.

A polynomial with coefficients in 𝐹 is also one with coefficients in 𝐾, so 𝐹[𝑥]⊆𝐾[𝑥]. The operations of 𝐹 are those of 𝐾 restricted to 𝐹 (Definition 1.1.32), and sums and products of polynomials are computed from their coefficients by the formulas of Definition 1.2.13 and Definition 7.1.1. So for 𝑝,𝑠∈𝐹[𝑥], the sum and product are the same whether computed in 𝐹[𝑥] or in 𝐾[𝑥], and so is the degree.

Let 𝑞,𝑟∈𝐹[𝑥] be the quotient and remainder of 𝑝 on division by 𝑠 in 𝐹[𝑥]. Then 𝑝=𝑠𝑞+𝑟 and deg𝑟<deg𝑠 also hold in 𝐾[𝑥]. By the uniqueness in Theorem 7.1.14 over 𝐾, 𝑞 and 𝑟 are the quotient and remainder in 𝐾[𝑥]. In particular the remainder in 𝐾[𝑥] is 𝟎 if and only if the remainder in 𝐹[𝑥] is 𝟎. □

Exercise 7.1.18.routine Let 𝑝=𝑥4+𝑥3+𝑥+2 and 𝑠=𝑥2+1. Find the quotient and remainder of 𝑝 on division by 𝑠 over ℚ, over 𝔽2, and over 𝔽3. Over which of these fields does 𝑠 divide 𝑝?

Solution.

Uses. Theorem 7.1.14 (Division with remainder), Algorithm 7.1.15 (Long division), Definition 7.1.16 (Divisibility)

Hint 1. Run Algorithm 7.1.15 over ℚ. Since 𝑠 is monic, no division by a leading coefficient is needed.
Hint 2. The computation over ℚ uses only integer arithmetic, so it can be reduced modulo 2 and modulo 3. Why does reducing give the right answer?
Sketch. Over ℚ: 𝑝−𝑥2𝑠=𝑥3−𝑥2+𝑥+2, minus 𝑥𝑠 gives −𝑥2+2, plus 𝑠 gives 3. So 𝑞=𝑥2+𝑥−1 and 𝑟=3. Reducing 𝑝=𝑠𝑞+3 modulo 2 and 3 gives a valid division there, so by uniqueness 𝑟=1 over 𝔽2 and 𝑟=𝟎 over 𝔽3. Only over 𝔽3 does 𝑠 divide 𝑝.

Over ℚ, long division gives

𝑝−𝑥2𝑠=𝑥3−𝑥2+𝑥+2,𝑝−(𝑥2+𝑥)𝑠=−𝑥2+2,𝑝−(𝑥2+𝑥−1)𝑠=3.

So 𝑝=(𝑥2+1)(𝑥2+𝑥−1)+3, with quotient 𝑥2+𝑥−1 and remainder 3. Since 3≠0, 𝑠 does not divide 𝑝 in ℚ[𝑥].

Every coefficient in this identity is an integer, and the identity was obtained by adding and multiplying integers, so it remains true when every coefficient is read in 𝔽2 or 𝔽3. Over 𝔽2, it reads 𝑝=(𝑥2+1)(𝑥2+𝑥+1)+1, and deg1=0<2, so by the uniqueness in Theorem 7.1.14 the quotient is 𝑥2+𝑥+1 and the remainder is 1. Over 𝔽3, 3=0, so 𝑝=(𝑥2+1)(𝑥2+𝑥+2) (as −1=2), the remainder is 𝟎, and 𝑠∣𝑝. So 𝑠 divides 𝑝 only over 𝔽3.

7.1.3Roots and linear factors

Definition 7.1.19 (Root). Let 𝑝∈𝐹[𝑥]. A scalar 𝑐∈𝐹 is a root (or zero) of 𝑝 if 𝑝(𝑐)=0.

Which roots exist depends on the field. The polynomial 𝑥2+1 has no root in ℝ, since 𝑡2+1≥1 for real 𝑡; in ℂ it has the roots 𝑖 and −𝑖; in 𝔽2 it has the root 1; and in 𝔽5 it has the roots 2 and 3, as 22+1=5 and 32+1=10. The polynomial 𝑥2−2 has no root in ℚ, because 2 is irrational, and two roots in ℝ.

The theorem below is the link between roots and factors. It is the case 𝑠=𝑥−𝑐 of division with remainder.

Theorem 7.1.20 (Factor theorem). Let 𝑝∈𝐹[𝑥] and 𝑐∈𝐹. There is a unique 𝑞∈𝐹[𝑥] with

𝑝=(𝑥−𝑐)𝑞+𝑝(𝑐),

and if deg𝑝≥1, then deg𝑞=deg𝑝−1. In particular, 𝑐 is a root of 𝑝 if and only if 𝑥−𝑐 divides 𝑝.

Proof (by division with remainder).routine

Uses. Theorem 7.1.14 (Division with remainder), Proposition 7.1.10 (Evaluation respects sums and products), Proposition 7.1.4 (Degree of a product), Definition 7.1.16 (Divisibility)

Hint 1. Divide 𝑝 by 𝑥−𝑐. What can the remainder be?
Hint 2. The remainder is a constant. Evaluate both sides of 𝑝=(𝑥−𝑐)𝑞+𝑟 at 𝑐.
Sketch. Division by 𝑥−𝑐, which has degree 1, leaves a constant remainder 𝑟. Evaluating 𝑝=(𝑥−𝑐)𝑞+𝑟 at 𝑐 with Proposition 7.1.10 gives 𝑝(𝑐)=0⋅𝑞(𝑐)+𝑟=𝑟. The quotient is unique by Theorem 7.1.14, and degrees give deg𝑞=deg𝑝−1. If 𝑝(𝑐)=0, then 𝑝=(𝑥−𝑐)𝑞; conversely, 𝑝=(𝑥−𝑐)𝑞′ gives 𝑝(𝑐)=0.

By Theorem 7.1.14 with 𝑠=𝑥−𝑐, which has degree 1, there are unique 𝑞,𝑟 with 𝑝=(𝑥−𝑐)𝑞+𝑟 and deg𝑟<1, so 𝑟 is a constant. By Proposition 7.1.10, 𝑝(𝑐)=(𝑐−𝑐)𝑞(𝑐)+𝑟=𝑟. So 𝑝=(𝑥−𝑐)𝑞+𝑝(𝑐). If also 𝑝=(𝑥−𝑐)𝑞′+𝑝(𝑐), this is a division with remainder 𝑝(𝑐), of degree less than 1, so 𝑞′=𝑞 by uniqueness.

If deg𝑝≥1, then (𝑥−𝑐)𝑞=𝑝−𝑝(𝑐) has the same degree as 𝑝, because subtracting a constant does not change any coefficient beyond the constant term. So 𝑞≠𝟎 and 1+deg𝑞=deg𝑝 (Proposition 7.1.4).

Finally, if 𝑝(𝑐)=0, then 𝑝=(𝑥−𝑐)𝑞, so 𝑥−𝑐∣𝑝. Conversely, if 𝑝=(𝑥−𝑐)𝑞′ for some 𝑞′, then 𝑝(𝑐)=(𝑐−𝑐)𝑞′(𝑐)=0 by Proposition 7.1.10. □

The quotient can also be written down directly. This is how Section 3.4.5 split off a root before products were available, and it gives a fast way to compute 𝑞 by hand.

Proof (explicitly, by Horner’s scheme).standard

Uses. Lemma 3.4.23 (Too many roots), Proposition 7.1.3 (𝐹[𝑥] is a commutative ring), Corollary 7.1.7 (No zero divisors, cancellation, and units), Proposition 7.1.10 (Evaluation respects sums and products)

Hint 1. The identity 𝑥𝑗−𝑐𝑗=(𝑥−𝑐)(𝑥𝑗−1+𝑐𝑥𝑗−2+⋯+𝑐𝑗−1) holds in 𝐹[𝑥]. Prove it by expanding the right side.
Hint 2. Multiply it by 𝑎𝑗, sum over 𝑗, and collect powers of 𝑥. The coefficients of 𝑞 are the numbers 𝑏𝑖 from the proof of Lemma 3.4.23.
Sketch. The right side of 𝑥𝑗−𝑐𝑗=(𝑥−𝑐)∑𝑖<𝑗𝑥𝑖𝑐𝑗−1−𝑖 telescopes. Multiplying by 𝑎𝑗 and summing gives 𝑝−𝑝(𝑐)=(𝑥−𝑐)𝑞 with 𝑞=∑𝑖<𝑛𝑏𝑖𝑥𝑖 and 𝑏𝑖=∑𝑗>𝑖𝑎𝑗𝑐𝑗−1−𝑖, computed from the top by 𝑏𝑛−1=𝑎𝑛 and 𝑏𝑖=𝑎𝑖+1+𝑐𝑏𝑖+1. Uniqueness of 𝑞 is cancellation of 𝑥−𝑐, and 𝑏𝑛−1=𝑎𝑛≠0 gives the degree.

If 𝑝 is constant, then 𝑝−𝑝(𝑐)=𝟎=(𝑥−𝑐)𝟎. Otherwise write 𝑝=∑𝑗=0𝑛𝑎𝑗𝑥𝑗 with 𝑛≥1 and 𝑎𝑛≠0. For 𝑗≥1, the following sum telescopes in 𝐹[𝑥]:

(𝑥−𝑐)∑𝑖=0𝑗−1𝑥𝑖𝑐𝑗−1−𝑖=∑𝑖=0𝑗−1𝑥𝑖+1𝑐𝑗−1−𝑖−∑𝑖=0𝑗−1𝑥𝑖𝑐𝑗−𝑖=𝑥𝑗−𝑐𝑗.

This is the computation in the proof of Lemma 3.4.23, with the indeterminate 𝑥 in place of the scalar 𝑡. Multiplying by 𝑎𝑗, summing over 𝑗=1,…,𝑛, and collecting the terms with the same power of 𝑥,

𝑝−𝑝(𝑐)=∑𝑗=1𝑛𝑎𝑗(𝑥𝑗−𝑐𝑗)=(𝑥−𝑐)𝑞,

where

𝑞=∑𝑖=0𝑛−1𝑏𝑖𝑥𝑖,𝑏𝑖=∑𝑗=𝑖+1𝑛𝑎𝑗𝑐𝑗−1−𝑖.

The leading coefficient of 𝑞 is 𝑏𝑛−1=𝑎𝑛≠0, so deg𝑞=𝑛−1. In both cases, if also 𝑝−𝑝(𝑐)=(𝑥−𝑐)𝑞′, then 𝑞′=𝑞 by Corollary 7.1.7(b). The last sentence of the theorem follows as in the first proof. □

As computed in the proof of Lemma 3.4.23, 𝑏𝑛−1=𝑎𝑛 and 𝑏𝑖=𝑎𝑖+1+𝑐𝑏𝑖+1. Continuing one more step, 𝑎0+𝑐𝑏0=𝑝(𝑐), by expanding the nested form 𝑝(𝑐)=𝑎0+𝑐(𝑎1+𝑐(𝑎2+⋯+𝑐𝑎𝑛)). This recursion is Horner’s scheme, or synthetic division. It computes the quotient by 𝑥−𝑐 and the value 𝑝(𝑐) at once, with 𝑛 multiplications.

Example 7.1.21 (Synthetic division). Let 𝑝=𝑥3−6𝑥2+11𝑥−6 and 𝑐=1. Horner’s scheme runs through the coefficients 1,−6,11,−6 from the top:

𝑏2=1,𝑏1=−6+1⋅1=−5,𝑏0=11+1⋅(−5)=6,𝑝(1)=−6+1⋅6=0.

So 1 is a root and 𝑝=(𝑥−1)(𝑥2−5𝑥+6). Running the scheme again on 𝑥2−5𝑥+6 with 𝑐=2 gives 1, −5+2=−3, and remainder 6+2⋅(−3)=0, so 𝑥2−5𝑥+6=(𝑥−2)(𝑥−3), and

𝑝=(𝑥−1)(𝑥−2)(𝑥−3).

In the language of Example 2.6.29, the factor theorem says kerev𝑐=im(𝑀−𝑐id): the polynomials with root 𝑐 are exactly the multiples (𝑥−𝑐)𝑞=(𝑀−𝑐id)(𝑞).

Intuition. Each root splits off a linear factor. Distinct roots split off distinct factors: after 𝑝=(𝑥−𝑐1)𝑞, a second root 𝑐2≠𝑐1 of 𝑝 satisfies 0=(𝑐2−𝑐1)𝑞(𝑐2), and since 𝑐2−𝑐1≠0 and 𝐹 has no zero divisors, 𝑐2 is a root of 𝑞. Each factor costs one degree, so there is room for at most deg𝑝 of them.

Proposition 7.1.22 (Counting roots). Let 𝑝∈𝐹[𝑥] be nonzero, and let 𝑐1,…,𝑐𝑘∈𝐹 be distinct roots of 𝑝. Then

(𝑥−𝑐1)(𝑥−𝑐2)⋯(𝑥−𝑐𝑘)∣𝑝,

and 𝑘≤deg𝑝. In particular, a nonzero polynomial 𝑝 has at most deg𝑝 roots in 𝐹.

Proof.standard

Uses. Theorem 7.1.20 (Factor theorem), Proposition 7.1.10 (Evaluation respects sums and products), Proposition 1.1.17 (No zero divisors), Proposition 7.1.4 (Degree of a product)

Techniques. Induction on the length of a list (Technique 1.6.9)

Hint 1. Induct on 𝑘, the length of the list of roots. For the inductive step, assume 𝑝=(𝑥−𝑐1)⋯(𝑥−𝑐𝑘−1)𝑞.
Hint 2. Evaluate this factorization at 𝑐𝑘. Why must 𝑞(𝑐𝑘)=0?
Hint 3. For the bound, compare degrees in 𝑝=(𝑥−𝑐1)⋯(𝑥−𝑐𝑘)𝑞′, noting that 𝑞′≠𝟎.
Sketch. By induction on 𝑘, 𝑝=(𝑥−𝑐1)⋯(𝑥−𝑐𝑘−1)𝑞. Evaluating at 𝑐𝑘 gives 0=(𝑐𝑘−𝑐1)⋯(𝑐𝑘−𝑐𝑘−1)𝑞(𝑐𝑘), and the differences are nonzero, so 𝑞(𝑐𝑘)=0 and 𝑥−𝑐𝑘 divides 𝑞 by the factor theorem. Then 𝑝=(𝑥−𝑐1)⋯(𝑥−𝑐𝑘)𝑞′ with 𝑞′≠𝟎, and deg𝑝=𝑘+deg𝑞′≥𝑘.

We prove the divisibility by induction on 𝑘. For 𝑘=0 the product is empty, that is, equal to 1, which divides 𝑝. Let 𝑘≥1, and suppose 𝑝=(𝑥−𝑐1)⋯(𝑥−𝑐𝑘−1)𝑞 for some 𝑞∈𝐹[𝑥]. By Proposition 7.1.10,

0=𝑝(𝑐𝑘)=(𝑐𝑘−𝑐1)⋯(𝑐𝑘−𝑐𝑘−1)𝑞(𝑐𝑘).

The roots are distinct, so 𝑐𝑘−𝑐𝑖≠0 for each 𝑖<𝑘, and the product of these differences is nonzero by Proposition 1.1.17. Hence 𝑞(𝑐𝑘)=0, and 𝑞=(𝑥−𝑐𝑘)𝑞′ for some 𝑞′ by Theorem 7.1.20. So 𝑝=(𝑥−𝑐1)⋯(𝑥−𝑐𝑘)𝑞′, which proves the divisibility.

Since 𝑝≠𝟎, also 𝑞′≠𝟎. Each 𝑥−𝑐𝑖 has degree 1, so Proposition 7.1.4 gives deg𝑝=𝑘+deg𝑞′≥𝑘. □

The bound 𝑘≤deg𝑝 is Lemma 3.4.23 in another form: a polynomial in 𝐹[𝑥]≤𝑛 with 𝑛+1 distinct roots is zero. What is new is the divisibility, which says where the roots sit in 𝑝. The proof used that 𝐹 has no zero divisors, to conclude 𝑞(𝑐𝑘)=0. With coefficients in ℤ/8ℤ, which has zero divisors, 𝑥2−1 has four roots (Exercise 7.1.52).

Corollary 7.1.23 (Polynomials and their values).
  1. (a)Let 𝑝,𝑞∈𝐹[𝑥]≤𝑛. If 𝑝(𝑐)=𝑞(𝑐) for 𝑛+1 distinct 𝑐∈𝐹, then 𝑝=𝑞.
  2. (b)A nonzero polynomial has only finitely many roots. If 𝐹 is infinite, two polynomials with the same polynomial function 𝐹→𝐹 are equal.

Proof.routine

Uses. Proposition 7.1.22 (Counting roots), Proposition 1.2.18 (Degree and evaluation versus the operations)

Techniques. Contrapositive (Technique 1.5.4)

Hint. Apply Proposition 7.1.22 to 𝑝−𝑞.
Sketch. In (a), 𝑝−𝑞∈𝐹[𝑥]≤𝑛 has 𝑛+1 roots, more than its degree if it were nonzero. In (b), if 𝑝 and 𝑞 have the same function, 𝑝−𝑞 has every element of 𝐹 as a root, infinitely many.

(a) By Proposition 1.2.18, 𝑝−𝑞∈𝐹[𝑥]≤𝑛 and (𝑝−𝑞)(𝑐)=𝑝(𝑐)−𝑞(𝑐)=0 for the 𝑛+1 given points. If 𝑝−𝑞 were nonzero, it would have at least 𝑛+1>deg(𝑝−𝑞) roots, contradicting Proposition 7.1.22. So 𝑝=𝑞.

(b) The first claim is Proposition 7.1.22. If 𝑝(𝑐)=𝑞(𝑐) for every 𝑐∈𝐹 and 𝐹 is infinite, then 𝑝−𝑞 has infinitely many roots, so 𝑝−𝑞=𝟎. □

Part (b) is the fact promised in Aside (Polynomials versus polynomial functions): over ℚ, ℝ, and ℂ, a polynomial is determined by its polynomial function. Over a finite field it is not. Section 7.1.4 finds all polynomials with a given function.

Multiplicity

A root can split off more than one linear factor, as in 𝑥2−2𝑥+1=(𝑥−1)2. Counting roots with these repetitions gives a sharper version of Proposition 7.1.22, and over ℂ an exact count.

Definition 7.1.24 (Multiplicity of a root). Let 𝑝∈𝐹[𝑥] be nonzero and 𝑐∈𝐹. The multiplicity of 𝑐 as a root of 𝑝 is the largest integer 𝑚≥0 such that (𝑥−𝑐)𝑚∣𝑝. A root of multiplicity 1 is simple, and a root of multiplicity at least 2 is repeated (or multiple).

The largest such 𝑚 exists, because (𝑥−𝑐)0=1 divides 𝑝, and (𝑥−𝑐)𝑚∣𝑝 forces 𝑚≤deg𝑝 (degrees, as 𝑝≠𝟎). By the factor theorem, 𝑐 is a root of 𝑝 exactly when its multiplicity is at least 1. We do not define multiplicities for the zero polynomial, which every power of 𝑥−𝑐 divides.

Lemma 7.1.25 (Reading off a multiplicity). Let 𝑝∈𝐹[𝑥] be nonzero, 𝑐∈𝐹, and 𝑚≥0. Then 𝑐 has multiplicity exactly 𝑚 as a root of 𝑝 if and only if 𝑝=(𝑥−𝑐)𝑚𝑞 for some 𝑞∈𝐹[𝑥] with 𝑞(𝑐)≠0.

Proof.routine

Uses. Definition 7.1.24 (Multiplicity of a root), Corollary 7.1.7 (No zero divisors, cancellation, and units), Theorem 7.1.20 (Factor theorem)

Hint 1. For “if”, suppose also (𝑥−𝑐)𝑚+1∣𝑝, and cancel (𝑥−𝑐)𝑚.
Hint 2. For “only if”, if 𝑞(𝑐)=0, the factor theorem splits one more factor 𝑥−𝑐 off 𝑞.
Sketch. If 𝑝=(𝑥−𝑐)𝑚𝑞 with 𝑞(𝑐)≠0 and also 𝑝=(𝑥−𝑐)𝑚+1𝑞′, cancelling (𝑥−𝑐)𝑚 gives 𝑞=(𝑥−𝑐)𝑞′, so 𝑞(𝑐)=0, a contradiction; so 𝑚 is the largest exponent. Conversely, if 𝑚 is the multiplicity and 𝑝=(𝑥−𝑐)𝑚𝑞 with 𝑞(𝑐)=0, then 𝑞=(𝑥−𝑐)𝑞″ and (𝑥−𝑐)𝑚+1 divides 𝑝.

Suppose 𝑝=(𝑥−𝑐)𝑚𝑞 with 𝑞(𝑐)≠0. Then (𝑥−𝑐)𝑚∣𝑝. If (𝑥−𝑐)𝑚′∣𝑝 for some 𝑚′>𝑚, then so does (𝑥−𝑐)𝑚+1, say 𝑝=(𝑥−𝑐)𝑚+1𝑞′. Then (𝑥−𝑐)𝑚𝑞=(𝑥−𝑐)𝑚(𝑥−𝑐)𝑞′, and cancelling the nonzero factor (𝑥−𝑐)𝑚 (Corollary 7.1.7(b)) gives 𝑞=(𝑥−𝑐)𝑞′, so 𝑞(𝑐)=0, a contradiction. Hence 𝑚 is the multiplicity.

Conversely, let 𝑚 be the multiplicity, and write 𝑝=(𝑥−𝑐)𝑚𝑞. If 𝑞(𝑐)=0, then 𝑞=(𝑥−𝑐)𝑞″ by Theorem 7.1.20, and (𝑥−𝑐)𝑚+1∣𝑝, contradicting the maximality of 𝑚. So 𝑞(𝑐)≠0. □

Example 7.1.26 (Multiplicity depends on the field). Let 𝑝=𝑥3−𝑥2−𝑥+1. Over ℚ, 𝑝=(𝑥−1)2(𝑥+1), and 𝑞=𝑥+1 has 𝑞(1)=2≠0. So 1 is a root of multiplicity 2, and −1 is a simple root. Over 𝔽2 the same polynomial is 𝑥3+𝑥2+𝑥+1, and since 𝑥+1=𝑥−1 there, 𝑝=(𝑥−1)3: the root 1 has multiplicity 3. In the factorization (𝑥−1)2(𝑥+1), the cofactor now has 𝑞(1)=1+1=0, so Lemma 7.1.25 does not stop at 𝑚=2.

Proposition 7.1.27 (Multiplicities add up to at most the degree). Let 𝑝∈𝐹[𝑥] be nonzero, and let 𝑐1,…,𝑐𝑘∈𝐹 be distinct, with multiplicities 𝑚1,…,𝑚𝑘 as roots of 𝑝. Then

(𝑥−𝑐1)𝑚1(𝑥−𝑐2)𝑚2⋯(𝑥−𝑐𝑘)𝑚𝑘∣𝑝,

and in particular 𝑚1+𝑚2+⋯+𝑚𝑘≤deg𝑝.

Proof.standard

Uses. Lemma 7.1.25 (Reading off a multiplicity), Proposition 7.1.10 (Evaluation respects sums and products), Proposition 1.1.17 (No zero divisors), Proposition 7.1.4 (Degree of a product)

Techniques. Induction on the length of a list (Technique 1.6.9)

Hint 1. Induct on 𝑘, as in the proof of Proposition 7.1.22, now splitting off (𝑥−𝑐𝑘)𝑚𝑘 at once.
Hint 2. Suppose 𝑝=(𝑥−𝑐1)𝑚1⋯(𝑥−𝑐𝑘−1)𝑚𝑘−1𝑞. Let 𝜇 be the multiplicity of 𝑐𝑘 as a root of 𝑞, and write 𝑞=(𝑥−𝑐𝑘)𝜇ℎ with ℎ(𝑐𝑘)≠0.
Hint 3. Then 𝑝=(𝑥−𝑐𝑘)𝜇𝑔 for a 𝑔 with 𝑔(𝑐𝑘)≠0. Apply Lemma 7.1.25 to 𝑝.
Sketch. Induct on 𝑘. If 𝑝=∏𝑖<𝑘(𝑥−𝑐𝑖)𝑚𝑖𝑞 and 𝑞=(𝑥−𝑐𝑘)𝜇ℎ with ℎ(𝑐𝑘)≠0, then 𝑝=(𝑥−𝑐𝑘)𝜇𝑔 with 𝑔=∏𝑖<𝑘(𝑥−𝑐𝑖)𝑚𝑖ℎ and 𝑔(𝑐𝑘)=∏𝑖<𝑘(𝑐𝑘−𝑐𝑖)𝑚𝑖ℎ(𝑐𝑘)≠0. By Lemma 7.1.25 𝜇=𝑚𝑘, so (𝑥−𝑐𝑘)𝑚𝑘 divides 𝑞. Degrees give ∑𝑚𝑖≤deg𝑝.

We induct on 𝑘; for 𝑘=0 there is nothing to prove. Let 𝑘≥1 and suppose 𝑝=(𝑥−𝑐1)𝑚1⋯(𝑥−𝑐𝑘−1)𝑚𝑘−1𝑞. Since 𝑝≠𝟎, 𝑞≠𝟎. Let 𝜇 be the multiplicity of 𝑐𝑘 as a root of 𝑞. By Lemma 7.1.25, 𝑞=(𝑥−𝑐𝑘)𝜇ℎ with ℎ(𝑐𝑘)≠0. Reordering the factors,

𝑝=(𝑥−𝑐𝑘)𝜇𝑔,where𝑔=(𝑥−𝑐1)𝑚1⋯(𝑥−𝑐𝑘−1)𝑚𝑘−1ℎ.

By Proposition 7.1.10, 𝑔(𝑐𝑘)=(𝑐𝑘−𝑐1)𝑚1⋯(𝑐𝑘−𝑐𝑘−1)𝑚𝑘−1ℎ(𝑐𝑘), which is nonzero by Proposition 1.1.17, as every factor is nonzero. By Lemma 7.1.25 applied to 𝑝, the multiplicity of 𝑐𝑘 as a root of 𝑝 is 𝜇, so 𝜇=𝑚𝑘. Hence 𝑝=(𝑥−𝑐1)𝑚1⋯(𝑥−𝑐𝑘)𝑚𝑘ℎ, which proves the divisibility. Comparing degrees with Proposition 7.1.4, deg𝑝=𝑚1+⋯+𝑚𝑘+degℎ≥𝑚1+⋯+𝑚𝑘. □

With all 𝑚𝑖≥1, this sharpens Proposition 7.1.22: counted with multiplicity, a nonzero polynomial has at most deg𝑝 roots. Over ℂ the count is exactly deg𝑝 (Corollary 7.1.35).

Repeated roots can be detected without factoring, with the formal derivative 𝑝′ of Example 2.1.9.

Exercise 7.1.28.standard Let 𝑝∈𝐹[𝑥] be nonzero and 𝑐∈𝐹. Show that 𝑐 is a repeated root of 𝑝 if and only if 𝑝(𝑐)=0 and 𝑝′(𝑐)=0.

Solution.

Uses. Theorem 7.1.20 (Factor theorem), Lemma 7.1.25 (Reading off a multiplicity), Exercise 2.1.49, Proposition 7.1.10 (Evaluation respects sums and products)

Hint 1. Both conditions include that 𝑐 is a root. So write 𝑝=(𝑥−𝑐)𝑞 and compute 𝑝′ with the product rule (Exercise 2.1.49).
Hint 2. You should find 𝑝′(𝑐)=𝑞(𝑐). Compare with Lemma 7.1.25 for 𝑚=1.
Sketch. If 𝑐 is not a root, both sides are false. If it is, 𝑝=(𝑥−𝑐)𝑞, and the product rule gives 𝑝′=𝑞+(𝑥−𝑐)𝑞′, so 𝑝′(𝑐)=𝑞(𝑐). By Lemma 7.1.25, 𝑐 is simple exactly when 𝑞(𝑐)≠0, that is, when 𝑝′(𝑐)≠0.

If 𝑝(𝑐)≠0, then 𝑐 is not a root, so it is not a repeated root, and both sides of the equivalence are false. So suppose 𝑝(𝑐)=0, and write 𝑝=(𝑥−𝑐)𝑞 (Theorem 7.1.20). The formal derivative satisfies the product rule (Exercise 2.1.49(a)), and (𝑥−𝑐)′=1, so

𝑝′=𝑞+(𝑥−𝑐)𝑞′,hence𝑝′(𝑐)=𝑞(𝑐)+0⋅𝑞′(𝑐)=𝑞(𝑐)

by Proposition 7.1.10. By Lemma 7.1.25 with 𝑚=1, the root 𝑐 is simple if and only if 𝑞(𝑐)≠0. So 𝑐 is repeated if and only if 𝑞(𝑐)=0, that is, if and only if 𝑝′(𝑐)=0.

7.1.4Interpolation, revisited

In Section 3.4.5, the existence of interpolating polynomials came from their uniqueness, through a square linear system, and the Lagrange polynomials 𝐿𝑖 were defined as solutions of that system. Example 3.4.28 previewed a closed form that needed products. We can now prove it.

Proposition 7.1.29 (Lagrange polynomials in closed form). Let 𝑐0,…,𝑐𝑛∈𝐹 be distinct. For 𝑖=0,…,𝑛,

𝐿𝑖=∏𝑗≠𝑖𝑥−𝑐𝑗𝑐𝑖−𝑐𝑗.

Consequently, for 𝑑0,…,𝑑𝑛∈𝐹, the unique 𝑝∈𝐹[𝑥]≤𝑛 with 𝑝(𝑐𝑖)=𝑑𝑖 for all 𝑖 is

𝑝=∑𝑖=0𝑛𝑑𝑖∏𝑗≠𝑖𝑥−𝑐𝑗𝑐𝑖−𝑐𝑗.

Proof.routine

Uses. Definition 3.4.26 (Lagrange polynomials), Theorem 3.4.24 (Polynomial interpolation), Proposition 3.4.27 (Lagrange’s formula), Proposition 7.1.10 (Evaluation respects sums and products), Proposition 7.1.4 (Degree of a product)

Techniques. Uniqueness via two candidates (Technique 1.1.8)

Hint 1. Check that the product has degree at most 𝑛 and takes the values that define 𝐿𝑖.
Hint 2. Evaluate the product at 𝑐𝑘 with Proposition 7.1.10. Which factor vanishes when 𝑘≠𝑖?
Sketch. The product 𝑃𝑖 is a nonzero scalar times a product of 𝑛 linear factors, so it has degree 𝑛. At 𝑐𝑖 every factor is 1; at 𝑐𝑘 with 𝑘≠𝑖, the factor with 𝑗=𝑘 is 0. So 𝑃𝑖 has the defining values of 𝐿𝑖, and 𝑃𝑖=𝐿𝑖 by uniqueness in Theorem 3.4.24. The formula for 𝑝 is then Proposition 3.4.27.

Let 𝑃𝑖 be the product on the right. The scalar ∏𝑗≠𝑖(𝑐𝑖−𝑐𝑗) is nonzero, since the nodes are distinct and 𝐹 has no zero divisors, so

𝑃𝑖=(∏𝑗≠𝑖(𝑐𝑖−𝑐𝑗))−1∏𝑗≠𝑖(𝑥−𝑐𝑗)

is a nonzero scalar times a product of 𝑛 polynomials of degree 1, and deg𝑃𝑖=𝑛 by Proposition 7.1.4. By Proposition 7.1.10,

𝑃𝑖(𝑐𝑘)=∏𝑗≠𝑖𝑐𝑘−𝑐𝑗𝑐𝑖−𝑐𝑗.

For 𝑘=𝑖 every factor is 1, so 𝑃𝑖(𝑐𝑖)=1. For 𝑘≠𝑖, the factor with 𝑗=𝑘 is 0, so 𝑃𝑖(𝑐𝑘)=0. Thus 𝑃𝑖∈𝐹[𝑥]≤𝑛 has the values that define 𝐿𝑖 (Definition 3.4.26), and 𝑃𝑖=𝐿𝑖 by the uniqueness in Theorem 3.4.24. The formula for 𝑝 follows from Proposition 3.4.27. □

Intuition (Two routes to interpolation). With the closed form in hand, Theorem 3.4.24 has a second proof that reverses the roles of existence and uniqueness. Existence is now a construction: the polynomial ∑𝑖𝑑𝑖𝑃𝑖 has degree at most 𝑛, and the computation above shows that it takes the value 𝑑𝑘 at 𝑐𝑘. Uniqueness is Corollary 7.1.23(a), a count of roots. In Section 3.4.5, by contrast, uniqueness was the root count and existence came for free from the square system. The first route needs no formula, which helps when one is hard to guess, as in Exercise 7.1.57. The second gives the answer explicitly and explains the shape of 𝐿𝑖: it is the simplest polynomial vanishing at the other nodes, rescaled to be 1 at 𝑐𝑖.

The node polynomial 𝜔=(𝑥−𝑐0)(𝑥−𝑐1)⋯(𝑥−𝑐𝑛), of degree 𝑛+1, describes what happens without the degree bound.

Corollary 7.1.30 (All interpolating polynomials). Let 𝑐0,…,𝑐𝑛∈𝐹 be distinct, let 𝑑0,…,𝑑𝑛∈𝐹, let 𝑝0∈𝐹[𝑥]≤𝑛 be the polynomial with 𝑝0(𝑐𝑖)=𝑑𝑖 for all 𝑖, and let 𝜔=(𝑥−𝑐0)⋯(𝑥−𝑐𝑛). A polynomial 𝑝∈𝐹[𝑥] satisfies 𝑝(𝑐𝑖)=𝑑𝑖 for all 𝑖 if and only if

𝑝=𝑝0+𝜔ℎfor someℎ∈𝐹[𝑥].

In particular, 𝑝0 is the remainder of every such 𝑝 on division by 𝜔.

Proof.routine

Uses. Proposition 7.1.22 (Counting roots), Proposition 7.1.10 (Evaluation respects sums and products), Theorem 7.1.14 (Division with remainder), Theorem 3.4.24 (Polynomial interpolation)

Techniques. Particular plus homogeneous (Technique 3.1.18)

Hint 1. The conditions are linear in 𝑝, and 𝑝0 is one solution. Which 𝑝 satisfy the homogeneous conditions 𝑝(𝑐𝑖)=0?
Hint 2. Use the divisibility in Proposition 7.1.22.
Sketch. If 𝑝=𝑝0+𝜔ℎ, then 𝑝(𝑐𝑖)=𝑑𝑖+0. Conversely, 𝑝−𝑝0 has the 𝑛+1 distinct roots 𝑐𝑖, so 𝜔 divides it by Proposition 7.1.22 (or 𝑝−𝑝0=𝟎). Since deg𝑝0<deg𝜔, the equation 𝑝=𝜔ℎ+𝑝0 is a division with remainder.

If 𝑝=𝑝0+𝜔ℎ, then 𝑝(𝑐𝑖)=𝑝0(𝑐𝑖)+𝜔(𝑐𝑖)ℎ(𝑐𝑖)=𝑑𝑖+0=𝑑𝑖 by Proposition 7.1.10, since 𝑐𝑖 is a root of 𝜔. Conversely, suppose 𝑝(𝑐𝑖)=𝑑𝑖 for all 𝑖. Then 𝑝−𝑝0 has the 𝑛+1 distinct roots 𝑐0,…,𝑐𝑛. If 𝑝−𝑝0=𝟎, take ℎ=𝟎. Otherwise 𝜔∣𝑝−𝑝0 by Proposition 7.1.22, so 𝑝−𝑝0=𝜔ℎ for some ℎ.

Finally, 𝑝=𝜔ℎ+𝑝0 with deg𝑝0≤𝑛<𝑛+1=deg𝜔, so by the uniqueness in Theorem 7.1.14, 𝑝0 is the remainder of 𝑝 on division by 𝜔. □

This is Technique 3.1.18 once more: 𝑝0 is a particular solution, and the polynomials vanishing at all nodes are the multiples of 𝜔. The quartic 𝑞 of Figure 3.4.1 is an example. It passes through the same four points as the cubic 𝑝, and indeed 𝑞−𝑝=12(𝑥4−2𝑥3−𝑥2+2𝑥)=12(𝑥+1)𝑥(𝑥−1)(𝑥−2) is a multiple of 𝜔.

The figure can be explored with the least-squares component of Section 6.5. With four points and degree 3, the least-squares cubic passes through all four points, so it is the interpolating polynomial.

𝑝=2𝐿0+𝐿1+0𝐿2+5𝐿3=1−2𝑥+𝑥3,𝐿3=(𝑥+1)𝑥(𝑥−1)6
With four points at distinct 𝑥-values and degree 3, the residuals are 0 and the curve is the interpolating cubic 1−2𝑥+𝑥3 of Example 3.4.25. Drag one point up or down while the others stay fixed: the cubic changes by a multiple of the Lagrange polynomial of that node, which vanishes at the other three nodes. Add a fifth point and the cubic no longer passes through all of them, unless the new point happens to lie on it.

Remark 7.1.31 (Finite fields). Let 𝐹 be a finite field with 𝑞 elements, and take all 𝑞 elements of 𝐹 as the nodes. Corollary 7.1.30 with all values 𝑑𝑖=0 shows that the polynomials whose polynomial function is zero are exactly the multiples of

𝜔𝐹=∏𝑐∈𝐹(𝑥−𝑐),

a monic polynomial of degree 𝑞. Two polynomials have the same polynomial function if and only if their difference is a multiple of 𝜔𝐹, and each function 𝐹→𝐹 is the polynomial function of exactly one polynomial of degree less than 𝑞 (Theorem 3.4.24 with all 𝑞 elements as nodes; compare Problem 1.18). For 𝐹=𝔽𝑝, 𝜔𝐹=𝑥𝑝−𝑥 (Exercise 7.1.55), which explains the example 𝑥𝑝−𝑥 of Aside (Polynomials versus polynomial functions).

7.1.5The Fundamental Theorem of Algebra

Over ℝ, the polynomial 𝑥2+1 has no root. Correspondingly, the rotation of the plane by a right angle has no eigenvalue (Section 7.2): no line through 𝟎 is mapped to itself. The complex numbers were built to give 𝑥2+1 a root (Section 1.1.4). The surprise is that nothing more needs to be added: every nonconstant polynomial with complex coefficients, even one with nonreal coefficients such as 𝑥2−𝑖 or 𝑥5+𝑖𝑥+1, already has a root in ℂ.

Theorem 7.1.32 (Fundamental Theorem of Algebra). Every nonconstant polynomial 𝑝∈ℂ[𝑥] has a root in ℂ.

Intuition (Why there must be a root). Let 𝑝 have degree 𝑛≥1, and watch the values 𝑝(𝑧) as 𝑧 goes once around the circle |𝑧|=𝑅. For large 𝑅, the leading term dominates, 𝑝(𝑧)≈𝑎𝑛𝑧𝑛, and since 𝑧𝑛 goes around 0 exactly 𝑛 times when 𝑧 goes around once, so does the curve traced by 𝑝(𝑧). For tiny 𝑅, 𝑝(𝑧)≈𝑝(0), and if 𝑝(0)≠0 (otherwise 0 is a root), the curve is a small loop near 𝑝(0) that does not go around 0 at all. As 𝑅 grows from small to large, the curve moves continuously, and the number of times it winds around 0 changes from 0 to 𝑛. It can only change when the curve passes through 0, and a point 𝑧 with 𝑝(𝑧)=0 is a root. Figure 7.1.1 shows this for 𝑝=𝑧3+𝑧+1.

Making “winds around” precise takes topology. The proof below avoids it. It finds a root as the point where |𝑝| is smallest: at a point where 𝑝≠0, a small step in a well-chosen direction always makes |𝑝| smaller.

Figure 7.1.1. The images of the circles |𝑧|=𝑅 under 𝑝(𝑧)=𝑧3+𝑧+1, with 0 marked in red. For 𝑅=1/2 the curve stays near 𝑝(0)=1; for 𝑅=3/2 it winds three times around 0. In between it sweeps across 0 three times: at 𝑅≈0.68, the modulus of the real root −0.68…, and at 𝑅≈1.21, the common modulus of the two nonreal roots 0.34…±1.16…𝑖.

Proof of Theorem 7.1.32 (by minimizing |𝑝|).challengeBeyond 21-242

Uses. Definition B.1.7 (Modulus), Section B.1, the extreme value theorem: a continuous real function on a closed disk attains a minimum, every complex number has a 𝑘-th root, for every 𝑘≥1

Techniques. Extremal choice and minimal counterexamples (Technique 1.5.9)

Hint 1. Show first that |𝑝(𝑧)|>|𝑝(0)| outside a large disk. Then |𝑝| has a global minimum at some 𝑧0, by the extreme value theorem.
Hint 2. Suppose 𝑝(𝑧0)≠0. Write 𝑝(𝑧0+𝑤)/𝑝(𝑧0) as 1+𝑏𝑘𝑤𝑘 plus higher powers of 𝑤, with 𝑏𝑘≠0.
Hint 3. Choose 𝛽 with 𝛽𝑘=−1/𝑏𝑘. For small real 𝑡>0, the value at 𝑤=𝑡𝛽 has modulus about 1−𝑡𝑘<1.
Sketch. For |𝑧| large, |𝑝(𝑧)|≥|𝑎𝑛||𝑧|𝑛−∑𝑘<𝑛|𝑎𝑘||𝑧|𝑘>|𝑝(0)|, so the minimum of |𝑝| on a large closed disk is a global minimum, attained at some 𝑧0. If 𝑝(𝑧0)≠0, then 𝑔(𝑤)=𝑝(𝑧0+𝑤)/𝑝(𝑧0)=1+𝑏𝑘𝑤𝑘+⋯ with 𝑏𝑘≠0 has |𝑔|≥1. With 𝛽𝑘=−1/𝑏𝑘 and small 𝑡>0, |𝑔(𝑡𝛽)|≤1−𝑡𝑘+𝐶𝑡𝑘+1<1, a contradiction.

Let 𝑝=𝑎0+𝑎1𝑥+⋯+𝑎𝑛𝑥𝑛 with 𝑛≥1 and 𝑎𝑛≠0. We use the modulus |𝑧| (Definition B.1.7), with |𝑧𝑤|=|𝑧||𝑤| and |𝑧+𝑤|≤|𝑧|+|𝑤|, and two facts from outside algebra: the extreme value theorem, and the existence of 𝑘-th roots in ℂ (polar form, Section B.1).

|𝑝| attains a global minimum. Let 𝐴=|𝑎0|+⋯+|𝑎𝑛−1|. For |𝑧|=𝜌≥1, we have |𝑎𝑘𝑧𝑘|≤|𝑎𝑘|𝜌𝑛−1 for 𝑘<𝑛, so

|𝑝(𝑧)|≥|𝑎𝑛|𝜌𝑛−𝐴𝜌𝑛−1=𝜌𝑛−1(|𝑎𝑛|𝜌−𝐴).

Let 𝑅=max(1,(𝐴+|𝑎0|+1)/|𝑎𝑛|). For |𝑧|>𝑅 the right side is at least |𝑎0|+1>|𝑝(0)|. The function 𝑧↦|𝑝(𝑧)| is continuous, so it attains a minimum on the closed disk |𝑧|≤𝑅, at some 𝑧0. Then |𝑝(𝑧0)|≤|𝑝(0)|<|𝑝(𝑧)| for |𝑧|>𝑅, so |𝑝(𝑧0)|≤|𝑝(𝑧)| for every 𝑧∈ℂ.

The minimum is 0. Suppose 𝑝(𝑧0)≠0. Expanding each (𝑧0+𝑤)𝑗 shows that 𝑔(𝑤)=𝑝(𝑧0+𝑤)/𝑝(𝑧0) is a polynomial in 𝑤 of degree 𝑛 (its coefficient of 𝑤𝑛 is 𝑎𝑛/𝑝(𝑧0)), with 𝑔(0)=1 and |𝑔(𝑤)|≥1 for all 𝑤. Write

𝑔(𝑤)=1+𝑏𝑘𝑤𝑘+𝑏𝑘+1𝑤𝑘+1+⋯+𝑏𝑛𝑤𝑛,

where 1≤𝑘≤𝑛 and 𝑏𝑘≠0. Choose 𝛽∈ℂ with 𝛽𝑘=−1/𝑏𝑘, and let 𝐶=∑𝑗=𝑘+1𝑛|𝑏𝑗||𝛽|𝑗. For real 𝑡 with 0<𝑡≤1, we have 𝑏𝑘(𝑡𝛽)𝑘=−𝑡𝑘 and 𝑡𝑗≤𝑡𝑘+1 for 𝑗>𝑘, so

|𝑔(𝑡𝛽)|≤|1−𝑡𝑘|+∑𝑗=𝑘+1𝑛|𝑏𝑗|𝑡𝑗|𝛽|𝑗≤1−𝑡𝑘+𝐶𝑡𝑘+1=1−𝑡𝑘(1−𝐶𝑡).

For 0<𝑡<1 with 𝐶𝑡<1, this is less than 1, contradicting |𝑔|≥1. Hence 𝑝(𝑧0)=0.

The details of both steps, and a second proof by linear algebra due to Derksen, are in Section C.1. □

Some analysis is unavoidable in any proof. The theorem fails for the field ℚ(𝑖)={𝑎+𝑏𝑖|𝑎,𝑏∈ℚ}, which satisfies all the field axioms and contains a square root of −1, but in which 𝑥2−2 has no root. So no argument from the field axioms alone can prove it; every proof uses a property of ℝ such as completeness.

Splitting into linear factors

Definition 7.1.33 (Splitting). A nonzero polynomial 𝑝∈𝐹[𝑥] splits over 𝐹 if

𝑝=𝑎(𝑥−𝜆1)(𝑥−𝜆2)⋯(𝑥−𝜆𝑛)

for some 𝑎,𝜆1,…,𝜆𝑛∈𝐹.

Then 𝑛=deg𝑝 and 𝑎 is the leading coefficient, by Proposition 7.1.4. The polynomial 𝑥2+1 does not split over ℝ, since a factor 𝑥−𝜆 would give a real root; it splits over ℂ as (𝑥−𝑖)(𝑥+𝑖). The polynomial 𝑥2−2 splits over ℝ but not over ℚ. When a polynomial splits, its factors record its roots and their multiplicities.

Proposition 7.1.34 (Roots of a split polynomial). Let 𝑝=𝑎(𝑥−𝜆1)⋯(𝑥−𝜆𝑛) with 𝑎∈𝐹 nonzero and 𝜆1,…,𝜆𝑛∈𝐹. The roots of 𝑝 are exactly 𝜆1,…,𝜆𝑛, and each root of 𝑝 occurs in the list 𝜆1,…,𝜆𝑛 exactly as many times as its multiplicity. In particular, the list is determined by 𝑝 up to order, and the multiplicities of the distinct roots of 𝑝 add up to deg𝑝.

Proof.routine

Uses. Lemma 7.1.25 (Reading off a multiplicity), Proposition 7.1.10 (Evaluation respects sums and products), Proposition 1.1.17 (No zero divisors), Proposition 7.1.4 (Degree of a product)

Hint 1. Fix 𝜆∈𝐹 and let 𝑚 be the number of indices 𝑖 with 𝜆𝑖=𝜆. Collect these factors in front.
Hint 2. What is the value at 𝜆 of the product of the remaining factors? Apply Lemma 7.1.25.
Sketch. For 𝜆∈𝐹 occurring 𝑚 times in the list, 𝑝=(𝑥−𝜆)𝑚𝑞 with 𝑞=𝑎∏𝜆𝑖≠𝜆(𝑥−𝜆𝑖), and 𝑞(𝜆)=𝑎∏𝜆𝑖≠𝜆(𝜆−𝜆𝑖)≠0. By Lemma 7.1.25, 𝜆 has multiplicity 𝑚. So the number of occurrences of each scalar is its multiplicity, which depends only on 𝑝; summing over the distinct values in the list gives 𝑛=deg𝑝.

Fix 𝜆∈𝐹, and let 𝑚 be the number of indices 𝑖 with 𝜆𝑖=𝜆 (possibly 𝑚=0). Reordering the factors,

𝑝=(𝑥−𝜆)𝑚𝑞,where𝑞=𝑎∏𝑖:𝜆𝑖≠𝜆(𝑥−𝜆𝑖).

By Proposition 7.1.10, 𝑞(𝜆)=𝑎∏𝑖:𝜆𝑖≠𝜆(𝜆−𝜆𝑖), which is nonzero by Proposition 1.1.17, as each factor is. By Lemma 7.1.25, the multiplicity of 𝜆 as a root of 𝑝 is 𝑚. So 𝜆 is a root exactly when it occurs in the list, and it occurs as many times as its multiplicity. The number of occurrences of each scalar is therefore determined by 𝑝, which means the list is determined up to order. Summing the numbers of occurrences over the distinct values in the list counts every index once, which gives 𝑛=deg𝑝 (Proposition 7.1.4). □

Corollary 7.1.35 (Factorization over ℂ). Let 𝑝∈ℂ[𝑥] be nonzero, of degree 𝑛 and with leading coefficient 𝑎. Then

𝑝=𝑎(𝑥−𝜆1)(𝑥−𝜆2)⋯(𝑥−𝜆𝑛),

where 𝜆1,…,𝜆𝑛 are the roots of 𝑝, each listed as many times as its multiplicity. The factorization is unique up to the order of the factors. In particular, counted with multiplicity, 𝑝 has exactly deg𝑝 roots in ℂ.

Proof.routine

Uses. Theorem 7.1.32 (Fundamental Theorem of Algebra), Theorem 7.1.20 (Factor theorem), Proposition 7.1.4 (Degree of a product), Proposition 7.1.34 (Roots of a split polynomial), induction on 𝑛

Hint 1. Induct on 𝑛. Use Theorem 7.1.32 to find one root, and Theorem 7.1.20 to split it off.
Hint 2. Uniqueness and the statement about multiplicities are Proposition 7.1.34.
Sketch. For 𝑛=0, 𝑝=𝑎. For 𝑛≥1, Theorem 7.1.32 gives a root 𝜆𝑛, the factor theorem gives 𝑝=(𝑥−𝜆𝑛)𝑞 with deg𝑞=𝑛−1 and leading coefficient 𝑎, and induction factors 𝑞. The rest is Proposition 7.1.34.
We show by induction on 𝑛 that 𝑝 splits. For 𝑛=0, 𝑝=𝑎 is the empty product times 𝑎. Let 𝑛≥1. By Theorem 7.1.32, 𝑝 has a root 𝜆𝑛∈ℂ, and by Theorem 7.1.20, 𝑝=(𝑥−𝜆𝑛)𝑞 with deg𝑞=𝑛−1. By Proposition 7.1.4, the leading coefficient of 𝑞 is that of 𝑝, namely 𝑎. By the induction hypothesis 𝑞=𝑎(𝑥−𝜆1)⋯(𝑥−𝜆𝑛−1), and so 𝑝=𝑎(𝑥−𝜆1)⋯(𝑥−𝜆𝑛). By Proposition 7.1.34, the 𝜆𝑖 are the roots of 𝑝, each occurring as often as its multiplicity, and the list is determined by 𝑝 up to order. □

So over ℂ the bound of Proposition 7.1.27 is an equality. This is the count behind “an 𝑛×𝑛 complex matrix has 𝑛 eigenvalues, counted with multiplicity” in Section 7.4. The coefficients of a split polynomial are also expressed through its roots. We record the two that matter most later.

Proposition 7.1.36 (Sum and product of the roots). Let 𝑛≥1 and 𝜆1,…,𝜆𝑛∈𝐹. In (𝑥−𝜆1)⋯(𝑥−𝜆𝑛), the coefficient of 𝑥𝑛−1 is −(𝜆1+⋯+𝜆𝑛) and the constant term is (−1)𝑛𝜆1𝜆2⋯𝜆𝑛. So for 𝑛≥2,

(𝑥−𝜆1)⋯(𝑥−𝜆𝑛)=𝑥𝑛−(𝜆1+⋯+𝜆𝑛)𝑥𝑛−1+⋯+(−1)𝑛𝜆1𝜆2⋯𝜆𝑛,

where the omitted terms have degrees from 1 to 𝑛−2.

Proof.routine

Uses. Proposition 7.1.10 (Evaluation respects sums and products), Proposition 7.1.3 (𝐹[𝑥] is a commutative ring), induction on 𝑛

Hint 1. The constant term of a polynomial is its value at 0.
Hint 2. For the coefficient of 𝑥𝑛−1, induct on 𝑛 and multiply by 𝑥−𝜆𝑛+1.
Sketch. The constant term is the value at 0, which is ∏(0−𝜆𝑖)=(−1)𝑛∏𝜆𝑖. If (𝑥−𝜆1)⋯(𝑥−𝜆𝑛)=𝑥𝑛−𝑒𝑥𝑛−1+𝑟 with deg𝑟≤𝑛−2, then multiplying by 𝑥−𝜆𝑛+1 gives 𝑥𝑛+1−(𝑒+𝜆𝑛+1)𝑥𝑛 plus terms of degree at most 𝑛−1.

Let 𝑃𝑛=(𝑥−𝜆1)⋯(𝑥−𝜆𝑛). Its constant term is 𝑃𝑛(0)=(0−𝜆1)⋯(0−𝜆𝑛)=(−1)𝑛𝜆1⋯𝜆𝑛 by Proposition 7.1.10.

For the coefficient of 𝑥𝑛−1 we induct on 𝑛. For 𝑛=1, 𝑃1=𝑥−𝜆1. Suppose 𝑃𝑛=𝑥𝑛−𝑒𝑛𝑥𝑛−1+𝑟 with 𝑒𝑛=𝜆1+⋯+𝜆𝑛 and deg𝑟≤𝑛−2. Then

𝑃𝑛+1=(𝑥−𝜆𝑛+1)𝑃𝑛=𝑥𝑛+1−(𝑒𝑛+𝜆𝑛+1)𝑥𝑛+(𝜆𝑛+1𝑒𝑛𝑥𝑛−1+𝑥𝑟−𝜆𝑛+1𝑟),

and the last group has degree at most 𝑛−1. So the coefficient of 𝑥𝑛 in 𝑃𝑛+1 is −(𝜆1+⋯+𝜆𝑛+1). □

By Corollary 7.1.35, for a monic 𝑝=𝑥𝑛+𝑐𝑛−1𝑥𝑛−1+⋯+𝑐0∈ℂ[𝑥], the sum of its roots counted with multiplicity is −𝑐𝑛−1, and their product is (−1)𝑛𝑐0. Applied to characteristic polynomials, this says that the trace of a complex matrix is the sum of its eigenvalues and the determinant is their product (compare the coefficients in Proposition 5.3.19; see Section 7.5). Exercise 7.1.59 computes the remaining coefficient of a cubic.

7.1.6Factorization over ℝ

A polynomial with real coefficients is also a polynomial with complex coefficients, so Corollary 7.1.35 factors it over ℂ. The factors need not be real, but they come in conjugate pairs, and each pair multiplies to a real quadratic.

For 𝑓=∑𝑘𝑐𝑘𝑥𝑘∈ℂ[𝑥], write 𝑓=∑𝑘𝑐𝑘𝑥𝑘 for the polynomial with conjugated coefficients (Definition B.1.1).

Lemma 7.1.37 (Conjugating polynomials). For 𝑓,𝑔∈ℂ[𝑥] and 𝜆∈ℂ:

  1. (a)𝑓+𝑔=𝑓+𝑔 and 𝑓𝑔=𝑓𝑔;
  2. (b)𝑓(𝜆)=𝑓(𝜆);
  3. (c)𝑓=𝑓 if and only if 𝑓∈ℝ[𝑥].

Proof.routine

Uses. Notation 6.1.1 (Real and complex scalars), Definition 7.1.1 (Product of polynomials), Definition 1.2.17 (Evaluation)

Hint. Conjugation of complex numbers respects sums and products (Notation 6.1.1). Apply it to the formulas for the coefficients of 𝑓+𝑔 and 𝑓𝑔, and to the formula for 𝑓(𝜆).
Sketch. The 𝑘-th coefficient of 𝑓𝑔 is ∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗=∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗, that of 𝑓𝑔; sums are similar. Likewise 𝑓(𝜆)=∑𝑐𝑘𝜆𝑘. A complex number equals its conjugate exactly when it is real.

Write 𝑓=∑𝑘𝑎𝑘𝑥𝑘 and 𝑔=∑𝑘𝑏𝑘𝑥𝑘. We use 𝑧+𝑤=𝑧+𝑤, 𝑧𝑤=𝑧𝑤, and 𝑧=𝑧 if and only if 𝑧∈ℝ (Notation 6.1.1).

(a) The 𝑘-th coefficient of 𝑓+𝑔 is 𝑎𝑘+𝑏𝑘=𝑎𝑘+𝑏𝑘, that of 𝑓+𝑔. The 𝑘-th coefficient of 𝑓𝑔 is ∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗=∑𝑖+𝑗=𝑘𝑎𝑖𝑏𝑗, that of 𝑓𝑔.

(b) 𝑓(𝜆)=∑𝑘𝑎𝑘𝜆𝑘=∑𝑘𝑎𝑘𝜆𝑘=𝑓(𝜆).

(c) 𝑓=𝑓 means 𝑎𝑘=𝑎𝑘 for every 𝑘, that is, 𝑎𝑘∈ℝ for every 𝑘. □

Intuition. Conjugation is a symmetry of ℂ: it respects sums and products and fixes every real number. So it carries any equation with real coefficients to another true equation. Applied to 𝑝(𝜆)=0 for a real polynomial 𝑝, it gives 𝑝(𝜆)=0, and applied to a factorization, it shows that 𝜆 and 𝜆 occur equally often.
Proposition 7.1.38 (Conjugate roots). Let 𝑝∈ℝ[𝑥] be nonzero, regarded as an element of ℂ[𝑥], and let 𝜆∈ℂ. Then 𝜆 and 𝜆 have the same multiplicity as roots of 𝑝. In particular, the nonreal roots of 𝑝 come in pairs 𝜆≠𝜆.

Proof.standard

Uses. Lemma 7.1.37 (Conjugating polynomials), Lemma 7.1.25 (Reading off a multiplicity), Notation 6.1.1 (Real and complex scalars)

Hint 1. First show that 𝜆 is a root whenever 𝜆 is: conjugate the equation 𝑝(𝜆)=0.
Hint 2. For multiplicities, conjugate a factorization 𝑝=(𝑥−𝜆)𝑚𝑞 with 𝑞(𝜆)≠0, and apply Lemma 7.1.25 at 𝜆.
Sketch. Let 𝑚 be the multiplicity of 𝜆, so 𝑝=(𝑥−𝜆)𝑚𝑞 with 𝑞(𝜆)≠0. Conjugating with Lemma 7.1.37, and using 𝑝=𝑝 and 𝑥−𝜆=𝑥−𝜆, gives 𝑝=(𝑥−𝜆)𝑚𝑞 with 𝑞(𝜆)=𝑞(𝜆)≠0. So 𝜆 has multiplicity 𝑚.

Let 𝑚 be the multiplicity of 𝜆, and write 𝑝=(𝑥−𝜆)𝑚𝑞 with 𝑞(𝜆)≠0 (Lemma 7.1.25). Since 𝑝 has real coefficients, 𝑝=𝑝, and 𝑥−𝜆=𝑥−𝜆. By Lemma 7.1.37(a), applied to each factor,

𝑝=𝑝=(𝑥−𝜆)𝑚𝑞,

and by Lemma 7.1.37(b), 𝑞(𝜆)=𝑞(𝜆)≠0. By Lemma 7.1.25, 𝜆 has multiplicity 𝑚 as a root of 𝑝. If 𝜆 is not real, then 𝜆≠𝜆, so the nonreal roots of 𝑝 come in pairs 𝜆,𝜆 of equal multiplicity. □

Theorem 7.1.39 (Factorization over ℝ). Every nonzero 𝑝∈ℝ[𝑥] can be written as

𝑝=𝑎(𝑥−𝜆1)⋯(𝑥−𝜆𝑘)(𝑥2+𝑏1𝑥+𝑐1)⋯(𝑥2+𝑏𝑙𝑥+𝑐𝑙),

where 𝑎,𝜆𝑖,𝑏𝑗,𝑐𝑗∈ℝ and 𝑏𝑗2<4𝑐𝑗 for each 𝑗 (so 𝑘+2𝑙=deg𝑝). Here 𝜆1,…,𝜆𝑘 are the real roots of 𝑝, each listed as many times as its multiplicity. The factorization is unique up to the order of the factors.

Proof.standard

Uses. Corollary 7.1.35 (Factorization over ℂ), Proposition 7.1.38 (Conjugate roots), Proposition 7.1.34 (Roots of a split polynomial), Notation 6.1.1 (Real and complex scalars), Corollary 7.1.17 (Division does not depend on the field)

Hint 1. Factor 𝑝 over ℂ. The real roots give real linear factors. What is (𝑥−𝜇)(𝑥−𝜇) for a nonreal 𝜇?
Hint 2. (𝑥−𝜇)(𝑥−𝜇)=𝑥2−2(Re𝜇)𝑥+|𝜇|2. Use Proposition 7.1.38 to pair up all nonreal factors.
Hint 3. For uniqueness, split each real quadratic factor over ℂ into a conjugate pair, and compare with the complex factorization, which is unique by Proposition 7.1.34.
Sketch. Over ℂ, 𝑝=𝑎∏𝑖(𝑥−𝜆𝑖) with 𝑎 real. By Proposition 7.1.38, the nonreal roots with negative imaginary part are the conjugates of those with positive imaginary part, with the same multiplicities, so the nonreal factors pair up as (𝑥−𝜇)(𝑥−𝜇)=𝑥2−2(Re𝜇)𝑥+|𝜇|2, a real quadratic with discriminant −4(Im𝜇)2<0. Conversely, each real quadratic with 𝑏2<4𝑐 is (𝑥−𝜈)(𝑥−𝜈) for a nonreal 𝜈, so any real factorization gives the complex one; the real roots are the 𝜆𝑖, and the roots with positive imaginary part determine the quadratics.

Existence. By Corollary 7.1.35, 𝑝=𝑎(𝑥−𝜆1)⋯(𝑥−𝜆𝑛) in ℂ[𝑥], where 𝑎 is the leading coefficient of 𝑝, which is real, and the 𝜆𝑖 are the roots of 𝑝 listed with multiplicity. Reorder them so that 𝜆1,…,𝜆𝑘 are the real ones. Let 𝜇1,…,𝜇𝑙 be the roots of 𝑝 with positive imaginary part, each listed as many times as its multiplicity. By Proposition 7.1.38, conjugation maps the roots with positive imaginary part bijectively onto the roots with negative imaginary part, preserving multiplicities. So 𝜇1,…,𝜇𝑙 are the roots with negative imaginary part, listed with multiplicity. Hence, reordering factors,

𝑝=𝑎(𝑥−𝜆1)⋯(𝑥−𝜆𝑘)∏𝑗=1𝑙(𝑥−𝜇𝑗)(𝑥−𝜇𝑗).

For each 𝑗, using 𝜇+𝜇=2Re𝜇 and 𝜇𝜇=|𝜇|2 (Notation 6.1.1),

(𝑥−𝜇𝑗)(𝑥−𝜇𝑗)=𝑥2−2(Re𝜇𝑗)𝑥+|𝜇𝑗|2=𝑥2+𝑏𝑗𝑥+𝑐𝑗,

with 𝑏𝑗=−2Re𝜇𝑗 and 𝑐𝑗=|𝜇𝑗|2 real, and 𝑏𝑗2−4𝑐𝑗=4(Re𝜇𝑗)2−4((Re𝜇𝑗)2+(Im𝜇𝑗)2)=−4(Im𝜇𝑗)2<0. All factors now lie in ℝ[𝑥], and products in ℝ[𝑥] are computed by the same formula as in ℂ[𝑥], so this is a factorization of the required form in ℝ[𝑥]. The 𝜆𝑖 are the real roots listed with their multiplicities in ℂ[𝑥]; for a real root 𝜆 this is also its multiplicity in ℝ[𝑥], because whether (𝑥−𝜆)𝑚 divides 𝑝 does not depend on the field (Corollary 7.1.17).

Uniqueness. Take any factorization of the stated form, with factors 𝑥−𝜆𝑖′ (𝑖≤𝑘′) and 𝑥2+𝑏𝑗′𝑥+𝑐𝑗′ (𝑗≤𝑙′) and constant 𝑎′. Comparing leading coefficients (Proposition 7.1.4), 𝑎′=𝑎. For each 𝑗, since 4𝑐𝑗′−𝑏𝑗′2>0, the number

𝜈𝑗=−𝑏𝑗′+𝑖4𝑐𝑗′−𝑏𝑗′22

is not real, and 𝜈𝑗+𝜈𝑗=−𝑏𝑗′ and 𝜈𝑗𝜈𝑗=(𝑏𝑗′2+(4𝑐𝑗′−𝑏𝑗′2))/4=𝑐𝑗′, so 𝑥2+𝑏𝑗′𝑥+𝑐𝑗′=(𝑥−𝜈𝑗)(𝑥−𝜈𝑗). Substituting, 𝑝 splits over ℂ with the list of roots 𝜆1′,…,𝜆𝑘′′,𝜈1,𝜈1,…,𝜈𝑙′,𝜈𝑙′. By Proposition 7.1.34 this list is, up to order, the list of roots of 𝑝 with multiplicity. Its real members are the 𝜆𝑖′, so these are the real roots of 𝑝 listed with multiplicity. Its members with positive imaginary part are the 𝜈𝑗, so these are the roots of 𝑝 with positive imaginary part, listed with multiplicity. Both lists are determined by 𝑝, and each quadratic factor is determined by its 𝜈𝑗, as (𝑥−𝜈𝑗)(𝑥−𝜈𝑗). Hence the factors are determined by 𝑝 up to order. □

Example 7.1.40 (𝑥4+4). Since (1+𝑖)2=2𝑖, we get (1+𝑖)4=(2𝑖)2=−4, and in the same way (±1±𝑖)4=−4 for all four choices of signs. These are four distinct roots of 𝑥4+4, so by Corollary 7.1.35

𝑥4+4=(𝑥−1−𝑖)(𝑥−1+𝑖)(𝑥+1−𝑖)(𝑥+1+𝑖).

Pairing conjugates as in the proof, (𝑥−1−𝑖)(𝑥−1+𝑖)=(𝑥−1)2+1 and (𝑥+1−𝑖)(𝑥+1+𝑖)=(𝑥+1)2+1, so

𝑥4+4=(𝑥2−2𝑥+2)(𝑥2+2𝑥+2)

over ℝ, and even over ℚ, although 𝑥4+4 has no real root. As Proposition 7.1.36 predicts, the roots add up to 0, the negative of the coefficient of 𝑥3, and their product is (1+1)(1+1)=4=(−1)4⋅4.

The real quadratic factors cannot be split further over ℝ. This is the real counterpart of the fact that linear factors cannot be split further over ℂ.

Definition 7.1.41 (Irreducible polynomial). A polynomial 𝑝∈𝐹[𝑥] of degree at least 1 is irreducible over 𝐹 if it cannot be written as 𝑝=𝑔ℎ with 𝑔,ℎ∈𝐹[𝑥] both of degree at least 1. Otherwise, and if deg𝑝≥1, it is reducible.

Every polynomial of degree 1 is irreducible, since degrees add (Proposition 7.1.4). Irreducibility depends on the field: 𝑥2+1 is irreducible over ℝ but equals (𝑥−𝑖)(𝑥+𝑖) over ℂ; 𝑥2+𝑥+1 is irreducible over 𝔽2, since it has no root there (Exercise 7.1.61), but equals (𝑥−1)2 over 𝔽3. Irreducible polynomials play the role of prime numbers (Exercise 7.1.68).

Corollary 7.1.42 (Irreducible polynomials over ℂ and ℝ).
  1. (a)A polynomial in ℂ[𝑥] is irreducible over ℂ if and only if it has degree 1.
  2. (b)A polynomial in ℝ[𝑥] is irreducible over ℝ if and only if it has degree 1, or it is 𝑎𝑥2+𝑏𝑥+𝑐 with 𝑎≠0 and 𝑏2<4𝑎𝑐.

Proof.routine

Uses. Corollary 7.1.35 (Factorization over ℂ), Theorem 7.1.39 (Factorization over ℝ), Theorem 7.1.20 (Factor theorem), Exercise 1.1.50, Proposition 7.1.4 (Degree of a product)

Hint 1. A polynomial of degree 1 is always irreducible. For larger degrees, read off a factorization from Corollary 7.1.35 or Theorem 7.1.39.
Hint 2. For a real quadratic, a factorization into two linear factors gives a real root. When does 𝑎𝑥2+𝑏𝑥+𝑐 have a real root?
Sketch. Degree 1 is irreducible because degrees add. Over ℂ, degree 𝑛≥2 splits into 𝑛≥2 linear factors. Over ℝ, degree at least 3 gives at least two factors in Theorem 7.1.39, as 𝑘+2𝑙≥3. A real quadratic is reducible if and only if it has a real root, and by the quadratic formula (Exercise 1.1.50) that happens if and only if 𝑏2−4𝑎𝑐≥0.

Polynomials of degree 1 are irreducible over every field, because in a product 𝑔ℎ of two polynomials of degree at least 1, the degree is at least 2.

(a) If 𝑝∈ℂ[𝑥] has degree 𝑛≥2, then by Corollary 7.1.35 𝑝=(𝑎(𝑥−𝜆1))⋅((𝑥−𝜆2)⋯(𝑥−𝜆𝑛)), a product of two polynomials of degrees 1 and 𝑛−1≥1.

(b) Let 𝑝∈ℝ[𝑥]. If deg𝑝≥3, then in Theorem 7.1.39 𝑘+2𝑙=deg𝑝≥3, so there are at least two non-constant factors. Splitting off one of them (and absorbing 𝑎 into it) writes 𝑝 as a product of two polynomials of degree at least 1, so 𝑝 is reducible.

Now let 𝑝=𝑎𝑥2+𝑏𝑥+𝑐 with 𝑎≠0. If 𝑝 has a real root 𝑡, then 𝑝=(𝑥−𝑡)𝑞 with deg𝑞=1 (Theorem 7.1.20), so 𝑝 is reducible. Conversely, if 𝑝=𝑔ℎ with deg𝑔=degℎ=1, say 𝑔=𝑢𝑥+𝑣 with 𝑢≠0, then −𝑣/𝑢 is a root of 𝑔, hence of 𝑝. So 𝑝 is irreducible if and only if it has no real root. By Exercise 1.1.50, 𝑝 has a real root if and only if 𝑏2−4𝑎𝑐=𝑑2 for some 𝑑∈ℝ, that is, if and only if 𝑏2−4𝑎𝑐≥0. So 𝑝 is irreducible if and only if 𝑏2<4𝑎𝑐. □

The last consequence concerns odd degree. It has a proof from the factorization and a proof that avoids ℂ altogether.

Corollary 7.1.43 (Odd degree gives a real root). Every polynomial 𝑝∈ℝ[𝑥] of odd degree has a real root.

Proof (by conjugate pairs).routine

Uses. Theorem 7.1.39 (Factorization over ℝ), Proposition 7.1.10 (Evaluation respects sums and products)

Hint. In Theorem 7.1.39, 𝑘+2𝑙=deg𝑝. What does odd degree say about 𝑘?
Sketch. 𝑘+2𝑙=deg𝑝 is odd, so 𝑘≥1, and 𝜆1 is a real root.
In the factorization of Theorem 7.1.39, 𝑘+2𝑙=deg𝑝 is odd, so 𝑘 is odd and in particular 𝑘≥1. Then 𝜆1 is a real root of 𝑝, by Proposition 7.1.10. □

Proof (by the intermediate value theorem).standard

Uses. the intermediate value theorem

Hint 1. Assume the leading coefficient is positive. Show that 𝑝(𝑡)>0 for large positive 𝑡 and 𝑝(𝑡)<0 for large negative 𝑡.
Hint 2. For |𝑡|≥1, bound the lower terms by 𝐴|𝑡|𝑛−1, where 𝐴 is the sum of the absolute values of the lower coefficients.
Sketch. With 𝑎𝑛>0 and 𝐴=∑𝑘<𝑛|𝑎𝑘|, for |𝑡|≥1 the lower terms are at most 𝐴|𝑡|𝑛−1 in absolute value. At 𝑇=1+𝐴/𝑎𝑛 this gives 𝑝(𝑇)>0>𝑝(−𝑇), because 𝑛 is odd. The intermediate value theorem gives a root in (−𝑇,𝑇).

Let 𝑝=∑𝑘=0𝑛𝑎𝑘𝑥𝑘 with 𝑛 odd and 𝑎𝑛≠0. Replacing 𝑝 by −𝑝, which has the same roots, we may assume 𝑎𝑛>0. Let 𝐴=|𝑎0|+⋯+|𝑎𝑛−1|. For real 𝑡 with |𝑡|≥1, we have |𝑎𝑘𝑡𝑘|≤|𝑎𝑘||𝑡|𝑛−1 for 𝑘<𝑛, so

|𝑝(𝑡)−𝑎𝑛𝑡𝑛|≤𝐴|𝑡|𝑛−1.

Let 𝑇=1+𝐴/𝑎𝑛≥1, so that 𝑎𝑛𝑇−𝐴=𝑎𝑛>0. Then 𝑝(𝑇)≥𝑎𝑛𝑇𝑛−𝐴𝑇𝑛−1=𝑇𝑛−1𝑎𝑛>0, and since 𝑛 is odd, (−𝑇)𝑛=−𝑇𝑛 and

𝑝(−𝑇)≤−𝑎𝑛𝑇𝑛+𝐴𝑇𝑛−1=−𝑇𝑛−1𝑎𝑛<0.

The function 𝑡↦𝑝(𝑡) is continuous on [−𝑇,𝑇], so by the intermediate value theorem it vanishes somewhere in (−𝑇,𝑇). □

The second proof is the more elementary one: it uses the completeness of ℝ directly, through the intermediate value theorem, while the first relies on the Fundamental Theorem of Algebra, whose proof uses completeness in a much more elaborate way. On the other hand, the first proof gives more: the number of real roots, counted with multiplicity, has the same parity as deg𝑝. In Section 7.3, this corollary shows that every operator on a real vector space of odd dimension has an eigenvalue.

7.1.7Greatest common divisors Beyond 21-242

Greatest common divisors of polynomials are not covered in lecture. They are used in Section 7.6, Section 10.2, and Section 14.4.

The integers have greatest common divisors, computed by the Euclidean algorithm, and gcd(𝑎,𝑏) is an integer combination 𝑢𝑎+𝑣𝑏 (Bézout’s identity). All of this carries over to 𝐹[𝑥], because the only tool it needs is division with remainder. The application to linear algebra is this: if 𝑝 and 𝑠 have no common factor, then 𝑢𝑝+𝑣𝑠=1 for some polynomials 𝑢 and 𝑣, and for a square matrix 𝐴, Remark 7.1.11 turns this into 𝑢(𝐴)𝑝(𝐴)+𝑣(𝐴)𝑠(𝐴)=𝐼𝑛. Section 7.6 and Section 10.2 use such identities to split a space into the kernels of 𝑝(𝐴) and 𝑠(𝐴).

Definition 7.1.44 (Greatest common divisor). Let 𝑝,𝑠∈𝐹[𝑥], not both 𝟎. A greatest common divisor of 𝑝 and 𝑠 is a monic polynomial 𝑑 such that 𝑑∣𝑝, 𝑑∣𝑠, and every common divisor of 𝑝 and 𝑠 divides 𝑑. If 1 is a greatest common divisor of 𝑝 and 𝑠, they are coprime.

“Greatest” refers to divisibility, but it implies the largest degree: every common divisor divides 𝑑, so its degree is at most deg𝑑.

Theorem 7.1.45 (Bézout’s identity). Let 𝑝,𝑠∈𝐹[𝑥], not both 𝟎. Then 𝑝 and 𝑠 have exactly one greatest common divisor 𝑑, written gcd(𝑝,𝑠), and there are 𝑢,𝑣∈𝐹[𝑥] with

𝑑=𝑢𝑝+𝑣𝑠.

Moreover, 𝑑 is the monic polynomial of smallest degree of the form 𝑢𝑝+𝑣𝑠.

Intuition. Consider all combinations 𝑢𝑝+𝑣𝑠. Every common divisor of 𝑝 and 𝑠 divides each of them, so a combination that itself divides 𝑝 and 𝑠 is automatically a greatest common divisor. The smallest nonzero combination is the natural candidate: dividing 𝑝 by it leaves a remainder that is again a combination, and smaller, so it must be 𝟎.

Proof (by a combination of smallest degree).hard

Hint 1. Let 𝐼={𝑢𝑝+𝑣𝑠|𝑢,𝑣∈𝐹[𝑥]}. Choose a nonzero element of 𝐼 of smallest degree, and scale it to be monic.
Hint 2. Divide 𝑝 by this element 𝑑. Show that the remainder lies in 𝐼, and conclude from minimality that it is 𝟎.
Hint 3. For uniqueness, two greatest common divisors divide each other, and both are monic.
Sketch. The set 𝐼 of combinations 𝑢𝑝+𝑣𝑠 is closed under sums and under multiplication by polynomials, and contains a nonzero element. Let 𝑑∈𝐼 be monic of smallest degree. The remainder of 𝑝 on division by 𝑑 is 𝑝−𝑞𝑑∈𝐼 and has degree less than deg𝑑, so it is 𝟎; thus 𝑑∣𝑝, and likewise 𝑑∣𝑠. A common divisor of 𝑝 and 𝑠 divides 𝑢𝑝+𝑣𝑠=𝑑. Two greatest common divisors divide each other and are monic, so they are equal.

Let 𝐼={𝑢𝑝+𝑣𝑠|𝑢,𝑣∈𝐹[𝑥]}. It contains 𝑝=1𝑝+𝟎𝑠 and 𝑠, so it contains a nonzero polynomial. It is closed under sums, since (𝑢𝑝+𝑣𝑠)+(𝑢′𝑝+𝑣′𝑠)=(𝑢+𝑢′)𝑝+(𝑣+𝑣′)𝑠, and under multiplication by any 𝑤∈𝐹[𝑥], since 𝑤(𝑢𝑝+𝑣𝑠)=(𝑤𝑢)𝑝+(𝑤𝑣)𝑠.

Existence. Among the nonzero elements of 𝐼, choose one of smallest degree. Multiplying it by the inverse of its leading coefficient keeps it in 𝐼 and makes it monic; call the result 𝑑=𝑢𝑝+𝑣𝑠. Divide 𝑝 by 𝑑: 𝑝=𝑑𝑞+𝑟 with deg𝑟<deg𝑑 (Theorem 7.1.14). Then

𝑟=𝑝−𝑞𝑑=(1−𝑞𝑢)𝑝+(−𝑞𝑣)𝑠∈𝐼.

By the choice of 𝑑, no nonzero element of 𝐼 has degree less than deg𝑑, so 𝑟=𝟎 and 𝑑∣𝑝. In the same way 𝑑∣𝑠. If 𝑒 divides both 𝑝 and 𝑠, say 𝑝=𝑒𝑝′ and 𝑠=𝑒𝑠′, then 𝑑=𝑢𝑝+𝑣𝑠=𝑒(𝑢𝑝′+𝑣𝑠′), so 𝑒∣𝑑. Hence 𝑑 is a greatest common divisor, and it is a combination of 𝑝 and 𝑠.

Uniqueness. If 𝑑 and 𝑑′ are both greatest common divisors, then each divides the other, by the definition applied twice. As noted after Definition 7.1.16, two monic polynomials that divide each other are equal.

Smallest degree. We showed that the gcd is a monic element of 𝐼 of smallest degree. Conversely, any monic 𝑑′∈𝐼 of smallest degree is, by the existence argument applied to 𝑑′, a greatest common divisor, so it equals 𝑑. □

The second proof computes 𝑑, and 𝑢 and 𝑣 as well, by repeated division.

Algorithm 7.1.46 (Euclidean algorithm)

Input
Polynomials 𝑝,𝑠∈𝐹[𝑥] with 𝑠≠𝟎.
Output
gcd(𝑝,𝑠).

1.

Set 𝑟0=𝑝 and 𝑟1=𝑠, and 𝑖=1.

2.

If 𝑟𝑖=𝟎, output 𝑟𝑖−1 divided by its leading coefficient, and stop.

3.

Otherwise let 𝑟𝑖+1 be the remainder of 𝑟𝑖−1 on division by 𝑟𝑖, increase 𝑖 by 1, and return to step 2.

Proof of Theorem 7.1.45 (by the Euclidean algorithm).hard

Uses. Theorem 7.1.14 (Division with remainder), Definition 7.1.44 (Greatest common divisor), Definition 7.1.16 (Divisibility)

Techniques. Algorithms as proofs: invariants and termination (Technique 3.3.5)

Hint 1. If 𝑠=𝟎, the gcd is 𝑝 made monic. Otherwise run Algorithm 7.1.46. Why does it stop?
Hint 2. Find an invariant: compare the common divisors of 𝑟𝑖−1 and 𝑟𝑖 with those of 𝑟𝑖 and 𝑟𝑖+1.
Hint 3. Show also by induction that every 𝑟𝑖 is a combination 𝑢𝑖𝑝+𝑣𝑖𝑠.
Sketch. The degrees deg𝑟1>deg𝑟2>⋯ strictly decrease, so some 𝑟𝑁+1=𝟎. Since 𝑟𝑖+1=𝑟𝑖−1−𝑞𝑖𝑟𝑖 and 𝑟𝑖−1=𝑞𝑖𝑟𝑖+𝑟𝑖+1, the pairs (𝑟𝑖−1,𝑟𝑖) and (𝑟𝑖,𝑟𝑖+1) have the same common divisors. So the common divisors of 𝑝 and 𝑠 are those of 𝑟𝑁 and 𝟎, the divisors of 𝑟𝑁. Each 𝑟𝑖 is a combination of 𝑝 and 𝑠 by induction. Making 𝑟𝑁 monic gives 𝑑; uniqueness is as in the first proof.

If 𝑠=𝟎, then 𝑝≠𝟎, and the common divisors of 𝑝 and 𝟎 are the divisors of 𝑝. So 𝑝 divided by its leading coefficient 𝑎 is a greatest common divisor, and it equals 𝑎−1𝑝+𝟎𝑠. Now let 𝑠≠𝟎 and run Algorithm 7.1.46. Each 𝑟𝑖+1 is a remainder on division by 𝑟𝑖, so deg𝑟𝑖+1<deg𝑟𝑖. A strictly decreasing sequence of nonnegative integers is finite, so some 𝑟𝑁+1=𝟎 with 𝑟𝑁≠𝟎, and the algorithm stops.

Invariant. Write 𝑟𝑖−1=𝑞𝑖𝑟𝑖+𝑟𝑖+1. If 𝑒 divides 𝑟𝑖−1 and 𝑟𝑖, it divides 𝑟𝑖+1=𝑟𝑖−1−𝑞𝑖𝑟𝑖; if 𝑒 divides 𝑟𝑖 and 𝑟𝑖+1, it divides 𝑟𝑖−1. So the pairs (𝑟𝑖−1,𝑟𝑖) and (𝑟𝑖,𝑟𝑖+1) have the same common divisors. Following the chain from (𝑝,𝑠)=(𝑟0,𝑟1) to (𝑟𝑁,𝑟𝑁+1)=(𝑟𝑁,𝟎), the common divisors of 𝑝 and 𝑠 are exactly the divisors of 𝑟𝑁. In particular, with 𝑎 the leading coefficient of 𝑟𝑁, the monic polynomial 𝑑=𝑎−1𝑟𝑁 divides 𝑝 and 𝑠, and every common divisor divides 𝑑. So 𝑑 is a greatest common divisor.

Combination. We show by induction on 𝑖 that 𝑟𝑖=𝑢𝑖𝑝+𝑣𝑖𝑠 for some 𝑢𝑖,𝑣𝑖. This holds for 𝑟0=1𝑝+𝟎𝑠 and 𝑟1=𝟎𝑝+1𝑠, and if it holds for 𝑟𝑖−1 and 𝑟𝑖, then 𝑟𝑖+1=𝑟𝑖−1−𝑞𝑖𝑟𝑖=(𝑢𝑖−1−𝑞𝑖𝑢𝑖)𝑝+(𝑣𝑖−1−𝑞𝑖𝑣𝑖)𝑠. So 𝑑=𝑎−1𝑢𝑁𝑝+𝑎−1𝑣𝑁𝑠. Every nonzero combination 𝑢𝑝+𝑣𝑠 is divisible by 𝑑, which divides 𝑝 and 𝑠, so it has degree at least deg𝑑; and a monic combination 𝑑′ of degree deg𝑑 is divisible by 𝑑, so 𝑑′=𝑑 (compare leading coefficients). Uniqueness of the gcd is proved as in the first proof. □

Example 7.1.47 (A greatest common divisor over ℚ). Let 𝑝=𝑥4−1 and 𝑠=𝑥3+2𝑥2+2𝑥+1. The Euclidean algorithm, with 𝑟0=𝑝 and 𝑟1=𝑠, gives

𝑝=(𝑥−2)𝑠+𝑟2,𝑟2=2𝑥2+3𝑥+1,𝑠=(12𝑥+14)𝑟2+𝑟3,𝑟3=34(𝑥+1),𝑟2=(83𝑥+43)𝑟3.

The last nonzero remainder is 𝑟3=34(𝑥+1), so gcd(𝑝,𝑠)=𝑥+1. Running the substitutions backwards, with 𝑟2=𝑝−(𝑥−2)𝑠 and 𝑟3=𝑠−(12𝑥+14)𝑟2,

𝑥+1=43𝑟3=−(23𝑥+13)𝑝+(23𝑥2−𝑥+23)𝑠.

The factorizations 𝑝=(𝑥−1)(𝑥+1)(𝑥2+1) and 𝑠=(𝑥+1)(𝑥2+𝑥+1) confirm the answer.

Corollary 7.1.48 (Coprime polynomials). Let 𝑝,𝑠∈𝐹[𝑥], not both 𝟎.

  1. (a)𝑝 and 𝑠 are coprime if and only if 𝑢𝑝+𝑣𝑠=1 for some 𝑢,𝑣∈𝐹[𝑥].
  2. (b)If 𝐹=ℂ, then 𝑝 and 𝑠 are coprime if and only if they have no common root.

Proof.standard

Uses. Theorem 7.1.45 (Bézout’s identity), Corollary 7.1.7 (No zero divisors, cancellation, and units), Theorem 7.1.20 (Factor theorem), Theorem 7.1.32 (Fundamental Theorem of Algebra)

Hint 1. For (a), “only if” is Theorem 7.1.45. For “if”, what can a common divisor of 𝑝 and 𝑠 be, if it divides 1?
Hint 2. For (b), a common root 𝜆 gives the common factor 𝑥−𝜆. Conversely, apply Theorem 7.1.32 to the gcd.
Sketch. (a) If 𝑝,𝑠 are coprime, Bézout gives 𝑢𝑝+𝑣𝑠=1. Conversely, every common divisor divides 𝑢𝑝+𝑣𝑠=1, so it is a nonzero constant, and the monic gcd is 1. (b) A common root 𝜆 makes 𝑥−𝜆 a common divisor of degree 1, so the gcd is not 1. If the gcd 𝑑 is not 1, it is monic of degree at least 1 and has a root by Theorem 7.1.32, which is a root of 𝑝 and of 𝑠.

(a) If 𝑝 and 𝑠 are coprime, Theorem 7.1.45 gives 𝑢𝑝+𝑣𝑠=gcd(𝑝,𝑠)=1. Conversely, suppose 𝑢𝑝+𝑣𝑠=1, and let 𝑑=gcd(𝑝,𝑠). Then 𝑑 divides 𝑢𝑝+𝑣𝑠=1, so deg𝑑≤0, and 𝑑, being monic, is 1.

(b) If 𝜆 is a common root, then 𝑥−𝜆 divides 𝑝 and 𝑠 (Theorem 7.1.20), so it divides gcd(𝑝,𝑠), which therefore has degree at least 1 and is not 1. Conversely, if 𝑑=gcd(𝑝,𝑠)≠1, then 𝑑 is monic of degree at least 1, since the only monic constant is 1. By Theorem 7.1.32, 𝑑 has a root 𝜆∈ℂ, and since 𝑑 divides 𝑝 and 𝑠, 𝜆 is a root of both. □

Part (b) fails over ℝ: 𝑥2+1 and 𝑥4−1 have no common real root, but their gcd is 𝑥2+1.

Exercises

Exercise 7.1.49.routine Let 𝑝=𝑥4−2𝑥3+2𝑥−1. Factor 𝑝 into linear factors over ℚ, over 𝔽3, and over 𝔽2, and in each case list the roots of 𝑝 with their multiplicities.

Solution.

Uses. Theorem 7.1.20 (Factor theorem), Example 7.1.26 (Multiplicity depends on the field), Proposition 7.1.34 (Roots of a split polynomial)

Hint 1. Check that 1 is a root, and split off 𝑥−1 with Horner’s scheme.
Hint 2. The quotient is the polynomial of Example 7.1.26. The resulting identity has integer coefficients, so it can be read in 𝔽3 and 𝔽2.
Sketch. 𝑝=(𝑥−1)(𝑥3−𝑥2−𝑥+1)=(𝑥−1)3(𝑥+1). Over ℚ: 1 with multiplicity 3 and −1 with multiplicity 1. Over 𝔽3, 𝑥+1=𝑥−2: 1 with multiplicity 3 and 2 with multiplicity 1. Over 𝔽2, 𝑥+1=𝑥−1: 1 with multiplicity 4.

Since 𝑝(1)=1−2+2−1=0, Horner’s scheme with 𝑐=1 applies to the coefficients 1,−2,0,2,−1: it gives 1, −2+1=−1, 0−1=−1, 2−1=1, and remainder −1+1=0. So 𝑝=(𝑥−1)(𝑥3−𝑥2−𝑥+1), and by Example 7.1.26, 𝑥3−𝑥2−𝑥+1=(𝑥−1)2(𝑥+1). Hence

𝑝=(𝑥−1)3(𝑥+1).

This identity was derived with integer arithmetic, so it holds over every field when the integers are read in that field. By Proposition 7.1.34, the roots and multiplicities can be read off from a factorization into linear factors.

Over ℚ, the roots are 1, with multiplicity 3, and −1, with multiplicity 1. Over 𝔽3, 𝑥+1=𝑥−2, so 𝑝=(𝑥−1)3(𝑥−2): the roots are 1, with multiplicity 3, and 2, with multiplicity 1. Over 𝔽2, 𝑥+1=𝑥−1, so 𝑝=(𝑥−1)4, and 1 is the only root, with multiplicity 4. In each case the multiplicities add up to 4=deg𝑝.

Exercise 7.1.50.standard Over ℚ, find the remainder of 𝑥100 on division by (a) 𝑥2−1; (b) 𝑥2+1; (c) (𝑥−1)2.

Solution.

Uses. Theorem 7.1.14 (Division with remainder), Proposition 7.1.10 (Evaluation respects sums and products), Corollary 7.1.17 (Division does not depend on the field), Exercise 2.1.49

Hint 1. The remainder has the form 𝑎𝑥+𝑏. Evaluate 𝑥100=𝑠𝑞+𝑎𝑥+𝑏 at the roots of 𝑠 to get equations for 𝑎 and 𝑏.
Hint 2. For (b), the roots ±𝑖 are not rational. Why may you divide in ℂ[𝑥] instead? For (c), there is only one root; differentiate to get a second equation.
Sketch. (a) At ±1: 1=𝑎+𝑏 and 1=−𝑎+𝑏, so the remainder is 1. (b) Over ℂ, at ±𝑖: 𝑖100=1=±𝑎𝑖+𝑏, so the remainder is 1; by Corollary 7.1.17 it is also the remainder over ℚ. (c) At 1: 𝑎+𝑏=1; differentiating, 100𝑥99=2(𝑥−1)𝑞+(𝑥−1)2𝑞′+𝑎, so 𝑎=100 and the remainder is 100𝑥−99.

In each case 𝑠 has degree 2, so 𝑥100=𝑠𝑞+𝑎𝑥+𝑏 for some 𝑞 and some 𝑎,𝑏∈ℚ (Theorem 7.1.14). We evaluate with Proposition 7.1.10.

(a) With 𝑠=𝑥2−1, evaluating at 1 and at −1 gives 1=𝑎+𝑏 and 1=−𝑎+𝑏. So 𝑎=0, 𝑏=1, and the remainder is 1.

(b) By Corollary 7.1.17, the quotient and remainder over ℚ are also those over ℂ, so we may evaluate at the complex roots ±𝑖 of 𝑥2+1. Since 𝑖4=1, (±𝑖)100=1, so 1=𝑎𝑖+𝑏 and 1=−𝑎𝑖+𝑏. Adding and subtracting gives 𝑏=1 and 𝑎=0. The remainder is 1.

(c) With 𝑠=(𝑥−1)2, evaluating at 1 gives 1=𝑎+𝑏. To get a second equation, apply the formal derivative, using the product rule (Exercise 2.1.49):

100𝑥99=2(𝑥−1)𝑞+(𝑥−1)2𝑞′+𝑎.

Evaluating at 1 gives 100=𝑎, so 𝑏=−99, and the remainder is 100𝑥−99.

Exercise 7.1.51.standard Let 𝑠∈𝐹[𝑥] have degree 𝑚≥1, let 𝑛≥𝑚, and for 𝑝∈𝐹[𝑥]≤𝑛 let 𝑅(𝑝) be the remainder of 𝑝 on division by 𝑠.

  1. (a)Show that 𝑅:𝐹[𝑥]≤𝑛→𝐹[𝑥]≤𝑚−1 is linear.
  2. (b)Show that 𝑅 is surjective and that ker𝑅={𝑠𝑞|𝑞∈𝐹[𝑥]≤𝑛−𝑚}.
  3. (c)Verify the rank–nullity formula (Theorem 4.2.11) for 𝑅.

Solution.

Uses. Theorem 7.1.14 (Division with remainder), Proposition 1.2.18 (Degree and evaluation versus the operations), Proposition 7.1.4 (Degree of a product), Corollary 7.1.7 (No zero divisors, cancellation, and units), Theorem 4.2.11 (Rank–nullity), Example 4.1.7 (Dimensions of the standard spaces)

Techniques. Uniqueness via two candidates (Technique 1.1.8)

Hint 1. For (a), add two divisions 𝑝1=𝑠𝑞1+𝑟1 and 𝑝2=𝑠𝑞2+𝑟2 (one multiplied by 𝑐), and use uniqueness in Theorem 7.1.14.
Hint 2. For (b), what is 𝑅(𝑟) when deg𝑟<𝑚? For the kernel, 𝑅(𝑝)=𝟎 means 𝑠∣𝑝; bound the degree of the quotient.
Hint 3. For (c), 𝑞↦𝑠𝑞 is an injective linear map from 𝐹[𝑥]≤𝑛−𝑚 onto ker𝑅.
Sketch. (a) 𝑐𝑝1+𝑝2=𝑠(𝑐𝑞1+𝑞2)+(𝑐𝑟1+𝑟2) with deg(𝑐𝑟1+𝑟2)<𝑚, so by uniqueness 𝑅(𝑐𝑝1+𝑝2)=𝑐𝑅(𝑝1)+𝑅(𝑝2). (b) 𝑅(𝑟)=𝑟 for deg𝑟<𝑚. 𝑅(𝑝)=𝟎 iff 𝑝=𝑠𝑞, and then deg𝑞=deg𝑝−𝑚≤𝑛−𝑚. (c) dimker𝑅=𝑛−𝑚+1 and dimim𝑅=𝑚 add up to 𝑛+1.

(a) Let 𝑝1,𝑝2∈𝐹[𝑥]≤𝑛 and 𝑐∈𝐹, with 𝑝1=𝑠𝑞1+𝑟1 and 𝑝2=𝑠𝑞2+𝑟2, where 𝑟𝑖=𝑅(𝑝𝑖). Then

𝑐𝑝1+𝑝2=𝑠(𝑐𝑞1+𝑞2)+(𝑐𝑟1+𝑟2),

and deg(𝑐𝑟1+𝑟2)<𝑚 by Proposition 1.2.18. By the uniqueness in Theorem 7.1.14, 𝑅(𝑐𝑝1+𝑝2)=𝑐𝑟1+𝑟2=𝑐𝑅(𝑝1)+𝑅(𝑝2).

(b) If deg𝑟≤𝑚−1, then 𝑟=𝑠⋅𝟎+𝑟, so 𝑅(𝑟)=𝑟; thus 𝑅 is surjective onto 𝐹[𝑥]≤𝑚−1 (note 𝑚−1≤𝑛). Next, 𝑅(𝑝)=𝟎 if and only if 𝑝=𝑠𝑞 for some 𝑞. If 𝑝=𝑠𝑞≠𝟎 has degree at most 𝑛, then deg𝑞=deg𝑝−𝑚≤𝑛−𝑚 by Proposition 7.1.4. Conversely, if deg𝑞≤𝑛−𝑚, then deg(𝑠𝑞)≤𝑛 and 𝑅(𝑠𝑞)=𝟎. So ker𝑅={𝑠𝑞|𝑞∈𝐹[𝑥]≤𝑛−𝑚}.

(c) The map 𝑞↦𝑠𝑞 from 𝐹[𝑥]≤𝑛−𝑚 to ker𝑅 is linear, onto by (b), and injective by Corollary 7.1.7(b). So dimker𝑅=dim𝐹[𝑥]≤𝑛−𝑚=𝑛−𝑚+1 (Example 4.1.7), while dimim𝑅=dim𝐹[𝑥]≤𝑚−1=𝑚. Their sum is 𝑛+1=dim𝐹[𝑥]≤𝑛, as Theorem 4.2.11 requires.

Exercise 7.1.52.standard The definitions of this section make sense with coefficients in ℤ/8ℤ, which is a commutative ring but not a field (Lemma 1.1.21).

  1. (a)Show that 𝑥2−1 has four roots in ℤ/8ℤ, and that 𝑥2−1=(𝑥−1)(𝑥+1)=(𝑥−3)(𝑥+3) in (ℤ/8ℤ)[𝑥].
  2. (b)The proof of Proposition 7.1.22, run over ℤ/8ℤ, would show that 𝑥2−1 has at most two roots. Find the first step that fails.

Solution.

Uses. Proposition 7.1.22 (Counting roots), Proposition 1.1.17 (No zero divisors), Definition 1.1.19 (Integers modulo 𝑛)

Hint 1. Square each odd residue modulo 8.
Hint 2. Follow the proof with 𝑐1=1 and 𝑐2=3. After splitting off 𝑥−1, what is 𝑞, and what is 𝑞(3)?
Sketch. (a) 12,32,52,72 are all 1 modulo 8, and (𝑥−3)(𝑥+3)=𝑥2−9=𝑥2−1. (b) With 𝑐1=1, 𝑞=𝑥+1, and 𝑝(3)=(3−1)𝑞(3)=2⋅4=0 although 𝑞(3)=4≠0. The step “the product of the differences is nonzero, so 𝑞(𝑐𝑘)=0” uses Proposition 1.1.17, which fails in ℤ/8ℤ.

(a) Modulo 8, 12=1, 32=9=1, 52=25=1, and 72=49=1, so 1,3,5,7 are roots of 𝑥2−1. Also (𝑥−3)(𝑥+3)=𝑥2−9=𝑥2−1, since 9=1 in ℤ/8ℤ. So 𝑥2−1 has two different factorizations into monic linear factors.

(b) Take 𝑐1=1 and 𝑐2=3. The factor theorem still holds, because dividing by the monic polynomial 𝑥−1 never requires inverting a scalar, and it gives 𝑥2−1=(𝑥−1)𝑞 with 𝑞=𝑥+1. The proof then evaluates at 𝑐2=3:

0=𝑝(3)=(3−1)𝑞(3)=2⋅4.

The next step concludes 𝑞(3)=0 because 𝑐2−𝑐1=2 is nonzero, using Proposition 1.1.17. In ℤ/8ℤ this is false: 2⋅4=0 while 2≠0 and 𝑞(3)=4≠0. That is the step that fails. (The degree formula of Proposition 7.1.4 also fails over ℤ/8ℤ, for instance (4𝑥+1)(2𝑥+1)=6𝑥+1, but the proof only uses it for monic factors, where it still holds.)

Exercise 7.1.53.standard Prove or disprove, for 𝑝,𝑞,𝑟∈𝐹[𝑥].

  1. (a)If 𝑝(𝑐)=𝑞(𝑐) for every 𝑐∈𝐹, then 𝑝=𝑞.
  2. (b)If 𝑝∣𝑞 and 𝑞∣𝑝, then 𝑝=𝑞.
  3. (c)If 𝑝∣𝑞𝑟, then 𝑝∣𝑞 or 𝑝∣𝑟.
  4. (d)If 𝑝∈ℝ[𝑥] has no real root, then deg𝑝 is even.
  5. (e)If 𝑝∈ℝ[𝑥] is nonzero, then the number of real roots of 𝑝, counted with multiplicity, has the same parity as deg𝑝.

Solution.

Uses. Corollary 7.1.23 (Polynomials and their values), Definition 7.1.16 (Divisibility), Corollary 7.1.43 (Odd degree gives a real root), Theorem 7.1.39 (Factorization over ℝ)

Techniques. Finding counterexamples and minimal examples (Technique 1.4.18), Try small cases and small fields (Technique 1.2.38)

Hint 1. Try small fields for (a), constants for (b), and repeated factors for (c).
Hint 2. For (d) and (e), use Theorem 7.1.39. What does it say about the number of real roots counted with multiplicity?
Sketch. (a) False over 𝔽2: 𝑥2+𝑥 and 𝟎; true over infinite fields. (b) False: 𝑥 and 2𝑥 over ℚ; true for monic polynomials. (c) False: 𝑥2∣𝑥⋅𝑥. (d) True by Corollary 7.1.43 (a polynomial with no real root is nonzero). (e) True: in Theorem 7.1.39, 𝑘 counts the real roots with multiplicity and 𝑘+2𝑙=deg𝑝.

(a) False. Over 𝔽2, 𝑥2+𝑥 and 𝟎 both vanish at 0 and 1 (Aside (Polynomials versus polynomial functions)). It is true when 𝐹 is infinite, by Corollary 7.1.23(b).

(b) False. Over ℚ, 𝑥∣2𝑥 and 2𝑥∣𝑥, since 𝑥=12⋅2𝑥. Polynomials that divide each other differ by a nonzero constant factor, so the statement is true if 𝑝 and 𝑞 are monic (see the remarks after Definition 7.1.16).

(c) False. 𝑥2 divides 𝑥⋅𝑥 but not 𝑥, by degrees. It is true when 𝑝 is irreducible (Exercise 7.1.68).

(d) True. A polynomial with no real root is nonzero, since every real number is a root of 𝟎. If its degree were odd, it would have a real root by Corollary 7.1.43. So its degree is even (possibly 0).

(e) True. In Theorem 7.1.39, 𝜆1,…,𝜆𝑘 are the real roots of 𝑝 listed with multiplicity, so the number of real roots counted with multiplicity is 𝑘=deg𝑝−2𝑙, which has the parity of deg𝑝.

Exercise 7.1.54.standard
  1. (a)Let 𝑛≥1. Show that 𝑥𝑛−1 has 𝑛 distinct roots in ℂ.
  2. (b)Let 𝑝 be a prime. Show that 𝑥𝑝−1=(𝑥−1)𝑝 in 𝔽𝑝[𝑥], so that 1 is the only root of 𝑥𝑝−1 in 𝔽𝑝, with multiplicity 𝑝.

Solution.

Uses. Exercise 7.1.28, Corollary 7.1.35 (Factorization over ℂ), Proposition 7.1.34 (Roots of a split polynomial), the binomial theorem in a commutative ring

Hint 1. For (a), use Exercise 7.1.28: can 𝑥𝑛−1 and its derivative have a common root?
Hint 2. For (b), expand (𝑥−1)𝑝 with the binomial theorem. Which binomial coefficients (𝑝𝑘) are divisible by 𝑝?
Sketch. (a) A repeated root 𝑐 would satisfy 𝑐𝑛=1 and 𝑛𝑐𝑛−1=0, which forces 𝑐=0, but 0𝑛≠1. So all 𝑛 roots given by Corollary 7.1.35 are simple, hence distinct. (b) For 0<𝑘<𝑝, 𝑝 divides (𝑝𝑘)=𝑝!/(𝑘!(𝑝−𝑘)!), so (𝑥−1)𝑝=𝑥𝑝+(−1)𝑝=𝑥𝑝−1 in 𝔽𝑝[𝑥] (also for 𝑝=2, where 1=−1).

(a) The derivative of 𝑓=𝑥𝑛−1 is 𝑓′=𝑛𝑥𝑛−1, where 𝑛=1+⋯+1≠0 in ℂ. If 𝑐 were a repeated root of 𝑓, then 𝑓′(𝑐)=𝑛𝑐𝑛−1=0 by Exercise 7.1.28. For 𝑛=1 this is impossible, as 𝑓′=1; for 𝑛≥2 it forces 𝑐=0, but 𝑓(0)=−1≠0. So every root of 𝑓 is simple. By Corollary 7.1.35, 𝑓 has 𝑛 roots counted with multiplicity, and since each multiplicity is 1, these are 𝑛 distinct roots.

(b) 𝔽𝑝[𝑥] is a commutative ring, so the binomial theorem holds there, with the usual inductive proof:

(𝑥−1)𝑝=∑𝑘=0𝑝(𝑝𝑘)(−1)𝑝−𝑘𝑥𝑘.

For 0<𝑘<𝑝, the integer (𝑝𝑘)=𝑝!/(𝑘!(𝑝−𝑘)!) is divisible by 𝑝, because the prime 𝑝 divides the numerator but none of the factors 1,…,𝑘 and 1,…,𝑝−𝑘 of the denominator. So these coefficients are 0 in 𝔽𝑝, and (𝑥−1)𝑝=𝑥𝑝+(−1)𝑝. For odd 𝑝, (−1)𝑝=−1, and for 𝑝=2, (−1)2=1=−1 in 𝔽2. Hence (𝑥−1)𝑝=𝑥𝑝−1, and by Proposition 7.1.34, 1 is the only root, with multiplicity 𝑝. The test of Exercise 7.1.28 does not separate roots here, since the derivative 𝑝𝑥𝑝−1 is 𝟎 in 𝔽𝑝[𝑥].

Exercise 7.1.55.hard Let 𝑝 be a prime.

  1. (a)Show that 𝑥𝑝−𝑥=∏𝑎∈𝔽𝑝(𝑥−𝑎) in 𝔽𝑝[𝑥].
  2. (b)Deduce Wilson’s theorem: (𝑝−1)!≡−1(mod𝑝).

Solution.

Uses. Exercise 1.1.51, Proposition 7.1.22 (Counting roots), Proposition 7.1.4 (Degree of a product), Corollary 7.1.7 (No zero divisors, cancellation, and units), Proposition 7.1.10 (Evaluation respects sums and products), Lemma 1.1.21 (Arithmetic in ℤ/𝑛ℤ)

Techniques. Compare degrees and leading coefficients (Technique 7.1.6)

Hint 1. By Fermat’s little theorem (Exercise 1.1.51), every 𝑎∈𝔽𝑝 is a root of 𝑥𝑝−𝑥. What does Proposition 7.1.22 then say?
Hint 2. Both sides of (a) are monic of degree 𝑝, and one divides the other.
Hint 3. For (b), cancel the factor 𝑥 from both sides of (a) and compare constant terms.
Sketch. Each 𝑎∈𝔽𝑝 is a root of 𝑥𝑝−𝑥 (for 𝑎≠0, 𝑎𝑝−1=1), so 𝜔=∏𝑎(𝑥−𝑎) divides 𝑥𝑝−𝑥 by Proposition 7.1.22. Both are monic of degree 𝑝, so the quotient is 1. Cancelling 𝑥 gives 𝑥𝑝−1−1=∏𝑎≠0(𝑥−𝑎); at 0 this reads −1=(−1)𝑝−1(𝑝−1)! in 𝔽𝑝, and (−1)𝑝−1=1 for odd 𝑝, while 𝑝=2 is checked directly.

(a) Every 𝑎∈𝔽𝑝 is a root of 𝑥𝑝−𝑥: for 𝑎=0 this is clear, and for 𝑎≠0, 𝑎𝑝−1=1 by Exercise 1.1.51, so 𝑎𝑝=𝑎. The 𝑝 elements of 𝔽𝑝 are distinct roots, so by Proposition 7.1.22, 𝜔=∏𝑎∈𝔽𝑝(𝑥−𝑎) divides 𝑥𝑝−𝑥, say 𝑥𝑝−𝑥=𝜔ℎ. Both 𝜔 and 𝑥𝑝−𝑥 are monic of degree 𝑝, so by Proposition 7.1.4 ℎ has degree 0 and leading coefficient 1, that is, ℎ=1.

(b) Write 𝜔=𝑥∏𝑎≠0(𝑥−𝑎) and 𝑥𝑝−𝑥=𝑥(𝑥𝑝−1−1). Cancelling 𝑥 (Corollary 7.1.7(b)) gives

𝑥𝑝−1−1=∏𝑎∈𝔽𝑝,𝑎≠0(𝑥−𝑎).

Evaluating at 0 (Proposition 7.1.10), −1=∏𝑎≠0(−𝑎)=(−1)𝑝−1⋅(1⋅2⋯(𝑝−1)), where the product is computed in 𝔽𝑝, so it is (𝑝−1)!mod𝑝 (Lemma 1.1.21). If 𝑝 is odd, (−1)𝑝−1=1, so (𝑝−1)!≡−1(mod𝑝). If 𝑝=2, then (𝑝−1)!=1≡−1(mod2) directly.

Exercise 7.1.56.standard Consider 𝑓∈𝐹[𝑥] with 𝑓(𝑥+1)=𝑓.

  1. (a)Show that if 𝐹 has characteristic 0 (Definition 1.1.28), then 𝑓 is constant.
  2. (b)Let 𝑝 be a prime. Find a nonconstant 𝑓∈𝔽𝑝[𝑥] with 𝑓(𝑥+1)=𝑓.

Solution.

Uses. Corollary 7.1.12 (Substituting twice), Definition 1.1.28 (Characteristic), Corollary 7.1.23 (Polynomials and their values), Exercise 7.1.55, Proposition 7.1.10 (Evaluation respects sums and products)

Hint 1. Evaluate 𝑓(𝑥+1)=𝑓 at 𝑡∈𝐹 with Corollary 7.1.12. What does this say about 𝑓(0),𝑓(1),𝑓(1+1),…?
Hint 2. In characteristic 0, the elements 𝑘⋅1 for 𝑘=0,1,2,… are distinct. For (b), substitute 𝑥+1 into the factorization of Exercise 7.1.55.
Sketch. (a) 𝑓(𝑡+1)=𝑓(𝑡) for all 𝑡, so 𝑓(𝑘⋅1)=𝑓(0) for all 𝑘≥0. In characteristic 0 these are infinitely many distinct points, so 𝑓−𝑓(0) is 𝟎. (b) 𝑓=𝑥𝑝−𝑥=∏𝑎(𝑥−𝑎); substituting 𝑥+1 gives ∏𝑎(𝑥−(𝑎−1)), the same product reordered.

(a) By Corollary 7.1.12 with 𝑟=𝑥+1, for every 𝑡∈𝐹 we have 𝑓(𝑡+1)=(𝑓(𝑥+1))(𝑡)=𝑓(𝑡). By induction, 𝑓(𝑘⋅1)=𝑓(0) for every integer 𝑘≥0, where 𝑘⋅1=1+⋯+1. In characteristic 0 these elements are distinct: if 𝑗⋅1=𝑘⋅1 with 𝑗<𝑘, then (𝑘−𝑗)⋅1=0 with 𝑘−𝑗≥1, which is impossible by Definition 1.1.28. So 𝑓−𝑓(0) has infinitely many roots, hence 𝑓−𝑓(0)=𝟎 by Corollary 7.1.23(b), and 𝑓 is the constant 𝑓(0).

(b) Let 𝑓=𝑥𝑝−𝑥, which has degree 𝑝≥2. By Exercise 7.1.55, 𝑓=∏𝑎∈𝔽𝑝(𝑥−𝑎). Substituting 𝑥+1 and using Proposition 7.1.10 for the product,

𝑓(𝑥+1)=∏𝑎∈𝔽𝑝(𝑥+1−𝑎)=∏𝑎∈𝔽𝑝(𝑥−(𝑎−1))=∏𝑏∈𝔽𝑝(𝑥−𝑏)=𝑓,

because 𝑎↦𝑎−1 is a bijection of 𝔽𝑝, so the last two products have the same factors in a different order. (Alternatively, (𝑥+1)𝑝=𝑥𝑝+1 in 𝔽𝑝[𝑥] by the binomial argument of Exercise 7.1.54.)

Exercise 7.1.57.standard Let 𝑎,𝑏,𝑐,𝑑∈𝐹.

  1. (a)Show that there is exactly one 𝑓∈𝐹[𝑥]≤3 with 𝑓(0)=𝑎, 𝑓′(0)=𝑏, 𝑓(1)=𝑐, and 𝑓′(1)=𝑑, where 𝑓′ is the formal derivative.
  2. (b)Find 𝑓 over ℚ for (𝑎,𝑏,𝑐,𝑑)=(1,0,0,0).

Solution.

Uses. Exercise 7.1.28, Proposition 7.1.27 (Multiplicities add up to at most the degree), Corollary 4.2.18 (Injective if and only if surjective), Example 2.1.9 (Maps of polynomials), Example 4.1.7 (Dimensions of the standard spaces)

Techniques. Uniqueness gives existence (Technique 3.4.21), Dimension counting (Technique 4.2.24)

Hint 1. The map 𝑓↦(𝑓(0),𝑓′(0),𝑓(1),𝑓′(1)) from 𝐹[𝑥]≤3 to 𝐹4 is linear, and both spaces have dimension 4. So it is enough to show that it is injective.
Hint 2. If all four values are 0, then 0 and 1 are repeated roots of 𝑓 (Exercise 7.1.28). Count multiplicities.
Hint 3. For (b), 1 is a repeated root, so 𝑓=(𝑥−1)2(𝑢𝑥+𝑣).
Sketch. The map 𝑇(𝑓)=(𝑓(0),𝑓′(0),𝑓(1),𝑓′(1)) is linear from a 4-dimensional space to 𝐹4. If 𝑇(𝑓)=𝟎 and 𝑓≠𝟎, then 0 and 1 are roots of multiplicity at least 2, so 4≤deg𝑓≤3 by Proposition 7.1.27, which is impossible. So 𝑇 is injective, hence bijective. For (b), 𝑓=(𝑥−1)2(𝑢𝑥+𝑣) with 𝑣=1 and 𝑢−2𝑣=0, so 𝑓=(𝑥−1)2(2𝑥+1)=2𝑥3−3𝑥2+1.

(a) Let 𝑇:𝐹[𝑥]≤3→𝐹4, 𝑇(𝑓)=(𝑓(0),𝑓′(0),𝑓(1),𝑓′(1)). Evaluation and the formal derivative are linear (Example 2.1.9), so 𝑇 is linear. Suppose 𝑇(𝑓)=𝟎 and 𝑓≠𝟎. By Exercise 7.1.28, 0 and 1 are repeated roots of 𝑓, so each has multiplicity at least 2, and Proposition 7.1.27 gives 2+2≤deg𝑓≤3, which is impossible. So ker𝑇={𝟎}, and 𝑇 is injective. Since dim𝐹[𝑥]≤3=4=dim𝐹4 (Example 4.1.7), 𝑇 is bijective by Corollary 4.2.18. So each (𝑎,𝑏,𝑐,𝑑) is 𝑇(𝑓) for exactly one 𝑓.

(b) Here 𝑓(1)=𝑓′(1)=0, so 1 is a repeated root (or 𝑓=𝟎, which is excluded by 𝑓(0)=1), and (𝑥−1)2 divides 𝑓. Since deg𝑓≤3, 𝑓=(𝑥−1)2(𝑢𝑥+𝑣) for some 𝑢,𝑣∈ℚ. Then 𝑓(0)=𝑣=1, and by the product rule 𝑓′=2(𝑥−1)(𝑢𝑥+𝑣)+𝑢(𝑥−1)2, so 𝑓′(0)=−2𝑣+𝑢=0 and 𝑢=2. Hence

𝑓=(𝑥−1)2(2𝑥+1)=2𝑥3−3𝑥2+1.

Check: 𝑓(0)=1, 𝑓(1)=0, and 𝑓′=6𝑥2−6𝑥 vanishes at 0 and 1.

Exercise 7.1.58.standard Let 𝑛≥1, let 𝑐0,…,𝑐𝑛∈𝐹 be distinct, let 𝐿0,…,𝐿𝑛 be the Lagrange polynomials (Definition 3.4.26), and let 𝜔=(𝑥−𝑐0)⋯(𝑥−𝑐𝑛).

  1. (a)Show that 𝐿0+𝐿1+⋯+𝐿𝑛=1 and 𝑐0𝐿0+𝑐1𝐿1+⋯+𝑐𝑛𝐿𝑛=𝑥.
  2. (b)Show that 𝜔′(𝑐𝑖)=∏𝑗≠𝑖(𝑐𝑖−𝑐𝑗), and deduce that 𝐿𝑖=𝜔𝑖/𝜔′(𝑐𝑖), where 𝜔𝑖=∏𝑗≠𝑖(𝑥−𝑐𝑗).

Solution.

Uses. Proposition 3.4.27 (Lagrange’s formula), Theorem 3.4.24 (Polynomial interpolation), Proposition 7.1.29 (Lagrange polynomials in closed form), Exercise 2.1.49, Proposition 7.1.10 (Evaluation respects sums and products)

Techniques. Uniqueness via two candidates (Technique 1.1.8)

Hint 1. For (a), both sides of each identity have degree at most 𝑛. Compare their values at the nodes.
Hint 2. For (b), write 𝜔=(𝑥−𝑐𝑖)𝜔𝑖 and differentiate with the product rule.
Sketch. (a) By Proposition 3.4.27, ∑𝑖𝑑𝑖𝐿𝑖 is the interpolant of the values 𝑑𝑖. The constant 1 and the polynomial 𝑥 (of degree 1≤𝑛) interpolate the values 1 and 𝑐𝑖, so they equal ∑𝑖𝐿𝑖 and ∑𝑖𝑐𝑖𝐿𝑖. (b) 𝜔′=𝜔𝑖+(𝑥−𝑐𝑖)𝜔𝑖′, so 𝜔′(𝑐𝑖)=𝜔𝑖(𝑐𝑖)=∏𝑗≠𝑖(𝑐𝑖−𝑐𝑗), and Proposition 7.1.29 gives 𝐿𝑖=𝜔𝑖/𝜔′(𝑐𝑖).

(a) By Proposition 3.4.27, for any values 𝑑0,…,𝑑𝑛, the polynomial ∑𝑖𝑑𝑖𝐿𝑖 is the unique element of 𝐹[𝑥]≤𝑛 taking the value 𝑑𝑘 at 𝑐𝑘. The constant polynomial 1 lies in 𝐹[𝑥]≤𝑛 and takes the value 1 at every node, so ∑𝑖𝐿𝑖=1. Since 𝑛≥1, the polynomial 𝑥 lies in 𝐹[𝑥]≤𝑛 and takes the value 𝑐𝑘 at 𝑐𝑘, so ∑𝑖𝑐𝑖𝐿𝑖=𝑥.

(b) Write 𝜔=(𝑥−𝑐𝑖)𝜔𝑖. By the product rule (Exercise 2.1.49), 𝜔′=𝜔𝑖+(𝑥−𝑐𝑖)𝜔𝑖′, so by Proposition 7.1.10

𝜔′(𝑐𝑖)=𝜔𝑖(𝑐𝑖)+0=∏𝑗≠𝑖(𝑐𝑖−𝑐𝑗).

This is nonzero, and by Proposition 7.1.29, 𝐿𝑖=𝜔𝑖/∏𝑗≠𝑖(𝑐𝑖−𝑐𝑗)=𝜔𝑖/𝜔′(𝑐𝑖).

Exercise 7.1.59.routine Let 𝜆1,𝜆2,𝜆3 be the roots of 𝑥3−2𝑥+5 in ℂ, listed with multiplicity.

  1. (a)Expand (𝑥−𝜆1)(𝑥−𝜆2)(𝑥−𝜆3).
  2. (b)Compute 𝜆1+𝜆2+𝜆3, 𝜆1𝜆2+𝜆1𝜆3+𝜆2𝜆3, 𝜆1𝜆2𝜆3, and 𝜆12+𝜆22+𝜆32.

Solution.

Uses. Corollary 7.1.35 (Factorization over ℂ), Proposition 7.1.36 (Sum and product of the roots)

Hint 1. Multiply out one factor at a time.
Hint 2. By Corollary 7.1.35, 𝑥3−2𝑥+5=(𝑥−𝜆1)(𝑥−𝜆2)(𝑥−𝜆3). Compare coefficients. For the last sum, square 𝜆1+𝜆2+𝜆3.
Sketch. (a) 𝑥3−𝑒1𝑥2+𝑒2𝑥−𝑒3 with 𝑒1=∑𝜆𝑖, 𝑒2=∑𝑖<𝑗𝜆𝑖𝜆𝑗, 𝑒3=𝜆1𝜆2𝜆3. (b) Comparing with 𝑥3−2𝑥+5: 𝑒1=0, 𝑒2=−2, 𝑒3=−5, and ∑𝜆𝑖2=𝑒12−2𝑒2=4.

(a) First (𝑥−𝜆1)(𝑥−𝜆2)=𝑥2−(𝜆1+𝜆2)𝑥+𝜆1𝜆2. Multiplying by 𝑥−𝜆3,

(𝑥−𝜆1)(𝑥−𝜆2)(𝑥−𝜆3)=𝑥3−𝑒1𝑥2+𝑒2𝑥−𝑒3,

where 𝑒1=𝜆1+𝜆2+𝜆3, 𝑒2=𝜆1𝜆2+𝜆1𝜆3+𝜆2𝜆3, and 𝑒3=𝜆1𝜆2𝜆3. The first and last agree with Proposition 7.1.36.

(b) By Corollary 7.1.35, 𝑥3−2𝑥+5=(𝑥−𝜆1)(𝑥−𝜆2)(𝑥−𝜆3), so comparing coefficients with (a) gives 𝑒1=0, 𝑒2=−2, and −𝑒3=5, that is, 𝑒3=−5. Finally, expanding the square gives 𝑒12=𝜆12+𝜆22+𝜆32+2𝑒2, so

𝜆12+𝜆22+𝜆32=𝑒12−2𝑒2=0−2(−2)=4.
Exercise 7.1.60.standard Factor 𝑥4+1 and 𝑥6−1 into irreducible polynomials over ℂ and over ℝ.

Solution.

Uses. Corollary 7.1.35 (Factorization over ℂ), Theorem 7.1.39 (Factorization over ℝ), Corollary 7.1.42 (Irreducible polynomials over ℂ and ℝ), Proposition 7.1.34 (Roots of a split polynomial)

Hint 1. For 𝑥4+1, find a complex number whose square is 𝑖; its fourth power is −1.
Hint 2. Over ℝ, pair conjugate roots as in the proof of Theorem 7.1.39. For 𝑥6−1, start from (𝑥3−1)(𝑥3+1).
Sketch. The roots of 𝑥4+1 are (±1±𝑖)/2, and pairing conjugates gives 𝑥4+1=(𝑥2−2𝑥+1)(𝑥2+2𝑥+1) over ℝ. Also 𝑥6−1=(𝑥−1)(𝑥+1)(𝑥2+𝑥+1)(𝑥2−𝑥+1) over ℝ, and the quadratics split over ℂ with roots (−1±𝑖3)/2 and (1±𝑖3)/2.

By Corollary 7.1.42, the irreducible factors over ℂ are linear, and those over ℝ are linear or quadratics with negative discriminant.

𝑥4+1. Let 𝜁=(1+𝑖)/2. Then 𝜁2=(1+2𝑖−1)/2=𝑖, so 𝜁4=−1. The same computation shows that all four numbers (±1±𝑖)/2, that is, ±𝜁 and ±𝜁, have squares ±𝑖 and are roots. They are distinct, so by Corollary 7.1.35

𝑥4+1=(𝑥−𝜁)(𝑥−𝜁)(𝑥+𝜁)(𝑥+𝜁).

Pairing conjugates, (𝑥−𝜁)(𝑥−𝜁)=𝑥2−2(Re𝜁)𝑥+|𝜁|2=𝑥2−2𝑥+1, and similarly for −𝜁. So over ℝ,

𝑥4+1=(𝑥2−2𝑥+1)(𝑥2+2𝑥+1),

and both quadratics have discriminant 2−4<0. Check: the product is (𝑥2+1)2−2𝑥2=𝑥4+1.

𝑥6−1. Since 𝑥3−1=(𝑥−1)(𝑥2+𝑥+1) and 𝑥3+1=(𝑥+1)(𝑥2−𝑥+1),

𝑥6−1=(𝑥−1)(𝑥+1)(𝑥2+𝑥+1)(𝑥2−𝑥+1)

over ℝ, and the two quadratics have discriminant 1−4<0, so they are irreducible. Over ℂ, by the quadratic formula, 𝑥2+𝑥+1=(𝑥−𝜔)(𝑥−𝜔) with 𝜔=(−1+𝑖3)/2, and 𝑥2−𝑥+1=(𝑥+𝜔)(𝑥+𝜔), so

𝑥6−1=(𝑥−1)(𝑥+1)(𝑥−𝜔)(𝑥−𝜔)(𝑥+𝜔)(𝑥+𝜔).

The six roots ±1,±𝜔,±𝜔 are distinct, consistent with Exercise 7.1.54(a).

Exercise 7.1.61.routine
  1. (a)Let 𝑝∈𝐹[𝑥] have degree 2 or 3. Show that 𝑝 is irreducible over 𝐹 if and only if 𝑝 has no root in 𝐹.
  2. (b)Show that (a) fails in degree 4: find a polynomial of degree 4 over ℚ, and one over 𝔽2, that has no root but is reducible.
  3. (c)Which of 𝑥2+𝑥+1, 𝑥3+𝑥+1, and 𝑥3+1 are irreducible over 𝔽2?

Solution.

Uses. Definition 7.1.41 (Irreducible polynomial), Theorem 7.1.20 (Factor theorem), Proposition 7.1.4 (Degree of a product), Example 7.1.40 (𝑥4+4), Exercise 7.1.8

Hint 1. If 𝑝=𝑔ℎ with both factors of degree at least 1 and deg𝑔+degℎ≤3, then one factor has degree 1.
Hint 2. For (b), look for a product of two quadratics without roots. Example 7.1.40 and Exercise 7.1.8 have candidates.
Sketch. (a) A root 𝑐 gives 𝑝=(𝑥−𝑐)𝑞 with deg𝑞≥1. Conversely, in a factorization 𝑝=𝑔ℎ the degrees add to 2 or 3, so one factor is 𝑢𝑥+𝑣 with 𝑢≠0, and −𝑣/𝑢 is a root of 𝑝. (b) 𝑥4+4=(𝑥2−2𝑥+2)(𝑥2+2𝑥+2) over ℚ and 𝑥4+𝑥2+1=(𝑥2+𝑥+1)2 over 𝔽2. (c) The first two have no root in 𝔽2, so they are irreducible; 𝑥3+1 has the root 1.

(a) If 𝑝 has a root 𝑐, then 𝑝=(𝑥−𝑐)𝑞 with deg𝑞=deg𝑝−1≥1 (Theorem 7.1.20), so 𝑝 is reducible. Conversely, suppose 𝑝=𝑔ℎ with deg𝑔,degℎ≥1. Since deg𝑔+degℎ=deg𝑝≤3 (Proposition 7.1.4), one of the factors, say 𝑔, has degree 1: 𝑔=𝑢𝑥+𝑣 with 𝑢≠0. Then 𝑐=−𝑣/𝑢 satisfies 𝑔(𝑐)=0, so 𝑝(𝑐)=𝑔(𝑐)ℎ(𝑐)=0, and 𝑝 has a root.

(b) Over ℚ, 𝑥4+4=(𝑥2−2𝑥+2)(𝑥2+2𝑥+2) (Example 7.1.40) is reducible, and it has no root even in ℝ, since 𝑡4+4≥4. Over 𝔽2, (𝑥2+𝑥+1)2=𝑥4+𝑥2+1 (Exercise 7.1.8), and 𝑥4+𝑥2+1 takes the value 1 at both 0 and 1, so it has no root.

(c) The polynomial 𝑥2+𝑥+1 takes the values 1 and 1+1+1=1 at 0 and 1, and 𝑥3+𝑥+1 takes the values 1 and 1, so by (a) both are irreducible over 𝔽2. But 1 is a root of 𝑥3+1, so it is reducible: 𝑥3+1=(𝑥+1)(𝑥2+𝑥+1).

Exercise 7.1.62.standard Let 𝑝 be a prime. Show that there are exactly 𝑝(𝑝−1)/2 monic irreducible polynomials of degree 2 in 𝔽𝑝[𝑥], and list them for 𝑝=3.

Solution.

Uses. Exercise 7.1.61, Theorem 7.1.20 (Factor theorem), Proposition 7.1.34 (Roots of a split polynomial)

Hint 1. Count all monic quadratics, then count the reducible ones. By Exercise 7.1.61, a reducible monic quadratic has a root.
Hint 2. A reducible monic quadratic is (𝑥−𝑎)(𝑥−𝑏). By Proposition 7.1.34, how many choices of 𝑎,𝑏 give the same polynomial?
Sketch. There are 𝑝2 monic quadratics 𝑥2+𝑏𝑥+𝑐. The reducible ones are the products (𝑥−𝑎)(𝑥−𝑏), and by Proposition 7.1.34 two such products are equal exactly when the pairs agree up to order. There are 𝑝+𝑝(𝑝−1)/2=𝑝(𝑝+1)/2 unordered pairs, so 𝑝2−𝑝(𝑝+1)/2=𝑝(𝑝−1)/2 are irreducible. For 𝑝=3: 𝑥2+1, 𝑥2+𝑥+2, 𝑥2+2𝑥+2.

A monic quadratic is 𝑥2+𝑏𝑥+𝑐 with 𝑏,𝑐∈𝔽𝑝, so there are 𝑝2 of them. If one is reducible, it has a root 𝑎 (Exercise 7.1.61), and then it equals (𝑥−𝑎)𝑞 with 𝑞 monic of degree 1 (Theorem 7.1.20, comparing leading coefficients), so it is (𝑥−𝑎)(𝑥−𝑏) for some 𝑎,𝑏∈𝔽𝑝. Conversely every such product is a reducible monic quadratic. By Proposition 7.1.34, (𝑥−𝑎)(𝑥−𝑏)=(𝑥−𝑎′)(𝑥−𝑏′) if and only if the lists 𝑎,𝑏 and 𝑎′,𝑏′ agree up to order. So the reducible monic quadratics correspond to unordered pairs {𝑎,𝑏} with repetition allowed: 𝑝 with 𝑎=𝑏, and 𝑝(𝑝−1)/2 with 𝑎≠𝑏. That makes 𝑝(𝑝+1)/2 reducible ones, and

𝑝2−𝑝𝑝+12=𝑝𝑝−12

irreducible ones.

For 𝑝=3 there are 3. Checking values at 0,1,2: 𝑥2+1 takes the values 1,2,2; 𝑥2+𝑥+2 takes 2,1,2; and 𝑥2+2𝑥+2 takes 2,2,1. None has a root, so these are the three monic irreducible quadratics over 𝔽3.

Exercise 7.1.63.standard Let 𝑓∈ℂ[𝑥]≤𝑛, and suppose that 𝑓(𝑡𝑘)∈ℝ for 𝑛+1 distinct real numbers 𝑡0,…,𝑡𝑛. Show that 𝑓 has real coefficients. Show by an example that the hypothesis deg𝑓≤𝑛 cannot be dropped.

Solution.

Uses. Lemma 7.1.37 (Conjugating polynomials), Corollary 7.1.23 (Polynomials and their values)

Hint 1. Compare 𝑓 with the conjugate polynomial 𝑓 at the points 𝑡𝑘.
Hint 2. For the example, take a polynomial that vanishes at all the 𝑡𝑘.
Sketch. For real 𝑡𝑘, 𝑓(𝑡𝑘)=𝑓(𝑡𝑘)=𝑓(𝑡𝑘)=𝑓(𝑡𝑘). So 𝑓 and 𝑓, both of degree at most 𝑛, agree at 𝑛+1 points, and 𝑓=𝑓∈ℝ[𝑥]. Without the degree bound, 𝑖(𝑥−𝑡0)⋯(𝑥−𝑡𝑛) is real (zero) at every 𝑡𝑘.

The conjugate polynomial 𝑓 has the same degree as 𝑓, so it lies in ℂ[𝑥]≤𝑛. For each 𝑘, since 𝑡𝑘 is real and 𝑓(𝑡𝑘) is real, Lemma 7.1.37(b) gives

𝑓(𝑡𝑘)=𝑓(𝑡𝑘)=𝑓(𝑡𝑘)=𝑓(𝑡𝑘).

So 𝑓 and 𝑓 agree at the 𝑛+1 distinct points 𝑡0,…,𝑡𝑛, and 𝑓=𝑓 by Corollary 7.1.23(a). By Lemma 7.1.37(c), 𝑓∈ℝ[𝑥].

The degree bound is needed: 𝑔=𝑖(𝑥−𝑡0)(𝑥−𝑡1)⋯(𝑥−𝑡𝑛) has 𝑔(𝑡𝑘)=0∈ℝ for every 𝑘, but its leading coefficient 𝑖 is not real.

Exercise 7.1.64.hard Let 𝑝∈ℝ[𝑥] satisfy 𝑝(𝑡)≥0 for every 𝑡∈ℝ. Show that 𝑝=𝑓2+𝑔2 for some 𝑓,𝑔∈ℝ[𝑥].

Solution.

Uses. Theorem 7.1.39 (Factorization over ℝ), Lemma 7.1.37 (Conjugating polynomials), Lemma 7.1.25 (Reading off a multiplicity), continuity of polynomial functions

Hint 1. First show that every real root of 𝑝 has even multiplicity: a root of odd multiplicity is a point where 𝑝 changes sign.
Hint 2. Then factor 𝑝 as in Theorem 7.1.39, show 𝑎>0, and split each quadratic factor over ℂ as (𝑥−𝜇)(𝑥−𝜇).
Hint 3. Find ℎ∈ℂ[𝑥] with 𝑝=ℎℎ, and write ℎ=𝑓+𝑖𝑔 with 𝑓,𝑔∈ℝ[𝑥].
Sketch. If a real root 𝜆 had odd multiplicity 𝑚, then 𝑝=(𝑥−𝜆)𝑚𝑞 with 𝑞(𝜆)≠0, and 𝑝 would change sign at 𝜆. So 𝑝=𝑎∏(𝑥−𝜆𝑖)2𝑘𝑖∏(𝑥−𝜇𝑗)(𝑥−𝜇𝑗) with 𝑎>0. Let ℎ=𝑎∏(𝑥−𝜆𝑖)𝑘𝑖∏(𝑥−𝜇𝑗). Then ℎ=𝑎∏(𝑥−𝜆𝑖)𝑘𝑖∏(𝑥−𝜇𝑗), so 𝑝=ℎℎ, and with ℎ=𝑓+𝑖𝑔 this is (𝑓+𝑖𝑔)(𝑓−𝑖𝑔)=𝑓2+𝑔2.

If 𝑝=𝟎, take 𝑓=𝑔=𝟎. Let 𝑝≠𝟎.

Real roots have even multiplicity. Let 𝜆∈ℝ be a root of multiplicity 𝑚, and write 𝑝=(𝑥−𝜆)𝑚𝑞 with 𝑞(𝜆)≠0 (Lemma 7.1.25). The function 𝑡↦𝑞(𝑡) is continuous, so it has constant sign on some interval (𝜆−𝛿,𝜆+𝛿). If 𝑚 were odd, (𝑡−𝜆)𝑚 would be negative for 𝑡<𝜆 and positive for 𝑡>𝜆, so 𝑝(𝑡)=(𝑡−𝜆)𝑚𝑞(𝑡) would take both signs near 𝜆, contradicting 𝑝≥0. So 𝑚 is even.

Factor. By Theorem 7.1.39, whose real linear factors are the real roots listed with multiplicity, and grouping equal linear factors,

𝑝=𝑎∏𝑖=1𝑟(𝑥−𝜆𝑖)2𝑘𝑖∏𝑗=1𝑙(𝑥2+𝑏𝑗𝑥+𝑐𝑗),

with distinct real 𝜆𝑖, each of even multiplicity 2𝑘𝑖 by the first step, and 𝑏𝑗2<4𝑐𝑗. Each quadratic factor is positive on ℝ, since 𝑡2+𝑏𝑗𝑡+𝑐𝑗=(𝑡+𝑏𝑗/2)2+(𝑐𝑗−𝑏𝑗2/4). Choose 𝑡∈ℝ that is not a root of 𝑝 (there are finitely many roots). Then 𝑝(𝑡)>0 and every factor other than 𝑎 is positive at 𝑡, so 𝑎>0.

Write 𝑝=ℎℎ. As in the proof of Theorem 7.1.39, 𝑥2+𝑏𝑗𝑥+𝑐𝑗=(𝑥−𝜇𝑗)(𝑥−𝜇𝑗) for some 𝜇𝑗∈ℂ. Let

ℎ=𝑎∏𝑖=1𝑟(𝑥−𝜆𝑖)𝑘𝑖∏𝑗=1𝑙(𝑥−𝜇𝑗)∈ℂ[𝑥].

By Lemma 7.1.37(a), and since 𝑎 and the 𝜆𝑖 are real, ℎ=𝑎∏𝑖(𝑥−𝜆𝑖)𝑘𝑖∏𝑗(𝑥−𝜇𝑗). Hence ℎℎ=𝑝.

Real and imaginary parts. Write ℎ=𝑓+𝑖𝑔, where 𝑓,𝑔∈ℝ[𝑥] have as coefficients the real and imaginary parts of the coefficients of ℎ. Then ℎ=𝑓−𝑖𝑔, and

𝑝=ℎℎ=(𝑓+𝑖𝑔)(𝑓−𝑖𝑔)=𝑓2+𝑔2.

Both sides lie in ℝ[𝑥], and the identity holds there because the operations of ℝ[𝑥] are those of ℂ[𝑥].

Exercise 7.1.65.hard
  1. (a)Let 𝐹 be a field with 1+1≠0. Find all 𝑝∈𝐹[𝑥] with 𝑝(𝑥2)=𝑝2.
  2. (b)Show that every 𝑝∈𝔽2[𝑥] satisfies 𝑝(𝑥2)=𝑝2.

Solution.

Uses. Definition 7.1.9 (Substitution), Definition 7.1.1 (Product of polynomials), Proposition 7.1.4 (Degree of a product)

Techniques. Compare degrees and leading coefficients (Technique 7.1.6)

Hint 1. Try small cases: which monomials 𝑎𝑥𝑛 work? Compare leading coefficients.
Hint 2. Suppose 𝑝=𝑥𝑛+𝑎𝑘𝑥𝑘+⋯, where 𝑘<𝑛, 𝑎𝑘≠0, and the omitted terms have degree less than 𝑘. Compute the coefficient of 𝑥𝑛+𝑘 on both sides.
Hint 3. On the right it is 2𝑎𝑘. On the left, 𝑝(𝑥2) has only even powers 𝑥2𝑗, and 𝑥𝑛+𝑘 would need 𝑗=(𝑛+𝑘)/2, strictly between 𝑘 and 𝑛.
Sketch. (a) The solutions are 𝟎 and 𝑥𝑛, 𝑛≥0. For 𝑝≠𝟎 of degree 𝑛 with leading coefficient 𝑎, comparing leading coefficients gives 𝑎=𝑎2, so 𝑎=1. If 𝑝 had another nonzero coefficient, let 𝑎𝑘 be the one with the largest 𝑘<𝑛. The coefficient of 𝑥𝑛+𝑘 is 2𝑎𝑘≠0 in 𝑝2, but 0 in 𝑝(𝑥2). (b) Over 𝔽2, 𝑝2=∑𝑎𝑖2𝑥2𝑖+2∑𝑖<𝑗𝑎𝑖𝑎𝑗𝑥𝑖+𝑗=∑𝑎𝑖𝑥2𝑖.

(a) The solutions are 𝑝=𝟎 and 𝑝=𝑥𝑛 for 𝑛≥0; these work, since (𝑥2)𝑛=𝑥2𝑛=(𝑥𝑛)2. Conversely, let 𝑝=∑𝑗=0𝑛𝑎𝑗𝑥𝑗 with 𝑎𝑛≠0 satisfy 𝑝(𝑥2)=𝑝2. The polynomial 𝑝(𝑥2)=∑𝑗𝑎𝑗𝑥2𝑗 has leading coefficient 𝑎𝑛, and 𝑝2 has leading coefficient 𝑎𝑛2 (Proposition 7.1.4). So 𝑎𝑛2=𝑎𝑛, and 𝑎𝑛=1.

Suppose 𝑝≠𝑥𝑛, and let 𝑘<𝑛 be the largest index below 𝑛 with 𝑎𝑘≠0. In 𝑝2, the coefficient of 𝑥𝑛+𝑘 is ∑𝑖+𝑗=𝑛+𝑘𝑎𝑖𝑎𝑗. A nonzero term needs 𝑎𝑖≠0 and 𝑎𝑗≠0, so each of 𝑖,𝑗 is 𝑛 or at most 𝑘. If 𝑖≤𝑘, then 𝑗=𝑛+𝑘−𝑖≥𝑛, so 𝑗=𝑛 and 𝑖=𝑘; similarly if 𝑗≤𝑘. So only the pairs (𝑛,𝑘) and (𝑘,𝑛) contribute, and the coefficient is 2𝑎𝑛𝑎𝑘=2𝑎𝑘, which is nonzero because 1+1≠0 and 𝐹 has no zero divisors. In 𝑝(𝑥2)=∑𝑗𝑎𝑗𝑥2𝑗, the coefficient of 𝑥𝑛+𝑘 is 0 if 𝑛+𝑘 is odd, and 𝑎(𝑛+𝑘)/2 if it is even. Since 𝑘<(𝑛+𝑘)/2<𝑛, this is 0 by the choice of 𝑘. The two sides differ, a contradiction. So 𝑝=𝑥𝑛.

(b) Let 𝑝=∑𝑖𝑎𝑖𝑥𝑖∈𝔽2[𝑥]. Expanding the square and grouping the pairs (𝑖,𝑗) and (𝑗,𝑖) with 𝑖≠𝑗,

𝑝2=∑𝑖,𝑗𝑎𝑖𝑎𝑗𝑥𝑖+𝑗=∑𝑖𝑎𝑖2𝑥2𝑖+∑𝑖<𝑗2𝑎𝑖𝑎𝑗𝑥𝑖+𝑗=∑𝑖𝑎𝑖𝑥2𝑖=𝑝(𝑥2),

because 2=0 and 𝑎2=𝑎 for both elements 𝑎 of 𝔽2.

Exercise 7.1.66.challengeBeyond 21-242 (Gauss–Lucas) Let 𝑝∈ℂ[𝑥] have degree 𝑛≥2 and roots 𝜆1,…,𝜆𝑛, listed with multiplicity. Show that every root 𝑤 of 𝑝′ is a convex combination of the roots of 𝑝: 𝑤=𝑡1𝜆1+⋯+𝑡𝑛𝜆𝑛 for some real 𝑡𝑖≥0 with 𝑡1+⋯+𝑡𝑛=1.

Solution.

Uses. Corollary 7.1.35 (Factorization over ℂ), Exercise 2.1.49, Proposition 7.1.10 (Evaluation respects sums and products), Notation 6.1.1 (Real and complex scalars)

Hint 1. If 𝑤 is a root of 𝑝, the claim is easy. Otherwise, compute 𝑝′ from 𝑝=𝑎∏(𝑥−𝜆𝑖) with the product rule.
Hint 2. You should find 𝑝′(𝑤)=𝑝(𝑤)∑𝑖1/(𝑤−𝜆𝑖), so ∑𝑖1/(𝑤−𝜆𝑖)=0.
Hint 3. Write 1/(𝑤−𝜆𝑖)=𝑤−𝜆𝑖/|𝑤−𝜆𝑖|2, and conjugate the equation.
Sketch. If 𝑝(𝑤)=0, then 𝑤=𝜆𝑖 for some 𝑖. Otherwise 𝑝′=𝑎∑𝑖∏𝑗≠𝑖(𝑥−𝜆𝑗) gives 0=𝑝′(𝑤)=𝑝(𝑤)∑𝑖1/(𝑤−𝜆𝑖), so ∑𝑖𝑤−𝜆𝑖/|𝑤−𝜆𝑖|2=0. Conjugating, ∑𝑖𝑠𝑖(𝑤−𝜆𝑖)=0 with 𝑠𝑖=|𝑤−𝜆𝑖|−2>0, so 𝑤=∑𝑖(𝑠𝑖/∑𝑗𝑠𝑗)𝜆𝑖.

If 𝑝(𝑤)=0, then 𝑤=𝜆𝑖 for some 𝑖 (Corollary 7.1.35), and 𝑡𝑖=1, 𝑡𝑗=0 for 𝑗≠𝑖 works. So suppose 𝑝(𝑤)≠0.

Write 𝑝=𝑎(𝑥−𝜆1)⋯(𝑥−𝜆𝑛). Applying the product rule (Exercise 2.1.49) 𝑛−1 times, by induction on the number of factors,

𝑝′=𝑎∑𝑖=1𝑛∏𝑗≠𝑖(𝑥−𝜆𝑗).

Evaluating at 𝑤 (Proposition 7.1.10) and using 𝑎∏𝑗≠𝑖(𝑤−𝜆𝑗)=𝑝(𝑤)/(𝑤−𝜆𝑖), which is valid since 𝑤≠𝜆𝑖,

0=𝑝′(𝑤)=𝑝(𝑤)∑𝑖=1𝑛1𝑤−𝜆𝑖.

Since 𝑝(𝑤)≠0, ∑𝑖1/(𝑤−𝜆𝑖)=0. For 𝑧≠0, 1/𝑧=𝑧/|𝑧|2 (Notation 6.1.1), so with 𝑠𝑖=1/|𝑤−𝜆𝑖|2>0 we get ∑𝑖𝑠𝑖𝑤−𝜆𝑖=0. Conjugating, ∑𝑖𝑠𝑖(𝑤−𝜆𝑖)=0, that is,

𝑤=∑𝑖=1𝑛(𝑠𝑖𝑠1+⋯+𝑠𝑛)𝜆𝑖.

The coefficients 𝑡𝑖=𝑠𝑖/(𝑠1+⋯+𝑠𝑛) are positive and add up to 1.

Geometrically, the roots of 𝑝′ lie in the smallest convex polygon containing the roots of 𝑝. For real-rooted 𝑝 this is the interval between the smallest and the largest root.

Exercise 7.1.67.standardBeyond 21-242 Let 𝑝=𝑥4+𝑥3+2𝑥2+𝑥+1 and 𝑠=𝑥3−1.

  1. (a)Over ℚ, compute gcd(𝑝,𝑠) with the Euclidean algorithm, and find 𝑢,𝑣∈ℚ[𝑥] with 𝑢𝑝+𝑣𝑠=gcd(𝑝,𝑠).
  2. (b)Compute gcd(𝑝,𝑠) over 𝔽2. Why is the answer different?

Solution.

Uses. Algorithm 7.1.46 (Euclidean algorithm), Theorem 7.1.45 (Bézout’s identity), Definition 7.1.44 (Greatest common divisor)

Hint 1. Over ℚ the algorithm takes two divisions.
Hint 2. Over 𝔽2, 𝑝=𝑥4+𝑥3+𝑥+1. Divide it by 𝑠=𝑥3+1.
Sketch. (a) 𝑝=(𝑥+1)𝑠+2(𝑥2+𝑥+1) and 𝑠=(12𝑥−12)⋅2(𝑥2+𝑥+1), so gcd(𝑝,𝑠)=𝑥2+𝑥+1=12𝑝−12(𝑥+1)𝑠. (b) Over 𝔽2, 𝑝=(𝑥+1)𝑠 exactly, so gcd(𝑝,𝑠)=𝑠=𝑥3+1. Reducing modulo 2 is not an inclusion of fields, so the remainders, and with them the gcd, can change.

(a) Dividing, 𝑝=(𝑥+1)(𝑥3−1)+(2𝑥2+2𝑥+2): indeed (𝑥+1)(𝑥3−1)=𝑥4+𝑥3−𝑥−1, and 𝑝 minus this is 2𝑥2+2𝑥+2. Next, 𝑥3−1=(12𝑥−12)(2𝑥2+2𝑥+2) exactly, since (𝑥−1)(𝑥2+𝑥+1)=𝑥3−1. The last nonzero remainder is 2𝑥2+2𝑥+2, so gcd(𝑝,𝑠)=𝑥2+𝑥+1, and from the first division

𝑥2+𝑥+1=12(𝑝−(𝑥+1)𝑠)=12𝑝−12(𝑥+1)𝑠.

Consistently, 𝑝=(𝑥2+1)(𝑥2+𝑥+1) and 𝑠=(𝑥−1)(𝑥2+𝑥+1).

(b) Over 𝔽2, 𝑝=𝑥4+𝑥3+𝑥+1 and 𝑠=𝑥3+1, and (𝑥+1)(𝑥3+1)=𝑥4+𝑥3+𝑥+1=𝑝. So 𝑠∣𝑝, the algorithm stops after one division, and gcd(𝑝,𝑠)=𝑥3+1. The answer has larger degree than over ℚ, because in 𝔽2[𝑥] the factor 𝑥2+1 of 𝑝 becomes (𝑥+1)2, which shares the factor 𝑥+1=𝑥−1 with 𝑠. Reducing the coefficients modulo 2 is not a passage to a larger field, so nothing like Corollary 7.1.17 applies; already the remainders change, as in Exercise 7.1.18. For a subfield 𝐹⊆𝐾, on the other hand, the gcd computed in 𝐾[𝑥] is the one computed in 𝐹[𝑥], since the Euclidean algorithm only takes remainders.

Exercise 7.1.68.hardBeyond 21-242
  1. (a)(Euclid’s lemma) Let 𝑝∈𝐹[𝑥] be irreducible and 𝑔,ℎ∈𝐹[𝑥]. Show that if 𝑝∣𝑔ℎ, then 𝑝∣𝑔 or 𝑝∣ℎ.
  2. (b)Show that every polynomial of degree at least 1 is a product of irreducible polynomials, and that the factorization is unique in the following sense: if 𝑎𝑝1⋯𝑝𝑘=𝑏𝑞1⋯𝑞𝑙 with 𝑎,𝑏∈𝐹 nonzero and all 𝑝𝑖,𝑞𝑗 monic irreducible, then 𝑎=𝑏, 𝑘=𝑙, and the 𝑞𝑗 are the 𝑝𝑖 in some order.

Solution.

Uses. Theorem 7.1.45 (Bézout’s identity), Definition 7.1.41 (Irreducible polynomial), Definition 7.1.16 (Divisibility), Corollary 7.1.7 (No zero divisors, cancellation, and units), Proposition 7.1.4 (Degree of a product)

Techniques. Strong induction and well-ordering (Technique 5.2.12)

Hint 1. For (a), let 𝑑=gcd(𝑝,𝑔). Since 𝑝 is irreducible, 𝑑 is 1 or 𝑝 made monic. In the first case use Bézout and multiply by ℎ.
Hint 2. For existence in (b), use strong induction on the degree. For uniqueness, apply (a) repeatedly to see that 𝑝1 divides some 𝑞𝑗, and cancel.
Sketch. (a) 𝑑=gcd(𝑝,𝑔) divides the irreducible 𝑝, so 𝑑=1 or 𝑑 is 𝑝 made monic. In the second case 𝑝∣𝑔. In the first, 𝑢𝑝+𝑣𝑔=1, so ℎ=𝑢𝑝ℎ+𝑣𝑔ℎ is divisible by 𝑝. (b) A reducible polynomial is a product of two of smaller degree, so strong induction gives existence. For uniqueness, compare leading coefficients, then 𝑝1∣𝑞1⋯𝑞𝑙, so 𝑝1∣𝑞𝑗 for some 𝑗 by (a); both are monic irreducible, so 𝑝1=𝑞𝑗; cancel and induct on 𝑘.

(a) Let 𝑑=gcd(𝑝,𝑔) (Theorem 7.1.45). Since 𝑑∣𝑝, write 𝑝=𝑑𝑒. As 𝑝 is irreducible, deg𝑑=0 or deg𝑒=0. If deg𝑑=0, then 𝑑=1, being monic, and Bézout gives 𝑢𝑝+𝑣𝑔=1 for some 𝑢,𝑣. Multiplying by ℎ, ℎ=𝑢𝑝ℎ+𝑣𝑔ℎ. Both terms are divisible by 𝑝, the second because 𝑝∣𝑔ℎ, so 𝑝∣ℎ. If deg𝑒=0, then 𝑒 is a nonzero constant and 𝑝=𝑒𝑑 divides 𝑔, because 𝑑 does.

(b) Existence, by strong induction on deg𝑓 for 𝑓 of degree at least 1. If 𝑓 is irreducible, it is a product of one irreducible. Otherwise 𝑓=𝑔ℎ with 1≤deg𝑔,degℎ<deg𝑓, and by the induction hypothesis both 𝑔 and ℎ are products of irreducibles, hence so is 𝑓. Writing each irreducible factor as a constant times a monic one, 𝑓=𝑎𝑝1⋯𝑝𝑘 with 𝑝𝑖 monic irreducible.

Uniqueness. The product of monic polynomials is monic, so comparing leading coefficients gives 𝑎=𝑏, and cancelling 𝑎 leaves 𝑝1⋯𝑝𝑘=𝑞1⋯𝑞𝑙. We induct on 𝑘. If 𝑘=0, the left side is 1, so 𝑙=0 by degrees. If 𝑘≥1, then 𝑙≥1, since otherwise 𝑝1⋯𝑝𝑘=1 would have degree 0<𝑘. So 𝑝1 divides 𝑞1⋯𝑞𝑙, and by (a) applied 𝑙−1 times, 𝑝1∣𝑞𝑗 for some 𝑗. Since 𝑞𝑗 is irreducible and deg𝑝1≥1, 𝑞𝑗=𝑝1𝑐 with 𝑐 constant, and as both are monic, 𝑐=1. Cancelling 𝑝1=𝑞𝑗 from both sides (Corollary 7.1.7(b)) leaves products of 𝑘−1 and 𝑙−1 monic irreducibles, and the induction hypothesis finishes the proof.

Exercise 7.1.69.hardBeyond 21-242 (Chinese remainder theorem) Let 𝑚1,𝑚2∈𝐹[𝑥] be coprime, of degrees 𝑑1,𝑑2≥1, and let 𝑟1,𝑟2∈𝐹[𝑥].

  1. (a)Show that there is exactly one 𝑝∈𝐹[𝑥] with deg𝑝<𝑑1+𝑑2 such that 𝑚1∣𝑝−𝑟1 and 𝑚2∣𝑝−𝑟2.
  2. (b)Explain why polynomial interpolation at two nodes (Theorem 3.4.24 with 𝑛=1) is the special case 𝑚𝑖=𝑥−𝑐𝑖.

Solution.

Uses. Theorem 7.1.45 (Bézout’s identity), Corollary 7.1.48 (Coprime polynomials), Theorem 7.1.14 (Division with remainder), Theorem 7.1.20 (Factor theorem), Proposition 7.1.4 (Degree of a product)

Techniques. Compare degrees and leading coefficients (Technique 7.1.6)

Hint 1. Use 𝑢𝑚1+𝑣𝑚2=1. The polynomial 𝑣𝑚2 is 1 “modulo 𝑚1” and 0 “modulo 𝑚2”.
Hint 2. Take 𝑃=𝑟1𝑣𝑚2+𝑟2𝑢𝑚1, then reduce it modulo 𝑚1𝑚2. For uniqueness, show that 𝑚1𝑚2 divides the difference of two solutions.
Sketch. With 𝑢𝑚1+𝑣𝑚2=1, 𝑃=𝑟1𝑣𝑚2+𝑟2𝑢𝑚1 satisfies 𝑃−𝑟1=(𝑟2−𝑟1)𝑢𝑚1 and 𝑃−𝑟2=(𝑟1−𝑟2)𝑣𝑚2. Its remainder 𝑝 on division by 𝑚1𝑚2 still works and has degree less than 𝑑1+𝑑2. If 𝑝,𝑝′ both work, then 𝑝−𝑝′=𝑚1𝑔 and 𝑚2∣𝑚1𝑔, so 𝑚2∣𝑔=𝑢𝑚1𝑔+𝑣𝑚2𝑔; hence 𝑚1𝑚2∣𝑝−𝑝′, and degrees force 𝑝=𝑝′. For (b), 𝑥−𝑐𝑖 divides 𝑝−𝑟𝑖 iff 𝑝(𝑐𝑖)=𝑟𝑖(𝑐𝑖).

(a) By Theorem 7.1.45 there are 𝑢,𝑣 with 𝑢𝑚1+𝑣𝑚2=1.

Existence. Let 𝑃=𝑟1𝑣𝑚2+𝑟2𝑢𝑚1. Using 𝑣𝑚2=1−𝑢𝑚1 and 𝑢𝑚1=1−𝑣𝑚2,

𝑃−𝑟1=𝑟1(𝑣𝑚2−1)+𝑟2𝑢𝑚1=(𝑟2−𝑟1)𝑢𝑚1,𝑃−𝑟2=𝑟1𝑣𝑚2+𝑟2(𝑢𝑚1−1)=(𝑟1−𝑟2)𝑣𝑚2.

So 𝑚1∣𝑃−𝑟1 and 𝑚2∣𝑃−𝑟2. Divide 𝑃 by 𝑚1𝑚2, which has degree 𝑑1+𝑑2 (Proposition 7.1.4): 𝑃=𝑚1𝑚2𝑞+𝑝 with deg𝑝<𝑑1+𝑑2 (Theorem 7.1.14). Then 𝑝−𝑟1=(𝑃−𝑟1)−𝑚1𝑚2𝑞 is divisible by 𝑚1, and likewise 𝑚2∣𝑝−𝑟2.

Uniqueness. Suppose 𝑝 and 𝑝′ both have the property. Then 𝑚1 and 𝑚2 both divide 𝑒=𝑝−𝑝′, since 𝑒=(𝑝−𝑟𝑖)−(𝑝′−𝑟𝑖). Write 𝑒=𝑚1𝑔. Then

𝑔=(𝑢𝑚1+𝑣𝑚2)𝑔=𝑢𝑒+𝑣𝑚2𝑔,

and 𝑚2 divides both terms, so 𝑚2∣𝑔 and 𝑚1𝑚2∣𝑒. But deg𝑒<𝑑1+𝑑2=deg(𝑚1𝑚2), so 𝑒=𝟎 by Proposition 7.1.4. Hence 𝑝=𝑝′.

(b) Let 𝑐1≠𝑐2 and 𝑦1,𝑦2∈𝐹, and let 𝑚𝑖=𝑥−𝑐𝑖 and 𝑟𝑖=𝑦𝑖 (constants). These are coprime, since (𝑥−𝑐1)−(𝑥−𝑐2)=𝑐2−𝑐1 is a nonzero constant and Corollary 7.1.48(a) applies after dividing by it. By Theorem 7.1.20, 𝑥−𝑐𝑖 divides 𝑝−𝑦𝑖 if and only if 𝑝(𝑐𝑖)=𝑦𝑖. So (a) says that there is exactly one 𝑝 of degree less than 2 with 𝑝(𝑐1)=𝑦1 and 𝑝(𝑐2)=𝑦2, which is Theorem 3.4.24 for two nodes. With more coprime moduli, the same argument by induction gives interpolation at any number of nodes. Moduli (𝑥−𝑐)2 give interpolation with prescribed values and first derivatives, as in Exercise 7.1.57; higher powers (𝑥−𝑐)𝑘 prescribe higher derivatives, at least in characteristic 0.

More practice

The practice bank has 32 exercises on this section’s topics.