When the coefficient of x2 isn’t 1, as in 6x2−x−12, the quick product-and-sum shortcut from factoring trinomials doesn’t work directly. These are sometimes called complex trinomials. You’ll learn two reliable methods: decomposition, which always works if the trinomial factors, and inspection, which is faster once you get the feel for it.
Before anything else, take out any common factor. It makes the numbers smaller and sometimes turns the problem into an easier one:
6x2+18x+12=6(x2+3x+2)=6(x+1)(x+2)
If the x2 coefficient is negative, take out a negative factor so that a is positive.
To factor ax2+bx+c:
- Multiply a×c.
- Find two integers m and n with product mn=ac and sum m+n=b.
- Decompose (split) the middle term: rewrite bx as mx+nx.
- Factor the four terms by grouping (see common factoring).
- Check by expanding.
For example, for 2x2+7x+3: ac=2×3=6, and 1 and 6 have product 6 and sum 7.
2x2+7x+3=2x2+x+6x+3=x(2x+1)+3(2x+1)=(2x+1)(x+3)split 7x into x+6xgroup
Why does this work? Splitting the middle term doesn’t change the expression (x+6x is still 7x), and choosing numbers with product ac is exactly what makes the two groups share a bracket. If the brackets don’t match after grouping, recheck your arithmetic or your signs.
It doesn’t matter which order you write mx and nx in. Writing 2x2+6x+x+3 also works: 2x(x+3)+1(x+3)=(x+3)(2x+1).
The factors must look like (px+q)(rx+s), where
- p×r=a (the first terms multiply to ax2),
- q×s=c (the last terms multiply to c),
- the outside and inside products add to the middle term: ps+qr=b.
Try combinations of factors of a and c until the middle term comes out right. The first and last terms are easy to get; the middle term is the real test.
The same sign rules from x2+bx+c still help:
- If c>0, both constants have the same sign as b.
- If c<0, the constants have opposite signs.
If no pair of integers has product ac and sum b, the trinomial doesn’t factor over the integers. For example, 2x2+3x+4: ac=8, and the pairs 1,8 and 2,4 (and their negatives) have sums ±9 and ±6. None is 3.
Factor 3x2+8x+4.
Solution. There’s no common factor. ac=3×4=12. We need product 12 and sum 8: the pair 2,6 works.
3x2+8x+4=3x2+2x+6x+4=x(3x+2)+2(3x+2)=(3x+2)(x+2)
Check: (3x+2)(x+2)=3x2+6x+2x+4=3x2+8x+4. ✓
Factor 6x2−x−12.
Solution. ac=6×(−12)=−72. We need product −72 and sum −1. The numbers have opposite signs and are close together in size: −9 and 8 work, since (−9)(8)=−72 and −9+8=−1.
6x2−x−12=6x2−9x+8x−12=3x(2x−3)+4(2x−3)=(2x−3)(3x+4)
Check: (2x−3)(3x+4)=6x2+8x−9x−12=6x2−x−12. ✓
Factor 3x2−10x+8 by inspection.
Solution. The first terms must be 3x and x. Since c=8>0 and b=−10<0, both constants are negative. The negative factor pairs of 8 are −1,−8 and −2,−4, and each pair can go in either order. Test the middle term of each:
| Try | Outside + inside | Middle term |
|---|
| (3x−1)(x−8) | −24x−x | −25x |
| (3x−8)(x−1) | −3x−8x | −11x |
| (3x−2)(x−4) | −12x−2x | −14x |
| (3x−4)(x−2) | −6x−4x | −10x ✓ |
3x2−10x+8=(3x−4)(x−2)
Check: (3x−4)(x−2)=3x2−6x−4x+8=3x2−10x+8. ✓
Factor fully: 12x2+2x−4.
Solution. Every term is even, so take out 2:
12x2+2x−4=2(6x2+x−2)
Now factor 6x2+x−2. ac=6×(−2)=−12, and we need sum 1: the pair 4,−3 works.
6x2+x−2=6x2+4x−3x−2=2x(3x+2)−1(3x+2)=(3x+2)(2x−1)take out −1 so the brackets match
So the full answer is
12x2+2x−4=2(3x+2)(2x−1)
Check with x=1: the original is 12+2−4=10, and 2(5)(1)=10. ✓
Skipping the common factor. 12x2+2x−4=(6x+4)(2x−1) is true, but not fully factored, because 6x+4=2(3x+2). Take out the common factor first and the numbers stay smaller too.
Using c instead of a × c. For 3x2+8x+4, you need two numbers with product ac=12, not 4. The product-and-sum shortcut with just c only works when a=1.
Sign errors in the second group. In 6x2+4x−3x−2, the second group is −3x−2=−1(3x+2). Writing −1(3x−2) is a common slip. Expand the group to check that you get back −3x−2.
Checking only the first and last terms. With inspection, (3x−2)(x−4) gives the right 3x2 and the right +8, but the wrong middle term (−14x). The middle term is the one that decides it.
Dividing everything by a. You can’t just divide 2x2+7x+3 by 2 to make it “nicer”. That changes the expression. Only take out a factor that divides every term, and keep it in the answer.
1. (Warm-up) For each trinomial, find two integers with product ac and sum b.
- (a) 3x2+8x+4
- (b) 2x2−3x−5
Solution
(a) ac=12, b=8: the integers are 2 and 6.
(b) ac=−10, b=−3: the integers are −5 and 2.
2. (Warm-up) Factor 2x2−3x−5 by decomposition, using your answer to question 1(b).
Solution
2x2−3x−5=2x2+2x−5x−5=2x(x+1)−5(x+1)=(x+1)(2x−5)Check: (x+1)(2x−5)=2x2−5x+2x−5=2x2−3x−5. ✓
3. (Core) Factor 5x2+13x−6.
Solution
ac=−30, sum 13: the integers are 15 and −2.
5x2+13x−6=5x2+15x−2x−6=5x(x+3)−2(x+3)=(x+3)(5x−2)
4. (Core) Factor.
- (a) 4x2−4x−15
- (b) 6a2+11a+4
Solution
(a) ac=−60, sum −4: the integers are −10 and 6.
4x2−4x−15=4x2−10x+6x−15=2x(2x−5)+3(2x−5)=(2x−5)(2x+3)(b) ac=24, sum 11: the integers are 3 and 8.
6a2+11a+4=6a2+3a+8a+4=3a(2a+1)+4(2a+1)=(2a+1)(3a+4)
5. (Core) Factor fully: 18x2−33x+12.
Solution
Take out the common factor 3 first: 18x2−33x+12=3(6x2−11x+4).
For 6x2−11x+4: ac=24, sum −11, so the integers are −3 and −8.
6x2−11x+4=6x2−3x−8x+4=3x(2x−1)−4(2x−1)=(2x−1)(3x−4)So 18x2−33x+12=3(2x−1)(3x−4).
6. (Core) Factor −10x2+11x+6.
Solution
Take out −1 so the x2 coefficient is positive: −10x2+11x+6=−(10x2−11x−6).
For 10x2−11x−6: ac=−60, sum −11, so the integers are −15 and 4.
10x2−11x−6=10x2+4x−15x−6=2x(5x+2)−3(5x+2)=(5x+2)(2x−3)So −10x2+11x+6=−(5x+2)(2x−3).
Check with x=1: the original is −10+11+6=7, and −(7)(−1)=7. ✓
7. (Core) Factor 3x2+7xy+2y2.
Solution
Treat it like 3x2+7x+2, with y travelling along. ac=6, sum 7: the integers are 1 and 6.
3x2+7xy+2y2=3x2+xy+6xy+2y2=x(3x+y)+2y(3x+y)=(3x+y)(x+2y)Check: (3x+y)(x+2y)=3x2+6xy+xy+2y2=3x2+7xy+2y2. ✓
8. (Challenge) A rectangular poster has an area of (6x2+17x+12) cm².
- (a) Find expressions for its dimensions.
- (b) Find the dimensions when x=2, and check them against the area.
Solution
(a) ac=72, sum 17: the integers are 8 and 9.
6x2+17x+12=6x2+8x+9x+12=2x(3x+4)+3(3x+4)=(3x+4)(2x+3)The dimensions are (3x+4) cm by (2x+3) cm.
(b) When x=2: 3(2)+4=10 cm and 2(2)+3=7 cm, so the area is 70 cm².
Check: 6(2)2+17(2)+12=24+34+12=70. ✓
9. (Challenge) Find all integers k so that 2x2+kx+3 can be factored over the integers.
Solution
By decomposition, k must be the sum of two integers whose product is ac=2×3=6:
| Pair | 1,6 | 2,3 | −1,−6 | −2,−3 |
|---|
| Sum | 7 | 5 | −7 | −5 |
So k can be 7, 5, −5 or −7. For example, 2x2+7x+3=(2x+1)(x+3) and 2x2+5x+3=(2x+3)(x+1).