Polynomial Long Division
#algebra #polynomialsDividing polynomials works exactly like long division with numbers: divide the leading terms, multiply back, subtract, and repeat until what's left is too small to divide further.
The division algorithm
Theorem. Let $f(x)$ and $g(x)$ be polynomials with $g(x) \neq 0$. Then there are unique polynomials $q(x)$ and $r(x)$ such that
We call $q(x)$ the quotient and $r(x)$ the remainder. Compare this with integers: $17 = 3 \cdot 5 + 2$, where the remainder $2$ is smaller than the divisor $5$. For polynomials, "smaller" means "lower degree".
Example 1: dividing by a linear polynomial
Let's divide $f(x) = 2x^3 - 3x^2 + 4x - 5$ by $g(x) = x - 2$.
Step 1. Divide the leading terms: $2x^3 / x = 2x^2$. Multiply $2x^2(x - 2) = 2x^3 - 4x^2$ and subtract.
Step 2. The new leading term is $x^2$, and $x^2 / x = x$. Multiply $x(x - 2) = x^2 - 2x$ and subtract.
Step 3. The new leading term is $6x$, and $6x / x = 6$. Multiply $6(x - 2) = 6x - 12$ and subtract.
Written out in columns:
The remainder $7$ has degree $0 \lt 1 = \deg g$, so we stop. Therefore
A quick check: the remainder theorem
When dividing by $x - a$, the remainder is always $f(a)$. Plug $x = a$ into the division algorithm and the $q(x),g(x)$ term vanishes. Here:
A useful consequence: $x - a$ divides $f(x)$ exactly when $f(a) = 0$, that is, when $a$ is a root.
Example 2: dividing by a quadratic
Now divide $f(x) = x^4 + 2x^3 - x + 3$ by $g(x) = x^2 + 1$. Notice that $f$ has no $x^2$ term, so we write it as $0x^2$ to keep the columns aligned.
The remainder $-3x + 4$ has degree $1 \lt 2$, so we're done:
Check. Expanding the product:
and adding the remainder $-3x + 4$ gives back $x^4 + 2x^3 - x + 3$. ✓
Shortcut: synthetic division
When the divisor is $x - a$, you can skip the variables and work with coefficients only. For Example 1, write the coefficients $2, -3, 4, -5$ and use $a = 2$:
Bring down the first coefficient. Then repeatedly multiply by $a$, write the result under the next coefficient, and add. The bottom row gives the quotient's coefficients $2, 1, 6$, meaning $2x^2 + x + 6$, and the last entry is the remainder $7$. Same answer, a fraction of the writing.
Exercises
- Divide $x^3 - 6x^2 + 11x - 6$ by $x - 1$. What does the remainder tell you?
- Use synthetic division to find the remainder of $3x^4 - 2x^2 + x - 7$ divided by $x + 1$. (Hint: $x + 1 = x - (-1)$.)
- Divide $x^5 - 1$ by $x - 1$. Can you spot the pattern in the quotient?
Answers. (1) Quotient $x^2 - 5x + 6$, remainder $0$, so $x = 1$ is a root. (2) Remainder $-7$. (3) Quotient $x^4 + x^3 + x^2 + x + 1$, remainder $0$.