Sub topic 12
Using factoring to solve equations
This chapter assumes you can factor out a greatest common factor, factor trinomials, and recognize a difference of squares, a perfect square trinomial, and a sum or difference of cubes. It also assumes you can multiply binomials and check a factorization by expanding it. Here you use those skills to solve polynomial equations.
Why factored form solves equations
Expanded form hides the answers to an equation. Look at x^2 - 5x + 6 = 0. You cannot read a solution from it, and guessing is slow. Once the left side is factored, the solutions are visible.
The tool that makes this work is the zero product property.
- Zero product property: if
A * B = 0, thenA = 0orB = 0(or both).
The property holds because the only way a product of numbers can be zero is for one of the factors to be zero. It does not hold for other numbers. If A * B = 12, you cannot conclude that A = 3 or B = 4, because many pairs multiply to 12. Zero is the only target value that makes each factor easy to isolate.
This is why the first rule of solving by factoring is that one side of the equation must be zero.
The basic procedure
- Move every term to one side so the other side is
0. - Write the polynomial in standard form, with the highest power first. This step is optional but makes factoring easier.
- Factor completely.
- Set each factor that contains the variable equal to zero.
- Solve each of those equations.
- Check each solution in the original equation.
x^2 - 5x + 6 = 0
(x - 2)(x - 3) = 0
x - 2 = 0 or x - 3 = 0
x = 2 or x = 3Check x = 2: 4 - 10 + 6 = 0. Check x = 3: 9 - 15 + 6 = 0. Both work.
Worked examples
A trinomial that needs rearranging
Solve x^2 + 6x = 16.
The right side is not zero. A common mistake is to factor the left side as x(x + 6) = 16 and set x = 16 or x + 6 = 16. That fails, because the product is 16, not 0. Subtract 16 from both sides first.
x^2 + 6x - 16 = 0You need two numbers with product -16 and sum 6. The pair 8 and -2 works.
(x + 8)(x - 2) = 0
x + 8 = 0 or x - 2 = 0
x = -8 or x = 2Check x = -8: 64 - 48 = 16. Check x = 2: 4 + 12 = 16. Both are correct.
Factoring out a common factor first
Solve 3x^2 - 12x = 0.
The greatest common factor is 3x.
3x(x - 4) = 0
3x = 0 or x - 4 = 0
x = 0 or x = 4Do not divide both sides by x to simplify. Dividing by x removes the solution x = 0, because you would be dividing by zero when x = 0. Factoring keeps both solutions. The constant factor 3 never equals zero, so it gives no solution. You only set factors that contain the variable equal to zero.
A trinomial with a leading coefficient other than 1
Solve 2x^2 + 7x + 3 = 0.
From the ac method, 2x^2 + 7x + 3 = (2x + 1)(x + 3).
(2x + 1)(x + 3) = 0
2x + 1 = 0 or x + 3 = 0
x = -1/2 or x = -3A factor like 2x + 1 produces a fraction. That is normal, so do not conclude something went wrong.
A difference of squares
Solve 4x^2 - 49 = 0.
(2x - 7)(2x + 7) = 0
x = 7/2 or x = -7/2You can also write the answer as x = ±7/2.
A perfect square trinomial: a repeated root
Solve x^2 + 6x + 9 = 0.
(x + 3)^2 = 0
x + 3 = 0
x = -3The two factors are identical, so both give the same answer. The equation has one solution, called a double root or a root of multiplicity 2. Write it once.
Higher-degree equations
The zero product property works for any number of factors. A degree-3 equation can have up to three solutions, and each factor that contains the variable adds one.
Solve x^3 - 9x = 0.
x(x^2 - 9) = 0
x(x - 3)(x + 3) = 0
x = 0 or x = 3 or x = -3The first step was the greatest common factor, and the second was a difference of squares. This is the same order as the factoring strategy from earlier in the tutorial. Using it here means you do not stop at x(x^2 - 9), which would leave a factor that still splits.
Now try a four-term equation: x^3 + 3x^2 - 4x - 12 = 0.
x^2(x + 3) - 4(x + 3) = 0
(x + 3)(x^2 - 4) = 0
(x + 3)(x - 2)(x + 2) = 0
x = -3 or x = 2 or x = -2Grouping gives (x + 3)(x^2 - 4), and x^2 - 4 is a difference of squares, so you keep factoring.
A sum or difference of cubes can also appear. Solve x^3 - 8 = 0.
(x - 2)(x^2 + 2x + 4) = 0
x - 2 = 0 or x^2 + 2x + 4 = 0The first factor gives x = 2. The quadratic factor is prime over the integers. Its discriminant b^2 - 4ac = 4 - 16 = -12 is negative, so it has no real solutions. The only real solution is x = 2. Complex solutions exist, but they need the quadratic formula, which is outside this chapter.
Common errors
| Error | Why it fails | Fix |
|---|---|---|
| Factoring when the right side is not zero | The property only applies to a product equal to 0 | Move all terms to one side first |
| Dividing both sides by a variable factor | It discards the solution that makes that factor zero | Factor the common factor out instead |
| Setting the constant factor equal to zero | A nonzero constant never equals zero | Ignore it, because it gives no solution |
| Sign errors when solving `x + 3 = 0` | The solution is `-3`, not `3` | Solve each factor as its own equation |
| Stopping before factoring completely | A remaining factor may hide more solutions | Run the full factoring strategy |
| Skipping the check | Arithmetic slips go unnoticed | Substitute each solution into the original equation |
What the solutions mean
The solutions of f(x) = 0 are the x-intercepts of the graph of y = f(x). For x^2 - 5x + 6, the graph crosses the x-axis at x = 2 and x = 3. A double root, like the one in (x + 3)^2, makes the graph touch the axis and turn back without crossing it. A prime quadratic factor, like the one in x^3 - 8, contributes no x-intercepts.
The diagram summarizes the decision path.
Verifying with code
SymPy can solve the equation and confirm your factoring. The solve function returns the solutions, and factor shows the factored form you would use by hand.
from sympy import symbols, factor, solve
x = symbols('x')
equation = x**3 + 3*x**2 - 4*x - 12
print(factor(equation))
print(solve(equation, x))The output is (x - 2)*(x + 2)*(x + 3) followed by the list [-3, -2, 2]. This matches the hand solution above. Treat the code as a check, not a replacement, because you need to be able to factor on an exam and to understand why the answers appear.
When factoring is not enough
Many equations do not factor over the integers. For example, x^2 + 2x - 5 = 0 has no integer pair with product -5 and sum 2. It still has real solutions, so "does not factor" does not mean "has no solution." Methods such as the quadratic formula or completing the square handle these cases. Factoring is the fastest method when it works, so try it first, then switch if no pair of numbers fits.
Exercises
Exercise
Solve x^2 - 4x = 21. Show the step that makes the zero product property usable.
Show answer
Subtract 21 from both sides to get x^2 - 4x - 21 = 0. Factor to (x - 7)(x + 3) = 0. Then x = 7 or x = -3. Check: 49 - 28 = 21 and 9 + 12 = 21.
Exercise
Solve 6x^3 - 24x = 0 completely.
Show answer
Factor out 6x: 6x(x^2 - 4) = 0. Factor the difference of squares: 6x(x - 2)(x + 2) = 0. The solutions are x = 0, x = 2, and x = -2. The constant 6 gives no solution.
Exercise
A student solves x(x - 2) = 3x by dividing both sides by x, getting x - 2 = 3 and x = 5. What did the student miss, and what is the full solution set?
Show answer
Dividing by x lost the solution x = 0. Subtract 3x from both sides: x^2 - 5x = 0, so x(x - 5) = 0. The solutions are x = 0 and x = 5.
Exercise
Solve x^3 + 27 = 0 over the real numbers.
Show answer
Use the sum of cubes: (x + 3)(x^2 - 3x + 9) = 0. The first factor gives x = -3. The quadratic factor has discriminant 9 - 36 = -27, which is negative, so it gives no real solutions. The only real solution is x = -3.