The Factor Theorem

A2 · P3 · 16 min

The factor theorem turns factorising a cubic or quartic from guesswork into a short search: test a few likely numbers, and the moment one gives zero you have a factor. Divide it out, factorise the quadratic that is left, and you have every root. On P3 this is often a complete question in itself, and it also sits inside partial fractions, integration and equation-solving questions whenever a cubic denominator or a cubic equation appears.

The theorem

The remainder theorem says the remainder on dividing p(x)p(x) by (x−a)(x - a) is p(a)p(a). A factor is exactly a divisor that leaves remainder zero. Put those together:

Key result

Factor theorem. (x−a)(x - a) is a factor of the polynomial p(x)p(x) if and only if p(a)=0p(a) = 0.

More generally, (ax−b)(ax - b) is a factor of p(x)p(x) if and only if p ⁣(ba)=0p\!\left(\dfrac{b}{a}\right) = 0.

Proof

Write p(x)≡(x−a)q(x)+Rp(x) \equiv (x - a)q(x) + R. By the remainder theorem, R=p(a)R = p(a).

If p(a)=0p(a) = 0, then p(x)≡(x−a)q(x)p(x) \equiv (x - a)q(x), so (x−a)(x - a) is a factor.

Conversely, if (x−a)(x - a) is a factor, then p(x)≡(x−a)q(x)p(x) \equiv (x - a)q(x), and substituting x=ax = a gives p(a)=0p(a) = 0.

Notice the "if and only if": the theorem works in both directions. "p(3)=0p(3) = 0, so (x−3)(x - 3) is a factor" and "(x−3)(x - 3) is a factor, so p(3)=0p(3) = 0" are both correct uses.

In graph terms, (x−a)(x - a) is a factor exactly when the curve y=p(x)y = p(x) crosses or touches the xx-axis at x=ax = a.

y = 2x^3 + 3x^2 - 8x + 3 (-3, 0) (0.5, 0) (1, 0)

The cubic y=2x3+3x2−8x+3=(x−1)(2x−1)(x+3)y = 2x^3 + 3x^2 - 8x + 3 = (x - 1)(2x - 1)(x + 3) meets the axis at x=−3x = -3, x=12x = \tfrac{1}{2} and x=1x = 1, one crossing for each linear factor.

Which values to try

You cannot test every number, but you do not need to. If p(x)p(x) has integer coefficients and (ax−b)(ax - b) is a factor (with aa, bb integers and no common factor), then bb divides the constant term and aa divides the leading coefficient. So:

Searching for a linear factor
  1. List the factors of the constant term: these are the candidates for bb.
  2. List the factors of the leading coefficient: these are the candidates for aa.
  3. Try x=±1x = \pm 1, then ±2\pm 2, ±3,…\pm 3, \ldots (values ±ba\pm\dfrac{b}{a}), until p(x)=0p(x) = 0.
  4. When p ⁣(ba)=0p\!\left(\tfrac{b}{a}\right) = 0, write down the factor (ax−b)(ax - b).
  5. Divide it out (long division or comparing coefficients) to get a quadratic quotient.
  6. Factorise the quadratic, or use the discriminant to show it does not factorise.
Tip

p(1)p(1) is just the sum of the coefficients, so it takes a second to check. p(−1)p(-1) is the sum with the signs of the odd powers flipped. Always try these two first.

Show, then factorise

Show that (x−1)(x - 1) is a factor of p(x)=2x3+3x2−8x+3p(x) = 2x^3 + 3x^2 - 8x + 3, and hence factorise p(x)p(x) completely.

Solutionp(1)=2+3−8+3=0,p(1) = 2 + 3 - 8 + 3 = 0,

so by the factor theorem (x−1)(x - 1) is a factor.

Compare coefficients in 2x3+3x2−8x+3≡(x−1)(2x2+cx−3)2x^3 + 3x^2 - 8x + 3 \equiv (x - 1)(2x^2 + cx - 3). The leading 2x22x^2 and the constant −3-3 are forced by the 2x32x^3 and the +3+3. The x2x^2 coefficient gives c−2=3c - 2 = 3, so c=5c = 5. Check the xx coefficient: −3−c=−8-3 - c = -8, which holds.

p(x)=(x−1)(2x2+5x−3)=(x−1)(2x−1)(x+3).p(x) = (x - 1)(2x^2 + 5x - 3) = (x - 1)(2x - 1)(x + 3).
A factor with coefficient not 1

Show that (2x+1)(2x + 1) is a factor of 4x3+8x2−x−24x^3 + 8x^2 - x - 2, and hence solve the equation 4x3+8x2−x−2=04x^3 + 8x^2 - x - 2 = 0.

Solution

2x+1=02x + 1 = 0 when x=−12x = -\tfrac{1}{2}:

p ⁣(−12)=4(−18)+8(14)+12−2=−12+2+12−2=0.p\!\left(-\tfrac{1}{2}\right) = 4\left(-\tfrac{1}{8}\right) + 8\left(\tfrac{1}{4}\right) + \tfrac{1}{2} - 2 = -\tfrac{1}{2} + 2 + \tfrac{1}{2} - 2 = 0.

So (2x+1)(2x + 1) is a factor. Compare coefficients in (2x+1)(2x2+cx−2)(2x + 1)(2x^2 + cx - 2): the x2x^2 coefficient gives 2c+2=82c + 2 = 8, so c=3c = 3; check the xx coefficient, c−4=−1c - 4 = -1.

4x3+8x2−x−2=(2x+1)(2x2+3x−2)=(2x+1)(2x−1)(x+2).4x^3 + 8x^2 - x - 2 = (2x + 1)(2x^2 + 3x - 2) = (2x + 1)(2x - 1)(x + 2).

Solutions: x=−12x = -\tfrac{1}{2}, x=12x = \tfrac{1}{2}, x=−2x = -2.

Searching for the first factor

Solve 3x3−4x2−17x+6=03x^3 - 4x^2 - 17x + 6 = 0.

Solution

Let p(x)=3x3−4x2−17x+6p(x) = 3x^3 - 4x^2 - 17x + 6. Candidates: ±1,±2,±3,±6\pm 1, \pm 2, \pm 3, \pm 6 and these divided by 33.

p(1)=3−4−17+6=−12p(1) = 3 - 4 - 17 + 6 = -12. p(−1)=−3−4+17+6=16p(-1) = -3 - 4 + 17 + 6 = 16. p(2)=24−16−34+6=−20p(2) = 24 - 16 - 34 + 6 = -20.

p(−2)=−24−16+34+6=0p(-2) = -24 - 16 + 34 + 6 = 0. So (x+2)(x + 2) is a factor.

Compare coefficients in (x+2)(3x2+cx+3)(x + 2)(3x^2 + cx + 3): the x2x^2 coefficient gives c+6=−4c + 6 = -4, so c=−10c = -10; check the xx coefficient, 3+2c=−173 + 2c = -17.

3x2−10x+3=(3x−1)(x−3).3x^2 - 10x + 3 = (3x - 1)(x - 3).

So p(x)=(x+2)(3x−1)(x−3)p(x) = (x + 2)(3x - 1)(x - 3) and the solutions are x=−2x = -2, x=13x = \tfrac{1}{3}, x=3x = 3.

Watch out

Once you have found one factor, stop searching and divide. Finding the other roots by more trial and error is slow and misses irrational roots; the quadratic quotient gives them directly, by factorising or by the formula.

Unknown coefficients

If you are told that certain expressions are factors, each one gives an equation p(…)=0p(\ldots) = 0.

Two given factors

(x−3)(x - 3) and (x+1)(x + 1) are both factors of p(x)=x3+ax2+bx+6p(x) = x^3 + ax^2 + bx + 6. Find aa and bb, and the third factor.

Solution

p(3)=0p(3) = 0: 27+9a+3b+6=027 + 9a + 3b + 6 = 0, so 9a+3b=−339a + 3b = -33, i.e. 3a+b=−113a + b = -11.

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

Adding: 4a=−164a = -16, a=−4a = -4, and then b=a+5=1b = a + 5 = 1.

p(x)=x3−4x2+x+6p(x) = x^3 - 4x^2 + x + 6. The product of the two known factors is (x−3)(x+1)=x2−2x−3(x - 3)(x + 1) = x^2 - 2x - 3. The third factor must be (x+c)(x + c) with −3c=6-3c = 6 (constant terms), so c=−2c = -2: the third factor is (x−2)(x - 2).

Check: (x−3)(x+1)(x−2)(x - 3)(x + 1)(x - 2) has x2x^2 coefficient −3+1−2=−4-3 + 1 - 2 = -4.

Quadratic factors and quartics

A quadratic x2+px+qx^2 + px + q that factorises as (x−α)(x−β)(x - \alpha)(x - \beta) is a factor of p(x)p(x) exactly when both (x−α)(x - \alpha) and (x−β)(x - \beta) are factors, so you need p(α)=0p(\alpha) = 0 and p(β)=0p(\beta) = 0.

A quartic with a quadratic factor

The polynomial p(x)=x4+ax3+bx2−8x−4p(x) = x^4 + ax^3 + bx^2 - 8x - 4 has x2−x−2x^2 - x - 2 as a factor.

(a) Find aa and bb.

(b) Hence factorise p(x)p(x) completely and solve p(x)=0p(x) = 0.

Solution

(a) x2−x−2=(x−2)(x+1)x^2 - x - 2 = (x - 2)(x + 1), so p(2)=0p(2) = 0 and p(−1)=0p(-1) = 0.

p(2)=16+8a+4b−16−4=0⇒8a+4b=4⇒2a+b=1p(2) = 16 + 8a + 4b - 16 - 4 = 0 \Rightarrow 8a + 4b = 4 \Rightarrow 2a + b = 1.

p(−1)=1−a+b+8−4=0⇒−a+b=−5p(-1) = 1 - a + b + 8 - 4 = 0 \Rightarrow -a + b = -5.

Subtract: 3a=63a = 6, so a=2a = 2 and b=−3b = -3.

(b) p(x)=x4+2x3−3x2−8x−4p(x) = x^4 + 2x^3 - 3x^2 - 8x - 4. Write p(x)≡(x2−x−2)(x2+cx+2)p(x) \equiv (x^2 - x - 2)(x^2 + cx + 2), where the 22 makes the constant (−2)(2)=−4(-2)(2) = -4. The x3x^3 coefficient: c−1=2c - 1 = 2, so c=3c = 3. Check the xx coefficient: −2−2c=−8-2 - 2c = -8.

p(x)=(x2−x−2)(x2+3x+2)=(x−2)(x+1)(x+1)(x+2)=(x−2)(x+1)2(x+2).p(x) = (x^2 - x - 2)(x^2 + 3x + 2) = (x - 2)(x + 1)(x + 1)(x + 2) = (x - 2)(x + 1)^2(x + 2).

Solutions: x=2x = 2, x=−1x = -1 (a repeated root) and x=−2x = -2.

A repeated factor shows on the graph as a point where the curve touches the axis instead of crossing it.

y = x^4 + 2x^3 - 3x^2 - 8x - 4 (-1, 0) (-2, 0) (2, 0)

How many real roots?

Once a cubic is written as (linear factor) ×\times (quadratic), the discriminant of the quadratic tells you how many more real roots there are.

Key result

If p(x)=(x−a)(x2+px+q)p(x) = (x - a)(x^2 + px + q):

p2−4qp^2 - 4qReal roots of p(x)=0p(x) = 0
>0> 0three (two from the quadratic, plus aa, unless one coincides with aa)
=0= 0the quadratic gives one repeated root, plus aa
<0< 0only x=ax = a
A cubic with one real root

Show that x3+3x2+4x+2=0x^3 + 3x^2 + 4x + 2 = 0 has exactly one real root, and find it.

Solution

Try x=−1x = -1: −1+3−4+2=0-1 + 3 - 4 + 2 = 0. So (x+1)(x + 1) is a factor.

x3+3x2+4x+2≡(x+1)(x2+cx+2)x^3 + 3x^2 + 4x + 2 \equiv (x + 1)(x^2 + cx + 2): the x2x^2 coefficient gives c+1=3c + 1 = 3, so c=2c = 2; check xx: 2+c=42 + c = 4.

x2+2x+2x^2 + 2x + 2 has discriminant 4−8=−4<04 - 8 = -4 < 0, so it has no real roots.

The equation has exactly one real root, x=−1x = -1.

"Hence" with a substitution

Cambridge likes to reuse a factorised polynomial in a disguised equation. If p(x)=0p(x) = 0 has roots α,β,γ\alpha, \beta, \gamma, then p(ey)=0p(e^y) = 0 means ey=αe^y = \alpha, β\beta or γ\gamma, and p(cos⁡θ)=0p(\cos\theta) = 0 means cos⁡θ=α\cos\theta = \alpha, β\beta or γ\gamma. Some of these will be impossible.

Hence with exponentials

Using the factorisation 2x3+3x2−8x+3=(x−1)(2x−1)(x+3)2x^3 + 3x^2 - 8x + 3 = (x - 1)(2x - 1)(x + 3), solve the equation

2e3y+3e2y−8ey+3=0.2e^{3y} + 3e^{2y} - 8e^{y} + 3 = 0.
Solution

This is p(x)=0p(x) = 0 with x=eyx = e^y, since e3y=(ey)3e^{3y} = (e^y)^3 and e2y=(ey)2e^{2y} = (e^y)^2. So

ey=1,ey=12,orey=−3.e^y = 1, \quad e^y = \tfrac{1}{2}, \quad\text{or}\quad e^y = -3.

ey=1⇒y=0e^y = 1 \Rightarrow y = 0. ey=12⇒y=ln⁡12=−ln⁡2e^y = \tfrac{1}{2} \Rightarrow y = \ln\tfrac{1}{2} = -\ln 2. ey=−3e^y = -3 is impossible since ey>0e^y > 0.

Solutions: y=0y = 0 and y=−ln⁡2y = -\ln 2.

Common mistakes

Watch out

Sign of the factor. p(−2)=0p(-2) = 0 means (x+2)(x + 2) is a factor, not (x−2)(x - 2). And p ⁣(13)=0p\!\left(\tfrac{1}{3}\right) = 0 means (3x−1)(3x - 1) is a factor.

Watch out

"Factorise completely" but stopping at the quadratic. (x+2)(3x2−10x+3)(x + 2)(3x^2 - 10x + 3) is not complete; the quadratic factorises further. If it does not factorise, say so (show its discriminant is negative, or note it has irrational roots).

Watch out

Not writing the conclusion. "Show that (x−1)(x - 1) is a factor" needs the working p(1)=2+3−8+3=0p(1) = 2 + 3 - 8 + 3 = 0 and the sentence "so (x−1)(x - 1) is a factor". The answer is given in the question, so the mark is entirely for the working and the conclusion.

Exam tip
  • For "show that" questions, substitute, show every term, reach =0= 0, conclude.
  • "Hence" means use the factor you have just found or been given. Starting again with a different factor can lose the method marks.
  • Division by comparing coefficients is quick: fix the leading term and the constant first, then find the middle coefficient from one power and check it with another.
  • In equations like p(ey)=0p(e^y) = 0 or p(sin⁡θ)=0p(\sin\theta) = 0, reject impossible values (ey≤0e^y \le 0, ∣sin⁡θ∣>1|\sin\theta| > 1) explicitly, with the reason.

Summary

Summary
  • (x−a)(x - a) is a factor of p(x)  ⟺  p(a)=0p(x) \iff p(a) = 0; (ax−b)(ax - b) is a factor   ⟺  p ⁣(ba)=0\iff p\!\left(\tfrac{b}{a}\right) = 0.
  • Try x=±1x = \pm 1 first, then other factors of the constant term divided by factors of the leading coefficient.
  • After finding one factor, divide to get a quadratic, then factorise it or use its discriminant.
  • Given factors produce equations p(…)=0p(\ldots) = 0 for unknown coefficients.
  • A quadratic factor (x−α)(x−β)(x - \alpha)(x - \beta) needs p(α)=p(β)=0p(\alpha) = p(\beta) = 0.
  • A repeated factor means the curve touches the axis there.
  • In "hence" questions, substitute x=eyx = e^y, 2y2^y, cos⁡θ\cos\theta, etc., and reject impossible values.

Practice

Question
  1. Factorise x3−6x2+11x−6x^3 - 6x^2 + 11x - 6 completely.
  2. Given that (x+2)(x + 2) is a factor of x3+kx2−4x−8x^3 + kx^2 - 4x - 8, find kk and factorise the cubic completely.
  3. Solve 2x3−x2−13x−6=02x^3 - x^2 - 13x - 6 = 0.
  4. Show that (3x−2)(3x - 2) is a factor of 3x3−2x2−6x+43x^3 - 2x^2 - 6x + 4, and hence find the exact roots of 3x3−2x2−6x+4=03x^3 - 2x^2 - 6x + 4 = 0.
  5. Show that (x−1)(x - 1) and (x+2)(x + 2) are factors of x4+x3−x2+x−2x^4 + x^3 - x^2 + x - 2, and hence show that the equation x4+x3−x2+x−2=0x^4 + x^3 - x^2 + x - 2 = 0 has exactly two real roots.
  6. Given that 2x3+3x2−8x+3=(x−1)(2x−1)(x+3)2x^3 + 3x^2 - 8x + 3 = (x - 1)(2x - 1)(x + 3), solve 2cos⁡3θ+3cos⁡2θ−8cos⁡θ+3=02\cos^3\theta + 3\cos^2\theta - 8\cos\theta + 3 = 0 for 0∘≤θ≤360∘0^\circ \le \theta \le 360^\circ.
  7. The polynomial p(x)=6x3+ax2+bx−2p(x) = 6x^3 + ax^2 + bx - 2 has (2x+1)(2x + 1) as a factor, and leaves remainder −6-6 when divided by (x+1)(x + 1). (a) Find aa and bb. (b) Factorise p(x)p(x) completely. (c) Hence solve 6×8y−7×4y−9×2y−2=06 \times 8^y - 7 \times 4^y - 9 \times 2^y - 2 = 0.
  8. The cubic x3+3x2−4x^3 + 3x^2 - 4 has a repeated factor. Find it, factorise the cubic fully, and describe what happens to the graph y=x3+3x2−4y = x^3 + 3x^2 - 4 at each root.
Answers
  1. p(1)=1−6+11−6=0p(1) = 1 - 6 + 11 - 6 = 0, so (x−1)(x - 1) is a factor. (x−1)(x2−5x+6)=(x−1)(x−2)(x−3)(x - 1)(x^2 - 5x + 6) = (x - 1)(x - 2)(x - 3).

  2. p(−2)=−8+4k+8−8=4k−8=0p(-2) = -8 + 4k + 8 - 8 = 4k - 8 = 0, so k=2k = 2. Then x3+2x2−4x−8=x2(x+2)−4(x+2)=(x+2)(x2−4)=(x+2)2(x−2)x^3 + 2x^2 - 4x - 8 = x^2(x + 2) - 4(x + 2) = (x + 2)(x^2 - 4) = (x + 2)^2(x - 2).

  3. p(3)=54−9−39−6=0p(3) = 54 - 9 - 39 - 6 = 0, so (x−3)(x - 3) is a factor. Comparing coefficients: (x−3)(2x2+5x+2)=(x−3)(2x+1)(x+2)(x - 3)(2x^2 + 5x + 2) = (x - 3)(2x + 1)(x + 2). Roots x=3x = 3, −12-\tfrac{1}{2}, −2-2.

  4. p ⁣(23)=3⋅827−2⋅49−4+4=89−89=0p\!\left(\tfrac{2}{3}\right) = 3 \cdot \tfrac{8}{27} - 2 \cdot \tfrac{4}{9} - 4 + 4 = \tfrac{8}{9} - \tfrac{8}{9} = 0, so (3x−2)(3x - 2) is a factor. Grouping: x2(3x−2)−2(3x−2)=(3x−2)(x2−2)x^2(3x - 2) - 2(3x - 2) = (3x - 2)(x^2 - 2). Roots x=23x = \tfrac{2}{3}, 2\sqrt{2}, −2-\sqrt{2}.

  5. p(1)=1+1−1+1−2=0p(1) = 1 + 1 - 1 + 1 - 2 = 0 and p(−2)=16−8−4−2−2=0p(-2) = 16 - 8 - 4 - 2 - 2 = 0, so both are factors. Their product is x2+x−2x^2 + x - 2, and x4+x3−x2+x−2≡(x2+x−2)(x2+1)x^4 + x^3 - x^2 + x - 2 \equiv (x^2 + x - 2)(x^2 + 1); expanding the right-hand side gives x4+x3−2x2+x2+x−2x^4 + x^3 - 2x^2 + x^2 + x - 2, which confirms it. x2+1=0x^2 + 1 = 0 has no real roots (discriminant −4<0-4 < 0), so the only real roots are x=1x = 1 and x=−2x = -2: exactly two.

  6. cos⁡θ=1\cos\theta = 1, 12\tfrac{1}{2} or −3-3. cos⁡θ=−3\cos\theta = -3 is impossible since −1≤cos⁡θ≤1-1 \le \cos\theta \le 1. cos⁡θ=1\cos\theta = 1: θ=0∘,360∘\theta = 0^\circ, 360^\circ. cos⁡θ=12\cos\theta = \tfrac{1}{2}: θ=60∘,300∘\theta = 60^\circ, 300^\circ. Solutions 0∘,60∘,300∘,360∘0^\circ, 60^\circ, 300^\circ, 360^\circ.

  7. (a) p ⁣(−12)=−34+a4−b2−2=0p\!\left(-\tfrac{1}{2}\right) = -\tfrac{3}{4} + \tfrac{a}{4} - \tfrac{b}{2} - 2 = 0; multiply by 44: a−2b=11a - 2b = 11. p(−1)=−6+a−b−2=−6⇒a−b=2p(-1) = -6 + a - b - 2 = -6 \Rightarrow a - b = 2. Subtracting: −b=9-b = 9, so b=−9b = -9, a=−7a = -7. (b) 6x3−7x2−9x−2≡(2x+1)(3x2+cx−2)6x^3 - 7x^2 - 9x - 2 \equiv (2x + 1)(3x^2 + cx - 2); x2x^2: 2c+3=−72c + 3 = -7, c=−5c = -5; check xx: −4+c=−9-4 + c = -9. Then 3x2−5x−2=(3x+1)(x−2)3x^2 - 5x - 2 = (3x + 1)(x - 2), so p(x)=(2x+1)(3x+1)(x−2)p(x) = (2x + 1)(3x + 1)(x - 2). (c) With x=2yx = 2^y (since 8y=(2y)38^y = (2^y)^3 and 4y=(2y)24^y = (2^y)^2): 2y=−122^y = -\tfrac{1}{2} or −13-\tfrac{1}{3} (impossible, 2y>02^y > 0) or 2y=22^y = 2. So y=1y = 1.

  8. p(1)=1+3−4=0p(1) = 1 + 3 - 4 = 0, so (x−1)(x - 1) is a factor: x3+3x2−4=(x−1)(x2+4x+4)=(x−1)(x+2)2x^3 + 3x^2 - 4 = (x - 1)(x^2 + 4x + 4) = (x - 1)(x + 2)^2. The repeated factor is (x+2)(x + 2). The graph crosses the xx-axis at x=1x = 1 and touches it at x=−2x = -2 (a local maximum on the axis, since the curve is negative on both sides of −2-2 near there: p(−3)=−4p(-3) = -4, p(−1)=−2p(-1) = -2).

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action