Polynomial Long Division
Learning goals
- State the division algorithm with its degree condition
- Treat a polynomial as a base- numeral that never carries
- Force each quotient term from the leading coefficients
- Insert placeholders for every missing power
- Read a zero remainder as a certified factorization
- Check by expanding
The promise integer division makes
Before touching a polynomial, look closely at what integer division actually delivers, because the polynomial version copies it clause for clause.
Divide by . The process returns with left over, and the entire content of that answer is one equation together with one condition:
The equation says the answer is correct: nine fives and two more really do rebuild . The condition says the division is finished: fewer than five remain, so no further five can be pulled out. Drop the condition and “answers” multiply without end. The equations and are both true, yet nobody calls remainder the result of dividing by , because a remainder of still contains a five. Only the demand that the remainder be smaller than the divisor pins down the pair as the one and only answer.
So division with remainder is really two promises: an identity, dividend equals divisor times quotient plus remainder, and a smallness condition that makes the identity’s pieces unique. Keep both promises in view; the whole lesson is about keeping them for polynomials.
Both promises are visible at once if you lay the dividend out in rows. In the figure below you set a number of dots and a row width. The dots fill rows from the top left, with any that cannot complete a row drawn hollow.
Start at dots in rows of . Two rows fill and three dots are left hollow, which is the identity drawn rather than computed. In that picture the row width is the divisor, the solid rows are the quotient, and the hollow dots are the remainder. Now try to break the smallness condition. You cannot, and the reason is worth seeing rather than being told: any four hollow dots would have completed a row and stopped being hollow. Whatever count and width you set, the hollow dots come out fewer than the row width. That is the same statement as “the rows are as full as they go”. That in turn is the same statement as “no further copy of the divisor can be pulled out”. Set the count to against the same rows of and the hollow dots vanish altogether, the case where the divisor goes in exactly. That is the entire promise of division with remainder. The rest of this lesson is the work of making both halves of that promise survive the move from counting dots to counting degrees.
Dot array
11 dots in rows of 4 make 2 full rows with 3 dots left over. So 4 is not a factor of 11.
A polynomial is a numeral written in base x
The last lesson gave you the vocabulary. The degree of a polynomial is its highest power, the leading term carries that power, and standard form lists the terms in falling powers. Now set a numeral and a polynomial side by side:
Same skeleton. The coefficients play the digits, and the powers of play the places. Two honest differences separate them. First, a numeral’s digits stay between and , and any overflow is handled by carrying into the next column. A polynomial’s coefficients, by contrast, are unrestricted, so nothing ever carries and the columns never interact. In that one respect polynomial arithmetic is simpler than integer arithmetic. Second, a numeral names a single number, while a polynomial’s value moves with . That second difference is why the smallness condition needs translating. The phrase “the remainder is smaller than the divisor” cannot mean numerical size, because is smaller than for some inputs and larger for others. The measure that does not move with is the degree, so degree takes over the job that size did for integers.
With that translation made, here is the exact claim this lesson runs on, proves, and then uses. It is called the division algorithm for polynomials. Let be any polynomial (the dividend) and any nonzero polynomial (the divisor). Then there is exactly one pair of polynomials (the quotient) and (the remainder) with
Two small print items. The zero polynomial is not assigned a degree, since it has no leading term, which is why the condition names it separately instead of writing alone. And the divisor is excluded for the same reason is. The equation would force with no smallness condition left to satisfy, and division by zero would promise nothing.
Each quotient term is forced
The algorithm is a loop, and the loop has only one legal move. Watch it once in slow motion on
Your goal is to peel copies of out of until what is left is too small, in degree, to contain another copy. The tool is subtraction: subtract a multiple of the divisor, record how many copies that multiple used, repeat. To make progress you must kill the dividend’s leading term , and here is the key point: a multiple cancels exactly when its own leading term is . If you take to be a single term, the leading term of is just , so you need , which forces
Divide the leading terms: that is the whole rule, and no other choice touches the . Multiply back and subtract, remembering to subtract the entire product:
The is gone, exactly as designed. What remains is a smaller division problem, divided by , so run the same forced move again: , then , and . Now the working remainder has degree , which is below the divisor’s degree . The loop must stop, because any further multiple of would introduce a new term rather than cancel anything. Collecting the two recorded quotient terms, and ,
The traditional tableau records exactly these moves in columns, quotient on the roof, each product written under the matching powers:
Now cash in the base- idea. Substitute everywhere: the dividend becomes , the divisor becomes , the quotient becomes , and the remainder stays . Check it as an integer sentence: . The division you just performed is a grade-school division in disguise, column for column, with one comfort added: since coefficients never carry, each column settled in a single step.
One habit before moving on. Every polynomial division can be checked by multiplying back, and the check is cheaper than the division was:
Make the check a reflex. The division algorithm’s identity is an equation about every value of at once, so expanding and comparing with catches any slip immediately.
Check your understanding
You are dividing by . What is the first term of the quotient?
The first quotient term is forced by the two leading terms alone: it must turn the divisor's leading term into the dividend's leading term .
Divide the coefficients () and subtract the exponents (). No other single term makes cancel .
Why the loop is correct, and why it must stop
The demonstration above worked, but a method you will use for the rest of the course deserves more than one lucky run. Two things need proving: the loop never breaks the identity it is building, and the loop cannot run forever.
The division loop always ends, and ends correctly#
Keep two ledgers while you divide: the quotient built so far, call it , and the working remainder still waiting to be divided. At the very start and , so the equation
holds trivially. Now examine one pass of the loop. If or , the loop stops. Otherwise write the leading term of as and the leading term of as , where because the loop did not stop. The pass divides the leading terms to get , adds to the quotient ledger, and subtracts from the working remainder. The combination does not move:
So the equation is an invariant: true before the first pass, preserved by every pass, therefore true when the loop stops. Whatever the ledgers hold at the end is automatically a correct identity.
Termination is a statement about degrees. The product was engineered so that its leading term is , the exact leading term of . Every other term of is times a lower term of , and therefore has degree below ; so does every other term of . In the subtraction the two copies of cancel, and nothing of degree or higher survives. So the new working remainder is either or of degree strictly below . The degree of therefore drops by at least on every pass, and a strictly decreasing sequence of nonnegative integers cannot continue forever. After at most passes the loop halts with or , and the invariant then reads with the remainder condition satisfied.
That is existence: a valid quotient and remainder can always be produced, and the long-division tableau is nothing but this proof written out in columns.
Notice what the proof quietly explains about the tableau. The invariant is why you may trust the final line without re-deriving anything. The strict degree drop is why each row of the tableau sits at least one column further right than the row above it. When a row fails to move right, a subtraction error has slipped in, usually a sign.
Worked example 1 Divide by
Both polynomials are already in standard form, so run the forced move until the degree falls below .
First pass: divide the leading terms, . Multiply back and subtract the whole product:
Second pass: , and . Subtracting, . Watch the signs: subtracting adds .
Third pass: , and . Subtracting, . Degree is below degree , so the loop stops. In the tableau:
The quotient is and the remainder is :
Check by multiplying back:
and adding restores exactly.
Missing terms need placeholders
The tableau is column bookkeeping, and columns only work when every power has a column. A numeral handles a skipped place with the digit . The zero in contributes nothing to the sum, but it holds the tens column open so the and the land where they belong. A polynomial that skips powers needs the same courtesy. Before dividing, rewrite the dividend (and the divisor, if need be) with an explicit coefficient for every missing power. Nothing changes mathematically, since is zero; what changes is that like powers now sit above one another in the tableau, where the subtractions can find them.
Worked example 2 Divide by
The dividend skips two powers, so restore them as placeholders first:
Now divide. First pass: , and ; subtracting leaves , where the placeholder column has just earned its keep. Second pass: , and ; subtracting leaves . Third pass: , and ; subtracting leaves .
The remainder is the zero polynomial, so the division comes out even:
When we say divides , and the identity is a genuine factorization, certified by the division itself. Multiply back to confirm: . Division with zero remainder is how you prove one polynomial is a factor of another, and the rest of this chapter leans on exactly that. When the divisor has the special shape , all of this tableau’s bookkeeping can be compressed into three quick rows; that shortcut, synthetic division, is the next lesson.
Check your understanding
To divide by using the tableau, how should you write the dividend first?
The dividend skips the and powers, so hold those columns open with zero coefficients, the same way the digit holds an empty place in a numeral.
Adding changes nothing mathematically, but it keeps like powers aligned in the tableau. Inventing coefficients of would change the polynomial, and a in front of would erase the leading term.
Only one answer is possible
Existence came from running the loop. Uniqueness, the claim that no different pair could also satisfy both promises, needs one degree fact first. Suppose and are nonzero polynomials with leading terms and . Multiplying them, the only way to produce the power is leading term times leading term, and every other pairing lands strictly lower. The coefficient produced there is , and because and . A product of two nonzero real numbers is never zero, which is the Zero Product Property from the quadratics chapter read in reverse. So the product’s leading term is , and
Degrees add under multiplication. That single fact powers the uniqueness argument.
The quotient and remainder are unique#
Suppose two pairs both keep the promises for the same dividend and divisor:
where each is zero or of degree less than . Subtract one identity from the other and gather the terms on one side:
Now suppose, aiming for a contradiction, that . Then is a nonzero polynomial, so the left side is a product of two nonzero polynomials, and by the degree fact its degree is . Look at the right side. Each remainder is zero or of degree below , so their difference is zero or of degree below as well: a difference cannot reach higher than its tallest term. One polynomial cannot be both of degree at least and of degree below (nor can a nonzero polynomial equal the zero polynomial), so the supposition fails, and . Feeding that back into leaves .
So the pair is unique, however you arrive at a quotient and remainder that satisfy both promises: by the tableau, by cleverness, or by a lucky guess. Whichever route you took, you have found the quotient and the remainder. The same argument, run with sizes instead of degrees, is why integer division’s answer was unique all along.
Uniqueness pays an immediate dividend in bookkeeping. Suppose , so the quotient is not zero. In the product has degree , and is either zero or too low in degree to interfere with that leading term. So the leading terms of and must be identical. Two consequences: the degrees satisfy
and the leading coefficient of is the dividend’s leading coefficient divided by the divisor’s. A cubic divided by a linear divisor must give a quadratic quotient; if it does not, stop and find the error. Use both facts as a pre-flight check before you divide and as a sanity check after.
One more consequence: if , the pair , already keeps both promises, so by uniqueness it is the answer. Dividing by gives quotient and remainder , just as gives quotient and remainder . The loop agrees: its stopping condition is met before the first pass.
Worked example 3 Divide by
The divisor’s leading coefficient is , not , and nothing about the method changes: each quotient term still comes from dividing leading terms, coefficients divided and exponents subtracted.
First pass: , and ; subtracting leaves . Second pass: , and ; subtracting leaves . Third pass: , and ; subtracting leaves .
So the quotient is and the remainder is :
Run the sanity checks from the uniqueness section before the full multiply-back. Degrees: . Leading coefficients: . Both pass. Now the full check: , and adding the remainder restores exactly. In general a divisor whose leading coefficient is not can force fractions into the quotient, and that is not an error. Dividing by opens with , and the algorithm carries on unbothered.
A divisor of higher degree
Nothing in the loop, the proof, or the bookkeeping assumed the divisor was linear. Divide by a quadratic and the only visible change is the finish line. With that divisor the loop stops when the working remainder is zero or of degree below , so a remainder may now be linear, or a constant, or zero.
Worked example 4 Divide by
Restore the missing column first: the dividend is .
First pass: , and . This product skips the column, so when you write it into the tableau, slide its term under the column and leave the gap open. Subtracting leaves . Second pass: , and ; subtracting leaves . Third pass: , and ; subtracting leaves , of degree : stop.
The quotient is and the remainder is :
A linear remainder is not unfinished business. No multiple of the degree- divisor can cancel a degree- term without introducing something of degree or higher. So is as reduced as a remainder can be. Check:
and adding gives back .
Two ways to package the answer
The identity has a twin obtained by dividing both sides by :
This is the polynomial version of converting an improper fraction to a mixed number: , quotient out front, remainder still sitting over the divisor. From Worked Example 3, for instance,
Both packagings carry the same information, but they are not interchangeable. The identity form holds for every value of with no exclusions, which makes it the right form for proofs, like the ones in this lesson. The fraction form must dodge the divisor’s zeros. That form becomes the workhorse later in the course, when the chapter on rational expressions takes up quotients like these in their own right.
Check your understanding
A polynomial satisfies for every , where is some polynomial. What is ?
The identity holds for every , so it holds at in particular. Substituting kills the first term, because the factor becomes zero there.
The unknown is multiplied by zero, so it never matters. Evaluating the division identity at a well-chosen point is a powerful trick, and the next lesson builds a theorem out of exactly this observation.