Division of polynomials
Polynomial long division, the division theorem P(x) = A(x)Q(x) + R(x) with deg R less than deg A, and how it compares with dividing whole numbers.
Adding, subtracting and multiplying polynomials always gives another polynomial. Division usually doesn't, just as $23 \div 5$ isn't a whole number. The fix is the same one you learnt in primary school: a quotient and a remainder. You need this to factor cubics and quartics in the next two sections.
Start with whole numbers
Dividing $23$ by $5$ gives quotient $4$ and remainder $3$. Instead of writing a fraction, we write
$$23 = 5 \times 4 + 3, \qquad 0 \le 3 \lt 5.$$
The remainder has to be smaller than the divisor, otherwise you could divide again. Polynomials follow exactly this pattern, with "smaller" meaning "lower degree".
So dividing by a linear polynomial leaves a constant remainder, and dividing by a quadratic leaves a remainder of the form $ax + b$.
Long division
Each round has four moves: divide the leading term of what's left by the leading term of the divisor, multiply the divisor by that, subtract, and repeat. Stop when what's left has lower degree than the divisor.
Divide $P(x) = 2x^4 - 5x^3 + 3x - 4$ by $x - 3$.
| What's left | Divide by $x$ | Multiply by $(x - 3)$ |
|---|---|---|
| $2x^4 - 5x^3 + 0x^2 + 3x - 4$ | $2x^3$ | $2x^4 - 6x^3$ |
| $x^3 + 0x^2 + 3x - 4$ | $x^2$ | $x^3 - 3x^2$ |
| $3x^2 + 3x - 4$ | $3x$ | $3x^2 - 9x$ |
| $12x - 4$ | $12$ | $12x - 36$ |
| $32$ | degree $0 \lt 1$, so stop | |
As a fraction, the same result reads $\dfrac{2x^4 - 5x^3 + 3x - 4}{x - 3} = 2x^3 + x^2 + 3x + 12 + \dfrac{32}{x - 3}$, just like $\dfrac{23}{5} = 4 + \dfrac35$.
Dividing by a quadratic
Divide $2x^4 - 5x^3 + 3x - 4$ by $x^2 + 1$.
Your turn
Divide $x^3 - 2x^2 + 4$ by $x + 1$.
Show the working
Write $x^3 - 2x^2 + 0x + 4$. $x^3 \div x = x^2$; subtract $x^3 + x^2$ to leave $-3x^2 + 0x + 4$. Then $-3x$; subtract $-3x^2 - 3x$ to leave $3x + 4$. Then $3$; subtract $3x + 3$ to leave $1$. So $x^3 - 2x^2 + 4 = (x + 1)(x^2 - 3x + 3) + 1$.
When a polynomial is divided by a cubic, the remainder has degree:
The remainder must have lower degree than the divisor, so its degree is $0$, $1$ or $2$, unless it is the zero polynomial.
Divide $x^3 - 5$ by $x - 1$. Enter the remainder.
$x^3 + 0x^2 + 0x - 5$: quotient terms $x^2$, $x$, $1$, giving $x^3 - 5 = (x - 1)(x^2 + x + 1) - 4$. Remainder $-4$.
Divide $x^3 - 2x^2 + 4$ by $x + 1$. Enter the remainder.
$x^3 - 2x^2 + 4 = (x + 1)(x^2 - 3x + 3) + 1$. Check at $x = 0$: $4 = 1 \times 3 + 1$.
The quotient when $3x^3 + x^2 - 2$ is divided by $x - 2$ is:
$3x^3 \div x = 3x^2$; subtract $3x^3 - 6x^2$ to leave $7x^2 + 0x - 2$. Then $7x$; subtract $7x^2 - 14x$ to leave $14x - 2$. Then $14$; subtract $14x - 28$ to leave $26$. Quotient $3x^2 + 7x + 14$, remainder $26$.
Enter the remainder when $3x^3 + x^2 - 2$ is divided by $x - 2$.
From the long division, the last line is $14x - 2 - (14x - 28) = 26$.
$x^3 + 4x^2 + x - 6 = (x + 2)(x^2 + bx - 3)$. Find $b$.
Divide: $x^3 \div x = x^2$; subtract $x^3 + 2x^2$ to leave $2x^2 + x - 6$. Then $2x$; subtract $2x^2 + 4x$ to leave $-3x - 6$. Then $-3$, remainder $0$. So $b = 2$.
$2x^3 + x^2 - 5x + 2$ is divided by $2x - 1$. The remainder is:
$2x^3 \div 2x = x^2$; subtract $2x^3 - x^2$ to leave $2x^2 - 5x + 2$. Then $x$; subtract $2x^2 - x$ to leave $-4x + 2$. Then $-2$; subtract $-4x + 2$ to leave $0$. So $2x^3 + x^2 - 5x + 2 = (2x - 1)(x^2 + x - 2)$.
$2x^4 - 5x^3 + 3x - 4 = (x^2 + 1)(2x^2 - 5x - 2) + (ax + b)$. Find $a$.
From the long division by $x^2 + 1$, the remainder is $8x - 2$, so $a = 8$. Check at $x = 1$: left side $2 - 5 + 3 - 4 = -4$; right side $2 \times (-5) + 6 = -4$.
Exam style: divide $x^4 + 1$ by $x^2 + x$. The remainder is $ax + b$. Find $a$.
$x^4 \div x^2 = x^2$; subtract $x^4 + x^3$ to leave $-x^3 + 0x^2 + 0x + 1$. Then $-x$; subtract $-x^3 - x^2$ to leave $x^2 + 0x + 1$. Then $1$; subtract $x^2 + x$ to leave $-x + 1$. So $a = -1$.
Exam style: divide $x^4 - 3x^2 + x + 2$ by $x^2 - x$. The remainder is $ax + b$. Find $b$.
$x^4 \div x^2 = x^2$; subtract $x^4 - x^3$ to leave $x^3 - 3x^2 + x + 2$. Then $x$; subtract $x^3 - x^2$ to leave $-2x^2 + x + 2$. Then $-2$; subtract $-2x^2 + 2x$ to leave $-x + 2$. So the remainder is $-x + 2$ and $b = 2$.
Coaching Centre