Polynomial long division
You can divide 4729 by 13 one place at a time. Can a polynomial be divided the same way, one power at a time?
Where you are 10 in Polynomials
When you reach for it
Multiplying polynomials takes two factors and gives their product. Division runs the other way: you know a product and one factor, and you want the other. A box’s volume and its floor area give its height. One known factor of a cubic leaves a quadratic, which you can factor further. Division also rewrites a fraction of polynomials whose top has the higher degree as a polynomial plus a fraction whose top has the lower degree, the way \displaystyle \frac{17}{5} becomes \displaystyle 3\frac{2}{5}.
A single-term divisor goes term by term. A longer one needs long division, laid out as long division of whole numbers, one power at a time.
The procedure
Dividing by a monomial
Dividing by d is multiplying by \displaystyle \frac{1}{d}, so the distributive property splits a sum over a single term:
Each piece is then a quotient of monomials: divide the coefficients and subtract the exponents, since \displaystyle \frac{x^m}{x^n} = x^{m - n} by the Laws of exponents.
Dividing by a polynomial
Long division of 4729 by 13 starts at the biggest place. 13 goes into 47 three times, so it goes into 4700 three hundred times, and what is left is passed on. Written as a chain of facts:
Substituting each line into the one above gives 4729 = 13 \cdot 363 + 10: quotient 363, remainder 10. The rounds stop when what is left is smaller than 13.
Now 4729 = 4 \cdot 10^3 + 7 \cdot 10^2 + 2 \cdot 10 + 9 is a polynomial in 10, and a polynomial in x has the same shape with x in place of 10. Its division runs on the same plan, and is in one way easier. Each round looks only at the leading term of what is left and the leading term of the divisor. Their quotient is the next term of the quotient. It is chosen so that, multiplied by the divisor, it reproduces that leading term exactly. Multiply the whole divisor by it and subtract the product from what is left: the leading terms cancel by design, so what is left drops in degree. No guessing how many times 13 fits, and no carrying: a coefficient may be any number, while a digit must stay between 0 and 9.
In the written layout you subtract only from the terms the product touches and then bring down the next term. That is bookkeeping: subtracting from the whole of what is left gives the same thing.
Why the answer is right. At every stage this statement is true for every x:
It is true at the start, with quotient 0 and all of p(x) left. Each round adds a term t to the quotient and takes d(x) \cdot t away from what is left, which changes nothing in total. The rounds stop when what is left is 0 or has degree below the divisor’s, because then its leading term divided by the divisor’s leading term would need a negative power of x. What is left is then the remainder. The result, with quotient q(x) and remainder r(x):
Dividing through by d(x) gives the fraction form, true wherever d(x) \neq 0:
To check a division, multiply back: expand d(x)\,q(x) + r(x) and compare it with p(x), and see that r has lower degree than d. A remainder of 0 means d(x) is a factor of p(x).
Placeholders. The layout needs one column per power. Before the first round, write both polynomials in descending powers and fill any missing power with a zero coefficient, so 6x^3 - x^2 + 4 becomes 6x^3 - x^2 + 0x + 4. Its value is unchanged, and the 0x holds the column where the x terms of later products land.
When the divisor is x - c, Synthetic division is a shorthand for exactly these rounds that keeps only the coefficients.
Worked examples
Dividing by a monomial
Divide. (a) \dfrac{12x^4 - 8x^3 + 2x}{4x} \qquad (b) \dfrac{15a^3b^2 - 10a^2b}{5a^2b}
Solution(a) Split over the single denominator, which the distributive property allows, then divide each pair of monomials:
In the last term \displaystyle \frac{x}{x} = x^0 = 1, so only \displaystyle \frac{2}{4} = \frac{1}{2} is left. A fraction as a coefficient is allowed in a polynomial; only a negative or fractional power of x would not be. The equality holds for x \neq 0, where the original fraction is defined. Check: \displaystyle 4x\left(3x^3 - 2x^2 + \frac{1}{2}\right) is 12x^4 - 8x^3 + 2x.
(b) The exponents of each variable subtract separately:
The second term is the divisor times -2, so it divides to a constant. Check: 5a^2b(3ab - 2) = 15a^3b^2 - 10a^2b.
Dividing by x - 2
Divide 3x^3 - 5x^2 + 2x - 8 by x - 2.
SolutionThere are no gaps, so the layout needs no placeholders.
First round: \displaystyle \frac{3x^3}{x} = 3x^2, written above the x^2 column. Then 3x^2(x - 2) = 3x^3 - 6x^2, and (3x^3 - 5x^2) - (3x^3 - 6x^2) = x^2, because subtracting -6x^2 adds 6x^2. Bring down +2x.
Second round: \displaystyle \frac{x^2}{x} = x. Then x(x - 2) = x^2 - 2x, and (x^2 + 2x) - (x^2 - 2x) = 4x. Bring down -8.
Third round: \displaystyle \frac{4x}{x} = 4. Then 4(x - 2) = 4x - 8, and subtracting leaves 0.
The quotient is 3x^2 + x + 4 and the remainder is 0:
Check: (x - 2)(3x^2 + x + 4) is 3x^3 + x^2 + 4x - 6x^2 - 2x - 8, which collects to 3x^3 - 5x^2 + 2x - 8. The zero remainder says x - 2 is a factor; the The remainder and factor theorems predicts that without dividing.
A missing power
Divide 6x^3 - x^2 + 4 by 2x + 1.
SolutionThere is no x term, so write 6x^3 - x^2 + 0x + 4.
First round: \displaystyle \frac{6x^3}{2x} = 3x^2. Then 3x^2(2x + 1) = 6x^3 + 3x^2, and -x^2 - 3x^2 = -4x^2. Bring down +0x.
Second round: \displaystyle \frac{-4x^2}{2x} = -2x. Then -2x(2x + 1) = -4x^2 - 2x, and (-4x^2 + 0x) - (-4x^2 - 2x) = 2x. The -2x lands in the column the placeholder kept. Bring down +4.
Third round: \displaystyle \frac{2x}{2x} = 1. Then 1 \cdot (2x + 1) = 2x + 1, and (2x + 4) - (2x + 1) = 3.
The 3 has degree 0, below the divisor’s degree 1, so it is the remainder:
In fraction form, \dfrac{6x^3 - x^2 + 4}{2x + 1} equals 3x^2 - 2x + 1 + \dfrac{3}{2x + 1} for \displaystyle x \neq -\frac{1}{2}. Check: (2x + 1)(3x^2 - 2x + 1) is 6x^3 - 4x^2 + 2x + 3x^2 - 2x + 1, which is 6x^3 - x^2 + 1, and adding 3 gives 6x^3 - x^2 + 4.
A divisor of degree two
Divide x^4 + 2x^2 - x + 3 by x^2 + 1.
SolutionBoth have gaps: write x^4 + 0x^3 + 2x^2 - x + 3 and x^2 + 0x + 1. Each product now spans three columns.
First round: \displaystyle \frac{x^4}{x^2} = x^2. Then x^2(x^2 + 0x + 1) = x^4 + 0x^3 + x^2, and subtracting it from the whole dividend leaves 0x^3 + x^2 - x + 3. The x^3 term is 0, so the next quotient term, \displaystyle \frac{0x^3}{x^2} = 0x, adds nothing; what is left is x^2 - x + 3.
Next round: \displaystyle \frac{x^2}{x^2} = 1. Then 1 \cdot (x^2 + 1) = x^2 + 1, and (x^2 - x + 3) - (x^2 + 1) = -x + 2.
Now -x + 2 has degree 1, below the divisor’s 2, so the rounds stop. The quotient is x^2 + 1 and the remainder is -x + 2:
The remainder contains x, and that is fine: it only has to have lower degree than the divisor. Check: (x^2 + 1)^2 = x^4 + 2x^2 + 1 by the square of a binomial, and adding -x + 2 gives x^4 + 2x^2 - x + 3.
The height of a greenhouse
Severine is designing a glass greenhouse in the shape of a box. For a length x meters set by the design, its volume is 2x^3 + 9x^2 + 7x - 6 cubic meters and its floor area is 2x^2 + 5x - 3 square meters. Find its height as a polynomial in x, then the floor area, height and volume when x = 2.
SolutionThe volume of a box is floor area times height, so the height is the volume divided by the floor area.
First round: \displaystyle \frac{2x^3}{2x^2} = x. Then x(2x^2 + 5x - 3) = 2x^3 + 5x^2 - 3x, and subtracting from the volume leaves 4x^2 + 10x - 6.
Second round: \displaystyle \frac{4x^2}{2x^2} = 2. Then 2(2x^2 + 5x - 3) = 4x^2 + 10x - 6, and subtracting leaves 0.
The height is x + 2 meters. The zero remainder matters: with any other remainder, no polynomial height would give this volume for every x.
At x = 2 the floor area is 8 + 10 - 3 = 15 square meters, the height is 4 meters, and the volume is 16 + 36 + 14 - 6 = 60 cubic meters. As a check, 15 \cdot 4 = 60.
Using one factor to find the rest
Valdis knows that x + 2 is a factor of x^3 - 7x - 6. Factor the cubic completely.
SolutionDivide x^3 + 0x^2 - 7x - 6 by x + 2, with a placeholder for the missing x^2.
First round: \displaystyle \frac{x^3}{x} = x^2. Then x^2(x + 2) = x^3 + 2x^2, and subtracting leaves -2x^2 - 7x.
Second round: \displaystyle \frac{-2x^2}{x} = -2x. Then -2x(x + 2) = -2x^2 - 4x, and subtracting leaves -3x - 6.
Third round: \displaystyle \frac{-3x}{x} = -3. Then -3(x + 2) = -3x - 6, and subtracting leaves 0.
So x^3 - 7x - 6 = (x + 2)(x^2 - 2x - 3). The quadratic factors with two numbers whose product is -3 and whose sum is -2, namely -3 and 1:
Check: (x + 2)(x - 3) = x^2 - x - 6, and (x^2 - x - 6)(x + 1) = x^3 - 7x - 6. Division turned a cubic into a familiar quadratic, the habit of factoring completely.
Boundaries
The divisor is not zero. Dividing by the zero polynomial is undefined, as dividing by the number 0 is. The fraction form \displaystyle \frac{p}{d} = q + \frac{r}{d} holds only where d(x) \neq 0; the product form p = dq + r holds for every x.
A single-term divisor splits the top, never the bottom. \displaystyle \frac{a + b}{d} = \frac{a}{d} + \frac{b}{d}, but \displaystyle \frac{d}{a + b} does not split. And when a term of the top has a lower power than the divisor, the result is not a polynomial: \displaystyle \frac{x^2 + 3}{x} = x + \frac{3}{x}. Long division says the same thing as quotient x, remainder 3.
The rounds stop on degree, not on size. While what is left has degree at least the divisor’s, another round is due. When it drops below, stop, even if the remainder contains x (Example 4). If the dividend’s degree is already below the divisor’s, the quotient is 0 and the remainder is the dividend.
The quotient and remainder are unique. Any route to a q and r with p = dq + r and \deg r < \deg d reaches the same pair (Exercise 23), which is why multiplying back is a complete check.
Fractions can appear. When the divisor’s leading coefficient is not 1, the quotient may have fractional coefficients even though every given coefficient is an integer (Exercise 14).
Where this goes next
Synthetic division runs the same rounds for a divisor x - c with only the coefficients written. The The remainder and factor theorems predicts the remainder on dividing by x - c without dividing at all, and turns a zero remainder into a zero of the polynomial.
Rational expressions, in the next unit, are fractions of polynomials, and \displaystyle q + \frac{r}{d} is their mixed-number form. Far out along the x-axis \displaystyle \frac{r}{d} shrinks toward 0, so the graph follows q; when q has degree 1, its line is a slant asymptote. In calculus, dividing before integrating splits a fraction into pieces that can each be integrated.
Exercises
Dividing by a monomial
- \dfrac{18x^5 - 12x^3 + 6x^2}{6x^2}
- \dfrac{20a^4b^3 + 15a^2b^2}{5a^2b}
- \dfrac{9y^3 - 6y^2 + 4y}{3y}
Dividing by a binomial
Give the quotient and the remainder.
- (x^2 + 9x + 20) \div (x + 4)
- (2x^3 + 3x^2 - 8x + 3) \div (x + 3)
- (x^3 - 4x^2 + 5x - 7) \div (x - 2)
- (6x^2 + 7x - 5) \div (3x - 1)
- (4x^3 - 8x^2 + 3x + 5) \div (2x - 3)
Missing powers
- (x^3 + 2x - 12) \div (x - 2)
- (2x^4 - 5x^2 + 3) \div (x + 1)
- (x^4 - 3x + 1) \div (x - 1)
Divisors of degree two
- (x^4 + x^3 - x^2 + 2x - 3) \div (x^2 + x - 2)
- (3x^3 - 2x^2 + 4x - 1) \div (x^2 - 2)
- (2x^3 + x + 5) \div (2x^2 - x + 1)
Problems
- Write \dfrac{x^2 + 5x + 1}{x + 2} as a polynomial plus a fraction whose top has lower degree than its bottom.
- Wairimu’s greenhouse room is a box with volume x^3 + 7x^2 + 14x + 8 cubic meters and height x + 1 meters. Find the floor area, factor it to give the floor’s two sides, and find all three dimensions and the volume when x = 2.
- A rectangular pane for Elfriede’s greenhouse roof has area 6x^2 + x - 12 square decimeters and width 2x + 3 decimeters. Find its length.
- Jaroslav wants x - 1 to divide x^3 + 2x^2 - 5x + k exactly. Divide to find the remainder in terms of k, then find k.
- Given that x - 1 is a factor of x^3 - 2x^2 - 5x + 6, factor it completely.
Reasoning
- Explain why dividing any polynomial by a divisor of degree 1, such as 3x - 5, always leaves a remainder that is a number.
- Severine divides a cubic by x - 3 and stops when what is left is x + 14. Explain why she is not finished, and find how her quotient and remainder change after the next round.
- A polynomial of degree 5 is divided by one of degree 2. What is the degree of the quotient, and what can the remainder be? Explain.
- Suppose p = d\,q_1 + r_1 and p = d\,q_2 + r_2, where each of r_1, r_2 is 0 or has degree below \deg d. Prove that q_1 = q_2 and r_1 = r_2.
- Divide 4x^3 + 7x^2 + 2x + 9 by x + 3. Then put x = 10 into your quotient and remainder and compare with 4729 = 13 \cdot 363 + 10. Explain why both statements are true and why they look different.
Answers
- 3x^3 - 2x + 1. Term by term: \displaystyle \frac{18x^5}{6x^2} = 3x^3, \displaystyle \frac{12x^3}{6x^2} = 2x, \displaystyle \frac{6x^2}{6x^2} = 1.
- 4a^2b^2 + 3b. \displaystyle \frac{20}{5} = 4, a^{4-2} = a^2, b^{3-1} = b^2; then \displaystyle \frac{15}{5} = 3, a^0 = 1, b^{2-1} = b.
- \displaystyle 3y^2 - 2y + \frac{4}{3}. The last term is \displaystyle \frac{4y}{3y} = \frac{4}{3}.
- Quotient x + 5, remainder 0. x(x + 4) = x^2 + 4x leaves 5x + 20, which is 5(x + 4).
- Quotient 2x^2 - 3x + 1, remainder 0. The rounds leave -3x^2 - 8x, then x + 3, then 0.
- Quotient x^2 - 2x + 1, remainder -5. The rounds leave -2x^2 + 5x, then x - 7, then (x - 7) - (x - 2) = -5.
- Quotient 2x + 3, remainder -2. 2x(3x - 1) = 6x^2 - 2x leaves 9x - 5; 3(3x - 1) leaves -2.
- Quotient 2x^2 - x, remainder 5. 2x^2(2x - 3) leaves -2x^2 + 3x + 5; -x(2x - 3) leaves 5, of degree 0.
- Quotient x^2 + 2x + 6, remainder 0. With x^3 + 0x^2 + 2x - 12 the rounds leave 2x^2 + 2x, then 6x - 12, then 0.
- Quotient 2x^3 - 2x^2 - 3x + 3, remainder 0. With 2x^4 + 0x^3 - 5x^2 + 0x + 3 the rounds leave -2x^3 - 5x^2, then -3x^2 + 0x, then 3x + 3, then 0.
- Quotient x^3 + x^2 + x - 2, remainder -1. With x^4 + 0x^3 + 0x^2 - 3x + 1 the rounds leave x^3 + 0x^2, then x^2 - 3x, then -2x + 1, then -1.
- Quotient x^2 + 1, remainder x - 1. x^2(x^2 + x - 2) leaves x^2 + 2x - 3; subtracting x^2 + x - 2 leaves x - 1.
- Quotient 3x - 2, remainder 10x - 5. 3x(x^2 - 2) = 3x^3 - 6x leaves -2x^2 + 10x - 1; -2(x^2 - 2) leaves 10x - 5.
- Quotient \displaystyle x + \frac{1}{2}, remainder \displaystyle \frac{1}{2}x + \frac{9}{2}. x(2x^2 - x + 1) leaves x^2 + 5; then \displaystyle \frac{x^2}{2x^2} = \frac{1}{2}, and \displaystyle \frac{1}{2}(2x^2 - x + 1) leaves \displaystyle \frac{1}{2}x + \frac{9}{2}.
- \displaystyle x + 3 - \frac{5}{x + 2}. Dividing gives quotient x + 3 and remainder -5, since (x + 2)(x + 3) = x^2 + 5x + 6.
- Floor area x^2 + 6x + 8 = (x + 2)(x + 4) square meters, remainder 0. At x = 2 the floor is 4 m by 6 m, the height is 3 m, and the volume is 72 cubic meters, matching 8 + 28 + 28 + 8 = 72.
- 3x - 4 decimeters. 3x(2x + 3) = 6x^2 + 9x leaves -8x - 12, which is -4(2x + 3).
- Remainder k - 2, so k = 2. The rounds give quotient x^2 + 3x - 2 and leave (-2x + k) - (-2x + 2) = k - 2, which is 0 only when k = 2.
- (x - 1)(x - 3)(x + 2). Dividing gives x^2 - x - 6 with remainder 0, and x^2 - x - 6 = (x - 3)(x + 2).
- The rounds stop as soon as what is left has degree below 1, that is degree 0 or the zero polynomial. Either way it is a constant.
- x + 14 has degree 1, not below the divisor’s degree 1, so another round is due: \displaystyle \frac{x}{x} = 1, the quotient gains + 1, and the new remainder is (x + 14) - (x - 3) = 17. If her quotient was Q, then (x - 3)Q + x + 14 equals (x - 3)(Q + 1) + 17.
- The quotient has degree 3: the leading term of p is the leading term of d times that of q, and degrees add, 2 + 3 = 5. The remainder is 0, a constant, or of degree 1.
- Subtracting, d(q_1 - q_2) = r_2 - r_1. If q_1 \neq q_2, the left side has degree at least \deg d, but the right side is 0 or has degree below \deg d. That is impossible, so q_1 = q_2, the left side is 0, and r_1 = r_2.
- Quotient 4x^2 - 5x + 17, remainder -42. At x = 10 these give 367 and -42, and 13 \cdot 367 - 42 = 4729. Both are true. Whole-number division also demands a remainder from 0 to 12 and digits 0 to 9, so it regroups; polynomial division allows any coefficients.