This topic uses the remainder and factor theorems to find the factors of polynomials and to solve cubic equations.
3.1 Remainder and factor theorems
You can find the remainder 余数 of a polynomial 多项式 division without dividing: substitute one value. If the remainder is $0$, the divisor is a factor 因子.
The two theorems
A polynomial is a sum of terms in whole-number powers of $x$, such as $p(x) = x^3 - 4x^2 + 2x + 5$. Its degree 次数 is the highest power: here $3$, a cubic.
- Remainder theorem 余数定理: when $p(x)$ is divided by $(x - a)$, the remainder is $p(a)$. When it is divided by $(ax - b)$, the remainder is $p\!\left(\dfrac{b}{a}\right)$.
- Factor theorem 因式定理: $(x - a)$ is a factor of $p(x)$ exactly when $p(a) = 0$.

The value to substitute is always the one that makes the divisor zero. So $(2x - 1)$ is a factor exactly when $p\!\left(\dfrac{1}{2}\right) = 0$. Dividing by $x$ means dividing by $(x - 0)$: the remainder is $p(0)$, the constant term.
Worked example 1. Find the remainder when $p(x) = x^3 - 4x^2 + 2x + 5$ is divided by $(x - 2)$.
- $x - 2 = 0$ gives $x = 2$.
- $p(2) = 8 - 16 + 4 + 5 = 1$. The remainder is $1$.
Worked example 2. Find the remainder when the same $p(x)$ is divided by $(2x + 1)$.
- $2x + 1 = 0$ gives $x = -\dfrac{1}{2}$.
- $p\!\left(-\dfrac{1}{2}\right) = -\dfrac{1}{8} - 1 - 1 + 5 = \dfrac{23}{8}$.
Worked example 3. Show that $(x - 3)$ is a factor of $x^3 - 2x^2 - 5x + 6$.
- $p(3) = 27 - 18 - 15 + 6 = 0$.
- The remainder is $0$, so $(x - 3)$ is a factor.
Finding unknown coefficients
Each fact about a factor or a remainder gives one equation. Two facts give two simultaneous equations.
Worked example 4. $p(x) = x^3 + ax^2 + bx - 6$. $(x - 1)$ is a factor of $p(x)$, and the remainder when $p(x)$ is divided by $(x + 2)$ is $-12$. Find $a$ and $b$.
- $p(1) = 0$: $1 + a + b - 6 = 0$, so $a + b = 5$.
- $p(-2) = -12$: $-8 + 4a - 2b - 6 = -12$, so $4a - 2b = 2$, which is $2a - b = 1$.
- Add the two equations: $3a = 6$, so $a = 2$ and $b = 3$.
3.2 Find factors of polynomials
To factorise a cubic, find one linear factor first. Then the rest is a quadratic, which you already know how to factorise.
Three steps
- Find a linear factor. Try $x = 1, -1, 2, -2, \dots$ (factors of the constant term) until $p(a) = 0$. Then $(x - a)$ is a factor.
- Find the other factor, a quadratic factor 二次因式, by algebraic long division or by comparing coefficients 系数.
- Factorise the quadratic factor, if it factorises.
"Factorise completely" means: continue until every factor is linear, or the quadratic factor does not factorise.
Method 1: algebraic long division
Worked example 1. Show that $(x - 3)$ is a factor of $p(x) = x^3 - 2x^2 - 5x + 6$, and hence factorise $p(x)$ completely.
- $p(3) = 27 - 18 - 15 + 6 = 0$, so $(x - 3)$ is a factor.
- Divide by $(x - 3)$:

Each step divides the first term by $x$, multiplies back and subtracts. The result on top, $x^2 + x - 2$, is the quotient 商. The remainder $0$ confirms the factor.
Step 3: $x^2 + x - 2 = (x + 2)(x - 1)$, so $p(x) = (x - 3)(x + 2)(x - 1)$.
If a power is missing, write it with a zero: divide $x^3 - 7x + 6$ as $x^3 + 0x^2 - 7x + 6$. If the remainder $r$ is not $0$, write $p(x) = (x - a)q(x) + r$, where $q(x)$ is the quotient. Check that $r = p(a)$.
Method 2: comparing coefficients
Write $p(x) = (x - a)(\ldots x^2 + bx + c)$ and match the terms. This is often quicker. For a factor such as $(3x - 4)$, the $x^2$ term of the quadratic factor is $x^2$ when $p(x)$ starts with $3x^3$.
Worked example 2. Factorise $p(x) = 2x^3 + x^2 - 13x + 6$ completely.
- $p(2) = 16 + 4 - 26 + 6 = 0$, so $(x - 2)$ is a factor.
- $2x^3 + x^2 - 13x + 6 = (x - 2)(2x^2 + bx + c)$.
- Constant terms: $-2c = 6$, so $c = -3$. $x^2$ terms: $b - 4 = 1$, so $b = 5$.
- Check the $x$ terms: $c - 2b = -3 - 10 = -13$. Correct.
- $2x^2 + 5x - 3 = (2x - 1)(x + 3)$, so $p(x) = (x - 2)(2x - 1)(x + 3)$.
3.3 Solve cubic equations
To solve a cubic equation 三次方程, factorise it completely, then set each factor equal to zero. A cubic has at most three roots 根.
Why there can be three answers

The roots of $p(x) = 0$ are the $x$-values where $y = p(x)$ crosses the $x$-axis. This curve crosses three times, so the equation has three roots.
The method
- Rearrange to $p(x) = 0$.
- Find a linear factor with the factor theorem, then the quadratic factor.
- Solve the quadratic factor $= 0$: factorise it, or use the formula if it does not factorise.
Worked example 1. Solve $x^3 - 2x^2 - 5x + 6 = 0$.
- $p(1) = 1 - 2 - 5 + 6 = 0$, so $(x - 1)$ is a factor.
- $p(x) = (x - 1)(x^2 - x - 6) = (x - 1)(x - 3)(x + 2)$.
- $x = 1$, $x = 3$ or $x = -2$.
Worked example 2. Solve $x^3 - 4x^2 + 2x + 1 = 0$, giving exact answers.
- $p(1) = 1 - 4 + 2 + 1 = 0$, so $p(x) = (x - 1)(x^2 - 3x - 1)$.
- $x^2 - 3x - 1$ does not factorise. Use the formula:
$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{3 \pm \sqrt{9 + 4}}{2} = \frac{3 \pm \sqrt{13}}{2}$$
- $x = 1$ or $x = \dfrac{3 \pm \sqrt{13}}{2}$.
Worked example 3. Solve $2x^3 = 3x^2 + 11x - 6$.
- Rearrange: $2x^3 - 3x^2 - 11x + 6 = 0$.
- $p(3) = 54 - 27 - 33 + 6 = 0$, so $p(x) = (x - 3)(2x^2 + 3x - 2) = (x - 3)(2x - 1)(x + 2)$.
- $x = 3$, $x = \dfrac{1}{2}$ or $x = -2$.
When every term has an $x$
Take out the common factor $x$. Never divide both sides by $x$: you lose the root $x = 0$.
Worked example 4. Solve $x^3 = 4x$.
- $x^3 - 4x = 0$, so $x(x^2 - 4) = 0$ and $x(x - 2)(x + 2) = 0$.
- $x = 0$, $x = 2$ or $x = -2$.
How many real roots?
Write $p(x) = (x - a) \times (\text{quadratic factor})$. The discriminant of the quadratic factor decides:
- $b^2 - 4ac < 0$: the quadratic factor has no real roots, so $x = a$ is the only real root;
- a factor that appears twice, as in $(x + 1)(x - 2)^2$, gives a repeated root: here $x = 2$.
Words in the questions
The exercise sheets for this topic also use these words:
- factorise completely 完全因式分解
- exact form 精确形式