Skip to main content
NSWMaths Extension 1Syllabus dot point

How does long division split one polynomial by another into a quotient and a remainder, and what does the identity P(x) = D(x)Q(x) + R(x) tell us?

Divide one polynomial by another using long division, expressing the result in the form P(x) = D(x)Q(x) + R(x) where the remainder has degree less than the divisor, handling missing terms, and writing the result in the rational form P/D = Q + R/D

A first-contact answer to the HSC Maths Extension 1 dot point on dividing polynomials. The division algorithm P(x) = D(x)Q(x) + R(x) with deg R less than deg D, long division by linear and quadratic divisors, handling missing terms with zero coefficients, the remainder form P/D = Q + R/D, and checking by reconstruction, with worked examples.

Generated by Claude Opus 4.816 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

What this dot point is asking

This is your first time dividing one polynomial by another, and the skill is the polynomial version of the long division you learned for whole numbers. When you divide 197197 by 1212 you get a quotient of 1616 and a remainder of 55, and you can write the whole story without fractions as 197=12×16+5197 = 12 \times 16 + 5. Polynomial division works the same way: you long-divide a polynomial P(x)P(x) by a divisor D(x)D(x), and you get a quotient Q(x)Q(x) and a remainder R(x)R(x) that fit together as the identity P(x)=D(x)Q(x)+R(x)P(x) = D(x)Q(x) + R(x). The one new rule is when to stop: you keep going until the remainder has a smaller degree than the divisor, because once it does you can no longer divide its leading term by the leading term of the divisor.

This is the Year 11 first-contact version. We reason entirely from the long-division algorithm and the P=DQ+RP = DQ + R identity. The shortcuts that let you find a remainder without dividing at all, the remainder theorem and the factor theorem, are the very next page; the applied and exam-heavy treatment that combines division with factorising lives on the Year 12 page on polynomial division and the factor theorem. Here the goal is to carry out the division itself cleanly and to read the result off in both standard and rational form.

The answer

The division algorithm: P = DQ + R

The central result mirrors integer division exactly. Where whole-number division gives a quotient and a remainder smaller than the divisor, polynomial division gives a quotient and a remainder of lower degree than the divisor.

The degree condition degR<degD\deg R < \deg D is not an optional tidy-up; it is what makes the quotient and remainder unique. If you stopped early and left a remainder whose degree was still as big as the divisor's, you could divide once more, so you would not yet have the true quotient. The phrase "divide until you cannot any more" means exactly "divide until the remainder has dropped below the degree of the divisor." Two quick consequences worth knowing:

  • Dividing by a linear divisor (degree 11) always leaves a remainder of degree less than 11, that is, a constant (possibly zero).
  • Dividing by a quadratic divisor (degree 22) leaves a remainder that is linear or constant, of the form rx+srx + s.

The long-division method, step by step

The mechanics are a four-move cycle, repeated until the remainder is small enough. Lay the dividend out with its terms in descending powers, set the divisor to the left, and at each pass:

  1. Divide the leading term of what remains by the leading term of the divisor. This single term goes into the quotient, above its matching power column.
  2. Multiply the whole divisor by that quotient term.
  3. Subtract the product from the current dividend. The leading terms cancel by design, dropping the degree by one.
  4. Bring down the next term and repeat, until the running remainder has degree less than the divisor.

The reason the leading terms always cancel is the point of step 1: you chose the quotient term precisely so that, when multiplied by the divisor's leading term, it reproduces the leading term you are trying to remove. Every pass therefore kills the current highest power, and the working marches steadily down through the degrees.

Handling missing terms

A polynomial like x4+1x^4 + 1 has no x3x^3, x2x^2 or xx term, and a dividend with gaps is where divisions go wrong, because a term can silently land in the wrong column. There are two equivalent safeguards, and you should pick one and use it every time:

  • Insert zero coefficients. Rewrite x4+1x^4 + 1 as x4+0x3+0x2+0x+1x^4 + 0x^3 + 0x^2 + 0x + 1. Now every column has an entry and the subtractions line up automatically. This is the more reliable choice and the one used throughout this page.
  • Leave a gap for the missing column. Write nothing in that column but keep the spacing, so later terms still fall under the right power.

The same applies to a divisor with a missing term: treat x2+1x^2 + 1 as x2+0x+1x^2 + 0x + 1 so that, when you multiply and subtract, the middle column is handled rather than skipped.

Writing the result in rational form

The identity P(x)=D(x)Q(x)+R(x)P(x) = D(x)Q(x) + R(x) can be divided through by D(x)D(x) to express the original fraction as a polynomial plus a proper remainder fraction:

This is the polynomial echo of writing 19712=16+512\tfrac{197}{12} = 16 + \tfrac{5}{12} (or the mixed number 1651216\tfrac{5}{12}). The quotient Q(x)Q(x) is the "whole" part and R(x)D(x)\dfrac{R(x)}{D(x)} is the leftover proper fraction, called proper because the degree of its top is less than the degree of its bottom. This form is the one you want for sketching rational functions and, later, for integration, because it splits a hard fraction into an easy polynomial plus a small remainder. A question may ask for either form, so be ready to convert: multiply the rational form through by D(x)D(x) to get back the standard identity, or divide the standard identity by D(x)D(x) to get the rational form.

Verifying by reconstruction

The single best habit in this topic is to check every division by rebuilding the dividend. Because the algorithm guarantees P=DQ+RP = DQ + R, you can expand D(x)×Q(x)D(x) \times Q(x), add R(x)R(x), and you must recover P(x)P(x) term for term. If you do not, there is an arithmetic slip somewhere in the tableau. This check is quick, it is self-marking, and it turns a topic that is easy to fumble into one you can be certain about. Every worked example and practice solution on this page ends with this reconstruction.

A worked long-division tableau

Here is the full layout for dividing x32x25x+9x^3 - 2x^2 - 5x + 9 by x3x - 3. The quotient sits above the bar in its power columns, each step subtracts a multiple of the divisor, and the final remainder is at the foot.

Long-division tableau for a cubic divided by a linear divisorThe polynomial x cubed minus two x squared minus five x plus nine is divided by x minus three. The quotient x squared plus x minus two sits above the bar, aligned by power; each step subtracts a multiple of the divisor and brings down the next term, leaving the final remainder three. + x 2 x 3 2x² 5x + 9 3x² 5x + 9 3x 2x + 9 2x + 6 3 remainder

Reading off the tableau, the quotient is x2+x2x^2 + x - 2 and the remainder is 33, so

x32x25x+9=(x3)(x2+x2)+3.x^3 - 2x^2 - 5x + 9 = (x - 3)(x^2 + x - 2) + 3.

Building the tableau stage by stage

The same division, shown one cycle at a time. At each stage the newest quotient term and its subtraction are picked out in accent; earlier work is left in plain type. Build your own divisions in exactly this rhythm.

Stage 1, divide and subtract the leading terms. Divide x3x^3 by xx to get x2x^2, the first quotient term. Multiply the divisor: x2(x3)=x33x2x^2(x - 3) = x^3 - 3x^2. Subtract this from the dividend; the x3x^3 terms cancel and you are left with x25x+9x^2 - 5x + 9 (the 5x-5x and +9+9 brought straight down).

Long-division stage 1Stage 1: divide the leading terms, multiply back and subtract. Stage 1 x 3 2x² 5x + 9 3x² 5x + 9 Divide the leading terms x³ ÷ x = x², multiply back and subtract.

Stage 2, repeat on the new leading term. Divide x2x^2 by xx to get xx, the next quotient term. Multiply: x(x3)=x23xx(x - 3) = x^2 - 3x. Subtract; the x2x^2 terms cancel and the running remainder becomes 2x+9-2x + 9.

Long-division stage 2Stage 2: divide again, subtract and bring down the next term. Stage 2 x 3 2x² 5x + 9 + x 3x² 5x + 9 3x 2x + 9 Divide x² ÷ x = x, multiply back, subtract, bring down.

Stage 3, the last subtraction leaves the remainder. Divide 2x-2x by xx to get 2-2, the final quotient term. Multiply: 2(x3)=2x+6-2(x - 3) = -2x + 6. Subtract; the xx terms cancel and you are left with 33. Its degree is 00, less than deg(x3)=1\deg(x - 3) = 1, so the division stops. The completed quotient is x2+x2x^2 + x - 2 with remainder 33.

Long-division stage 3Stage 3: the final subtraction leaves the constant remainder. Stage 3 x 3 2x² 5x + 9 + x 2 3x² 5x + 9 3x 2x + 9 2x + 6 3 remainder Divide −2x ÷ x = −2; the last subtraction leaves remainder 3.

How exam questions ask about polynomial division

The wording is predictable once you map it to the algorithm.

  • "Use long division to divide P(x)P(x) by D(x)D(x), expressing the result in the form P(x)=D(x)Q(x)+R(x)P(x) = D(x)Q(x) + R(x)." Run the four-move cycle, stop at degR<degD\deg R < \deg D, and write the identity line explicitly. State Q(x)Q(x) and R(x)R(x) clearly.
  • "Write the result in the form PD=Q+RD\dfrac{P}{D} = Q + \dfrac{R}{D}." Do the same division, then divide the identity through by D(x)D(x). The leftover fraction RD\dfrac{R}{D} must be proper (degR<degD\deg R < \deg D).
  • "Find the quotient and remainder when P(x)P(x) is divided by D(x)D(x)." Just name Q(x)Q(x) and R(x)R(x) from the tableau; you do not always need the full identity line, but writing it is a safe, mark-earning check.
  • "Show that D(x)D(x) is a factor of P(x)P(x)" or "P(x)P(x) is divisible by D(x)D(x)." Divide and show the remainder is 00; then P(x)=D(x)Q(x)P(x) = D(x)Q(x), and you can quote the quotient as the cofactor.
  • "Find aa and bb so that P(x)P(x) is exactly divisible by D(x)D(x)." Either divide and set the remainder (which will contain aa and bb) to zero, or write P=D×QP = D \times Q with an unknown quotient and equate coefficients. Both are reliable; equating coefficients is often faster for a clean divisor.
  • "What are the possible degrees of the remainder on division by a cubic?" Use degR<degD\deg R < \deg D: a cubic divisor (deg3\deg 3) forces the remainder to have degree 00, 11 or 22 (or be zero).

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation3 marksUse long division to divide P(x)=x3+4x27x3P(x) = x^3 + 4x^2 - 7x - 3 by D(x)=x1D(x) = x - 1, and write the result in the form P(x)=D(x)Q(x)+R(x)P(x) = D(x)Q(x) + R(x).
Show worked solution →
Set up the division
All powers from x3x^3 down to the constant are present, so no gaps are needed. Divide leading term by leading term at each step.
Divide, multiply back, subtract, bring down
x3÷x=x2x^3 \div x = x^2; then x2(x1)=x3x2x^2(x - 1) = x^3 - x^2, and subtracting leaves 5x27x5x^2 - 7x. Next 5x2÷x=5x5x^2 \div x = 5x; then 5x(x1)=5x25x5x(x - 1) = 5x^2 - 5x, and subtracting leaves 2x3-2x - 3. Finally 2x÷x=2-2x \div x = -2; then 2(x1)=2x+2-2(x - 1) = -2x + 2, and subtracting leaves the remainder 5-5.
Read off the quotient and remainder
The quotient is Q(x)=x2+5x2Q(x) = x^2 + 5x - 2 and the remainder is R(x)=5R(x) = -5, a constant of degree 00, which is less than degD=1\deg D = 1 as required.
Write the identity

x3+4x27x3=(x1)(x2+5x2)5.x^3 + 4x^2 - 7x - 3 = (x - 1)(x^2 + 5x - 2) - 5.

Check by reconstruction. Expanding, (x1)(x2+5x2)=x3+5x22xx25x+2=x3+4x27x+2(x - 1)(x^2 + 5x - 2) = x^3 + 5x^2 - 2x - x^2 - 5x + 2 = x^3 + 4x^2 - 7x + 2, and adding R=5R = -5 gives x3+4x27x3=P(x)x^3 + 4x^2 - 7x - 3 = P(x). The identity holds.

foundation3 marksDivide P(x)=x38P(x) = x^3 - 8 by D(x)=x2D(x) = x - 2. State the quotient and remainder, and say what the zero remainder tells you about x2x - 2.
Show worked solution →
Insert the missing terms
Only x3x^3 and the constant appear, so write the dividend with zero coefficients to keep the columns aligned: x3+0x2+0x8x^3 + 0x^2 + 0x - 8.
Carry out the division
x3÷x=x2x^3 \div x = x^2; x2(x2)=x32x2x^2(x - 2) = x^3 - 2x^2, leaving 2x2+0x82x^2 + 0x - 8. Then 2x2÷x=2x2x^2 \div x = 2x; 2x(x2)=2x24x2x(x - 2) = 2x^2 - 4x, leaving 4x84x - 8. Then 4x÷x=44x \div x = 4; 4(x2)=4x84(x - 2) = 4x - 8, leaving 00.
State the result
The quotient is Q(x)=x2+2x+4Q(x) = x^2 + 2x + 4 and the remainder is R(x)=0R(x) = 0, so

x38=(x2)(x2+2x+4).x^3 - 8 = (x - 2)(x^2 + 2x + 4).

Interpret the zero remainder. Because the remainder is zero, x2x - 2 is a factor of x38x^3 - 8, and the division has factorised the dividend exactly. (This is the difference-of-cubes pattern a3b3=(ab)(a2+ab+b2)a^3 - b^3 = (a - b)(a^2 + ab + b^2) with b=2b = 2.)

Check by reconstruction. (x2)(x2+2x+4)=x3+2x2+4x2x24x8=x38=P(x)(x - 2)(x^2 + 2x + 4) = x^3 + 2x^2 + 4x - 2x^2 - 4x - 8 = x^3 - 8 = P(x).

core4 marksDivide P(x)=x42x3+3x2x+5P(x) = x^4 - 2x^3 + 3x^2 - x + 5 by the quadratic D(x)=x2+1D(x) = x^2 + 1. Express the answer in both the form P(x)=D(x)Q(x)+R(x)P(x) = D(x)Q(x) + R(x) and the rational form P(x)D(x)=Q(x)+R(x)D(x)\dfrac{P(x)}{D(x)} = Q(x) + \dfrac{R(x)}{D(x)}.
Show worked solution →
Note the missing term in the divisor
Write D(x)=x2+0x+1D(x) = x^2 + 0x + 1 so the middle column is accounted for when you subtract. The dividend already has every power present.
Divide leading term by leading term
x4÷x2=x2x^4 \div x^2 = x^2; then x2(x2+1)=x4+x2x^2(x^2 + 1) = x^4 + x^2, and subtracting from x42x3+3x2x+5x^4 - 2x^3 + 3x^2 - x + 5 leaves 2x3+2x2x+5-2x^3 + 2x^2 - x + 5.
Repeat
2x3÷x2=2x-2x^3 \div x^2 = -2x; then 2x(x2+1)=2x32x-2x(x^2 + 1) = -2x^3 - 2x, and subtracting leaves 2x2+x+52x^2 + x + 5. Then 2x2÷x2=22x^2 \div x^2 = 2; then 2(x2+1)=2x2+22(x^2 + 1) = 2x^2 + 2, and subtracting leaves x+3x + 3.
Stop at the right point
The remainder x+3x + 3 has degree 11, which is less than degD=2\deg D = 2, so the division is complete. The quotient is Q(x)=x22x+2Q(x) = x^2 - 2x + 2 and R(x)=x+3R(x) = x + 3.
Write both forms

x42x3+3x2x+5=(x2+1)(x22x+2)+(x+3),x^4 - 2x^3 + 3x^2 - x + 5 = (x^2 + 1)(x^2 - 2x + 2) + (x + 3),

x42x3+3x2x+5x2+1=x22x+2+x+3x2+1.\frac{x^4 - 2x^3 + 3x^2 - x + 5}{x^2 + 1} = x^2 - 2x + 2 + \frac{x + 3}{x^2 + 1}.

Check by reconstruction. (x2+1)(x22x+2)=x42x3+2x2+x22x+2=x42x3+3x22x+2(x^2 + 1)(x^2 - 2x + 2) = x^4 - 2x^3 + 2x^2 + x^2 - 2x + 2 = x^4 - 2x^3 + 3x^2 - 2x + 2, and adding R=x+3R = x + 3 gives x42x3+3x2x+5=P(x)x^4 - 2x^3 + 3x^2 - x + 5 = P(x).

core4 marksDivide P(x)=2x43x2+5P(x) = 2x^4 - 3x^2 + 5 by D(x)=x+2D(x) = x + 2. Take care with the missing terms, and write the result in the form P(x)=D(x)Q(x)+R(x)P(x) = D(x)Q(x) + R(x).
Show worked solution →
Fill the gaps with zeroes
Two powers are missing, so write the dividend as 2x4+0x33x2+0x+52x^4 + 0x^3 - 3x^2 + 0x + 5. Skipping a column here is the most common way to get a polynomial division wrong.
Divide step by step
2x4÷x=2x32x^4 \div x = 2x^3; 2x3(x+2)=2x4+4x32x^3(x + 2) = 2x^4 + 4x^3, leaving 4x33x2+0x+5-4x^3 - 3x^2 + 0x + 5. Then 4x3÷x=4x2-4x^3 \div x = -4x^2; 4x2(x+2)=4x38x2-4x^2(x + 2) = -4x^3 - 8x^2, leaving 5x2+0x+55x^2 + 0x + 5. Then 5x2÷x=5x5x^2 \div x = 5x; 5x(x+2)=5x2+10x5x(x + 2) = 5x^2 + 10x, leaving 10x+5-10x + 5. Then 10x÷x=10-10x \div x = -10; 10(x+2)=10x20-10(x + 2) = -10x - 20, leaving 2525.
State the result
The quotient is Q(x)=2x34x2+5x10Q(x) = 2x^3 - 4x^2 + 5x - 10 and the remainder is R(x)=25R(x) = 25, a constant, so

2x43x2+5=(x+2)(2x34x2+5x10)+25.2x^4 - 3x^2 + 5 = (x + 2)(2x^3 - 4x^2 + 5x - 10) + 25.

Check by reconstruction. (x+2)(2x34x2+5x10)=2x44x3+5x210x+4x38x2+10x20=2x43x220(x + 2)(2x^3 - 4x^2 + 5x - 10) = 2x^4 - 4x^3 + 5x^2 - 10x + 4x^3 - 8x^2 + 10x - 20 = 2x^4 - 3x^2 - 20, and adding R=25R = 25 gives 2x43x2+5=P(x)2x^4 - 3x^2 + 5 = P(x).

exam5 marksThe polynomial P(x)=x4+ax33x2+bx+6P(x) = x^4 + ax^3 - 3x^2 + bx + 6 is exactly divisible by x2+2x3x^2 + 2x - 3. Find the values of aa and bb, and state the quotient.
Show worked solution →

Use the meaning of exact divisibility. Exactly divisible means the remainder is zero, so P(x)=(x2+2x3)Q(x)P(x) = (x^2 + 2x - 3)\,Q(x) for some quotient Q(x)Q(x). Since PP has degree 44 and the divisor has degree 22, the quotient is a monic quadratic; write Q(x)=x2+cx+dQ(x) = x^2 + cx + d.

Expand the product.

(x2+2x3)(x2+cx+d)=x4+(c+2)x3+(d+2c3)x2+(2d3c)x3d.(x^2 + 2x - 3)(x^2 + cx + d) = x^4 + (c + 2)x^3 + (d + 2c - 3)x^2 + (2d - 3c)x - 3d.

Equate coefficients with P(x)P(x). Matching x4+ax33x2+bx+6x^4 + ax^3 - 3x^2 + bx + 6 term by term:

  • constant: 3d=6-3d = 6, so d=2d = -2;
  • coefficient of x2x^2: d+2c3=3d + 2c - 3 = -3, so d+2c=0d + 2c = 0, giving 2c=22c = 2 and c=1c = 1;
  • coefficient of x3x^3: c+2=ac + 2 = a, so a=3a = 3;
  • coefficient of xx: 2d3c=b2d - 3c = b, so b=2(2)3(1)=7b = 2(-2) - 3(1) = -7.

State the answer. a=3a = 3, b=7b = -7, and the quotient is Q(x)=x2+x2Q(x) = x^2 + x - 2, so

x4+3x33x27x+6=(x2+2x3)(x2+x2).x^4 + 3x^3 - 3x^2 - 7x + 6 = (x^2 + 2x - 3)(x^2 + x - 2).

Check by reconstruction. (x2+2x3)(x2+x2)=x4+x32x2+2x3+2x24x3x23x+6=x4+3x33x27x+6(x^2 + 2x - 3)(x^2 + x - 2) = x^4 + x^3 - 2x^2 + 2x^3 + 2x^2 - 4x - 3x^2 - 3x + 6 = x^4 + 3x^3 - 3x^2 - 7x + 6, which matches P(x)P(x) with a=3a = 3 and b=7b = -7. (Long-dividing PP by x2+2x3x^2 + 2x - 3 gives the same quotient x2+x2x^2 + x - 2 with remainder 00.)

Related dot points