Sub topic 9
Factoring Trinomials: x^2 + bx + c and ax^2 + bx + c
This chapter assumes you can expand products with FOIL, pull out a greatest common factor (GCF), and factor by grouping. A trinomial is a three-term expression such as x^2 + 5x + 6. Factoring it means writing it as a product of two binomials. This is FOIL run in reverse.
Why the Pattern Works
Expand (x + p)(x + q) with FOIL:
(x + p)(x + q) = x^2 + (p + q)x + pq
The middle coefficient is the sum p + q. The constant term is the product pq. So to factor x^2 + bx + c, find two integers whose product is c and whose sum is b.
Case 1: x^2 + bx + c (leading coefficient 1)
Factor x^2 + 7x + 12.
- List factor pairs of 12: (1, 12), (2, 6), (3, 4).
- Find the pair that adds to 7. That pair is 3 and 4.
- Write the result: (x + 3)(x + 4).
Check with FOIL: x^2 + 4x + 3x + 12 = x^2 + 7x + 12. ✓
Reading the signs
The signs of b and c tell you the signs of p and q before you search.
| c | b | Signs of p and q | Example |
|---|---|---|---|
| positive | positive | both positive | x^2 + 7x + 12 = (x + 3)(x + 4) |
| positive | negative | both negative | x^2 - 7x + 12 = (x - 3)(x - 4) |
| negative | positive | opposite; larger one positive | x^2 + 2x - 15 = (x + 5)(x - 3) |
| negative | negative | opposite; larger one negative | x^2 - 2x - 15 = (x - 5)(x + 3) |
When c is positive, p and q share a sign. When c is negative, they differ, and the one with the larger absolute value takes the sign of b.
Case 2: ax^2 + bx + c (leading coefficient not 1)
When a is not 1, the numbers must satisfy more conditions. Two reliable methods follow. Both give the same answer.
Method A: the "ac" method (splitting the middle term)
Factor 2x^2 + 7x + 3.
- Multiply a and c: 2 · 3 = 6.
- Find two numbers with product 6 and sum 7. They are 1 and 6.
- Split the middle term: 2x^2 + 1x + 6x + 3.
- Factor by grouping: x(2x + 1) + 3(2x + 1).
- Pull out the common binomial: (2x + 1)(x + 3).
Check: 2x^2 + 6x + x + 3 = 2x^2 + 7x + 3. ✓
This method is mechanical, so it works even when guessing is hard. It relies on the grouping skill from the previous chapter.
Method B: trial and error
Factor 3x^2 - 10x + 8.
- The first terms must multiply to 3x^2, so the binomials start (3x ...)(x ...).
- The constant 8 is positive and b is negative, so both signs are negative: (3x - ?)(x - ?).
- Try factor pairs of 8 in the blanks. Each trial gives a middle coefficient: the first blank times 1, plus the second blank times 3.
- (3x - 1)(x - 8) gives -24x - x = -25x. No.
- (3x - 8)(x - 1) gives -3x - 8x = -11x. No.
- (3x - 2)(x - 4) gives -12x - 2x = -14x. No.
- (3x - 4)(x - 2) gives -6x - 4x = -10x. Yes.
So 3x^2 - 10x + 8 = (3x - 4)(x - 2).
Trial and error is quicker when a and c have few factors. The ac method is safer when they have many.
Always Look for a GCF First
Factor 6x^2 + 21x + 15. The terms share a factor of 3:
3(2x^2 + 7x + 5)
Now factor the trinomial. The ac product is 10, and 2 and 5 sum to 7:
2x^2 + 2x + 5x + 5 = 2x(x + 1) + 5(x + 1) = (2x + 5)(x + 1)
So 6x^2 + 21x + 15 = 3(2x + 5)(x + 1).
Pulling out the GCF first keeps the numbers small. If you skip it, you must search for factor pairs of 6 · 15 = 90, which is harder.
Edge Cases and Common Errors
- Not factorable over the integers. Try x^2 + 3x + 5. No integer pair has product 5 and sum 3. The pairs are (1, 5) and (-1, -5), with sums 6 and -6. The expression does not factor into integer binomials. The discriminant, covered later, tells you this quickly.
- Sign slips. In x^2 - 5x - 14, the pair is -7 and 2. Choosing 7 and -2 gives a middle term of +5x, which is wrong. Check the sum against b, including its sign.
- Forgetting the GCF in the final answer. If you factor out 3 at the start, the 3 must appear in your answer.
- Negative leading coefficient. For -x^2 + 5x - 6, factor out -1 first: -(x^2 - 5x + 6) = -(x - 2)(x - 3).
- Trinomials with a perfect-square or difference-of-squares form. x^2 + 6x + 9 is (x + 3)^2, and x^2 - 9 has no middle term. Recognizing these patterns is faster than searching for pairs.
Checking Your Work in Code
The sympy library can confirm a factorization. This code runs after pip install sympy.
from sympy import symbols, factor, expand
x = symbols("x")
for expr in [x**2 + 7*x + 12,
2*x**2 + 7*x + 3,
3*x**2 - 10*x + 8,
6*x**2 + 21*x + 15,
x**2 + 3*x + 5]:
f = factor(expr)
assert expand(f) == expand(expr)
print(expr, "=", f)The last expression prints unchanged, which confirms it does not factor over the integers.
GRE Relevance
On the GRE, a factorable trinomial usually signals a quadratic equation with integer roots. Factoring is often faster than the quadratic formula. In quantitative comparison questions, factoring can also reveal that two quantities are equal. For example, (x^2 + 5x + 6)/(x + 2) simplifies to x + 3 when x is not -2. Watch for the condition on the variable, because cancelling a factor is only valid when that factor is not zero.
Exercise
Factor 2x^2 - 5x - 12 completely, and verify with FOIL.
Show answer
Here a·c = 2 · (-12) = -24. We need two numbers with product -24 and sum -5. They are -8 and 3. Split the middle term: 2x^2 - 8x + 3x - 12. Group: 2x(x - 4) + 3(x - 4) = (2x + 3)(x - 4). Check: 2x^2 - 8x + 3x - 12 = 2x^2 - 5x - 12. ✓
Exercise
Factor 4x^2 + 10x - 14 completely.
Show answer
First pull out the GCF of 2: 2(2x^2 + 5x - 7). For the trinomial, a·c = -14, and the numbers with product -14 and sum 5 are 7 and -2. Split: 2x^2 + 7x - 2x - 7 = x(2x + 7) - 1(2x + 7) = (2x + 7)(x - 1). The full answer is 2(2x + 7)(x - 1).
Exercise
If x^2 + kx + 18 factors as (x + p)(x + q) with p and q positive integers, list all possible values of k.
Show answer
p and q are positive integer pairs with product 18: (1, 18), (2, 9), (3, 6). Then k = p + q, so k can be 19, 11, or 9.