Polynomial Division

A2 · P3 · 13 min

Dividing one polynomial by another works exactly like long division of whole numbers: you get a quotient and a remainder. In P3 you divide polynomials of degree up to 44 by a linear or a quadratic divisor. The skill appears on its own ("find the quotient and remainder"), inside factor theorem questions ("hence factorise"), and before integration, where an awkward fraction must first be split into a polynomial plus a proper fraction.

The language of division

Think of 47÷547 \div 5. Five goes into 4747 nine times with 22 left over, so

47=5×9+2.47 = 5 \times 9 + 2.

The remainder 22 is smaller than the divisor 55; otherwise another 55 could have been taken out. Polynomials behave the same way, with "smaller" meaning "lower degree".

Definition

The degree of a polynomial is the highest power of xx with a non-zero coefficient. When a polynomial p(x)p(x) (the dividend) is divided by a polynomial d(x)d(x) (the divisor), there are unique polynomials q(x)q(x) (the quotient) and r(x)r(x) (the remainder) such that

p(x)≡d(x) q(x)+r(x),p(x) \equiv d(x)\,q(x) + r(x),

where the degree of r(x)r(x) is less than the degree of d(x)d(x). The remainder may be zero, in which case d(x)d(x) is a factor of p(x)p(x).

Key result
DivisorDegree of remainderForm of remainder
linear, e.g. x−2x - 2 or 2x+12x + 100a constant RR
quadratic, e.g. x2+x−1x^2 + x - 1at most 11Rx+SRx + S

The degree of the quotient is (degree of dividend) −- (degree of divisor). So a quartic divided by a quadratic gives a quadratic quotient.

The ≡\equiv sign means the two sides are equal for every value of xx: it is an identity, not an equation to be solved. That is what lets you compare coefficients or substitute any convenient value of xx.

Long division

The procedure is a loop of four steps, repeated until what is left has lower degree than the divisor.

Polynomial long division
  1. Write the dividend in descending powers of xx, inserting 0xk0x^k for any missing power.
  2. Divide the leading term of what is left by the leading term of the divisor. This is the next term of the quotient.
  3. Multiply the whole divisor by that term.
  4. Subtract the result from what is left. The leading term cancels.
  5. Repeat steps 2 to 4 until the degree of what is left is less than the degree of the divisor. What is left is the remainder.
  6. Check by expanding d(x)q(x)+r(x)d(x)q(x) + r(x) or by substituting a value such as x=1x = 1.
Dividing a cubic by a linear divisor

Find the quotient and remainder when 2x3−5x2+x+62x^3 - 5x^2 + x + 6 is divided by x−2x - 2.

Solution

Work through the loop, recording each stage.

StepDivideMultiply backSubtract
12x3÷x=2x22x^3 \div x = 2x^22x2(x−2)=2x3−4x22x^2(x - 2) = 2x^3 - 4x^2(2x3−5x2+x+6)−(2x3−4x2)=−x2+x+6(2x^3 - 5x^2 + x + 6) - (2x^3 - 4x^2) = -x^2 + x + 6
2−x2÷x=−x-x^2 \div x = -x−x(x−2)=−x2+2x-x(x - 2) = -x^2 + 2x(−x2+x+6)−(−x2+2x)=−x+6(-x^2 + x + 6) - (-x^2 + 2x) = -x + 6
3−x÷x=−1-x \div x = -1−1(x−2)=−x+2-1(x - 2) = -x + 2(−x+6)−(−x+2)=4(-x + 6) - (-x + 2) = 4

What is left, 44, has degree 00, less than the degree of x−2x - 2, so stop.

Quotient 2x2−x−12x^2 - x - 1, remainder 44:

2x3−5x2+x+6≡(x−2)(2x2−x−1)+4.2x^3 - 5x^2 + x + 6 \equiv (x - 2)(2x^2 - x - 1) + 4.

Check at x=1x = 1: left side 2−5+1+6=42 - 5 + 1 + 6 = 4; right side (−1)(0)+4=4(-1)(0) + 4 = 4.

Watch out

The subtraction step is where most errors happen. Subtracting (−x2+2x)(-x^2 + 2x) from (−x2+x)(-x^2 + x) gives −x-x, because x−2x=−xx - 2x = -x. Put brackets round the expression being subtracted and change every sign inside.

Missing powers

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

Solution

There is no x3x^3 term and no xx term, so write the dividend as x4+0x3−3x2+0x+5x^4 + 0x^3 - 3x^2 + 0x + 5. Without the placeholders the columns slip and the answer is wrong.

StepDivideMultiply backSubtract
1x4÷x=x3x^4 \div x = x^3x4+x3x^4 + x^3−x3−3x2-x^3 - 3x^2
2−x3÷x=−x2-x^3 \div x = -x^2−x3−x2-x^3 - x^2−2x2+0x-2x^2 + 0x
3−2x2÷x=−2x-2x^2 \div x = -2x−2x2−2x-2x^2 - 2x2x+52x + 5
42x÷x=22x \div x = 22x+22x + 233

Quotient x3−x2−2x+2x^3 - x^2 - 2x + 2, remainder 33.

Check at x=1x = 1: left 1−3+5=31 - 3 + 5 = 3; right 2×(1−1−2+2)+3=0+3=32 \times (1 - 1 - 2 + 2) + 3 = 0 + 3 = 3.

Dividing by (ax+b)(ax + b) when a≠1a \ne 1

Nothing changes in the method. The quotient may pick up fractions if the leading coefficients do not divide neatly, but the remainder is still a constant.

A non-monic linear divisor

Find the quotient and remainder when 6x3+5x2−8x+36x^3 + 5x^2 - 8x + 3 is divided by 2x−12x - 1.

Solution
StepDivideMultiply backSubtract
16x3÷2x=3x26x^3 \div 2x = 3x^23x2(2x−1)=6x3−3x23x^2(2x - 1) = 6x^3 - 3x^28x2−8x8x^2 - 8x
28x2÷2x=4x8x^2 \div 2x = 4x4x(2x−1)=8x2−4x4x(2x - 1) = 8x^2 - 4x−4x+3-4x + 3
3−4x÷2x=−2-4x \div 2x = -2−2(2x−1)=−4x+2-2(2x - 1) = -4x + 211

Quotient 3x2+4x−23x^2 + 4x - 2, remainder 11:

6x3+5x2−8x+3≡(2x−1)(3x2+4x−2)+1.6x^3 + 5x^2 - 8x + 3 \equiv (2x - 1)(3x^2 + 4x - 2) + 1.

Check at x=12x = \tfrac{1}{2}: 6⋅18+5⋅14−4+3=34+54−1=16 \cdot \tfrac{1}{8} + 5 \cdot \tfrac{1}{4} - 4 + 3 = \tfrac{3}{4} + \tfrac{5}{4} - 1 = 1. This matches the remainder, as the remainder theorem predicts.

Comparing coefficients (division by inspection)

Instead of long division you can write the identity with unknown coefficients and match powers of xx. It is often faster, and it is the standard way to find the quadratic factor once you know a linear factor.

Dividing by comparing coefficients
  1. Write p(x)≡d(x) q(x)+r(x)p(x) \equiv d(x)\,q(x) + r(x) with q(x)q(x) and r(x)r(x) of the correct degrees and unknown coefficients.
  2. Match the highest power first: it fixes the leading coefficient of qq.
  3. Match the constant term next if it involves only one unknown.
  4. Work through the remaining powers one at a time.
Dividing a quartic by a quadratic

Find the quotient and remainder when x4+3x3−2x+1x^4 + 3x^3 - 2x + 1 is divided by x2+x−1x^2 + x - 1.

Solution

The quotient is a quadratic and the remainder is linear:

x4+3x3+0x2−2x+1≡(x2+x−1)(x2+px+q)+(rx+s).x^4 + 3x^3 + 0x^2 - 2x + 1 \equiv (x^2 + x - 1)(x^2 + px + q) + (rx + s).

Expand the product: x4+(p+1)x3+(q+p−1)x2+(q−p)x−qx^4 + (p + 1)x^3 + (q + p - 1)x^2 + (q - p)x - q. Now compare:

  • x3x^3: p+1=3p + 1 = 3, so p=2p = 2.
  • x2x^2: q+p−1=0q + p - 1 = 0, so q=−1q = -1.
  • x1x^1: (q−p)+r=−2(q - p) + r = -2, so −3+r=−2-3 + r = -2, giving r=1r = 1.
  • x0x^0: −q+s=1-q + s = 1, so 1+s=11 + s = 1, giving s=0s = 0.

Quotient x2+2x−1x^2 + 2x - 1, remainder xx.

Long division gives the same result:

StepDivideMultiply backSubtract
1x4÷x2=x2x^4 \div x^2 = x^2x4+x3−x2x^4 + x^3 - x^22x3+x2−2x2x^3 + x^2 - 2x
22x3÷x2=2x2x^3 \div x^2 = 2x2x3+2x2−2x2x^3 + 2x^2 - 2x−x2+0x+1-x^2 + 0x + 1
3−x2÷x2=−1-x^2 \div x^2 = -1−x2−x+1-x^2 - x + 1xx

What is left, xx, has degree 1<21 < 2, so it is the remainder.

Tip

For a linear divisor x−ax - a you may also use synthetic division: write the coefficients in a row, bring the first one down, multiply by aa, add to the next coefficient, and repeat. For 2x3−5x2+x+62x^3 - 5x^2 + x + 6 divided by x−2x - 2:

22−5-51166
×2\times 244−2-2−2-2
sum22−1-1−1-144

The bottom row gives the quotient coefficients 2,−1,−12, -1, -1 and the remainder 44. It is not required by the syllabus, and you should label it clearly if you use it, but it is a fast check.

Division with unknown coefficients

When the polynomial contains unknown constants, divide in the ordinary way, carrying the letters along. The remainder comes out in terms of the unknowns, and the information you are given about the remainder produces equations.

Finding constants from a given remainder

When x4+2x3+ax2+bx+3x^4 + 2x^3 + ax^2 + bx + 3 is divided by x2+1x^2 + 1, the remainder is 2x−12x - 1. Find the values of aa and bb and state the quotient.

Solution

Long division, with the dividend x4+2x3+ax2+bx+3x^4 + 2x^3 + ax^2 + bx + 3:

StepDivideMultiply backSubtract
1x4÷x2=x2x^4 \div x^2 = x^2x4+x2x^4 + x^22x3+(a−1)x2+bx+32x^3 + (a - 1)x^2 + bx + 3
22x3÷x2=2x2x^3 \div x^2 = 2x2x3+2x2x^3 + 2x(a−1)x2+(b−2)x+3(a - 1)x^2 + (b - 2)x + 3
3(a−1)x2÷x2=a−1(a - 1)x^2 \div x^2 = a - 1(a−1)x2+(a−1)(a - 1)x^2 + (a - 1)(b−2)x+(4−a)(b - 2)x + (4 - a)

So the remainder is (b−2)x+(4−a)(b - 2)x + (4 - a). Matching with 2x−12x - 1:

b−2=2⇒b=4,4−a=−1⇒a=5.b - 2 = 2 \Rightarrow b = 4, \qquad 4 - a = -1 \Rightarrow a = 5.

The quotient is x2+2x+(a−1)=x2+2x+4x^2 + 2x + (a - 1) = x^2 + 2x + 4.

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

Using division to rewrite a fraction

If the top of a fraction has degree at least that of the bottom, division rewrites it as a polynomial plus a proper fraction (one whose numerator has lower degree than its denominator):

p(x)d(x)=q(x)+r(x)d(x).\frac{p(x)}{d(x)} = q(x) + \frac{r(x)}{d(x)}.

This is the first step before partial fractions or integration whenever the fraction is not already proper.

Preparing a fraction for integration

Express 2x3+3x2−4x+1x2−1\dfrac{2x^3 + 3x^2 - 4x + 1}{x^2 - 1} in the form ax+b+cx+dx2−1ax + b + \dfrac{cx + d}{x^2 - 1}, where aa, bb, cc and dd are constants.

Solution

Divide 2x3+3x2−4x+12x^3 + 3x^2 - 4x + 1 by x2+0x−1x^2 + 0x - 1:

StepDivideMultiply backSubtract
12x3÷x2=2x2x^3 \div x^2 = 2x2x3−2x2x^3 - 2x3x2−2x+13x^2 - 2x + 1
23x2÷x2=33x^2 \div x^2 = 33x2−33x^2 - 3−2x+4-2x + 4

Quotient 2x+32x + 3, remainder −2x+4-2x + 4. So

2x3+3x2−4x+1x2−1=2x+3+4−2xx2−1,\frac{2x^3 + 3x^2 - 4x + 1}{x^2 - 1} = 2x + 3 + \frac{4 - 2x}{x^2 - 1},

with a=2a = 2, b=3b = 3, c=−2c = -2, d=4d = 4.

Check at x=0x = 0: left 1−1=−1\dfrac{1}{-1} = -1; right 3+4−1=−13 + \dfrac{4}{-1} = -1.

Common mistakes

Watch out

Forgetting placeholder zeros. Dividing x4−3x2+5x^4 - 3x^2 + 5 without writing 0x30x^3 and 0x0x misaligns every later step. Always write the dividend in full.

Watch out

Stopping too early or too late. Stop when the degree of what is left is less than the degree of the divisor. For a quadratic divisor, a remainder like 3x+23x + 2 is fine, but x2+1x^2 + 1 is not finished.

Watch out

Sign slips in the subtraction. Bracket what you subtract and change every sign. Check the final answer by substituting x=1x = 1 or x=0x = 0 into the identity.

Watch out

Confusing the quotient with the remainder. "Find the quotient" wants q(x)q(x); "find the remainder" wants r(x)r(x). When asked for both, label them.

Exam tip
  • Questions typically say "Find the quotient and remainder when p(x)p(x) is divided by x2+x−1x^2 + x - 1". Long division or comparing coefficients are both fully acceptable; the method mark needs a clear sequence of working, not just answers.
  • Write the final statement in the identity form p(x)≡d(x)q(x)+r(x)p(x) \equiv d(x)q(x) + r(x), or clearly state "quotient …\ldots, remainder …\ldots".
  • A remainder of zero means the divisor is a factor. Many questions end "hence show that p(x)=0p(x) = 0 has only one real root" or similar: divide, then examine the discriminant of the quadratic quotient (see the factor theorem).
  • The syllabus caps the dividend at degree 44 and the divisor at degree 22, so the working is never longer than four rows.

Summary

Summary
  • p(x)≡d(x)q(x)+r(x)p(x) \equiv d(x)q(x) + r(x) with deg⁡r<deg⁡d\deg r < \deg d; it is an identity, true for all xx.
  • Linear divisor: constant remainder. Quadratic divisor: remainder Rx+SRx + S.
  • Long division: divide leading terms, multiply back, subtract, repeat.
  • Always insert 0xk0x^k for missing powers.
  • Comparing coefficients: write the identity with unknowns, match from the highest power down.
  • With unknown constants in the dividend, carry them through and match the remainder you are given.
  • To rewrite an improper fraction, divide: pd=q+rd\dfrac{p}{d} = q + \dfrac{r}{d}.

Practice

Question
  1. Find the quotient and remainder when x3−7x+6x^3 - 7x + 6 is divided by x+3x + 3.
  2. Find the quotient and remainder when 3x3−2x2+43x^3 - 2x^2 + 4 is divided by x−3x - 3.
  3. Divide x3+8x^3 + 8 by x+2x + 2.
  4. Find the quotient and remainder when 6x3−7x2+x+26x^3 - 7x^2 + x + 2 is divided by 3x+13x + 1.
  5. Find the quotient and remainder when 2x4−x3+3x−52x^4 - x^3 + 3x - 5 is divided by x2+2x^2 + 2.
  6. Find the quotient and remainder when x4−2x3+3x2−x+4x^4 - 2x^3 + 3x^2 - x + 4 is divided by x2−x+2x^2 - x + 2.
  7. The polynomial x4+x3+px+qx^4 + x^3 + px + q is divided by x2+x+1x^2 + x + 1. The remainder is 2x+52x + 5. Find pp and qq.
  8. Express x3+2x2−1x2+1\dfrac{x^3 + 2x^2 - 1}{x^2 + 1} in the form ax+b+cx+dx2+1ax + b + \dfrac{cx + d}{x^2 + 1}.
Answers
  1. Write x3+0x2−7x+6x^3 + 0x^2 - 7x + 6. Steps: x2x^2 (subtract x3+3x2x^3 + 3x^2, leaving −3x2−7x-3x^2 - 7x); −3x-3x (subtract −3x2−9x-3x^2 - 9x, leaving 2x+62x + 6); 22 (subtract 2x+62x + 6, leaving 00). Quotient x2−3x+2x^2 - 3x + 2, remainder 00, so x+3x + 3 is a factor.

  2. Write 3x3−2x2+0x+43x^3 - 2x^2 + 0x + 4. Steps: 3x23x^2 (leaving 7x2+0x7x^2 + 0x); 7x7x (leaving 21x+421x + 4); 2121 (leaving 6767). Quotient 3x2+7x+213x^2 + 7x + 21, remainder 6767. Check: 3(27)−2(9)+4=673(27) - 2(9) + 4 = 67.

  3. Write x3+0x2+0x+8x^3 + 0x^2 + 0x + 8. Quotient x2−2x+4x^2 - 2x + 4, remainder 00, so x3+8=(x+2)(x2−2x+4)x^3 + 8 = (x + 2)(x^2 - 2x + 4).

  4. Steps: 6x3÷3x=2x26x^3 \div 3x = 2x^2, subtract 6x3+2x26x^3 + 2x^2 to leave −9x2+x-9x^2 + x; −9x2÷3x=−3x-9x^2 \div 3x = -3x, subtract −9x2−3x-9x^2 - 3x to leave 4x+24x + 2; 4x÷3x=434x \div 3x = \tfrac{4}{3}, subtract 4x+434x + \tfrac{4}{3} to leave 23\tfrac{2}{3}. Quotient 2x2−3x+432x^2 - 3x + \tfrac{4}{3}, remainder 23\tfrac{2}{3}. Check: f(−13)=−627−79−13+2=23f\left(-\tfrac{1}{3}\right) = -\tfrac{6}{27} - \tfrac{7}{9} - \tfrac{1}{3} + 2 = \tfrac{2}{3}.

  5. Write 2x4−x3+0x2+3x−52x^4 - x^3 + 0x^2 + 3x - 5. Steps: 2x22x^2 (subtract 2x4+4x22x^4 + 4x^2, leaving −x3−4x2+3x-x^3 - 4x^2 + 3x); −x-x (subtract −x3−2x-x^3 - 2x, leaving −4x2+5x−5-4x^2 + 5x - 5); −4-4 (subtract −4x2−8-4x^2 - 8, leaving 5x+35x + 3). Quotient 2x2−x−42x^2 - x - 4, remainder 5x+35x + 3.

  6. Steps: x2x^2 (subtract x4−x3+2x2x^4 - x^3 + 2x^2, leaving −x3+x2−x-x^3 + x^2 - x); −x-x (subtract −x3+x2−2x-x^3 + x^2 - 2x, leaving x+4x + 4). Degree 1<21 < 2, so stop. Quotient x2−xx^2 - x, remainder x+4x + 4.

  7. Divide x4+x3+0x2+px+qx^4 + x^3 + 0x^2 + px + q by x2+x+1x^2 + x + 1. Steps: x2x^2 (subtract x4+x3+x2x^4 + x^3 + x^2, leaving −x2+px+q-x^2 + px + q); −1-1 (subtract −x2−x−1-x^2 - x - 1, leaving (p+1)x+(q+1)(p + 1)x + (q + 1)). So p+1=2p + 1 = 2 and q+1=5q + 1 = 5: p=1p = 1, q=4q = 4. Quotient x2−1x^2 - 1.

  8. Divide x3+2x2+0x−1x^3 + 2x^2 + 0x - 1 by x2+1x^2 + 1: xx (subtract x3+xx^3 + x, leaving 2x2−x−12x^2 - x - 1); 22 (subtract 2x2+22x^2 + 2, leaving −x−3-x - 3). So x3+2x2−1x2+1=x+2+−x−3x2+1\dfrac{x^3 + 2x^2 - 1}{x^2 + 1} = x + 2 + \dfrac{-x - 3}{x^2 + 1}: a=1a = 1, b=2b = 2, c=−1c = -1, d=−3d = -3.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action