6.4  Roots, Multiplicity and Derivatives

Chapter 3 bounded the number of roots of a polynomial, and the first section of this chapter restated the bound as Corollary 6.1.4: a non-zero polynomial of degree n has at most n roots. The bound counts each root once, and so it misses something. The polynomial (x−1)2 has degree 2 but only one root, and the root 1 is somehow “used twice”. This section makes “used twice” precise with the multiplicity of a root, sharpens the root bound, and then gives a test for repeated roots that needs no factoring: the formal derivative. The derivative behaves differently in characteristic p, and we say exactly where. The section ends with Taylor expansion of a polynomial, which turns out to be a dual basis from Chapter 5.

6.4.1. Multiplicity of a root

By the Factor Theorem (Lemma 3.7.1, restated in general as Theorem 6.1.3), c is a root of f exactly when x−c divides f. A repeated root should mean that a higher power of x−c divides f. So we measure how many factors x−c can be pulled out.

The multiplicity of c counts how many times x−c divides f.

Definition 6.4.1 (Multiplicity of a Root)

Let F be a field, f∈F[x] non-zero and c∈F. The multiplicity of c as a root of f, written multc(f), is the largest m∈N such that (x−c)m∣f.

The root c is simple if multc(f)=1, and multiple (or repeated) if multc(f)≥2.

In words: keep dividing f by x−c as long as the division leaves no remainder, and count the successful divisions. Divisibility is meant in the sense of Definition 6.1.1, so (x−c)m∣f says f=(x−c)mg for some g∈F[x].

There is something to check: a largest such m must exist. The value m=0 always works, since (x−c)0=1 divides every polynomial. And if f=(x−c)mg, then g≠0 because f≠0, so Theorem 0.8.3 gives deg⁡f=m+deg⁡g≥m. The admissible m form a non-empty set of natural numbers bounded by deg⁡f, so it has a largest element. Moreover multc(f)≥1 exactly when x−c∣f, that is, exactly when c is a root. So multiplicity 0 means “not a root”.

The hypothesis f≠0 is not decoration. Every power (x−c)m divides the zero polynomial, since 0=(x−c)m⋅0. There is no largest m, and the zero polynomial has no multiplicities.

A definition by “largest m” is awkward to use directly, because to confirm m we must rule out all larger powers. The next lemma replaces it with a single test at c.

Lemma 6.4.1 (Multiplicity via the Cofactor)

Let f∈F[x] be non-zero, c∈F and m∈N. Then multc(f)=m if and only if f=(x−c)mgfor some g∈F[x] with g(c)≠0.

Proof. (⇒) Suppose multc(f)=m. Then f=(x−c)mg for some g∈F[x]. If g(c)=0, then g=(x−c)h by Lemma 3.7.1, so f=(x−c)m+1h, contradicting the maximality of m. Hence g(c)≠0.

(⇐) Suppose f=(x−c)mg with g(c)≠0. Then (x−c)m∣f, so multc(f)≥m. Suppose, for a contradiction, that (x−c)m+1∣f, say f=(x−c)m+1h. Then (x−c)mg=(x−c)m(x−c)h. Since (x−c)m≠0, cancellation (Corollary 0.8.4) gives g=(x−c)h, and evaluating at c gives g(c)=0 by Theorem 0.8.5, a contradiction. Every higher power (x−c)k with k>m+1 would also give (x−c)m+1∣f. Hence multc(f)=m.

The first payoff is that multiplicities add when polynomials multiply, just as exponents do.

Theorem 6.4.2 (Multiplicity of a Product)

Let f,g∈F[x] be non-zero and c∈F. Then multc(fg)=multc(f)+multc(g).

Proof. Let m=multc(f) and n=multc(g). By Lemma 6.4.1, f=(x−c)mu and g=(x−c)nv with u(c)≠0 and v(c)≠0. Then fg=(x−c)m+nuv, and (uv)(c)=u(c)v(c)≠0 by Theorem 0.8.5 and Theorem 0.7.1. By Lemma 6.4.1 again, multc(fg)=m+n.

Example (Finding a Multiplicity by Repeated Division)

Let f=x4−2x3+2x−1∈Q[x]. Find the multiplicity of 1 and of −1 as roots of f.

Solution. We have f(1)=1−2+2−1=0, so we divide by x−1. Long division gives f=(x−1)(x3−x2−x+1). The cofactor g1=x3−x2−x+1 has g1(1)=0, so we divide again: g1=(x−1)(x2−1). The new cofactor g2=x2−1 has g2(1)=0, and g2=(x−1)(x+1). Now g3=x+1 has g3(1)=2≠0. Hence f=(x−1)3(x+1),g3(1)≠0, and Lemma 6.4.1 gives mult1(f)=3. For −1, write f=(x+1)⋅(x−1)3, whose cofactor (x−1)3 takes the value (−2)3=−8≠0 at −1. So mult−1(f)=1, a simple root. The multiplicities add up to 3+1=4=deg⁡f.

Warning. Multiplicity is not visible from the set of roots. The polynomials (x−1)3(x+1) and (x−1)(x+1)3 have the same roots {1,−1}, the same degree and the same leading coefficient, but they are different polynomials. “The roots of f” as a set loses information; the roots with their multiplicities do not, as the next theorem shows for polynomials that split.

Quick check. Over R, what is the multiplicity of 0 as a root of x3(x2+1)? Of 2 as a root of (x2−4)2?

Solution. For x3(x2+1), the cofactor x2+1 is 1≠0 at 0, so the multiplicity is 3 by Lemma 6.4.1. For (x2−4)2=(x−2)2(x+2)2, the cofactor (x+2)2 is 16≠0 at 2, so the multiplicity is 2.

6.4.2. Counting roots with multiplicity

In Example (Finding a Multiplicity by Repeated Division) the multiplicities added up to exactly the degree. That cannot always happen: x2+1∈R[x] has degree 2 and no real roots at all. The difference is whether f breaks into linear factors, so we give that a name.

Definition 6.4.2 (Splitting into Linear Factors)

Let F be a field. A non-zero f∈F[x] of degree n splits over F if there are a∈F and a1,…,an∈F, not necessarily distinct, with f=a(x−a1)(x−a2)⋯(x−an).

A non-zero constant splits (take n=0 and the empty product 1). The polynomial x2−1=(x−1)(x+1) splits over Q. The polynomial x2−2 does not split over Q, since a linear factor x−a1 with a1∈Q would give a rational root, but it splits over R as (x−2)(x+2). The phrase over F carries weight: the ai must lie in F.

It turns out that the multiplicities always fit inside the degree, and they fill it exactly when f splits:

Theorem 6.4.3 (Roots Counted with Multiplicity)

Let F be a field and f∈F[x] non-zero. Let c1,…,ck be the distinct roots of f in F, with multiplicities m1,…,mk. Then f=(x−c1)m1⋯(x−ck)mkg for some g∈F[x] with no root in F. Consequently m1+⋯+mk≤deg⁡f, with equality if and only if f splits over F.

Idea. Peel off the roots one at a time. After removing (x−c1)m1, the other roots cj are still roots of the cofactor, because cj−c1≠0, and by Theorem 6.4.2 they keep their multiplicities. Whatever is left at the end has no roots, and its degree is exactly the gap between deg⁡f and ∑mi. The gap is zero exactly when the leftover is a constant.

Proof. The set of roots is finite by Corollary 6.1.4, so the list c1,…,ck makes sense. We prove the following claim by induction on j∈{0,1,…,k}: f=(x−c1)m1⋯(x−cj)mjgj for some non-zero gj∈F[x] with multci(gj)=0 for i≤j,multci(gj)=mi for i>j.

For j=0 take g0=f. Suppose the claim holds for some j<k. By Lemma 6.4.1 applied to gj, we have gj=(x−cj+1)mj+1gj+1 with gj+1(cj+1)≠0, which gives the product formula for j+1 and multcj+1(gj+1)=0. For i≠j+1, the polynomial (x−cj+1)mj+1 takes the value (ci−cj+1)mj+1≠0 at ci, since the roots are distinct. So its multiplicity at ci is 0 by Lemma 6.4.1 (with cofactor the polynomial itself), and Theorem 6.4.2 gives multci(gj)=0+multci(gj+1). This is 0 for i≤j and mi for i>j+1, which completes the induction.

Put g=gk. By the claim, multci(g)=0, that is, g(ci)≠0, for every i. If d∈F were a root of g, then f(d)=(d−c1)m1⋯(d−ck)mkg(d)=0, so d would be one of the ci, which is impossible. Hence g has no root in F.

Since f≠0, also g≠0, and Theorem 0.8.3 gives deg⁡f=m1+⋯+mk+deg⁡g≥m1+⋯+mk.

(⇒) If equality holds, then deg⁡g=0, so g=a is a non-zero constant and f=a(x−c1)m1⋯(x−ck)mk splits over F.

(⇐) Suppose f=a(x−a1)⋯(x−an) with n=deg⁡f. Group equal factors: f=a(x−d1)n1⋯(x−dl)nl with d1,…,dl distinct and n1+⋯+nl=n. By the computation above, the cofactor a∏s≠r(x−ds)ns is non-zero at dr, so multdr(f)=nr by Lemma 6.4.1. Every root d of f satisfies a∏s(d−ds)ns=0, so d is one of the dr. Hence the roots of f are exactly d1,…,dl, and their multiplicities add up to n=deg⁡f. This proves the theorem.

The theorem sharpens Corollary 6.1.4, because the number k of distinct roots is at most m1+⋯+mk. It also shows that a split polynomial is determined by its leading coefficient and its roots with multiplicities. Whether a given polynomial splits depends on the field: the fifth-degree polynomial (x−1)3(x2+1) has root multiplicities adding up to 3<5 over R, but it splits over C as (x−1)3(x−i)(x+i). In the next section we prove that over C every polynomial splits.

6.4.3. The formal derivative

How do we recognize a repeated root without factoring? Over R calculus has an answer. At a simple root the graph of f crosses the axis with non-zero slope, while at a double root, as for (x−1)2 at 1, it touches the axis and the slope is 0. We would like to use this over every field, including Fp, where there are no limits and no slopes. So we keep the formula of the derivative and throw away the limit.

The formal derivative is the power rule, applied coefficient by coefficient.

Definition 6.4.3 (Formal Derivative)

Let F be a field and f=a0+a1x+⋯+anxn∈F[x]. The formal derivative of f is f′=a1+2a2x+3a3x2+⋯+nanxn−1=∑k=1nkakxk−1, where kak is the integer multiple of ak (the sum of k copies of ak). Higher derivatives are defined by f(0)=f and f(k+1)=(f(k))′; we also write f″=f(2).

In words: each monomial akxk becomes kakxk−1, and constants disappear. This is the map D of Example (Differentiation), where we already saw that D:F[x]→F[x] is linear. Over R it agrees with the derivative of calculus on polynomial functions, since calculus gives the same power rule. By Lemma 0.7.4, kak=(k⋅1)ak, so the integer k acts through the element k⋅1 of F. That element can be 0, and this is the source of every difference between characteristic 0 and characteristic p.

Some examples. Over Q, (x4−2x3+2x−1)′=4x3−6x2+2. Over any field, the derivative of a constant is 0 and (x−c)′=1. Over F3, (x3+x)′=3x2+1=1, because 3⋅1=0 there. Over F2, (x2)′=2x=0: a non-constant polynomial with derivative zero.

In characteristic 0 the last example cannot happen. If deg⁡f=n≥1, the coefficient of xn−1 in f′ is (n⋅1)an, a product of two non-zero elements, so deg⁡f′=n−1 and in particular f′≠0. In characteristic p the same coefficient vanishes whenever p∣n, because then n⋅1=(n/p)⋅(p⋅1)=0 by Lemma 0.7.4.

The derivative obeys the rules we know from calculus. The proofs cannot use limits, so they go through monomials.

Theorem 6.4.4 (Rules for the Formal Derivative)

Let F be a field, f,g∈F[x], a,b,c∈F and m≥1 an integer. Then:

  • (a) (af+bg)′=af′+bg′, and a′=0 for the constant polynomial a;
  • (b) (fg)′=f′g+fg′ (product rule);
  • (c) (gm)′=mgm−1g′; in particular ((x−c)m)′=m(x−c)m−1.

Idea. Both sides of the product rule are linear in f for fixed g, and linear in g for fixed f. So it is enough to check the rule when f and g are monomials, where it is the identity i+j=i+j for exponents. Checking on monomials, and extending by linearity, is the standard way to prove any identity about D.

Proof.

  • (a) Linearity is Example (Differentiation). A constant has no coefficients in positions k≥1, so its derivative is 0.

  • (b) First let f=xi and g=xj with i,j∈N. If i,j≥1, then (xi+j)′=(i+j)xi+j−1=ixi−1xj+xijxj−1=f′g+fg′, using (i+j)⋅1=i⋅1+j⋅1 from Lemma 0.7.4. If i=0, then f=1, f′=0 and both sides equal jxj−1 (or 0 when j=0); the case j=0 is symmetric.

    Now let f=∑iaixi and g=∑jbjxj. By Theorem 0.8.1, fg=∑i,jaibjxixj, a finite sum. Applying (a) and the monomial case, (fg)′=∑i,jaibj((xi)′xj+xi(xj)′)=(∑iai(xi)′)(∑jbjxj)+(∑iaixi)(∑jbj(xj)′)=f′g+fg′, where the middle equality regroups with the distributive laws, and the last uses (a) again.

  • (c) We use induction on m. For m=1 both sides are g′. If (gm)′=mgm−1g′, then by (b) (gm+1)′=(gmg)′=mgm−1g′g+gmg′=(m+1)gmg′. For g=x−c we have g′=1 by (a). This proves the theorem.

6.4.4. Repeated roots and the derivative

Now we can turn the calculus picture into a theorem valid over every field.

Theorem 6.4.5 (Repeated Root Test)

Let F be a field, f∈F[x] non-zero and c∈F.

  • (a) c is a multiple root of f if and only if f(c)=0 and f′(c)=0.
  • (b) Suppose multc(f)=m≥1 and m⋅1≠0 in F (this holds automatically if F has characteristic 0). Then f′≠0 and multc(f′)=m−1.

Idea. Write f=(x−c)g and differentiate: f′=g+(x−c)g′, so f′(c)=g(c). The derivative at c reads off exactly the cofactor’s value, which is what Lemma 6.4.1 needs. For (b), differentiate (x−c)mg instead; the factor m appears, and it must not be 0 in F.

Proof.

  • (a) (⇒) Suppose f=(x−c)2g. By Theorem 6.4.4 (b) and (c), f′=2(x−c)g+(x−c)2g′, and evaluating at c gives f(c)=0 and f′(c)=0.

    (⇐) Suppose f(c)=0 and f′(c)=0. By Lemma 3.7.1, f=(x−c)g for some g∈F[x]. By Theorem 6.4.4, f′=g+(x−c)g′, so 0=f′(c)=g(c). By Lemma 3.7.1 again, g=(x−c)h, so f=(x−c)2h and multc(f)≥2.

  • (b) By Lemma 6.4.1, f=(x−c)mg with g(c)≠0. By Theorem 6.4.4, f′=m(x−c)m−1g+(x−c)mg′=(x−c)m−1h,h:=mg+(x−c)g′. Then h(c)=(m⋅1)g(c), a product of two non-zero elements of F, so h(c)≠0. In particular h≠0, so f′≠0 by Corollary 0.8.4, and multc(f′)=m−1 by Lemma 6.4.1.

Part (a) holds over every field. Part (b) needs its hypothesis. Over F2, let f=x2(x+1)=x3+x2. Then mult0(f)=2, and f′=3x2+2x=x2, so mult0(f′)=2, not 1. Here m⋅1=2⋅1=0, and the factor m killed the term that should have lowered the multiplicity.

Part (a) finds a repeated root at a known point c. To decide whether any repeated root exists, without knowing the roots, we use the gcd of f and f′, which the Euclidean algorithm (Theorem 6.2.6) computes by division alone. Repeated roots are a special case of repeated irreducible factors: c is a multiple root exactly when the irreducible polynomial x−c appears squared.

Corollary 6.4.6 (Repeated Factors and gcd(f,f′))

Let F be a field and f∈F[x] non-constant.

  • (a) (Any field.) If p∈F[x] is irreducible and p2∣f, then p∣gcd(f,f′). Hence, if gcd(f,f′)=1, then no irreducible polynomial divides f twice; in particular f has no multiple root in F.
  • (b) (Characteristic 0.) If F has characteristic 0 and gcd(f,f′)≠1, then p2∣f for some irreducible p∈F[x].

Idea. For (a), differentiate p2h: every term still contains p. For (b), run it backwards. An irreducible p dividing both f=pg and f′=p′g+pg′ must divide p′g. If p does not divide p′, then Euclid’s lemma pushes p into g, and p2∣f. The only question is whether p∣p′ can happen, and that is exactly where the characteristic enters.

Proof.

  • (a) Write f=p2h. By Theorem 6.4.4, f′=2pp′h+p2h′=p(2p′h+ph′). So p is a common divisor of f and f′, and p∣gcd(f,f′) by Theorem 6.2.3. If gcd(f,f′)=1, this would give p∣1, which is impossible because p is non-constant (Definition 6.3.1) and a non-zero multiple of p has degree at least deg⁡p≥1 by Theorem 0.8.3. If c were a multiple root, then (x−c)2∣f. But x−c is irreducible (Definition 6.3.1), because a product of two non-constant polynomials has degree at least 2. This is again impossible.

  • (b) Let d=gcd(f,f′)≠1. Since d∣f and f≠0, d≠0; as d is monic and d≠1, deg⁡d≥1. By Theorem 6.3.5, d has a monic irreducible factor p. Then p∣f and p∣f′ (Theorem 6.2.3). Write f=pg. By Theorem 6.4.4, f′=p′g+pg′, so p divides f′−pg′=p′g.

Since F has characteristic 0 and deg⁡p≥1, we showed after Definition 6.4.3 that p′≠0 and deg⁡p′=deg⁡p−1. A non-zero multiple of p has degree at least deg⁡p, so p∤p′. By Euclid’s lemma (Theorem 6.3.3), p∣g. Hence p2∣pg=f. This proves the corollary.

Warning. In characteristic p, a non-constant polynomial can have derivative 0. Over Fp, (xp)′=(p⋅1)xp−1=0. The proof of (b) used that an irreducible factor q of f has q′≠0 of smaller degree, so that q∤q′; in characteristic p that step is no longer automatic, because q′ may be 0. So the correct statements are: gcd(f,f′)=1 implies no repeated irreducible factor, over any field; the converse is proved here only in characteristic 0. Do not use “repeated factor if and only if gcd(f,f′)≠1” over a field of characteristic p without checking that no irreducible factor of f has derivative 0.

Remark. The converse really can fail in characteristic p, though not over the fields Fp. Over the field of rational functions in a variable t with coefficients in Fp, which this book does not construct, the polynomial xp−t is irreducible, so it has no repeated factor, yet its derivative is 0.

Example (Detecting a Repeated Root with a gcd)

Decide whether f=x4−2x3+2x−1∈Q[x] has a repeated irreducible factor, using only gcd(f,f′). Does f have a multiple root in C?

Solution. Here f′=4x3−6x2+2. Run the Euclidean algorithm (Theorem 6.2.6). Dividing f by f′, f=(14x−18)f′+(−34x2+32x−34), and the remainder is −34(x2−2x+1). Dividing f′ by x2−2x+1, f′=(4x+2)(x2−2x+1)+0. (We divided by the monic multiple of the remainder; scaling a divisor by a non-zero constant changes only the quotient, so the next remainder is still 0.) The last non-zero remainder, made monic, is the gcd: gcd(f,f′)=x2−2x+1=(x−1)2≠1. By Corollary 6.4.6 (b), since Q has characteristic 0, f has a repeated irreducible factor. Indeed x−1 divides the gcd, so 1 is a common root of f and f′, and by Theorem 6.4.5 (a) it is a multiple root. This matches Example (Finding a Multiplicity by Repeated Division), where mult1(f)=3, and Theorem 6.4.5 (b) gives mult1(f′)=2, consistent with the factor (x−1)2 of the gcd.

So yes, f has a multiple root in C, namely 1∈Q. The gcd test is useful over C even for polynomials with rational coefficients: the Euclidean algorithm uses only divisions in Q[x], and division with remainder is unique (Theorem 6.1.1), so running it in C[x] produces the same remainders and the same gcd. Had the gcd been 1, part (a) over C would have ruled out every multiple complex root, without our finding a single root.

Quick check. Over R, f=x3 satisfies f(0)=f′(0)=0. Does Theorem 6.4.5 say that 0 has multiplicity 2?

Solution. No. Part (a) says only that the multiplicity is at least 2. The actual multiplicity is 3. Part (b) applies, since R has characteristic 0: mult0(f′)=mult0(3x2)=2=3−1. To pin the multiplicity down with derivatives, find the first k with f(k)(0)≠0: here f″(0)=0 and f‴(0)=6≠0, so k=3.

6.4.5. Taylor expansion of a polynomial

The answer to the check suggests that, in characteristic 0, the derivatives of f at c know everything about f near c. Calculus makes this precise with Taylor’s formula. For polynomials the formula is exact, and it has a clean linear-algebra meaning: the numbers f(k)(c)/k! are the coordinates of f in the basis of powers of x−c, so the maps f↦f(k)(c)/k! form a dual basis in the sense of Definition 5.1.3. In Example (Dual Bases in R[x]≤2) we saw this for c=0 and n=2.

We need one derivative computation. For integers 0≤j≤k, repeated use of Theorem 6.4.4 (c) and (a) gives ((x−c)k)(j)=k(k−1)⋯(k−j+1)(x−c)k−j, by induction on j, and ((x−c)k)(j)=0 for j>k, since the k-th derivative is the constant k!. Evaluating at c, every term with j<k vanishes because of the factor (x−c)k−j. Hence ((x−c)k)(j)(c)={k!⋅1if j=k,0if j≠k.

Theorem 6.4.7 (Taylor Expansion of a Polynomial)

Let F be a field, n∈N and c∈F.

  • (a) The list Bc=(1,x−c,(x−c)2,…,(x−c)n) is a basis of F[x]≤n.
  • (b) Suppose F has characteristic 0, or characteristic p>n. For k=0,…,n define φk:F[x]≤n→F by φk(f)=f(k)(c)k!. Then (φ0,…,φn) is the dual basis of Bc, and every f∈F[x]≤n satisfies f=∑k=0nf(k)(c)k!(x−c)k.

Idea. ① The powers of x−c have degrees 0,1,…,n, so no combination of them can cancel down to zero; there are n+1 of them, so counting finishes (a). ② The computation above says exactly φj((x−c)k)=δjk, once we may divide by k!. ③ A list of functionals with the δ property is the dual basis, and the dual basis expansion v=∑φk(v)vk of Theorem 5.1.3 is Taylor’s formula.

Proof.

  • (a) Let b0+b1(x−c)+⋯+bn(x−c)n=0, and suppose not all bk are zero. Let k be the largest index with bk≠0. By Theorem 0.8.3, bk(x−c)k has degree k, and each earlier term has degree less than k, so by Theorem 0.8.2 the sum has degree k≥0. This contradicts the sum being 0, of degree −∞. Hence Bc is linearly independent. It has n+1 elements and dim⁡F[x]≤n=n+1 by Example (Standard Bases), so Bc is a basis by Theorem 1.6.4 (a).

  • (b) First, k!⋅1≠0 in F for 0≤k≤n. By Lemma 0.7.4, k!⋅1=(1⋅1)(2⋅1)⋯(k⋅1). In characteristic 0 each factor is non-zero by Definition 0.7.2; in characteristic p>n, each factor j⋅1 with 1≤j≤k<p is non-zero by the minimality of p. A product of non-zero elements is non-zero (Theorem 0.7.1). So φk is defined.

Each φk is linear: f↦f(k) is linear as a composite of copies of D (Example (Differentiation)), evaluation at c is linear by Theorem 0.8.5, and so is multiplication by (k!)−1. The derivatives of a polynomial of degree at most n have degree at most n, so φk∈F[x]≤n∗. By the computation before the theorem, φj((x−c)k)=1j!((x−c)k)(j)(c)=δjk(0≤j,k≤n). By the uniqueness in Theorem 5.1.3 (a), (φ0,…,φn) is the dual basis of Bc. The first formula of Theorem 5.1.3 (c), f=∑kφk(f)(x−c)k, is the Taylor expansion. This proves the theorem.

Example (Re-centering a Cubic)

Expand f=x3−2x+5∈Q[x] in powers of x−1.

Solution. The derivatives are f′=3x2−2, f″=6x, f‴=6. At c=1: f(1)=4, f′(1)=1, f″(1)=6, f‴(1)=6. By Theorem 6.4.7 (b), since Q has characteristic 0, f=4+1⋅(x−1)+62(x−1)2+66(x−1)3=4+(x−1)+3(x−1)2+(x−1)3. Check by expanding: (x−1)3+3(x−1)2+(x−1)+4 equals (x3−3x2+3x−1)+(3x2−6x+3)+(x−1)+4=x3−2x+5.

The expansion also reads off root information at 1: the constant term f(1)=4≠0, so 1 is not a root. In general, multc(f) is the index of the first non-zero coordinate of f in the basis Bc (over any field, by part (a); in characteristic 0 these coordinates are the Taylor coefficients), because f=(x−c)m(bm+bm+1(x−c)+⋯) and the bracket is bm at c.

Warning. Taylor’s formula needs k!≠0. Over F2, take f=x2 and c=0. Then f′=2x=0, so every derivative of f, at every point, is 0, even though f≠0. No formula in the values f(k)(0) can recover the coefficient 1 of x2. Part (a) of Theorem 6.4.7 still holds over F2: x2 has coordinates (0,0,1) in (1,x,x2). What fails is that these coordinates are derivatives divided by k!.

The two halves of this section meet in Chapter 9, where a matrix is diagonalizable exactly when its minimal polynomial splits and has no repeated roots; the gcd test above is how such a condition is checked in practice. Before that, the next section proves that over C the sum of the multiplicities always equals the degree.

6.4.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define the multiplicity of c as a root of a non-zero f∈F[x]. Why is f≠0 required?
  • (b) True or false: if f(c)=f′(c)=0, then c has multiplicity exactly 2. Justify your answer.
  • (c) True or false: over every field, f′=0 implies that f is constant. Justify your answer.
  • (d) True or false: if f∈R[x] has degree 4 and the multiplicities of its real roots add up to 4, then f splits over R. Justify your answer.
  • (e) True or false: if f∈Q[x] is non-constant and gcd(f,f′)≠1, then f has a repeated irreducible factor. Justify your answer.
  • (f) Name the dual basis (Theorem 5.1.3) of (1,x−c,…,(x−c)n) in R[x]≤n.

Solution.

  • (a) It is the largest m∈N with (x−c)m∣f (Definition 6.4.1). For f=0, every power divides f, so no largest m exists.
  • (b) False. For f=x3 and c=0, f(0)=f′(0)=0, but mult0(f)=3. Theorem 6.4.5 (a) only gives multiplicity at least 2.
  • (c) False. Over F2, (x2)′=2x=0. (In characteristic 0 it is true: deg⁡f′=deg⁡f−1 whenever deg⁡f≥1.)
  • (d) True. By Theorem 6.4.3, the sum of multiplicities equals the degree if and only if f splits over R.
  • (e) True. Q has characteristic 0, so this is Corollary 6.4.6 (b).
  • (f) φk(f)=f(k)(c)/k! for k=0,…,n, by Theorem 6.4.7 (b); R has characteristic 0.

B. Practice

Exercise (B1: Multiplicities over different fields)
  • (a) Let f=x5−3x4+4x3−4x2+3x−1. Find mult1(f) in Q[x]. Hence decide whether f splits over R, and whether it splits over C.
  • (b) In F2[x], find the roots of g=x4+x2 and their multiplicities. Does g split over F2?

Solution.

  • (a) Here f(1)=1−3+4−4+3−1=0. Dividing by x−1 repeatedly, f=(x−1)(x4−2x3+2x2−2x+1),x4−2x3+2x2−2x+1=(x−1)(x3−x2+x−1), and x3−x2+x−1=(x−1)(x2+1). Since x2+1 takes the value 2≠0 at 1, Lemma 6.4.1 gives f=(x−1)3(x2+1) and mult1(f)=3. Over R, x2+1 has no root (c2+1≥1), so the only real root of f is 1, and 3<5=deg⁡f. By Theorem 6.4.3, f does not split over R. Over C, x2+1=(x−i)(x+i), so f=(x−1)3(x−i)(x+i) splits.
  • (b) In F2[x], x4+x2=x2(x2+1), and x2+1=(x+1)2 because (x+1)2=x2+2x+1=x2+1. Hence g=x2(x+1)2=(x−0)2(x−1)2, using −1=1. The cofactor (x+1)2 is 1 at 0, and x2 is 1 at 1, so mult0(g)=mult1(g)=2 by Lemma 6.4.1. These are the only elements of F2, the multiplicities add to 4=deg⁡g, and g splits over F2.
Exercise (B2: A gcd test)

Decide whether f=x4−2x2+1∈Q[x] has a repeated root, by computing gcd(f,f′) with the Euclidean algorithm. Hence factor f and give all multiplicities.

Solution. We have f′=4x3−4x. Dividing, f=14x⋅f′+(−x2+1), since 14x(4x3−4x)=x4−x2. Next, f′=(−4x)(−x2+1)+0. So the last non-zero remainder is −x2+1, and by Theorem 6.2.6 gcd(f,f′)=x2−1≠1. Its roots 1 and −1 are common roots of f and f′, since x2−1=(x−1)(x+1) divides both. By Theorem 6.4.5 (a), 1 and −1 are multiple roots of f.

To factor, note that (x2−1)2=x4−2x2+1=f, so f=(x−1)2(x+1)2. By Lemma 6.4.1, mult1(f)=2 (cofactor (x+1)2, value 4 at 1) and mult−1(f)=2.

Exercise (B3: The multiplicity of 1)

Let n≥2 and f=xn−nx+n−1∈Q[x]. Prove that 1 is a root of f of multiplicity exactly 2.

Solution. We have f(1)=1−n+n−1=0, f′=nxn−1−n, so f′(1)=0, and f″=n(n−1)xn−2, so f″(1)=n(n−1)≠0 since n≥2. In particular f≠0. By Theorem 6.4.5 (a), m:=mult1(f)≥2. Since Q has characteristic 0, part (b) gives mult1(f′)=m−1≥1. Apply (a) to f′≠0: since f″(1)≠0, 1 is not a multiple root of f′, so m−1=1. Hence m=2.

C. Going deeper

Exercise (C1: Real roots of the derivative)

Let f∈R[x] have degree n≥2 and split over R. Prove that f′ splits over R. You may use Rolle’s theorem from calculus: if a<b are real and f(a)=f(b)=0, then f′(ξ)=0 for some ξ with a<ξ<b.

Hint: count the roots of f′ with multiplicity, and compare with deg⁡f′.

Solution. Let c1<c2<⋯<ck be the distinct real roots of f, with multiplicities m1,…,mk. Since f splits over R, Theorem 6.4.3 gives m1+⋯+mk=n.

By Rolle’s theorem, for each i=1,…,k−1 there is ξi with ci<ξi<ci+1 and f′(ξi)=0. These k−1 numbers are distinct, since they lie in disjoint open intervals, and none of them is a cj. Moreover, each ci with mi≥2 is a root of f′ of multiplicity mi−1, by Theorem 6.4.5 (b) (characteristic 0); for mi=1 the count mi−1=0 is also correct.

Since deg⁡f=n≥1 and R has characteristic 0, deg⁡f′=n−1, so f′≠0. Adding the multiplicities of the distinct roots ξ1,…,ξk−1,c1,…,ck of f′ gives at least (k−1)+∑i=1k(mi−1)=(k−1)+n−k=n−1=deg⁡f′. By Theorem 6.4.3 the sum of the multiplicities of all roots of f′ is at most deg⁡f′, so it equals deg⁡f′, and f′ splits over R.

Exercise (C2: xp−x over Fp)

Let p be a prime and f=xp−x∈Fp[x].

Hint for (c): for 0<k<p, use the integer identity k(pk)=p(p−1k−1).

Solution.

  • (a) By Definition 6.4.3, f′=pxp−1−1=−1, since p⋅1=0 in Fp. Every common divisor of f and −1 divides 1, so gcd(f,f′)=1, and Corollary 6.4.6 (a), which holds over every field, shows f has no repeated irreducible factor.

  • (b) By Exercise (C2: A non-zero polynomial vanishing everywhere) (c), every a∈Fp is a root of f, so each of the p elements has multiplicity at least 1. The multiplicities add up to at least p=deg⁡f, and at most deg⁡f by Theorem 6.4.3. So they add up to exactly p, and each is 1. By Theorem 6.4.3, f=∏b∈Fp(x−b)g with deg⁡g=p−p=0, so g is a constant; comparing leading coefficients (Theorem 0.8.3), g=1.

  • (c) Here g′=pxp−1=0, so gcd(g,g′)=g≠1 (the monic generator of the ideal generated by g and 0). Part (a) of Corollary 6.4.6 needs gcd=1, so it says nothing, and part (b) is only available in characteristic 0. Still, g(1)=0 and g′(1)=0, so 1 is a multiple root by Theorem 6.4.5 (a).

    For the factorization, expand with the binomial theorem (valid in the commutative ring Fp[x], Theorem 0.8.1): (x−1)p=∑k=0p(pk)(−1)p−kxk, with the integers (pk) acting as integer multiples. For 0<k<p, the identity k(pk)=p(p−1k−1) and Lemma 0.7.4 give (k⋅1)((pk)⋅1)=(p⋅1)((p−1k−1)⋅1)=0 in Fp. Since 0<k<p, k⋅1≠0 by Definition 0.7.2, so (pk)⋅1=0 (Theorem 0.7.1). Hence (x−1)p=xp+(−1)p. For odd p this is xp−1; for p=2 it is x2+1=x2−1. So g=(x−1)p, and mult1(g)=p by Lemma 6.4.1.

Exercise (C3: Removing repeated factors)

Let F be a field and f=ap1e1⋯prer∈F[x], where a∈F∖{0}, the pi are distinct monic irreducible polynomials and ei≥1.

  • (a) Suppose F has characteristic 0. Prove that gcd(f,f′)=p1e1−1⋯prer−1, and deduce that f/gcd(f,f′)=ap1⋯pr.
  • (b) Over F2, let f=x2(x+1). Compute f/gcd(f,f′) and show that the conclusion of (a) fails.

Hint for (a): write D=p1e1−1⋯prer−1. Show D∣gcd(f,f′); for the reverse, show piei∤f′ using Euclid’s lemma.

Solution.

  • (a) Let D=∏ipiei−1 and d=gcd(f,f′). By Theorem 6.4.4 (b) and (c), applied repeatedly, f′=a∑i=1reipiei−1pi′∏j≠ipjej. Every term is divisible by D, and so is f. Hence D∣d by Theorem 6.2.3.

    Conversely, d∣f, so f=dh. Factoring d and h into monic irreducibles and comparing with the factorization of f by the uniqueness in Theorem 6.3.5, d=∏ipiki with 0≤ki≤ei (as d is monic). Suppose ki=ei for some i. Then piei∣f′. In the formula for f′ every term with index j≠i contains piei, so piei divides the remaining term aeipiei−1pi′∏j≠ipjej. Canceling piei−1 (Corollary 0.8.4), pi∣(aei)pi′∏j≠ipjej. Here aei=a(ei⋅1) is a non-zero constant (characteristic 0), pi∤pi′ because pi′≠0 has smaller degree, and pi∤pj for j≠i because both are monic irreducible and distinct. Applying Theorem 6.3.3 repeatedly gives a contradiction. Hence ki≤ei−1 for all i, so d∣D. Both are monic and divide each other, so they have the same degree and d=D. Finally f=D⋅ap1⋯pr, so f/d=ap1⋯pr.

  • (b) In F2[x], f=x3+x2 and f′=3x2+2x=x2. Since x2∣f, gcd(f,f′)=x2, and f/gcd(f,f′)=x+1. The formula of (a) would predict gcd(f,f′)=x and f/gcd(f,f′)=x(x+1). The irreducible factor x has been lost. The step that fails is “aei≠0”: here e1=2 and 2⋅1=0 in F2.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.