6.1  Division with Remainder

Integers can be divided with a remainder: 17=3⋅5+2, and the remainder 2 is smaller than the divisor 5. Polynomials over a field can be divided in the same way, with “smaller” measured by degree. Chapter 0 stated this fact without proof, and Chapter 3 proved the special case of dividing by x−c. This section proves division with remainder in general, over any field, and draws the first consequences: the language of divisibility, the Remainder and Factor Theorems for every divisor x−c, a sharper root bound, and the fact that over an infinite field a polynomial is determined by its values. Throughout, F is a field unless we say otherwise, and it matters: the warning in the second subsection shows division failing when the coefficients only form Z.

6.1.1. Long division by hand

At school one divides x4+2x3−x+3 by x2+x−1 with a layout that imitates long division of numbers. Let us do it in words, so that we can see what each step does.

Write f=x4+2x3−x+3 and g=x2+x−1, in Q[x].

  1. The leading term of f is x4, and the leading term of g is x2. The quotient x4/x2=x2 is the first term of the answer. Subtract x2g=x4+x3−x2: f−x2g=x3+x2−x+3.
  2. The leading term is now x3, and x3/x2=x. Subtract xg=x3+x2−x: f−x2g−xg=3.
  3. What is left, 3, has degree 0, smaller than deg⁡g=2. No multiple cxkg with k≥0 can remove it without creating terms of degree at least 2. We stop.

So f=(x2+x)g+3: the quotient is x2+x and the remainder is 3. Expanding (x2+x)(x2+x−1)=x4+2x3−x confirms it.

Two questions are hidden in this routine. Why does it always stop? Each step removes the current leading term, so the degree of what is left drops by at least one. Degrees are natural numbers, and a strictly decreasing sequence of natural numbers cannot go on forever. Why is the answer unique? Someone else might hope to find a different quotient and a different remainder of degree less than 2. We will see that they cannot, by comparing degrees.

There is also a third, quieter question. In step 1 we divided the leading coefficient of the current polynomial by the leading coefficient of g. Here that coefficient was 1. In general it is some b≠0, and we need b−1. Over a field this always exists. That is exactly where the field enters.

6.1.2. The Division Theorem

The routine above works for every pair of polynomials with nonzero divisor. Here is the precise statement.

Theorem 6.1.1 (Polynomial Division with Remainder)

Let F be a field, and let f,g∈F[x] with g≠0. Then there exist unique polynomials q,r∈F[x] such that f=qg+randdeg⁡r<deg⁡g.

The polynomial q is the quotient and r is the remainder of f on division by g. Because deg⁡0=−∞, the condition deg⁡r<deg⁡g allows r=0, which is the case “g goes into f exactly”.

Idea. Existence is the hand routine turned into an induction on deg⁡f. If deg⁡f<deg⁡g, there is nothing to do: q=0, r=f. Otherwise subtract (a/b)xn−mg, where axn and bxm are the leading terms of f and g. This kills the leading term of f, so the induction hypothesis applies to what is left. Uniqueness is “take the difference”: if qg+r=q′g+r′, then (q−q′)g=r′−r. The right side has degree less than deg⁡g, while a nonzero multiple of g has degree at least deg⁡g.

Proof. Let m=deg⁡g, which lies in N since g≠0, and let b≠0 be the leading coefficient of g.

Existence. If f=0, then q=0 and r=0 work. For nonzero f we prove, by strong induction on n∈N (Theorem 0.2.10 with n0=0), the statement

P(n): for every f∈F[x] with deg⁡f=n, there are q,r∈F[x] with f=qg+r and deg⁡r<m.

Let n∈N, assume P(k) for all k<n, and let deg⁡f=n with leading coefficient a.

Case 1: n<m. Take q=0 and r=f. Then f=0⋅g+f and deg⁡r=n<m.

Case 2: n≥m. Since F is a field and b≠0, the inverse b−1 exists. Put f1=f−ab−1xn−mg. By Theorem 0.8.3, the polynomial ab−1xn−mg has degree (n−m)+m=n and leading coefficient ab−1⋅b=a. So the coefficient of xn in f1 is a−a=0, and all coefficients of higher powers are 0 as well. Hence f1=0 or deg⁡f1<n. If f1=0, then f=ab−1xn−mg+0, and we take q=ab−1xn−m, r=0. Otherwise k=deg⁡f1<n, and the induction hypothesis P(k) gives q1,r1 with f1=q1g+r1 and deg⁡r1<m. Then f=f1+ab−1xn−mg=(ab−1xn−m+q1)g+r1, so q=ab−1xn−m+q1 and r=r1 work. This proves P(n), and by strong induction P(n) holds for every n∈N.

Uniqueness. Suppose f=qg+r=q′g+r′ with deg⁡r<m and deg⁡r′<m. Then (q−q′)g=r′−r. By Theorem 0.8.2, deg⁡(r′−r)≤max(deg⁡r′,deg⁡r)<m, since −r has the same degree as r. Suppose q≠q′. Then deg⁡(q−q′)≥0, and Theorem 0.8.3 gives deg⁡((q−q′)g)=deg⁡(q−q′)+m≥m, a contradiction. Hence q=q′. Then r′−r=0⋅g=0, so r=r′. This proves the theorem.

The field axioms did essential work in two places: the inverse b−1 in Case 2, and Theorem 0.8.3 in the uniqueness step, which needs a product of nonzero coefficients to be nonzero. The proof is also an algorithm. Case 2, repeated, is the long division of the previous subsection, and the induction guarantees that it stops after at most deg⁡f−deg⁡g+1 subtractions.

The hypothesis “over a field” is not decoration. The leading coefficient of g must be invertible.

Warning. Division with remainder fails over Z. Write Z[x] for the polynomials in Q[x] whose coefficients are all integers. Try to divide f=x2 by g=2x inside Z[x]: we want q,r∈Z[x] with x2=2x⋅q+r and deg⁡r<1, so r is a constant. Comparing coefficients of x2 gives 2q1=1, where q1 is the coefficient of x in q. No integer q1 satisfies this, so no such q,r exist. Over Q there is no problem: x2=2x⋅12x+0. The obstacle is precisely that 2 has no inverse in Z.

Division by a divisor whose leading coefficient is invertible still works over Z, for example by a monic polynomial; see Exercise C1.

Quick check. Why must the inequality deg⁡r<deg⁡g be strict? Find two different pairs (q,r) with x2=q⋅(x2+1)+r and deg⁡r≤2.

Solution. Both x2=1⋅(x2+1)+(−1) and x2=0⋅(x2+1)+x2 work, with remainders of degree 0 and 2. With deg⁡r≤deg⁡g allowed, uniqueness fails, because we may move one copy of g between qg and r. The strict inequality is exactly what rules this out: in the uniqueness proof, deg⁡(r′−r)<deg⁡g is the step that forces q=q′.

Now a division in which the leading coefficient of the divisor is not 1, so fractions appear.

Example (Long Division with a Non-Monic Divisor)

In Q[x], divide f=2x4−3x3+x2+4x−1 by g=2x2−x+3 with remainder.

Solution. We follow Case 2 of the proof, where b=2 and b−1=12.

Step 1. The leading term of f is 2x4, and 2x4/2x2=x2. Subtracting x2g=2x4−x3+3x2 leaves f−x2g=−2x3−2x2+4x−1. Step 2. The leading term is −2x3, and −2x3/2x2=−x. Subtracting −xg=−2x3+x2−3x leaves −3x2+7x−1. Step 3. The leading term is −3x2, and −3x2/2x2=−32. Subtracting −32g=−3x2+32x−92 leaves (7−32)x+(−1+92)=112x+72. This has degree 1<2=deg⁡g, so we stop. Hence 2x4−3x3+x2+4x−1=(x2−x−32)(2x2−x+3)+112x+72, with quotient q=x2−x−32 and remainder r=112x+72. By the uniqueness in Theorem 6.1.1, any other correct method must produce the same q and r.

Notice that the quotient has a noninteger coefficient although f and g have integer coefficients. This is the warning above in action: over Z this division would be impossible.

6.1.3. Divisibility

With integers, “3 divides 12” means that 12 is an integer multiple of 3 (Definition 0.2.2), and it is the case “remainder zero” of integer division. Polynomials get the same word. The field is part of the meaning, so we put it in the definition.

g divides f when f is a polynomial multiple of g, with the multiplier taken over the same field.

Definition 6.1.1 (Divisibility, Associates)

Let F be a field and f,g∈F[x].

  • We say g divides f over F, and write g∣f, if there exists h∈F[x] with f=gh. Then g is a divisor (or factor) of f, and f is a multiple of g. We write g∤f if g does not divide f.
  • We say f and g are associates if f=cg for some nonzero constant c∈F.

In words: g∣f asks for a multiplier h in F[x], so the same pair can behave differently over different fields. Associates differ only by a nonzero scalar factor. Since c−1 exists, “associates” is symmetric: f=cg gives g=c−1f.

Examples, simplest first.

  • Degenerate cases. Every g divides 0, since 0=g⋅0. On the other hand 0∣f only for f=0, since 0⋅h=0. Every nonzero constant c divides every f, since f=c⋅(c−1f). These cases matter: they say that nonzero constants are invisible to divisibility, just as ±1 are for integers.
  • In Q[x], x−1∣x2−1, since x2−1=(x−1)(x+1). Also 2x−2∣x2−1, since x2−1=(2x−2)⋅12(x+1). The polynomials x−1 and 2x−2 are associates.
  • In F2[x], x+1∣x2+1, since (x+1)2=x2+2x+1=x2+1 there. In Q[x], however, x+1∤x2+1, as the next paragraph shows.
  • In C[x], x−i∣x2+1=(x−i)(x+i).

For a nonexample by minimal change, keep x2+1 and x+1 but move from F2 to Q. Both are still polynomials, and division with remainder still applies. What fails is the clause “there exists h∈F[x]”. If x2+1=(x+1)h with h∈Q[x], then evaluating at −1 (Theorem 0.8.5) gives 2=0⋅h(−1)=0, which is false in Q. Over F2 the same computation reads 0=0, and there is no contradiction.

Warning. Divisibility depends on where the multiplier may live. In Q[x], 2x+2∣x+1, because x+1=(2x+2)⋅12. If we insisted on integer coefficients, 2x+2 would not divide x+1: any integer multiple (2x+2)h has all coefficients even. Over a field, a nonzero scalar factor never affects divisibility, so it is pointless to ask whether x−1 or 3x−3 is “the” factor of x2−1.

Why this definition? Because it makes “divides” the case of remainder zero, which is the link to division we need. The basic rules follow quickly.

Proposition 6.1.2 (Rules for Divisibility)

Let F be a field and f,g,h∈F[x].

  • (a) If f∣g and g∣h, then f∣h.
  • (b) If h∣f and h∣g, then h∣af+bg for all a,b∈F[x].
  • (c) If g∣f and f≠0, then deg⁡g≤deg⁡f.
  • (d) f∣g and g∣f if and only if f and g are associates or both are 0. In particular, if f∣g, g∣f, and f,g are both monic, then f=g.
  • (e) If g≠0, then g∣f if and only if the remainder of f on division by g is 0.

Proof.

  • (a) Write g=fu and h=gv with u,v∈F[x]. Then h=f(uv) by Theorem 0.8.1, so f∣h.

  • (b) Write f=hu and g=hv. Then af+bg=h(au+bv) by Theorem 0.8.1, so h∣af+bg.

  • (c) Write f=gu. Since f≠0, both g and u are nonzero, so deg⁡u≥0. By Theorem 0.8.3, deg⁡f=deg⁡g+deg⁡u≥deg⁡g.

  • (d) (⇐) If f=cg with c≠0, then g∣f and g=c−1f gives f∣g. If f=g=0, both divide each other. (⇒) Suppose g=fu and f=gv. If f=0, then g=0⋅u=0, so both are 0. If f≠0, then f=f(uv), so f(1−uv)=0, and Corollary 0.8.4 gives uv=1. By Theorem 0.8.3, deg⁡u+deg⁡v=deg⁡1=0 with both degrees in N, so u and v are nonzero constants. Hence f=vg with v≠0, and f,g are associates. If both are monic, comparing leading coefficients in f=vg gives 1=v⋅1, so f=g.

  • (e) If the remainder is 0, then f=qg, so g∣f. Conversely, if f=hg, then f=hg+0 with deg⁡0=−∞<deg⁡g. This is a division with remainder, so by the uniqueness in Theorem 6.1.1, the remainder of f on division by g is 0. This proves the proposition.

Part (d) is the polynomial form of a move we will use again and again: to show two monic polynomials are equal, show that each divides the other. It also gives each nonzero polynomial a canonical representative. If f≠0 has leading coefficient a, then a−1f is monic and an associate of f, and it is the only monic associate: two monic associates divide each other, so they are equal by (d). For example, the monic associate of 3x2−6 in Q[x] is x2−2. The greatest common divisor in the next section will be defined as a monic polynomial for exactly this reason.

6.1.4. The Remainder and Factor Theorems

Division by a polynomial of degree 1 leaves a remainder of degree less than 1, that is, a constant. Which constant? Chapter 3 already answered this. The Factor Theorem for a Linear Divisor (Lemma 3.7.1) showed, by an induction that was long division in disguise, that p=(x−c)q+p(c) for some q. We now read that lemma through Theorem 6.1.1. What is new is that q and the constant are unique, so p(c) is the remainder in the sense of division.

Theorem 6.1.3 (Remainder Theorem and Factor Theorem)

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

  • (a) The remainder of f on division by x−c is the constant f(c).
  • (b) c is a root of f if and only if x−c∣f.

Proof.

  • (a) By Lemma 3.7.1, f=(x−c)q+f(c) for some q∈F[x]. The constant f(c) has degree 0 or −∞, which is less than deg⁡(x−c)=1. So this is a division with remainder, and by the uniqueness in Theorem 6.1.1, f(c) is the remainder.

  • (b) By Proposition 6.1.2 (e), x−c∣f if and only if the remainder is 0, which by (a) means f(c)=0. This proves the theorem.

In other words, the Factor Theorem of Chapter 3 is really a statement about division. Division alone would also give it: dividing f by x−c leaves a constant remainder r, and evaluating f=(x−c)q+r at c gives r=f(c). Since Chapter 3 already proved the lemma, we cite it rather than prove it again, and we will use the name “Remainder Theorem” for both parts.

Example (Remainders Without Dividing)
  • (a) Find the remainder of f=x5−3x3+2x+7 on division by x−2 in Q[x]. (b) Show that x+1∤x2+1 in Q[x], but x+1∣x2+1 in F2[x]. (c) Find the remainder of x5 on division by x2−x in Q[x], again without long division.

Solution.

  • (a) By Theorem 6.1.3 (a), the remainder is f(2)=32−24+4+7=19. No long division is needed.

  • (b) Here x+1=x−(−1). In Q, (−1)2+1=2≠0, so −1 is not a root and x+1∤x2+1 by part (b) of the theorem; the remainder is 2. In F2, −1=1 and 12+1=0, so x+1∣x2+1. Indeed x2+1=(x+1)2 in F2[x]. The same polynomial symbols, over two fields, give different answers.

  • (c) The divisor has degree 2, so by Theorem 6.1.1, x5=q(x2−x)+r with deg⁡r≤1, say r=ax+b. The divisor x2−x=x(x−1) vanishes at 0 and at 1, so evaluating both sides there (Theorem 0.8.5) kills the term q(x2−x): at 0, 0=b; at 1, 1=a+b. Hence a=1, b=0, and the remainder is x. As a check, x5−x=x(x4−1)=(x2−x)(x3+x2+x+1). The move is: evaluate at the roots of the divisor, one equation per root.

The Factor Theorem peels off one root at a time. Doing it for several distinct roots at once strengthens the Root bound of Chapter 3 (Lemma 3.7.2), which said that a nonzero polynomial of degree at most n has at most n distinct roots. The stronger version says why there are so few: every root contributes its own linear factor.

Corollary 6.1.4 (Distinct Roots Give a Product of Linear Factors)

Let F be a field, f∈F[x], and let c1,…,ck∈F be distinct roots of f, with k≥1. Then (x−c1)(x−c2)⋯(x−ck)∣f. Consequently, if f≠0, then k≤deg⁡f: a nonzero polynomial of degree n has at most n distinct roots in F.

Idea. Peel off x−c1 by the Factor Theorem. What remains, h, must still vanish at c2, because f(c2)=(c2−c1)h(c2) and c2−c1≠0. So peel off x−c2 from h, and so on. Distinctness is what makes the factors ck−ci nonzero.

Proof. We use induction on k. For k=1, this is Theorem 6.1.3 (b).

Let k≥2, and assume the statement for k−1 distinct roots. By the induction hypothesis, f=(x−c1)⋯(x−ck−1)h for some h∈F[x]. Evaluating at ck with Theorem 0.8.5, 0=f(ck)=(ck−c1)⋯(ck−ck−1)h(ck). Since the ci are distinct, each ck−ci with i<k is nonzero, and a product of nonzero elements of a field is nonzero (Theorem 0.7.1). Hence h(ck)=0, and Theorem 6.1.3 (b) gives h=(x−ck)h1 with h1∈F[x]. Therefore f=(x−c1)⋯(x−ck)h1, which completes the induction.

For the count, suppose f≠0 and write f=(x−c1)⋯(x−ck)h1 as above. Then h1≠0, and by Theorem 0.8.3, deg⁡f=k+deg⁡h1≥k. This proves the corollary.

The count is Lemma 3.7.2 again, now as a consequence of a divisibility statement. The divisibility statement is the more useful one. For instance, it tells us at once that a polynomial vanishing at 1, 2, and 3 is a multiple of (x−1)(x−2)(x−3).

6.1.5. Polynomials and polynomial functions

Chapter 0 warned that a polynomial is not the function it defines: over F2, the nonzero polynomial x2+x has the zero function (Example (Different polynomials, same function)). It also promised that over an infinite field the distinction disappears. Chapter 3 kept that promise in a paragraph right after Lemma 3.7.2. We record the fact here as a theorem, in a slightly sharper form that counts how many values are needed.

Theorem 6.1.5 (Values Determine a Polynomial)

Let F be a field and p,q∈F[x].

  • (a) Let n∈N with deg⁡p≤n and deg⁡q≤n. If p(c)=q(c) for at least n+1 distinct elements c∈F, then p=q.
  • (b) If F is infinite and p(c)=q(c) for every c∈F, then p=q.

Proof.

  • (a) Let h=p−q. By Theorem 0.8.2, deg⁡h≤n. By Theorem 0.8.5, h(c)=p(c)−q(c)=0 for each of the given n+1 distinct elements, so h has at least n+1 distinct roots. By Lemma 3.7.2, a nonzero polynomial of degree at most n has at most n distinct roots, so h cannot be nonzero. Hence h=0 and p=q.

  • (b) Let n=max(deg⁡p,deg⁡q,0)∈N. Since F is infinite, it contains n+1 distinct elements, and p and q agree at each of them. Part (a) gives p=q. This proves the theorem.

So over Q, R, and C, we may compare polynomials by comparing their functions, and we may read off coefficients from values. Part (a) holds over every field, including finite ones: a quadratic over F5 is determined by its values at any three distinct points.

Warning. Part (b) is false over every finite field. Over Fp, the polynomial xp−x is nonzero but vanishes at every element (Exercise (C2: A nonzero polynomial vanishing everywhere)). So xp and x define the same function Fp→Fp although they are different polynomials. There is no contradiction with (a): the degrees are at most p, and (a) would need agreement at p+1 distinct points, but Fp has only p elements.

Quick check. Over F3, do the polynomials x3+2x and 0 define the same function? Does this contradict Theorem 6.1.5?

Solution. Yes. The values of x3+2x at 0,1,2 are 0, 1+2=3=0, and 8+4=12=0. So the function is zero, although the polynomial is not. There is no contradiction: F3 is finite, so part (b) does not apply, and part (a) with n=3 would need 4 distinct points. In fact x3+2x=x3−x, the polynomial of the warning with p=3.

Division with remainder is the one tool this chapter keeps using. In the next section it shows that every set of polynomials closed under the right operations consists of the multiples of a single polynomial, and that gives greatest common divisors.

6.1.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State the theorem on division with remainder in F[x], including every hypothesis.
  • (b) Determine whether the following statement is true: “for every field F and all f,g∈F[x], if f∣g and g∣f, then f=g.” Justify your answer. Does your answer change if F=F2?
  • (c) Let c∈F be nonzero. What are the quotient and the remainder of f on division by the constant polynomial c?
  • (d) Name the method for finding the remainder of f on division by x−c without dividing.
  • (e) Determine whether the following statement is true: “if F is a field and p∈F[x] satisfies p(c)=0 for every c∈F, then p=0.” Justify your answer.

Solution.

  • (a) Let F be a field and f,g∈F[x] with g≠0. Then there are unique q,r∈F[x] with f=qg+r and deg⁡r<deg⁡g (Theorem 6.1.1).
  • (b) False in general. In Q[x], take f=x and g=2x. Then g=2f and f=12g, so each divides the other, but f≠g. By Proposition 6.1.2 (d), mutual divisibility only gives associates. Over F2, the statement is true: the only nonzero constant in F2 is 1, so associates are equal, and if f∣g and g∣f, then either both are 0 or f=1⋅g.
  • (c) The remainder must have degree less than deg⁡c=0, so r=0. Then f=qc, so q=c−1f. In particular every polynomial is divisible by every nonzero constant.
  • (d) The Remainder Theorem (Theorem 6.1.3): the remainder is the constant f(c).
  • (e) False. Over F2, p=x2+x is nonzero but p(0)=p(1)=0 (Example (Different polynomials, same function)). The statement is true when F is infinite, by Theorem 6.1.5 (b).

B. Practice

Exercise (B1: Dividing Over Two Fields)
  • (a) In Q[x], divide f=x4−3x3+2x−5 by g=3x2−1 with remainder.
  • (b) In F5[x], divide f=x4+2x3+3x+1 by g=2x2+3 with remainder. Hence decide whether g∣f in F5[x].

Hint for (b): first find the inverse of 2 in F5.

Solution.

  • (a) The leading coefficient of g is 3, with inverse 13. First, x4/3x2=13x2, and f−13x2g=−3x3+13x2+2x−5. Next, −3x3/3x2=−x, and subtracting −xg=−3x3+x leaves 13x2+x−5. Next, 13x2/3x2=19, and subtracting 19g=13x2−19 leaves x−449, of degree 1<2. Hence x4−3x3+2x−5=(13x2−x+19)(3x2−1)+x−449, with quotient 13x2−x+19 and remainder x−449, which are the only ones by Theorem 6.1.1.
  • (b) In F5, 2⋅3=6=1, so 2−1=3. First, the leading term x4 divided by 2x2 is 3x2, and 3x2g=6x4+9x2=x4+4x2. Subtracting leaves 2x3−4x2+3x+1=2x3+x2+3x+1. Next, 2x3/2x2=x, and subtracting xg=2x3+3x leaves x2+1. Next, x2/2x2=3, and subtracting 3g=6x2+9=x2+4 leaves 1−4=−3=2. Hence x4+2x3+3x+1=(3x2+x+3)(2x2+3)+2in F5[x]. The remainder 2 is nonzero, so g∤f in F5[x], by Proposition 6.1.2 (e).
Exercise (B2: A Factor of xn−cn)

Let F be a field, c∈F, and n≥1. Prove that x−c∣xn−cn in F[x], and verify that the quotient is xn−1+cxn−2+⋯+cn−2x+cn−1.

Solution. The value of f=xn−cn at c is cn−cn=0, so c is a root of f, and Theorem 6.1.3 (b) gives x−c∣f. For the quotient, let s=∑j=0n−1cjxn−1−j. Then (x−c)s=∑j=0n−1cjxn−j−∑j=0n−1cj+1xn−1−j=∑j=0n−1cjxn−j−∑j=1ncjxn−j=xn−cn, since the two sums share the terms with 1≤j≤n−1, leaving c0xn from the first and cnx0 from the second. This shows xn−cn=(x−c)s.

Exercise (B3: A Remainder Without Long Division)
  • (a) In Q[x], find the remainder of x100 on division by x2−1 without long division.
  • (b) Show that the answer to (a) is the remainder of x100 on division by x2−1 over every field F, including F2. Explain why the method of (a) alone does not settle the case F=F2.

Hint for (a): part (c) of Example (Remainders Without Dividing). Hint for (b): imitate the identity of B2.

Solution.

  • (a) By Theorem 6.1.1, x100=q(x2−1)+r with deg⁡r≤1, say r=ax+b. Evaluating at 1 and −1, where x2−1 vanishes (Theorem 0.8.5), gives 1=a+b and 1=(−1)100=−a+b. Adding and subtracting, 2b=2 and 2a=0, so b=1 and a=0. The remainder is 1.
  • (b) Over any field, let s=∑j=049x2j. Then (x2−1)s=∑j=049x2j+2−∑j=049x2j=x100−1, because the terms x2,x4,…,x98 occur in both sums. Hence x100=s⋅(x2−1)+1, and deg⁡1=0<2, so by the uniqueness in Theorem 6.1.1 the remainder is 1 over every field. The method of (a) divides by 2, and over F2 we have 2=0; also 1=−1 there, so evaluating at ±1 gives only the single equation a+b=1, which does not determine a and b.

C. Going deeper

Exercise (C1: Division by a Monic Polynomial Over Z)

As in the warning after Theorem 6.1.1, Z[x] denotes the set of polynomials in Q[x] all of whose coefficients are integers. It is closed under addition and multiplication.

  • (a) Let f,g∈Z[x] with g monic. Prove that there exist q,r∈Z[x] with f=qg+r and deg⁡r<deg⁡g.
  • (b) Prove that q and r in (a) are unique, even among q,r∈Q[x].
  • (c) Does (a) remain true if the leading coefficient of g is −1 instead of 1? Justify your answer.

Hint for (a): find the one step in the proof of Theorem 6.1.1 that leaves Z[x].

Solution.

  • (a) We repeat the existence proof of Theorem 6.1.1, checking that every polynomial stays in Z[x]. Let m=deg⁡g. The only step that could leave Z[x] is forming ab−1xn−mg, where b is the leading coefficient of g. Here b=1, so ab−1=a∈Z and f1=f−axn−mg∈Z[x]. The strong induction on deg⁡f (Theorem 0.2.10) then runs word for word inside Z[x]: in Case 1, q=0 and r=f are in Z[x]; in Case 2, q=axn−m+q1 and r=r1 are in Z[x] because q1,r1 are, by the induction hypothesis applied to f1∈Z[x]. This proves existence in Z[x].
  • (b) Suppose f=qg+r=q′g+r′ with q,q′,r,r′∈Q[x] and deg⁡r,deg⁡r′<deg⁡g. Since Q is a field and g≠0, the uniqueness part of Theorem 6.1.1 in Q[x] gives q=q′ and r=r′. In particular the pair found in (a) is the unique one.
  • (c) Yes. If the leading coefficient is b=−1, then b−1=−1∈Z, so ab−1=−a∈Z, and the argument of (a) goes through unchanged. What matters is that the leading coefficient has an inverse in Z, which is true exactly for ±1.
Exercise (C2: Remainders on Division by a Quadratic)

Let F be a field, f∈F[x], and a,b∈F.

  • (a) Suppose a≠b. Prove that the remainder of f on division by (x−a)(x−b) is r=f(a)x−ba−b+f(b)x−ab−a, where x−ba−b means (a−b)−1(x−b).
  • (b) Now let a=b. Write f=(x−a)h+f(a) by Theorem 6.1.3. Prove that the remainder of f on division by (x−a)2 is h(a)(x−a)+f(a).
  • (c) Hence find the remainder of x100 on division by x2−3x+2 in Q[x].

Solution.

  • (a) Since a≠b, a−b is invertible, so r is a well-defined polynomial of degree at most 1. By Theorem 6.1.1, f=q(x−a)(x−b)+s with deg⁡s≤1. Evaluating at a and at b (Theorem 0.8.5) gives s(a)=f(a) and s(b)=f(b). Also r(a)=f(a)⋅1+f(b)⋅0=f(a) and r(b)=f(b). So s and r have degree at most 1 and agree at the 2 distinct points a,b. By Theorem 6.1.5 (a) with n=1, s=r. This proves the formula.
  • (b) By Theorem 6.1.3 (a) applied to h, h=(x−a)k+h(a) for some k∈F[x]. Substituting, f=(x−a)((x−a)k+h(a))+f(a)=k(x−a)2+(h(a)(x−a)+f(a)). The last bracket has degree at most 1<2=deg⁡(x−a)2, so by the uniqueness in Theorem 6.1.1 it is the remainder.
  • (c) Here x2−3x+2=(x−1)(x−2), with a=1≠b=2, f(1)=1, and f(2)=2100. By (a), r=1⋅x−21−2+2100⋅x−12−1=(2100−1)x+(2−2100). As a check, r(1)=1 and r(2)=2101−2+2−2100=2100.
Exercise (C3: Equal Functions Over Fp)

Let p be a prime and f,g∈Fp[x].

  • (a) Prove that f(c)=g(c) for every c∈Fp if and only if xp−x∣f−g in Fp[x].
  • (b) Deduce that f and its remainder on division by xp−x define the same function Fp→Fp. Use this to find a polynomial of degree less than 5 that defines the same function on F5 as x7+x.

Hint for (a): Exercise (C2: A nonzero polynomial vanishing everywhere) and Corollary 6.1.4.

Solution.

  • (a) (⇐) Suppose f−g=(xp−x)h. By Exercise (C2: A nonzero polynomial vanishing everywhere), cp−c=0 for every c∈Fp. By Theorem 0.8.5, f(c)−g(c)=(cp−c)h(c)=0 for every c. (⇒) Suppose f(c)=g(c) for every c∈Fp. Then the p distinct elements 0,1,…,p−1 of Fp are roots of f−g. Let P=∏c∈Fp(x−c). By Corollary 6.1.4, P∣f−g. It remains to show P=xp−x. By Exercise (C2: A nonzero polynomial vanishing everywhere), every c∈Fp is a root of xp−x, so Corollary 6.1.4 gives xp−x=Pu for some u. Both P and xp−x are monic of degree p (Theorem 0.8.3), so deg⁡u=0, and comparing leading coefficients gives u=1. Hence P=xp−x, and xp−x∣f−g.
  • (b) Write f=q(xp−x)+r by Theorem 6.1.1. Then xp−x∣f−r, so f and r define the same function by (a). For f=x7+x over F5: x7=x2⋅x5=x2(x5−x)+x3, so x7+x=x2(x5−x)+(x3+x) with deg⁡(x3+x)=3<5. Hence x3+x defines the same function as x7+x on F5.

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.