Sub topic 12
Solving Quadratics by Factoring
Prerequisites and the Main Idea
Assume you can factor common factors and quadratic trinomials, and that you can solve linear equations. A quadratic equation has the form
\[ ax^2+bx+c=0,\qquad a\ne0. \]
To solve it by factoring, rewrite the quadratic as a product of factors. Then use the zero product property: if \(uv=0\), then \(u=0\) or \(v=0\).
For example,
\[ x^2-5x+6=0 \]
factors as
\[ (x-2)(x-3)=0. \]
Therefore,
\[ x-2=0 \quad\text{or}\quad x-3=0, \]
so the solutions are \(x=2\) and \(x=3\).
A Reliable Procedure
- Move every term to one side so the equation equals zero.
- Factor out the greatest common factor, if one exists.
- Factor the remaining quadratic completely.
- Set each factor equal to zero.
- Solve the resulting linear equations.
- Check the solutions in the original equation when signs or arithmetic are easy to confuse.
Consider
\[ 2x^2+7x+3=0. \]
The factorization is
\[ (2x+1)(x+3)=0. \]
Set each factor equal to zero:
\[ 2x+1=0 \Rightarrow x=-\frac12, \]
\[ x+3=0 \Rightarrow x=-3. \]
Thus, the solutions are \(-\frac12\) and \(-3\).
| Factored equation | Equations to solve | Solutions |
|---|---|---|
| \((x-4)(x+2)=0\) | \(x-4=0\), \(x+2=0\) | \(x=4,-2\) |
Common Factoring Patterns
A greatest common factor can reveal a quadratic factorization:
\[ 3x^2-12x=0 \]
becomes
\[ 3x(x-4)=0. \]
The solutions are \(x=0\) and \(x=4\). Do not divide by \(x\), because doing so would discard the solution \(x=0\).
A difference of squares also factors quickly:
\[ x^2-25=0 \]
becomes
\[ (x-5)(x+5)=0, \]
giving \(x=5\) or \(x=-5\).
def factor_solutions(a, b, c, r1, r2):
# Verify that (a*x + ... ) is not used here;
# r1 and r2 are proposed roots.
return a * r1**2 + b * r1 + c == 0 and a * r2**2 + b * r2 + c == 0
assert factor_solutions(1, -5, 6, 2, 3)
print("both proposed roots work")Exercise
Solve \(x^2+x-12=0\) by factoring.
Show answer
Factor: \((x+4)(x-3)=0\). Therefore, \(x=-4\) or \(x=3\).