Skip to content
Family Table Math
Auto

The Factor Theorem

The remainder theorem says that dividing P(x)P(x) by x−ax - a leaves remainder P(a)P(a). So what happens when P(a)=0P(a) = 0? There’s no remainder, which means x−ax - a divides evenly: it’s a factor. This is the factor theorem, and it’s how you factor cubics and quartics that don’t fit any of the familiar patterns.

x−ax - a is a factor of P(x)P(x) if and only if P(a)=0P(a) = 0.

“If and only if” means it works both ways:

  • If P(a)=0P(a) = 0, the remainder on dividing by x−ax - a is 00, so P(x)=(x−a)Q(x)P(x) = (x - a)Q(x) and x−ax - a is a factor.
  • If x−ax - a is a factor, then P(x)=(x−a)Q(x)P(x) = (x - a)Q(x), so P(a)=0⋅Q(a)=0P(a) = 0 \cdot Q(a) = 0.

The same idea works for ax−bax - b: it’s a factor if and only if P(ba)=0P\left(\tfrac{b}{a}\right) = 0.

These three statements say the same thing:

ZeroFactorGraph
P(a)=0P(a) = 0x−ax - a is a factorthe graph crosses or touches the xx-axis at (a,0)(a, 0)
Graph of a cubic crossing the x-axis at -2, 1 and 3, each labelled with its factor −4 −2 2 4 6 8 −2 1 3 y = x³ − 2x² − 5x + 6 zeros: −2, 1, 3 factors: (x + 2), (x − 1), (x − 3)
The zeros of x3−2x2−5x+6x^3 - 2x^2 - 5x + 6 are −2-2, 11 and 33, so its factors are x+2x + 2, x−1x - 1 and x−3x - 3.

You can’t test every number, so narrow it down.

Integer zeros. If P(x)P(x) has integer coefficients and x−bx - b is a factor (with bb an integer), then bb is a factor of the constant term. For x3−2x2−5x+6x^3 - 2x^2 - 5x + 6, the only integers worth testing are the factors of 66: ±1,±2,±3,±6\pm 1, \pm 2, \pm 3, \pm 6.

Why? If P(x)=(x−b)(… )P(x) = (x - b)(\dots), then multiplying the constant terms of the factors gives the constant term of P(x)P(x). So bb must divide it.

Rational zeros. If the leading coefficient isn’t 11, a zero might be a fraction. Any rational zero ba\tfrac{b}{a} (in lowest terms) has bb a factor of the constant term and aa a factor of the leading coefficient. For 2x3+x2+5x−32x^3 + x^2 + 5x - 3, the candidates are

±1, ±3, ±12, ±32\pm 1,\ \pm 3,\ \pm\tfrac{1}{2},\ \pm\tfrac{3}{2}

Test the integers first, since they’re easiest.

  1. List the possible zeros and test them until you find a value aa with P(a)=0P(a) = 0.
  2. Divide P(x)P(x) by x−ax - a (synthetic division is quickest). The remainder should be 00.
  3. Factor the quotient. If it’s a quadratic, factor it the usual way. If it’s a cubic, repeat steps 1 and 2.
  4. Write P(x)P(x) as a product of all the factors, and check by expanding or by substituting a value.

Sometimes the last quadratic doesn’t factor. If its discriminant b2−4acb^2 - 4ac is negative, it has no real zeros, so it can’t be factored any further using real numbers.

Let P(x)=x3−3x2−4x+12P(x) = x^3 - 3x^2 - 4x + 12. Is x−2x - 2 a factor? Is x+1x + 1 a factor?

Solution. Test x=2x = 2:

P(2)=8−12−8+12=0P(2) = 8 - 12 - 8 + 12 = 0

So x−2x - 2 is a factor.

For x+1x + 1, test x=−1x = -1:

P(−1)=−1−3+4+12=12P(-1) = -1 - 3 + 4 + 12 = 12

P(−1)≠0P(-1) \ne 0, so x+1x + 1 is not a factor. (Dividing by x+1x + 1 would leave remainder 1212.)

Factor P(x)=x3−2x2−5x+6P(x) = x^3 - 2x^2 - 5x + 6 fully.

Solution. The possible integer zeros are the factors of 66: ±1,±2,±3,±6\pm 1, \pm 2, \pm 3, \pm 6. Try x=1x = 1:

P(1)=1−2−5+6=0P(1) = 1 - 2 - 5 + 6 = 0

So x−1x - 1 is a factor. Divide using synthetic division:

11−2−561−1−61−1−60\def\arraystretch{1.3} \begin{array}{r|rrrr} 1 & 1 & -2 & -5 & 6 \\ & & 1 & -1 & -6 \\ \hline & 1 & -1 & -6 & \boxed{0} \end{array}

The quotient is x2−x−6=(x−3)(x+2)x^2 - x - 6 = (x - 3)(x + 2). So

x3−2x2−5x+6=(x−1)(x−3)(x+2)x^3 - 2x^2 - 5x + 6 = (x - 1)(x - 3)(x + 2)

Check with the graph above: the xx-intercepts are 11, 33 and −2-2. ✓

Factor P(x)=2x3+x2+5x−3P(x) = 2x^3 + x^2 + 5x - 3 as fully as possible.

Solution. The possible rational zeros are ±1,±3,±12,±32\pm 1, \pm 3, \pm\tfrac{1}{2}, \pm\tfrac{3}{2}. The integers don’t work: P(1)=5P(1) = 5, P(−1)=−9P(-1) = -9, P(3)=75P(3) = 75 and P(−3)=−63P(-3) = -63. Try x=12x = \tfrac{1}{2}:

P(12)=2(18)+14+52−3=14+14+52−3=0P\left(\tfrac{1}{2}\right) = 2\left(\tfrac{1}{8}\right) + \tfrac{1}{4} + \tfrac{5}{2} - 3 = \tfrac{1}{4} + \tfrac{1}{4} + \tfrac{5}{2} - 3 = 0

So 2x−12x - 1 is a factor. Divide P(x)P(x) by 2x−12x - 1 (long division):

  • 2x3÷2x=x22x^3 \div 2x = x^2. Subtract x2(2x−1)=2x3−x2x^2(2x - 1) = 2x^3 - x^2 to get 2x2+5x2x^2 + 5x.
  • 2x2÷2x=x2x^2 \div 2x = x. Subtract x(2x−1)=2x2−xx(2x - 1) = 2x^2 - x to get 6x−36x - 3.
  • 6x÷2x=36x \div 2x = 3. Subtract 3(2x−1)=6x−33(2x - 1) = 6x - 3 to get 00.
2x3+x2+5x−3=(2x−1)(x2+x+3)2x^3 + x^2 + 5x - 3 = (2x - 1)(x^2 + x + 3)

For x2+x+3x^2 + x + 3, the discriminant is 12−4(1)(3)=−11<01^2 - 4(1)(3) = -11 \lt 0, so it doesn’t factor further. That’s the full factorization.

Factor P(x)=x4+2x3−7x2−8x+12P(x) = x^4 + 2x^3 - 7x^2 - 8x + 12.

Solution. The possible integer zeros are the factors of 1212. Try x=1x = 1: P(1)=1+2−7−8+12=0P(1) = 1 + 2 - 7 - 8 + 12 = 0. Divide by x−1x - 1:

112−7−81213−4−1213−4−120\def\arraystretch{1.3} \begin{array}{r|rrrrr} 1 & 1 & 2 & -7 & -8 & 12 \\ & & 1 & 3 & -4 & -12 \\ \hline & 1 & 3 & -4 & -12 & \boxed{0} \end{array}

The quotient is the cubic x3+3x2−4x−12x^3 + 3x^2 - 4x - 12. Repeat: try x=2x = 2, which gives 8+12−8−12=08 + 12 - 8 - 12 = 0. Divide by x−2x - 2:

213−4−12210121560\def\arraystretch{1.3} \begin{array}{r|rrrr} 2 & 1 & 3 & -4 & -12 \\ & & 2 & 10 & 12 \\ \hline & 1 & 5 & 6 & \boxed{0} \end{array}

The quotient is x2+5x+6=(x+2)(x+3)x^2 + 5x + 6 = (x + 2)(x + 3). So

x4+2x3−7x2−8x+12=(x−1)(x−2)(x+2)(x+3)x^4 + 2x^3 - 7x^2 - 8x + 12 = (x - 1)(x - 2)(x + 2)(x + 3)

Check with x=0x = 0: the left side is 1212, and the right side is (−1)(−2)(2)(3)=12(-1)(-2)(2)(3) = 12. ✓

(You could also factor the cubic x3+3x2−4x−12x^3 + 3x^2 - 4x - 12 by grouping: x2(x+3)−4(x+3)x^2(x + 3) - 4(x + 3). See factoring polynomials.)

Mixing up the zero and the factor. If P(−3)=0P(-3) = 0, the factor is x+3x + 3, not x−3x - 3. The factor is ”xx minus the zero”.

Testing values that can’t work. For integer coefficients, only factors of the constant term can be integer zeros. Testing x=5x = 5 for x3−2x2−5x+6x^3 - 2x^2 - 5x + 6 is wasted effort, because 55 doesn’t divide 66.

Forgetting fractions when the leading coefficient isn’t 1. If no integer works for 2x3+x2+5x−32x^3 + x^2 + 5x - 3, try ±12\pm\tfrac{1}{2} and ±32\pm\tfrac{3}{2} before deciding it can’t be factored.

Stopping too early. After dividing out one factor, check whether the quotient factors further. (x−1)(x2−x−6)(x - 1)(x^2 - x - 6) isn’t fully factored until you write (x−1)(x−3)(x+2)(x - 1)(x - 3)(x + 2).

Forcing a quadratic to factor. If the discriminant of the leftover quadratic is negative, it doesn’t factor over the real numbers. That’s a correct final answer, not a mistake.

1. (Warm-up) Let P(x)=x3−x2−4x−6P(x) = x^3 - x^2 - 4x - 6. Is x−3x - 3 a factor? Is x+2x + 2 a factor?

Solution

P(3)=27−9−12−6=0P(3) = 27 - 9 - 12 - 6 = 0, so x−3x - 3 is a factor.

P(−2)=−8−4+8−6=−10≠0P(-2) = -8 - 4 + 8 - 6 = -10 \ne 0, so x+2x + 2 is not a factor.

2. (Warm-up) List the possible integer zeros of x3+2x2−5x−6x^3 + 2x^2 - 5x - 6.

Solution

The factors of the constant term, −6-6: ±1,±2,±3,±6\pm 1, \pm 2, \pm 3, \pm 6.

3. (Core) Factor x3+2x2−5x−6x^3 + 2x^2 - 5x - 6 fully.

Solution

Try x=−1x = -1: P(−1)=−1+2+5−6=0P(-1) = -1 + 2 + 5 - 6 = 0, so x+1x + 1 is a factor.

−112−5−6−1−1611−60\def\arraystretch{1.3} \begin{array}{r|rrrr} -1 & 1 & 2 & -5 & -6 \\ & & -1 & -1 & 6 \\ \hline & 1 & 1 & -6 & \boxed{0} \end{array}

x2+x−6=(x+3)(x−2)x^2 + x - 6 = (x + 3)(x - 2), so

x3+2x2−5x−6=(x+1)(x+3)(x−2)x^3 + 2x^2 - 5x - 6 = (x + 1)(x + 3)(x - 2)

4. (Core) Factor x3−7x+6x^3 - 7x + 6 fully.

Solution

P(1)=1−7+6=0P(1) = 1 - 7 + 6 = 0, so x−1x - 1 is a factor. Use 00 for the missing x2x^2 term:

110−7611−611−60\def\arraystretch{1.3} \begin{array}{r|rrrr} 1 & 1 & 0 & -7 & 6 \\ & & 1 & 1 & -6 \\ \hline & 1 & 1 & -6 & \boxed{0} \end{array}

x2+x−6=(x+3)(x−2)x^2 + x - 6 = (x + 3)(x - 2), so x3−7x+6=(x−1)(x−2)(x+3)x^3 - 7x + 6 = (x - 1)(x - 2)(x + 3).

5. (Core) Find kk so that x+2x + 2 is a factor of x3+kx2−2x+8x^3 + kx^2 - 2x + 8. Then factor the polynomial as fully as possible.

Solution

x+2x + 2 is a factor when P(−2)=0P(-2) = 0:

−8+4k+4+8=0⇒4k=−4⇒k=−1-8 + 4k + 4 + 8 = 0 \quad\Rightarrow\quad 4k = -4 \quad\Rightarrow\quad k = -1

Now divide x3−x2−2x+8x^3 - x^2 - 2x + 8 by x+2x + 2:

−21−1−28−26−81−340\def\arraystretch{1.3} \begin{array}{r|rrrr} -2 & 1 & -1 & -2 & 8 \\ & & -2 & 6 & -8 \\ \hline & 1 & -3 & 4 & \boxed{0} \end{array}

x3−x2−2x+8=(x+2)(x2−3x+4)x^3 - x^2 - 2x + 8 = (x + 2)(x^2 - 3x + 4). The discriminant of x2−3x+4x^2 - 3x + 4 is 9−16=−7<09 - 16 = -7 \lt 0, so it doesn’t factor further.

6. (Core) For P(x)=3x3+4x2−5x−2P(x) = 3x^3 + 4x^2 - 5x - 2:

  • (a) List the possible rational zeros.
  • (b) Factor P(x)P(x) fully.
Solution

(a) ba\tfrac{b}{a} with bb a factor of −2-2 and aa a factor of 33: ±1,±2,±13,±23\pm 1, \pm 2, \pm\tfrac{1}{3}, \pm\tfrac{2}{3}.

(b) P(1)=3+4−5−2=0P(1) = 3 + 4 - 5 - 2 = 0, so x−1x - 1 is a factor.

134−5−23723720\def\arraystretch{1.3} \begin{array}{r|rrrr} 1 & 3 & 4 & -5 & -2 \\ & & 3 & 7 & 2 \\ \hline & 3 & 7 & 2 & \boxed{0} \end{array}

3x2+7x+2=(3x+1)(x+2)3x^2 + 7x + 2 = (3x + 1)(x + 2), so P(x)=(x−1)(3x+1)(x+2)P(x) = (x - 1)(3x + 1)(x + 2).

7. (Core) Factor x4−2x3−7x2+8x+12x^4 - 2x^3 - 7x^2 + 8x + 12 fully.

Solution

P(−1)=1+2−7−8+12=0P(-1) = 1 + 2 - 7 - 8 + 12 = 0, so x+1x + 1 is a factor.

−11−2−7812−134−121−3−4120\def\arraystretch{1.3} \begin{array}{r|rrrrr} -1 & 1 & -2 & -7 & 8 & 12 \\ & & -1 & 3 & 4 & -12 \\ \hline & 1 & -3 & -4 & 12 & \boxed{0} \end{array}

Factor the cubic x3−3x2−4x+12x^3 - 3x^2 - 4x + 12 by grouping: x2(x−3)−4(x−3)=(x−3)(x2−4)=(x−3)(x−2)(x+2)x^2(x - 3) - 4(x - 3) = (x - 3)(x^2 - 4) = (x - 3)(x - 2)(x + 2).

x4−2x3−7x2+8x+12=(x+1)(x−3)(x−2)(x+2)x^4 - 2x^3 - 7x^2 + 8x + 12 = (x + 1)(x - 3)(x - 2)(x + 2)

8. (Challenge) Find aa and bb so that both x−1x - 1 and x+2x + 2 are factors of x3+ax2+bx−6x^3 + ax^2 + bx - 6. Then find the third factor.

Solution

P(1)=0P(1) = 0: 1+a+b−6=01 + a + b - 6 = 0, so a+b=5a + b = 5.

P(−2)=0P(-2) = 0: −8+4a−2b−6=0-8 + 4a - 2b - 6 = 0, so 4a−2b=144a - 2b = 14, or 2a−b=72a - b = 7.

Adding the two equations: 3a=123a = 12, so a=4a = 4 and b=1b = 1.

The polynomial is x3+4x2+x−6x^3 + 4x^2 + x - 6. Since (x−1)(x+2)=x2+x−2(x - 1)(x + 2) = x^2 + x - 2, the third factor must be linear with leading coefficient 11 and constant term −6−2=3\tfrac{-6}{-2} = 3. So it’s x+3x + 3.

Check: (x2+x−2)(x+3)=x3+3x2+x2+3x−2x−6=x3+4x2+x−6(x^2 + x - 2)(x + 3) = x^3 + 3x^2 + x^2 + 3x - 2x - 6 = x^3 + 4x^2 + x - 6. ✓

9. (Challenge) Use the factor theorem to show that x−ax - a is a factor of x3−a3x^3 - a^3 for any number aa. Then find the other factor.

Solution

Let P(x)=x3−a3P(x) = x^3 - a^3. Then P(a)=a3−a3=0P(a) = a^3 - a^3 = 0, so x−ax - a is a factor.

Synthetic division with coefficients 1,0,0,−a31, 0, 0, -a^3:

a100−a3aa2a31aa20\def\arraystretch{1.3} \begin{array}{r|rrrr} a & 1 & 0 & 0 & -a^3 \\ & & a & a^2 & a^3 \\ \hline & 1 & a & a^2 & \boxed{0} \end{array}

So x3−a3=(x−a)(x2+ax+a2)x^3 - a^3 = (x - a)(x^2 + ax + a^2). This is the difference of cubes pattern.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

H1. (Foundations) Let P(x)=2x3−x2−13x−6P(x) = 2x^3 - x^2 - 13x - 6. Use the factor theorem to decide whether each expression is a factor of P(x)P(x). Show the value you substitute and the result.

  • (a) x−3x - 3
  • (b) x−2x - 2
  • (c) 2x+12x + 1

H2. (Foundations)

  • (a) List the possible integer zeros of Q(x)=x3−3x2−10x+15Q(x) = x^3 - 3x^2 - 10x + 15.
  • (b) Without dividing, explain why x−4x - 4 cannot be a factor of Q(x)Q(x). Then confirm by finding Q(4)Q(4).
  • (c) List the possible rational zeros of R(x)=4x3−8x2+x−3R(x) = 4x^3 - 8x^2 + x - 3. (You don’t need to test them.)

H3. (Core) A company designs a cardboard shipping box whose volume, in cubic centimetres, is V(x)=x3+7x2+14x+8V(x) = x^3 + 7x^2 + 14x + 8 for a design value x>0x \gt 0 (hypothetical model). One edge of the box is x+1x + 1 cm long.

  • (a) Use the factor theorem to show that x+1x + 1 is a factor of V(x)V(x).
  • (b) Test whether each of x+2x + 2, x+3x + 3 and x+4x + 4 is a factor of V(x)V(x).
  • (c) Use your results to write the three edge lengths in terms of xx. Find them when x=5x = 5, and check that their product equals V(5)V(5).

H4. (Core) Let P(x)=x3+kx2+4x−3P(x) = x^3 + kx^2 + 4x - 3.

  • (a) Find kk so that x−3x - 3 is a factor of P(x)P(x).
  • (b) With that value of kk, divide P(x)P(x) by x−3x - 3 and write P(x)P(x) as (x−3)(x - 3) times a quadratic. Does the quadratic factor further over the real numbers? Explain.

H5. (Core) Factor P(x)=2x3−3x2−11x+6P(x) = 2x^3 - 3x^2 - 11x + 6 fully. List the possible rational zeros first, and check your final answer by expanding or by substituting a value.

H6. (Core) (IB style) The polynomial f(x)=2x3+px2+qx−6f(x) = 2x^3 + px^2 + qx - 6, where p,q∈Zp, q \in \mathbb{Z}, has factors (x+2)(x + 2) and (2x−1)(2x - 1).

  • (a) Show that 2p−q=112p - q = 11.
  • (b) Find a second equation in pp and qq, and hence find the values of pp and qq.
  • (c) Find the third linear factor of f(x)f(x).

H7. (Challenge)

  • (a) Use the factor theorem to prove that x−ax - a is a factor of xn−anx^n - a^n for every positive integer nn and every number aa.
  • (b) Show that both x−2x - 2 and x+2x + 2 are factors of x6−64x^6 - 64.
  • (c) For which positive integers nn is x+1x + 1 a factor of xn+1x^n + 1? Justify your answer.

H8. (Challenge) Amira is asked whether x−2x - 2 is a factor of P(x)=x3−3x2+4P(x) = x^3 - 3x^2 + 4. She writes:

”P(−2)=−8−12+4=−16P(-2) = -8 - 12 + 4 = -16. Since P(−2)≠0P(-2) \ne 0, x−2x - 2 is not a factor.”

  • (a) What mistake did Amira make?
  • (b) Do the correct test. Is x−2x - 2 a factor?
  • (c) Her calculation P(−2)=−16P(-2) = -16 is correct arithmetic. What does it actually tell you about P(x)P(x)?

H9. (Challenge) A polynomial P(x)P(x) has integer coefficients and constant term 77.

  • (a) Explain why x−3x - 3 cannot be a factor of P(x)P(x). (Hint: think about every term of P(3)P(3) except the constant.)
  • (b) Does this mean x+1x + 1 must be a factor? Give an example of a polynomial with integer coefficients and constant term 77 that has x+1x + 1 as a factor, and explain what the integer zero test does and doesn’t tell you.

H10. (Challenge) Find all values of kk for which x−2x - 2 is a factor of P(x)=x3+kx2+k2x−14P(x) = x^3 + kx^2 + k^2x - 14. For each value, write P(x)P(x) as (x−2)(x - 2) times a quadratic.