Polynomial division writes a polynomial as a product plus a remainder. The remainder is zero or has lower degree than the divisor.

The process is useful well beyond obtaining a quotient. It connects evaluation and remainders, factors and zeros, and the long-run behaviour of rational functions. The important result is an identity that can be checked by multiplication.

On this page

State the division identity

For polynomials PP and DD with real coefficients and D≠0D\ne0, there are unique polynomials QQ and RR such that

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

where either R=0R=0 or degR<degD\deg R<\deg D. This is the polynomial division algorithm. The restriction concerns the degree of a nonzero remainder, not the numerical size of its coefficients. A constant remainder of 100 is acceptable when the divisor is linear.

When D(x)≠0D(x)\ne0, divide the identity by D(x)D(x):

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

These two statements have different domains. The polynomial identity holds for every real xx. The quotient expression is undefined at zeros of the divisor, even if the remainder is zero. Keep that distinction when moving from polynomial algebra to a rational function.

If the dividend has lower degree than the divisor, take Q=0Q=0 and R=PR=P. A nonzero constant divisor gives a zero remainder. The zero polynomial is allowed as a dividend or remainder; it does not need a degree assigned here. OpenStax’s division treatment provides the standard algorithm and notation.

Divide by cancelling the leading term

Divide

P(x)=2x3+3x2−5x+7P(x)=2x^3+3x^2-5x+7

by D(x)=x+2D(x)=x+2. Write terms in descending powers. Each step removes the current highest power.

First term of the quotient

Divide 2x32x^3 by xx to obtain 2x22x^2. Multiply the divisor by this quotient term, then subtract the entire product:

P(x)−(x+2)(2x2)=−x2−5x+7.P(x)-(x+2)(2x^2)=-x^2-5x+7.

The cubic term has disappeared. The next quotient term must remove the remaining quadratic term.

Continue until the remainder has lower degree

Divide −x2-x^2 by xx to obtain −x-x. The subtraction is

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

Finally, divide −3x-3x by xx to obtain −3-3:

(−3x+7)−(x+2)(−3)=13.(-3x+7)-(x+2)(-3)=13.

A constant has lower degree than a linear divisor, so the procedure stops. Thus

Q(x)=2x2−x−3,R(x)=13.Q(x)=2x^2-x-3,\qquad R(x)=13.

Reconstruct the original dividend:

(x+2)(2x2−x−3)+13=2x3+3x2−5x+7.(x+2)(2x^2-x-3)+13=2x^3+3x^2-5x+7.

This expansion checks every coefficient, rather than merely checking one selected input. As a rational expression, the result is 2x2−x−3+13/(x+2)2x^2-x-3+13/(x+2), with x≠−2x\ne-2.

Use synthetic division as a coefficient algorithm

For a divisor x−cx-c, synthetic division records the same calculation using coefficients. In the previous example, x+2=x−(−2)x+2=x-(-2), so use c=−2c=-2, not 22.

Use synthetic division as a coefficient algorithm: reference table
Step Cubic coefficient Quadratic coefficient Linear coefficient Constant
Dividend coefficients 2 3 −5 7
Multiply preceding result by −2 −4 2 6
Running totals 2 −1 −3 13

Bring down 2. Multiply by −2 and add to 3, giving −1. Multiply −1 by −2 and add to −5, giving −3. Multiply −3 by −2 and add to 7, giving 13. The first three running totals form the quotient coefficients; the last is the remainder.

The shorter notation does not remove the need to align powers. For x3+1x^3+1, the coefficients are 1,0,0,11,0,0,1. Omitting the two zeros would change the polynomial being divided.

Handle a non-monic linear divisor correctly

Consider

4x3−7x+32x−1.\frac{4x^3-7x+3}{2x-1}.

Long division gives the quotient 2x2+x−32x^2+x-3 and remainder zero. One check is

(2x−1)(2x2+x−3)=4x3−7x+3.(2x-1)(2x^2+x-3)=4x^3-7x+3.

A synthetic calculation at c=1/2c=1/2 divides by x−1/2x-1/2, not by 2x−12x-1. It gives the quotient 4x2+2x−64x^2+2x-6. Since 2x−1=2(x−1/2)2x-1=2(x-1/2), divide that quotient by 2 to obtain the quotient for the original divisor.

The remainder is unchanged by this scaling. More generally, if

P=(x−c)S+r,P=(x-c)S+r,

then

P=a(x−c)(Sa)+r,a≠0.P=a(x-c)\left(\frac Sa\right)+r,\qquad a\ne0.

This explains both adjustments. Substituting cc finds the correct remainder for either linear divisor, but their quotient polynomials differ by a factor of aa.

Allow a polynomial remainder for a higher-degree divisor

Divide x4+2x3+3x2+4x+5x^4+2x^3+3x^2+4x+5 by x2+1x^2+1. Successive leading-term cancellations use x2x^2, 2x2x and 22:

x4+2x3+3x2+4x+5−(x2+1)x2=2x3+2x2+4x+5,x^4+2x^3+3x^2+4x+5-(x^2+1)x^2=2x^3+2x^2+4x+5,
2x3+2x2+4x+5−(x2+1)(2x)=2x2+2x+5,2x^3+2x^2+4x+5-(x^2+1)(2x)=2x^2+2x+5,
2x2+2x+5−(x2+1)2=2x+3.2x^2+2x+5-(x^2+1)2=2x+3.

The result is

P(x)=(x2+1)(x2+2x+2)+(2x+3).P(x)=(x^2+1)(x^2+2x+2)+(2x+3).

Stop at the linear remainder. Requiring a constant would impose a condition that belongs only to linear divisors. Here x2+1x^2+1 is nonzero for every real input, so the associated real quotient has no excluded input.

Understand why the answer is unique

Repeated leading-term cancellation lowers the degree at each step, so it must stop. This establishes the procedure’s existence over the real numbers, where dividing by a nonzero leading coefficient is possible.

For uniqueness, suppose two valid answers satisfy P=DQ1+R1=DQ2+R2P=DQ_1+R_1=DQ_2+R_2. Subtract:

D(Q1−Q2)=R2−R1.D(Q_1-Q_2)=R_2-R_1.

If Q1−Q2Q_1-Q_2 were nonzero, the left side would have degree at least degD\deg D. The right side is either zero or has degree below degD\deg D. They cannot be the same nonzero polynomial. Therefore the quotients agree, and then the remainders agree.

That argument also explains the stopping rule. Without the degree restriction, many product-plus-remainder descriptions would be possible.

Check algebra and interpretation separately

Check the identity by expanding DQ+RDQ+R. Check the stopping rule by comparing degrees. Finally, check the domain when the answer is written as a quotient. These tests answer different questions.

A zero remainder establishes a factor. It does not assign a value to P/DP/D at a zero of DD. An omitted zero coefficient changes the synthetic calculation. A sign mistake while subtracting a product usually contaminates all later coefficients, so keep parentheses around that product until the subtraction is complete.

Practice questions

  1. Divide x3−8x^3-8 by x−2x-2 and verify the answer.
  2. Divide x3+1x^3+1 by x+2x+2. State the quotient and remainder.
  3. Divide 4x2+14x^2+1 by 2x−12x-1. What input must be excluded from the associated rational expression?
Check your answers
  1. Q=x2+2x+4Q=x^2+2x+4 and R=0R=0, since (x−2)(x2+2x+4)=x3−8(x-2)(x^2+2x+4)=x^3-8. The polynomial identity includes x=2x=2; the quotient expression does not.
  2. Use coefficients 1,0,0,11,0,0,1 and synthetic value −2-2. The running totals are 1,−2,4,−71,-2,4,-7, so Q=x2−2x+4Q=x^2-2x+4 and R=−7R=-7. Multiplying (x+2)Q−7(x+2)Q-7 returns x3+1x^3+1.
  3. Q=2x+1Q=2x+1, R=2R=2, because (2x−1)(2x+1)+2=4x2+1(2x-1)(2x+1)+2=4x^2+1. The quotient is 2x+1+2/(2x−1)2x+1+2/(2x-1) for x≠1/2x\ne1/2.

Related topics

Use the Remainder Theorem when only a remainder is needed. The Factor Theorem turns zero remainders into factorisations, and Asymptotes uses the quotient to describe end behaviour.

Sources and further reading