Dividing Polynomials and the Remainder Theorem

Learning goals

  • Interpret and verify a polynomial division identity with its remainder degree condition
  • Perform long and synthetic division with missing powers and suitable divisors
  • Explain the remainder and factor theorems through substitution into an identity
  • Rewrite a polynomial quotient as a polynomial plus a fraction with restrictions
  • Recover unknown coefficients from two remainder conditions and verify both results

A division answer rebuilds the dividend

You can check a polynomial division by reversing it. For example,

x2+4x+8=(x+1)(x+3)+5.x^2+4x+8=(x+1)(x+3)+5.

The product contributes x2+4x+3x^2+4x+3, and the extra 55 restores the constant term. Dividing by x+1x+1 therefore gives quotient x+3x+3 and remainder 55. The remainder has lower degree than the divisor, so there is no further polynomial term to remove.

For a polynomial dividend PP and a nonzero polynomial divisor DD, division gives a unique polynomial quotient QQ and remainder RR satisfying

P(x)=D(x)Q(x)+R(x).P(x)=D(x)Q(x)+R(x).

The remainder is either zero or has degree smaller than the degree of DD. This is the polynomial division identity, together with its stopping condition. The zero polynomial has no degree under our convention, so zero is named separately.

The identity alone is not enough. Moving another copy of DD from QQ into RR would keep the equation true but make the remainder too high in degree. We compare degrees, not the numerical sizes of two outputs. A quadratic divisor permits a linear remainder; a linear divisor permits only a constant remainder or zero.

If the dividend has smaller degree than the divisor, the quotient is zero and the remainder is the dividend. A nonzero constant divisor leaves remainder zero, because dividing every coefficient by that constant gives a polynomial.

Check your understanding

A division by x2−3x+5x^2-3x+5 is reported as P=DQ+RP=DQ+R. Which remainder meets the stopping condition?

Answer choices

Long division cancels one leading term at a time

Each quotient term is chosen to cancel the highest remaining power. Multiply that term by the whole divisor, then subtract the whole product. Each cancellation lowers the remaining degree, so the process stops after finitely many steps.

Worked example 1 Divide and rebuild a cubic

Problem. Divide P(x)=x3−4x2+11P(x)=x^3-4x^2+11 by D(x)=x−2D(x)=x-2. Give the quotient and remainder, then verify the result by multiplication.

Solution. Write the missing linear term as 0x0x so that every power has its own column:

P(x)=x3−4x2+0x+11.P(x)=x^3-4x^2+0x+11.

First, x3÷x=x2x^3\div x=x^2. Subtract x2(x−2)x^2(x-2):

(x3−4x2+0x+11)−(x3−2x2)=−2x2+0x+11.\begin{aligned} (x^3-4x^2+0x+11)&-(x^3-2x^2)\\ &=-2x^2+0x+11. \end{aligned}

Next, −2x2÷x=−2x-2x^2\div x=-2x. Subtract −2x(x−2)-2x(x-2):

(−2x2+0x+11)−(−2x2+4x)=−4x+11.(-2x^2+0x+11)-(-2x^2+4x)=-4x+11.

Finally, −4x÷x=−4-4x\div x=-4. Subtract −4(x−2)-4(x-2):

(−4x+11)−(−4x+8)=3.(-4x+11)-(-4x+8)=3.

The constant remainder is below the divisor’s degree 11. Thus Q(x)=x2−2x−4Q(x)=x^2-2x-4 and R=3R=3.

Align the powers through every subtractionDivisor x minus 2 sits at the left. Each power has a fixed column, and products are subtracted in the matching columns. Quotient x squared minus 2x minus 4 appears above the bar; remainder 3 appears at the bottom.x²- 2x- 4x - 2x³- 4x²+ 0x+ 11-(x³- 2x²)-2x²+ 0x+ 11-(-2x²+ 4x)-4x+ 11-(-4x+ 8)3quotientremainder
The quotient sits above the dividend. Equal powers share columns through each subtraction; the last constant is the remainder.

For verification, expand the product first:

(x−2)(x2−2x−4)=x3−4x2+8,(x−2)(x2−2x−4)+3=x3−4x2+11.\begin{aligned} (x-2)(x^2-2x-4)&=x^3-4x^2+8,\\ (x-2)(x^2-2x-4)+3&=x^3-4x^2+11. \end{aligned}

This matches every coefficient of PP, so it checks the identity for every real input. Checking at one input alone would not establish a polynomial identity.

Worked example 2 A divisor with more than one power

Problem. Divide 2x3+x2−3x+62x^3+x^2-3x+6 by x2−1x^2-1. Give the quotient and remainder, and explain why division stops.

Solution. The first quotient term is 2x3÷x2=2x2x^3\div x^2=2x. Multiplying and subtracting gives

2x(x2−1)=2x3−2x,(2x3+x2−3x+6)−(2x3−2x)=x2−x+6.\begin{aligned} 2x(x^2-1)&=2x^3-2x,\\ (2x^3+x^2-3x+6)&-(2x^3-2x)\\ &=x^2-x+6. \end{aligned}

The next quotient term is 11. Subtracting x2−1x^2-1 leaves −x+7-x+7. Its degree is 11, smaller than the divisor’s degree 22, so

Q(x)=2x+1,R(x)=−x+7.Q(x)=2x+1,\qquad R(x)=-x+7.

The check is (x2−1)(2x+1)+(−x+7)=2x3+x2−3x+6(x^2-1)(2x+1)+(-x+7)=2x^3+x^2-3x+6. A nonconstant remainder is allowed here because the divisor is quadratic.

Synthetic division keeps the coefficients

When the divisor is x−cx-c, long division can be compressed into synthetic division, a calculation using only the coefficients. Revisit Worked Example 1 with divisor x−2x-2. The corner number is c=2c=2, and the coefficient row is 1,−4,0,111,-4,0,11.

Bring down 11. Multiply it by 22 and add to the next coefficient, obtaining −4+2=−2-4+2=-2. Multiply −2-2 by 22 and add to the next coefficient, obtaining 0−4=−40-4=-4. The final multiply and add gives 11−8=311-8=3.

21−40112−4−81−2−43\begin{array}{c|rrrr} 2&1&-4&0&11\\ & &2&-4&-8\\\hline &1&-2&-4&3 \end{array}

The first three bottom entries are the coefficients of x2−2x−4x^2-2x-4. The final entry is the remainder 33, separated from the quotient. These are the same numbers left by long division: subtracting a multiple of the divisor’s −2-2 term is the same as adding 22 times the preceding quotient coefficient.

For standard synthetic division, write the divisor as x−cx-c, list all coefficients in descending powers with zeros for missing powers, then bring down, multiply by cc, and add. The quotient begins one degree below a nonconstant dividend. A divisor x+5x+5 uses corner −5-5, because that input makes the divisor zero.

This standard layout does not directly divide by a quadratic. A linear divisor whose leading coefficient is not 11 needs an adjustment.

Worked example 3 Account for a scaled divisor

Problem. Divide 6x2−7x+56x^2-7x+5 by 3x−23x-2, using a synthetic division with its necessary adjustment. Give the quotient and remainder.

Solution. Factor the divisor as 3(x−23)3(x-\tfrac23). The standard synthetic calculation with corner 23\tfrac23 divides by x−23x-\tfrac23:

236−754−26−33\begin{array}{c|rrr} \tfrac23&6&-7&5\\ & &4&-2\\\hline &6&-3&3 \end{array}

It gives the identity

6x2−7x+5=(x−23)(6x−3)+3.6x^2-7x+5=(x-\tfrac23)(6x-3)+3.

A polynomial with leading coefficient 11 is monic. The original divisor is three times as large as the monic divisor, so divide the quotient by 33. Leave the remainder outside the product unchanged:

6x2−7x+5=(3x−2)(2x−1)+3.6x^2-7x+5=(3x-2)(2x-1)+3.

Thus Q(x)=2x−1Q(x)=2x-1 and R=3R=3. Expanding (3x−2)(2x−1)(3x-2)(2x-1) gives 6x2−7x+26x^2-7x+2, and adding 33 restores the dividend.

Check your understanding

Which setup correctly begins standard synthetic division of 2x4−3x+62x^4-3x+6 by x+3x+3?

Answer choices

The remainder is an output value

One substitution can recover a linear-division remainder without finding the quotient. From Worked Example 1,

P(x)=(x−2)(x2−2x−4)+3.P(x)=(x-2)(x^2-2x-4)+3.

At input 22, the factor x−2x-2 becomes zero. The whole product vanishes, leaving P(2)=3P(2)=3. On the graph of PP, the remainder is the height of the point with horizontal coordinate 22.

A division remainder is a graph heightThe polynomial P(x)=x cubed minus 4x squared plus 11 is shown for inputs from negative 1 to 4 and outputs from negative 1 to 12. The exact point (2,3) is marked. Dashed guides connect input 2 and output 3 to that point; 3 is the remainder on division by x minus 2.-1123436912xP(x)0(2, 3)
The remainder 3 is an output of P at input 2. The curve is shown only in this window.

The graph illustrates the connection; the substitution into the exact identity establishes it. We do not need to estimate the height from a drawing.

Why the remainder equals the polynomial's output#

First consider a different numerical case:

x2+x+9=(x+3)(x−2)+15.x^2+x+9=(x+3)(x-2)+15.

Substituting −3-3 gives 9−3+9=159-3+9=15 on the left. On the right the product is 0(−5)0(-5), leaving 1515. Nothing depends on choosing −3-3 except that it zeros the divisor.

For any polynomial PP divided by x−cx-c, the remainder is a constant rr, because it is zero or has degree below 11. The identity is

P(x)=(x−c)Q(x)+r.P(x)=(x-c)Q(x)+r.

Substituting cc gives

P(c)=(c−c)Q(c)+r=r.P(c)=(c-c)Q(c)+r=r.

This is the Remainder Theorem: dividing P(x)P(x) by x−cx-c leaves remainder P(c)P(c). We evaluated a polynomial identity; we did not divide by c−cc-c.

If P(c)=0P(c)=0, then r=0r=0 and the identity becomes P(x)=(x−c)Q(x)P(x)=(x-c)Q(x), so x−cx-c is a factor. Conversely, if P(x)=(x−c)Q(x)P(x)=(x-c)Q(x), substitution gives P(c)=0P(c)=0. The Factor Theorem says that x−cx-c is a factor exactly when P(c)=0P(c)=0.

In Graphs of Polynomial Functions, a zero is an input whose point lies on the horizontal axis. The factor theorem now provides an algebraic way to certify that connection.

For example, F(x)=x3+2x2−4x+1F(x)=x^3+2x^2-4x+1 has F(1)=0F(1)=0, so x−1x-1 is a factor. This verifies that particular factor; deciding how to search for possible zeros belongs to the next lesson.

Check your understanding

A polynomial's graph contains (−4,6)(-4,6). Which conclusion follows?

Answer choices

Quotient plus a remainder fraction

The identity and fraction forms carry the same arithmetic, but different domain conditions. Divide the identity in Worked Example 1 by x−2x-2 only where that divisor is nonzero:

x3−4x2+11x−2=x2−2x−4+3x−2,x≠2.\frac{x^3-4x^2+11}{x-2} =x^2-2x-4+\frac3{x-2},\qquad x\ne2.

The remainder stays over the divisor. At x=3x=3, for instance, the right side is −1+3=2-1+3=2, matching the left side. At x=2x=2, both fractional expressions are undefined even though the polynomial P(2)P(2) exists. That distinction is why the Remainder Theorem uses the identity form.

In general, wherever D(x)≠0D(x)\ne0,

P(x)D(x)=Q(x)+R(x)D(x).\frac{P(x)}{D(x)}=Q(x)+\frac{R(x)}{D(x)}.

Even when R=0R=0, the original quotient retains the original denominator exclusions. The later lesson on rational functions develops the graph consequences of those exclusions.

Check your understanding

Given A(x)=(x+2)(3x−5)+4A(x)=(x+2)(3x-5)+4, which rewrite preserves both the value and domain of A(x)/(x+2)A(x)/(x+2)?

Answer choices

Use remainder conditions to determine a rule

Remainder information is exact function-value information. Two such conditions can determine two unknown coefficients when they give independent equations.

Worked example 4 Two remainders determine two coefficients

Problem. Let H(x)=x3+ax2+bx+4H(x)=x^3+ax^2+bx+4, where aa and bb are real. Division by x−1x-1 leaves remainder 66, and division by x+2x+2 leaves remainder −12-12. Find aa and bb, then verify both remainder conditions.

Solution. The first condition gives H(1)=6H(1)=6:

1+a+b+4=6,1+a+b+4=6,

so a+b=1a+b=1. The second gives H(−2)=−12H(-2)=-12:

−8+4a−2b+4=−12,-8+4a-2b+4=-12,

so 2a−b=−42a-b=-4. Adding the two simplified equations gives 3a=−33a=-3, hence a=−1a=-1. Substitution into a+b=1a+b=1 gives b=2b=2.

Verify the resulting rule H(x)=x3−x2+2x+4H(x)=x^3-x^2+2x+4 at both divisor zeros:

H(1)=1−1+2+4=6.H(1)=1-1+2+4=6.

H(−2)=−8−4−4+4=−12.H(-2)=-8-4-4+4=-12.

Both requested remainders agree. We found the coefficients without calculating either quotient.

Check your understanding

For G(x)=x2+ux+vG(x)=x^2+ux+v, division by x−2x-2 leaves remainder 99, and division by xx leaves remainder 33. Which pair satisfies both conditions?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

In 1244, the Chinese official Qin Jiushao left his post after his mother died. During the mourning period, he wrote a mathematical book that appeared in 1247, the Mathematical Treatise in Nine Sections.

Its problems were far from a page of abstract symbols. They included surveying fields, measuring rainfall, and finding the size of a circular walled city from a sight line to a tree. Some led to equations of very high degree. Qin solved polynomial equations using a coefficient calculation now associated with the names Ruffini and Horner, centuries before either European mathematician lived. His book also used a small circle for zero where older books had left an empty space.

Source: MacTutor’s biography of Qin Jiushao.

Your progress

See all your progress →