Sub topic 4
Factoring \(x^2 + bx + c\)
Assume you can expand binomials, multiply signed integers, and solve linear equations. Factoring is the reverse of expanding. In this chapter, you will factor monic trinomials, which are quadratic expressions whose coefficient of \(x^2\) is \(1\).
The target pattern
A trinomial has three terms. For
\[ x^2+bx+c, \]
look for integers \(m\) and \(n\) such that
\[ m+n=b \]
and
\[ mn=c. \]
Then the factorization is
\[ x^2+bx+c=(x+m)(x+n). \]
Expanding confirms the pattern:
\[ (x+m)(x+n)=x^2+(m+n)x+mn. \]
| Expression | Required relationship |
|---|---|
| \(x^2+bx+c\) | \(m+n=b\) and \(mn=c\) |
The first relationship controls the middle coefficient. The second controls the constant term.
A positive constant term
Factor \(x^2+5x+6\).
The factor pairs of \(6\) are \(1,6\) and \(2,3\). The pair \(2,3\) has sum \(5\), so
\[ x^2+5x+6=(x+2)(x+3). \]
Check by expanding:
\[ (x+2)(x+3)=x^2+3x+2x+6=x^2+5x+6. \]
When \(c\) is positive, \(m\) and \(n\) have the same sign. If \(b\) is positive, both are positive. If \(b\) is negative, both are negative.
For example,
\[ x^2-7x+12=(x-3)(x-4), \]
because \((-3)+(-4)=-7\) and \((-3)(-4)=12\).
A negative constant term
When \(c\) is negative, the two integers have opposite signs. Their product must be negative.
Factor \(x^2-2x-15\). The factor pairs of \(15\) are \(1,15\) and \(3,5\). Use opposite signs and find a pair with sum \(-2\):
\[ 3+(-5)=-2,\qquad 3(-5)=-15. \]
Therefore,
\[ x^2-2x-15=(x+3)(x-5). \]
The signs inside the factors matter. A common error is to choose numbers whose product is correct but whose sum has the wrong sign.
A reliable factoring process
- Confirm the expression is in the form \(x^2+bx+c\).
- List factor pairs of \(c\), including negative signs when needed.
- Choose the pair whose sum is \(b\).
- Write \((x+m)(x+n)\).
- Expand to check both the middle and constant terms.
If no integer pair works, the trinomial may not factor over the integers. Do not force a pair just because its product equals \(c\).
def factor_monic(b, c):
"""Return m, n for x^2 + b*x + c, or None if no integer pair exists."""
for m in range(-abs(c), abs(c) + 1):
n = b - m
if m * n == c:
return m, n
return None
m, n = factor_monic(5, 6)
print(f"(x + {m})(x + {n})")> callout note > Always check the sum and the product. Checking only the product can produce an incorrect factorization.
Exercise
Factor x² + x - 12 and verify the result by identifying the sum and product of the two integers.
Show answer
The integers are 4 and -3 because 4 + (-3) = 1 and 4(-3) = -12. Thus x² + x - 12 = (x + 4)(x - 3).