Sub topic 13
Solving Quadratics by Factoring
This chapter assumes you can expand products with FOIL, factor out a greatest common factor, and factor trinomials such as x² + bx + c. It also assumes you know the zero product property: if A · B = 0, then A = 0 or B = 0. Here you combine those skills into one routine for solving quadratic equations.
The Core Idea
A quadratic equation in standard form is ax² + bx + c = 0 with a ≠ 0. If the left side factors, the zero product property splits one quadratic into two linear equations. Each linear equation gives one root, which is a value of x that makes the equation true.
For example, x² − 5x + 6 = 0 factors as (x − 2)(x − 3) = 0. Then x − 2 = 0 or x − 3 = 0, so x = 2 or x = 3.
Step 1: Get Zero on One Side
The zero product property only works when the product equals zero. Take the equation x² = 3x + 10. Subtract 3x and 10 from both sides:
x² − 3x − 10 = 0
Now factor. You need two integers with product −10 and sum −3. The pair is −5 and 2, so:
(x − 5)(x + 2) = 0, which gives x = 5 or x = −2.
Step 2: Pull Out a Common Factor First
A common factor simplifies the trinomial. Solve 3x² − 12x − 15 = 0. Divide both sides by 3, which is allowed because 3 is a nonzero constant:
x² − 4x − 5 = 0
Then (x − 5)(x + 1) = 0, so x = 5 or x = −1. The constant 3 never produces a root. It only scales the equation.
A common factor that contains the variable behaves differently. Consider x² = 5x. Subtract 5x to get x² − 5x = 0, then factor out x:
x(x − 5) = 0, so x = 0 or x = 5.
Step 3: Factor Trinomials with a Leading Coefficient
When a ≠ 1, look for two numbers whose product is a · c and whose sum is b. Then split the middle term and factor by grouping.
Solve 2x² − 7x + 3 = 0. Here a · c = 6 and b = −7, so the numbers are −6 and −1.
- Split the middle term: 2x² − 6x − x + 3 = 0.
- Group: 2x(x − 3) − 1(x − 3) = 0.
- Factor out the shared binomial: (2x − 1)(x − 3) = 0.
- Solve: 2x − 1 = 0 gives x = 1/2, and x − 3 = 0 gives x = 3.
Notice that the root from (2x − 1) is a fraction. A factor of the form (px + q) gives the root −q/p, not −q.
Special Cases
| Equation | Factored form | Roots |
|---|---|---|
| x² − 49 = 0 | (x − 7)(x + 7) = 0 | 7 and −7 |
| x² − 6x + 9 = 0 | (x − 3)² = 0 | 3 (a double root) |
| x² + 4x = 0 | x(x + 4) = 0 | 0 and −4 |
| x² + 1 = 0 | does not factor over the reals | none |
A double root appears when both factors are identical. The equation still has one distinct solution, and the graph of the quadratic touches the x-axis at that point without crossing it. On the GRE, "how many solutions" means distinct values, so a double root counts once.
Automating the Search for Integer Roots
The search for p and q in x² + bx + c = (x + p)(x + q) is a small search problem. The code below tries every integer p in a bounded range and uses q = b − p. Any valid pair must satisfy p + q = b and p · q = c. The roots are −p and −q.
def factor_monic(b, c):
# Find integers p, q with p + q == b and p * q == c,
# so that x**2 + b*x + c == (x + p)(x + q).
bound = abs(b) + abs(c)
for p in range(-bound, bound + 1):
q = b - p
if p * q == c:
return p, q
return None
for b, c in [(-5, 6), (-3, -10), (-4, -5), (-5, 0)]:
pair = factor_monic(b, c)
if pair is None:
print(f"x^2 + {b}x + {c}: no integer factorization")
else:
p, q = pair
print(f"x^2 + {b}x + {c} = (x + {p})(x + {q}), roots {sorted({-p, -q})}")If the function returns None, the trinomial does not factor over the integers. That does not mean it has no real roots. It means you should switch to the quadratic formula, which later chapters cover.
Worked GRE Example
A quantitative comparison gives this information: x² − x − 12 = 0 and x > 0.
- Quantity A: x
- Quantity B: 3
Factor: (x − 4)(x + 3) = 0, so x = 4 or x = −3. The condition x > 0 rules out −3, so x = 4. Quantity A (4) is greater than Quantity B (3), so the answer is that Quantity A is greater.
Without the condition x > 0, the roots 4 and −3 would give different comparisons, and the answer would be "cannot be determined." Always read the side conditions before choosing.
Always Check
Substituting each root back into the original equation catches sign errors. For (x − 5)(x + 2) = 0, test x = −2 in the original x² = 3x + 10:
- Left side: (−2)² = 4
- Right side: 3(−2) + 10 = 4
The sides match. A common sign error is reading the factor (x + 2) as the root +2. The root is the value that makes the factor zero, which is −2.
Common Errors
- Setting each factor equal to the nonzero right side, for example (x − 2)(x − 3) = 6 giving x − 2 = 6.
- Dropping the root x = 0 by dividing out a variable.
- Reporting both roots when the question gives a restriction such as x > 0 or "x is an integer."
- Counting a double root as two solutions.
Exercise
Solve 2x² + 5x − 3 = 0 by factoring. Then solve x² = 7x and state which root you would lose by dividing both sides by x.
Show answer
For 2x² + 5x − 3 = 0, a · c = −6 and b = 5, so the split numbers are 6 and −1. Then 2x² + 6x − x − 3 = 2x(x + 3) − 1(x + 3) = (2x − 1)(x + 3) = 0, giving x = 1/2 or x = −3. For x² = 7x, rewrite as x² − 7x = 0, so x(x − 7) = 0 and x = 0 or x = 7. Dividing by x loses the root x = 0.
Exercise
If x² − 8x + 16 = 0, how many distinct real values can x take, and what is the value?
Show answer
The left side is (x − 4)² = 0, so x = 4 is a double root. There is one distinct real value, x = 4.