Skip to main content

Polynomial Long Division

Written by Awn · Published · 7 min read

Quick Answer

Polynomial long division splits one polynomial by another, like long division with numbers. Divide the first terms, multiply the result by the whole divisor, subtract, and bring down the next term. Repeat until what is left has a smaller degree than the divisor. That leftover is the remainder.

What Is Polynomial Long Division?

It is a way of dividing polynomials when you can't simply cancel. Four words matter:

WordMeaningIn (2x2+7x+3)÷(x+3)(2x^2+7x+3)\div(x+3)
DividendWhat you divide2x2+7x+32x^2+7x+3
DivisorWhat you divide byx+3x+3
QuotientThe answer2x+12x+1
RemainderWhat is left over00

They always fit together like this: dividend = divisor × quotient + remainder. The polynomial calculator shows these parts for any problem you type.

How to Divide Polynomials Step by Step

  1. Write both polynomials with the powers going down. Put 0x20x^2, 0x0x and so on for any missing power.
  2. Divide the first term of the dividend by the first term of the divisor. Write the result on top.
  3. Multiply that result by the whole divisor.
  4. Subtract the product. Change every sign in it.
  5. Bring down the next term.
  6. Repeat steps 2 to 5 until the degree of what is left is smaller than the degree of the divisor.

Polynomial long division steps for 2x squared plus 7x plus 3 divided by x plus 3

Why does it work? Each round removes the highest power that is left. So the leftover keeps shrinking until the divisor no longer fits into it.

Long Division of Polynomials or Synthetic Division?

Long divisionSynthetic division
DivisorAny polynomialOnly x−cx-c
What you writeEvery termOnly the coefficients
Best forDivisors of degree 2 or moreQuick division by x−cx-c

Long division always works, so learn it first. Use synthetic division as a shortcut.

For example, to divide x3−4x2+2x+5x^3-4x^2+2x+5 by x−2x-2 the short way, write c=2c=2 and the coefficients 1, −4-4, 2, 5. Bring down the 1. Then keep multiplying by 2 and adding: −4+2=−2-4+2=-2, 2−4=−22-4=-2, 5−4=15-4=1. The last number is the remainder. The others are the quotient: x2−2x−2x^2-2x-2.

Why It Is Like Dividing Numbers

Think about 672÷21672\div 21. You ask how many times 21 goes into 67, write 3, multiply to get 63, subtract, and bring down the 2. Then you ask how many times 21 goes into 42. The answer is 32.

Polynomials follow the same plan, because place value works the same way. The number 672 is really 6⋅102+7⋅10+26\cdot 10^2+7\cdot 10+2. Put xx in place of 10 and you have 6x2+7x+26x^2+7x+2. Now divide it by 2x+12x+1:

  1. 6x2÷2x=3x6x^2\div 2x=3x. Multiply: 6x2+3x6x^2+3x. Subtract: 4x+24x+2.
  2. 4x÷2x=24x\div 2x=2. Multiply: 4x+24x+2. Subtract: 0.

The quotient is 3x+23x+2, which matches the 32 from the number version when x=10x=10. One thing is easier with polynomials: you never carry or borrow. You only look at the first terms to choose the next part of the answer.

One thing is harder: coefficients can be negative or fractions. A step such as x2÷2x=12xx^2\div 2x=\frac{1}{2}x is fine. Keep going as usual.

Worked Examples

Example 1: No Remainder

Divide 2x2+7x+32x^2+7x+3 by x+3x+3.

  1. 2x2÷x=2x2x^2\div x=2x. Multiply: 2x2+6x2x^2+6x. Subtract: xx. Bring down 3: x+3x+3.
  2. x÷x=1x\div x=1. Multiply: x+3x+3. Subtract: 0.

The answer is 2x+12x+1.

Example 2: With a Remainder

Divide x3−4x2+2x+5x^3-4x^2+2x+5 by x−2x-2.

  1. x3÷x=x2x^3\div x=x^2. Multiply: x3−2x2x^3-2x^2. Subtract: −2x2+2x-2x^2+2x.
  2. −2x2÷x=−2x-2x^2\div x=-2x. Multiply: −2x2+4x-2x^2+4x. Subtract: −2x+5-2x+5.
  3. −2x÷x=−2-2x\div x=-2. Multiply: −2x+4-2x+4. Subtract: 1.

The answer is x2−2x−2+1x−2x^2-2x-2+\dfrac{1}{x-2}.

Example 3: Missing Terms

Divide x3−8x^3-8 by x−2x-2. Write it as x3+0x2+0x−8x^3+0x^2+0x-8.

  1. x3÷x=x2x^3\div x=x^2. Subtract x3−2x2x^3-2x^2: 2x2+0x2x^2+0x is left.
  2. 2x2÷x=2x2x^2\div x=2x. Subtract 2x2−4x2x^2-4x: 4x−84x-8 is left.
  3. 4x÷x=44x\div x=4. Subtract 4x−84x-8: 0.

The answer is x2+2x+4x^2+2x+4.

Polynomial long division with missing terms written as 0x squared and 0x

Example 4: A Divisor of Degree 2

Divide 2x4+3x3−x+52x^4+3x^3-x+5 by x2+1x^2+1. Write in the missing 0x20x^2.

  1. 2x4÷x2=2x22x^4\div x^2=2x^2. Subtract 2x4+2x22x^4+2x^2: 3x3−2x2−x+53x^3-2x^2-x+5 is left.
  2. 3x3÷x2=3x3x^3\div x^2=3x. Subtract 3x3+3x3x^3+3x: −2x2−4x+5-2x^2-4x+5 is left.
  3. −2x2÷x2=−2-2x^2\div x^2=-2. Subtract −2x2−2-2x^2-2: −4x+7-4x+7 is left.

The degree of −4x+7-4x+7 is 1, which is less than 2, so stop. The answer is 2x2+3x−2+−4x+7x2+12x^2+3x-2+\dfrac{-4x+7}{x^2+1}.

Example 5: A Fraction in the Quotient

Divide x2+2x+3x^2+2x+3 by 2x+22x+2.

  1. x2÷2x=12xx^2\div 2x=\frac{1}{2}x. Multiply: x2+xx^2+x. Subtract: x+3x+3.
  2. x÷2x=12x\div 2x=\frac{1}{2}. Multiply: x+1x+1. Subtract: 2.

The answer is 12x+12+22x+2\frac{1}{2}x+\frac{1}{2}+\dfrac{2}{2x+2}. The last fraction simplifies to 1x+1\dfrac{1}{x+1}.

Example 6: A One-Term Divisor

Divide 6x3−9x2+3x6x^3-9x^2+3x by 3x3x.

  1. There is only one term below, so split the fraction: 6x33x−9x23x+3x3x\frac{6x^3}{3x}-\frac{9x^2}{3x}+\frac{3x}{3x}.
  2. Divide each piece: 2x2−3x+12x^2-3x+1.

The last piece is 1, not 0. A term divided by itself leaves 1 behind.

Example 7: Two Letters

Divide x2+3xy+2y2x^2+3xy+2y^2 by x+yx+y.

  1. Order the terms by powers of xx, and treat yy like a number.
  2. x2÷x=xx^2\div x=x. Multiply: x2+xyx^2+xy. Subtract: 2xy+2y22xy+2y^2.
  3. 2xy÷x=2y2xy\div x=2y. Multiply: 2xy+2y22xy+2y^2. Subtract: 0.

The answer is x+2yx+2y.

How to Check the Answer

There are two checks, and each takes less than a minute.

Multiply back. Take the quotient times the divisor and add the remainder. In Example 2, (x2−2x−2)(x−2)(x^2-2x-2)(x-2) is x3−4x2+2x+4x^3-4x^2+2x+4. Adding the remainder 1 gives x3−4x2+2x+5x^3-4x^2+2x+5, which is the dividend.

Use one number. The remainder theorem says that when you divide by x−cx-c, the remainder equals the dividend at x=cx=c. In Example 2, put in x=2x=2: 8−16+4+5=18-16+4+5=1. That matches the remainder without dividing at all.

The second check only covers the remainder. If it matches but you are still unsure about the quotient, multiply back.

Using Division to Factor a Cubic

Suppose you know that x=2x=2 makes x3−4x2+x+6x^3-4x^2+x+6 equal zero. Then x−2x-2 is a factor, and dividing finds the rest.

  1. x3÷x=x2x^3\div x=x^2. Subtract x3−2x2x^3-2x^2: −2x2+x-2x^2+x is left.
  2. −2x2÷x=−2x-2x^2\div x=-2x. Subtract −2x2+4x-2x^2+4x: −3x+6-3x+6 is left.
  3. −3x÷x=−3-3x\div x=-3. Subtract −3x+6-3x+6: 0 is left.

So the cubic is (x−2)(x2−2x−3)(x-2)(x^2-2x-3). The quadratic factors again, which gives (x−2)(x−3)(x+1)(x-2)(x-3)(x+1). The three roots are 2, 3 and −1-1.

This is the usual way to solve equations of degree 3 or 4 by hand: find one root, divide it out, and work with a smaller polynomial.

Common Mistakes

Subtracting Only the First Term

Put parentheses around the product before you subtract. Every sign inside flips.

Leaving Out a Zero Term

Without 0x20x^2, the columns slide out of place and unlike terms get combined.

Dividing by the Wrong Term

Always divide by the first term of the divisor. With divisor x+3x+3, each new part of the quotient comes from dividing by xx, not by 3.

Stopping Too Early

Stop only when the degree of what is left is smaller than the degree of the divisor. With divisor x+3x+3, what is left must be a plain number. With divisor x2+1x^2+1, it may still have an xx in it.

Practice Problems

  1. Divide x2+7x+10x^2+7x+10 by x+2x+2.
  2. Divide 3x2−5x+43x^2-5x+4 by x−1x-1.
  3. Divide x3+27x^3+27 by x+3x+3.
  4. Divide 4x3+4x2−5x+44x^3+4x^2-5x+4 by 2x−12x-1.
  5. Divide x4−1x^4-1 by x2+1x^2+1.
Show the answers
  1. x+5x+5
  2. 3x−2+2x−13x-2+\dfrac{2}{x-1}
  3. x2−3x+9x^2-3x+9
  4. 2x2+3x−1+32x−12x^2+3x-1+\dfrac{3}{2x-1}
  5. x2−1x^2-1

Check Your Answer With the Polynomial Calculator

Multiply your quotient by the divisor and add the remainder. You should get the dividend back. Then compare each line with the polynomial calculator with steps. For another explanation, see Dividing Polynomials in Paul's Online Notes.

FAQ

When Do You Use Polynomial Long Division?

Use it when the divisor does not cancel as a factor, when you need a remainder, or when you want to pull a known factor out of a bigger polynomial.

How Do You Write the Remainder?

Put it over the divisor and add it to the quotient. A remainder of 1 with divisor x−2x-2 becomes 1x−2\frac{1}{x-2}.

What Does a Remainder of Zero Mean?

It means the divisor is a factor. In Example 3, x−2x-2 is a factor of x3−8x^3-8. That is also how you factor polynomials of higher degree.

Can the Divisor Have a Bigger Degree?

Then there is nothing to divide. The quotient is 0, and the whole dividend is the remainder.

Is Synthetic Division Faster?

Yes, but it only fits divisors like x−cx-c. For 2x−12x-1 or x2+1x^2+1, use long division.

How Do You Know How Many Terms the Quotient Has?

The degree of the quotient is the degree of the dividend minus the degree of the divisor. A cubic divided by a linear polynomial gives a quadratic, so leave room for three terms.


Next step: do one problem on paper using the divide, multiply, subtract, bring down loop. Once the loop is automatic, polynomial long division is mostly careful subtraction.

Try the Calculator

Related Pages