Skip to content
Family Table Math
Auto

Solving Quadratic Equations by Factoring

A quadratic equation asks: which values of xx make ax2+bx+cax^2 + bx + c equal to zero (or to some other number)? You can’t just “get xx by itself” the way you do with a linear equation, because xx shows up squared and on its own. Instead, you factor, and let a simple fact about zero do the work.

A quadratic equation can be written in the form

ax2+bx+c=0,a≠0ax^2 + bx + c = 0, \qquad a \ne 0

The solutions are called the roots of the equation. A quadratic equation can have two roots, one root, or no real roots.

If two numbers multiply to give 00, then at least one of them must be 00:

if AB=0, then A=0 or B=0\text{if } AB = 0, \text{ then } A = 0 \text{ or } B = 0

So once the equation looks like (x−2)(x+4)=0(x - 2)(x + 4) = 0, you know that x−2=0x - 2 = 0 or x+4=0x + 4 = 0.

This only works with 00. If AB=6AB = 6, then AA and BB could be 22 and 33, or 11 and 66, or 1212 and 12\tfrac{1}{2}… you can’t conclude anything about either factor. That’s why the first step is always to get 00 on one side.

  1. Rearrange so that one side is 00: ax2+bx+c=0ax^2 + bx + c = 0. Expand brackets first if there are any.
  2. Factor the other side completely. Look for a common factor first, then factor the trinomial or special case.
  3. Set each factor equal to 00 and solve.
  4. Check each root by substituting it into the original equation.

Sometimes both factors are the same, as in (x−3)2=0(x - 3)^2 = 0. Then both give x=3x = 3, so there’s only one root. It’s called a double root. On the graph, the parabola just touches the xx-axis at its vertex instead of crossing it.

The roots of ax2+bx+c=0ax^2 + bx + c = 0 are exactly the xx-intercepts (zeros) of the relation y=ax2+bx+cy = ax^2 + bx + c, because the xx-intercepts are where y=0y = 0. So solving the equation tells you where the graph crosses the xx-axis, and a graph (on paper or with graphing technology like Desmos) lets you check your roots.

Left: y = x squared + 2x - 8 crosses the x-axis at -4 and 2. Right: y = x squared - 6x + 9 touches the x-axis only at 3 x² + 2x - 8 = 0 −2 −8 −6 −4 −2 2 4 −4 2 y = x² + 2x − 8 2 4 6 −2 2 4 6 8 10 x² - 6x + 9 = 0 double root x = 3 y = x² − 6x + 9
Two roots means the graph crosses the xx-axis twice; a double root means it touches the axis once.

Solve x2+2x−8=0x^2 + 2x - 8 = 0.

Solution. The equation already has 00 on the right. Find two numbers that multiply to −8-8 and add to 22: they’re 44 and −2-2.

x2+2x−8=0(x+4)(x−2)=0\begin{aligned} x^2 + 2x - 8 &= 0 \\ (x + 4)(x - 2) &= 0 \end{aligned}

So x+4=0x + 4 = 0 or x−2=0x - 2 = 0, which gives x=−4x = -4 or x=2x = 2.

Check: (−4)2+2(−4)−8=16−8−8=0(-4)^2 + 2(-4) - 8 = 16 - 8 - 8 = 0 ✓ and 22+2(2)−8=4+4−8=02^2 + 2(2) - 8 = 4 + 4 - 8 = 0 ✓

These are the xx-intercepts in the left graph above.

Solve 2x2=5x+32x^2 = 5x + 3.

Solution. Move everything to the left side so the right side is 00:

2x2−5x−3=02x^2 - 5x - 3 = 0

Factor by looking for two numbers that multiply to 2(−3)=−62(-3) = -6 and add to −5-5: they’re −6-6 and 11.

2x2−6x+x−3=02x(x−3)+1(x−3)=0(2x+1)(x−3)=0\begin{aligned} 2x^2 - 6x + x - 3 &= 0 \\ 2x(x - 3) + 1(x - 3) &= 0 \\ (2x + 1)(x - 3) &= 0 \end{aligned}

So 2x+1=02x + 1 = 0 or x−3=0x - 3 = 0, which gives x=−12x = -\tfrac{1}{2} or x=3x = 3.

Check in the original equation. For x=3x = 3: the left side is 2(9)=182(9) = 18 and the right side is 5(3)+3=185(3) + 3 = 18. ✓ For x=−12x = -\tfrac{1}{2}: the left side is 2(14)=122\left(\tfrac{1}{4}\right) = \tfrac{1}{2} and the right side is 5(−12)+3=125\left(-\tfrac{1}{2}\right) + 3 = \tfrac{1}{2}. ✓

Solve x2+9=6xx^2 + 9 = 6x, and describe what the graph of y=x2−6x+9y = x^2 - 6x + 9 looks like near its root.

Solution. Rearrange:

x2−6x+9=0x^2 - 6x + 9 = 0

This is a perfect square trinomial:

(x−3)2=0(x - 3)^2 = 0

Both factors give x−3=0x - 3 = 0, so the only root is x=3x = 3, a double root.

Check: the left side is 32+9=183^2 + 9 = 18 and the right side is 6(3)=186(3) = 18. ✓

The graph of y=x2−6x+9y = x^2 - 6x + 9 has its vertex at (3,0)(3, 0), so it touches the xx-axis at 33 without crossing it (the right graph above).

Solve (x+2)(x−3)=14(x + 2)(x - 3) = 14.

Solution. It’s tempting to set each bracket equal to 1414, but the zero product property only works with 00. Expand, then rearrange:

(x+2)(x−3)=14x2−3x+2x−6=14x2−x−6−14=0x2−x−20=0(x−5)(x+4)=0\begin{aligned} (x + 2)(x - 3) &= 14 \\ x^2 - 3x + 2x - 6 &= 14 \\ x^2 - x - 6 - 14 &= 0 \\ x^2 - x - 20 &= 0 \\ (x - 5)(x + 4) &= 0 \end{aligned}

So x=5x = 5 or x=−4x = -4.

Check: (5+2)(5−3)=7×2=14(5 + 2)(5 - 3) = 7 \times 2 = 14 ✓ and (−4+2)(−4−3)=(−2)(−7)=14(-4 + 2)(-4 - 3) = (-2)(-7) = 14 ✓

Using the zero product property when the other side isn’t 00. From (x+2)(x−3)=14(x + 2)(x - 3) = 14 you can’t say x+2=14x + 2 = 14. Expand and rearrange to get 00 on one side first.

Dividing both sides by xx. In 3x2=12x3x^2 = 12x, dividing by xx gives x=4x = 4 and loses the root x=0x = 0. Instead, rearrange and factor: 3x2−12x=03x^2 - 12x = 0, so 3x(x−4)=03x(x - 4) = 0, which gives x=0x = 0 or x=4x = 4.

Getting the sign of a root wrong. (x+4)(x−2)=0(x + 4)(x - 2) = 0 gives x=−4x = -4 and x=2x = 2. Solve each factor =0= 0 rather than just copying the numbers.

Forgetting to solve a factor like 2x+1=02x + 1 = 0. The root is −12-\tfrac{1}{2}, not −1-1.

Listing a double root twice, or treating a common factor as a root. (x−3)2=0(x - 3)^2 = 0 has one root, 33. And in 2(x−7)(x+3)=02(x - 7)(x + 3) = 0, the 22 can never be 00, so it doesn’t give a root: the roots are just 77 and −3-3.

1. (Warm-up) Solve each equation.

  • (a) (x−7)(x+1)=0(x - 7)(x + 1) = 0
  • (b) x(2x−5)=0x(2x - 5) = 0
Solution

(a) x−7=0x - 7 = 0 or x+1=0x + 1 = 0, so x=7x = 7 or x=−1x = -1.

(b) x=0x = 0 or 2x−5=02x - 5 = 0, so x=0x = 0 or x=52x = \tfrac{5}{2}.

2. (Warm-up) Solve x2−9x+20=0x^2 - 9x + 20 = 0.

Solution

Two numbers that multiply to 2020 and add to −9-9: −4-4 and −5-5.

(x−4)(x−5)=0(x - 4)(x - 5) = 0

So x=4x = 4 or x=5x = 5.

3. (Warm-up) Solve x2−49=0x^2 - 49 = 0.

Solution

This is a difference of squares:

(x−7)(x+7)=0(x - 7)(x + 7) = 0

So x=7x = 7 or x=−7x = -7.

4. (Core) Solve 5x2=20x5x^2 = 20x.

Solution

Don’t divide by xx. Rearrange and take out the common factor:

5x2−20x=05x(x−4)=0\begin{aligned} 5x^2 - 20x &= 0 \\ 5x(x - 4) &= 0 \end{aligned}

So x=0x = 0 or x=4x = 4.

Check: 5(0)2=0=20(0)5(0)^2 = 0 = 20(0) ✓ and 5(16)=80=20(4)5(16) = 80 = 20(4) ✓

5. (Core) Solve 3x2+10x−8=03x^2 + 10x - 8 = 0.

Solution

Two numbers that multiply to 3(−8)=−243(-8) = -24 and add to 1010: 1212 and −2-2.

3x2+12x−2x−8=03x(x+4)−2(x+4)=0(3x−2)(x+4)=0\begin{aligned} 3x^2 + 12x - 2x - 8 &= 0 \\ 3x(x + 4) - 2(x + 4) &= 0 \\ (3x - 2)(x + 4) &= 0 \end{aligned}

So x=23x = \tfrac{2}{3} or x=−4x = -4.

Check x=−4x = -4: 3(16)+10(−4)−8=48−40−8=03(16) + 10(-4) - 8 = 48 - 40 - 8 = 0 ✓

6. (Core) Solve x2+25=10xx^2 + 25 = 10x. What does your answer tell you about the graph of y=x2−10x+25y = x^2 - 10x + 25?

Solutionx2−10x+25=0(x−5)2=0\begin{aligned} x^2 - 10x + 25 &= 0 \\ (x - 5)^2 &= 0 \end{aligned}

The only root is x=5x = 5, a double root. The graph of y=x2−10x+25y = x^2 - 10x + 25 touches the xx-axis at (5,0)(5, 0), which is its vertex.

7. (Core) Solve 2x2−8x−42=02x^2 - 8x - 42 = 0.

Solution

Take out the common factor 22 first:

2(x2−4x−21)=02(x−7)(x+3)=0\begin{aligned} 2(x^2 - 4x - 21) &= 0 \\ 2(x - 7)(x + 3) &= 0 \end{aligned}

The factor 22 can’t be 00, so x−7=0x - 7 = 0 or x+3=0x + 3 = 0: x=7x = 7 or x=−3x = -3.

8. (Core) Solve (x+1)(x+4)=10(x + 1)(x + 4) = 10.

Solutionx2+4x+x+4=10x2+5x−6=0(x+6)(x−1)=0\begin{aligned} x^2 + 4x + x + 4 &= 10 \\ x^2 + 5x - 6 &= 0 \\ (x + 6)(x - 1) &= 0 \end{aligned}

So x=−6x = -6 or x=1x = 1.

Check: (1+1)(1+4)=2×5=10(1 + 1)(1 + 4) = 2 \times 5 = 10 ✓ and (−6+1)(−6+4)=(−5)(−2)=10(-6 + 1)(-6 + 4) = (-5)(-2) = 10 ✓

9. (Challenge) One root of x2+kx−12=0x^2 + kx - 12 = 0 is x=3x = 3. Find kk, then find the other root.

Solution

Substitute x=3x = 3:

9+3k−12=0⇒3k=3⇒k=19 + 3k - 12 = 0 \quad\Rightarrow\quad 3k = 3 \quad\Rightarrow\quad k = 1

The equation is x2+x−12=0x^2 + x - 12 = 0, which factors as (x+4)(x−3)=0(x + 4)(x - 3) = 0. The other root is x=−4x = -4.

10. (Challenge) Maya solves x(x−3)=2(x−3)x(x - 3) = 2(x - 3) by dividing both sides by (x−3)(x - 3), and gets x=2x = 2. Solve the equation correctly, and explain what went wrong.

Solution

Expand and rearrange:

x2−3x=2x−6x2−5x+6=0(x−2)(x−3)=0\begin{aligned} x^2 - 3x &= 2x - 6 \\ x^2 - 5x + 6 &= 0 \\ (x - 2)(x - 3) &= 0 \end{aligned}

So x=2x = 2 or x=3x = 3.

Check x=3x = 3: both sides are 00, since 3(0)=2(0)3(0) = 2(0). ✓ Maya lost this root because when x=3x = 3, she was dividing by x−3=0x - 3 = 0, and you can never divide by zero. Never divide both sides by an expression that contains xx; rearrange and factor instead.