Skip to content
Family Table Math
Auto

Factoring Trinomials (x² + bx + c)

A trinomial is a polynomial with three terms, like x2+7x+12x^2 + 7x + 12. Many of them can be written as a product of two binomials, (x+3)(x+4)(x + 3)(x + 4). Factoring trinomials is the key skill for finding the zeros of a parabola and for solving quadratic equations, which is where this unit is heading.

Expand a product of two binomials and watch what happens to the numbers:

(x+3)(x+4)=x2+4x+3x+12=x2+7x+12(x + 3)(x + 4) = x^2 + 4x + 3x + 12 = x^2 + 7x + 12

The middle coefficient 77 is the sum 3+43 + 4, and the last term 1212 is the product 3×43 \times 4. In general,

(x+m)(x+n)=x2+(m+n)x+mn(x + m)(x + n) = x^2 + (m + n)x + mn

To factor x2+bx+cx^2 + bx + c (where the coefficient of x2x^2 is 11):

  1. Find two integers mm and nn with product mn=cmn = c and sum m+n=bm + n = b.
  2. Write x2+bx+c=(x+m)(x+n)x^2 + bx + c = (x + m)(x + n).
  3. Check by expanding.

It’s easiest to list the factor pairs of cc and look for the pair with the right sum. Start with the product, since there are only a few pairs to try.

The signs of bb and cc tell you the signs of mm and nn before you start:

cc (product)bb (sum)Signs of mm and nnExample
positivepositiveboth positivex2+7x+12=(x+3)(x+4)x^2 + 7x + 12 = (x + 3)(x + 4)
positivenegativeboth negativex2−7x+12=(x−3)(x−4)x^2 - 7x + 12 = (x - 3)(x - 4)
negativepositiveopposite; the one farther from zero is positivex2+x−12=(x+4)(x−3)x^2 + x - 12 = (x + 4)(x - 3)
negativenegativeopposite; the one farther from zero is negativex2−x−12=(x−4)(x+3)x^2 - x - 12 = (x - 4)(x + 3)

Algebra tiles show factoring as building a rectangle. An x2x^2 tile is a big square, an xx tile is a long strip, and a 11 tile is a small square. To factor x2+5x+6x^2 + 5x + 6, arrange one x2x^2 tile, five xx tiles and six 11 tiles into a rectangle. Its side lengths are the factors.

Algebra tiles for x squared plus 5x plus 6 arranged into a rectangle x plus 3 long and x plus 2 wide x² x x x x x 1 1 1 1 1 1 x 1 1 1 x 1 1 length x + 3 width x + 2
The tiles for x2+5x+6x^2 + 5x + 6 form a rectangle x+3x + 3 long and x+2x + 2 wide, so x2+5x+6=(x+2)(x+3)x^2 + 5x + 6 = (x + 2)(x + 3).

The six 11 tiles fill a 22 by 33 block (product 66), and the strips along the sides are 2+3=52 + 3 = 5 xx tiles (sum 55). That’s the product-and-sum rule in picture form.

Always look for a common factor before anything else. Taking it out often leaves a trinomial with an x2x^2 coefficient of 11:

2x2−6x−20=2(x2−3x−10)=2(x−5)(x+2)2x^2 - 6x - 20 = 2(x^2 - 3x - 10) = 2(x - 5)(x + 2)

Keep the common factor in your final answer. If the x2x^2 term is negative, take out −1-1 first. (For trinomials like 6x2−x−126x^2 - x - 12, where the x2x^2 coefficient isn’t 11 and has no common factor, see factoring complex trinomials.)

If no pair of integers has the right product and sum, the trinomial doesn’t factor over the integers. For example, x2+3x+5x^2 + 3x + 5: the only factor pairs of 55 are 1,51, 5 and −1,−5-1, -5, with sums 66 and −6-6. Neither is 33, so it doesn’t factor.

Factor x2+7x+12x^2 + 7x + 12.

Solution. We need a product of 1212 and a sum of 77. Both are positive, so both numbers are positive. List the factor pairs of 1212:

Pair1,121, 122,62, 63,43, 4
Sum13138877 ✓
x2+7x+12=(x+3)(x+4)x^2 + 7x + 12 = (x + 3)(x + 4)

Check: (x+3)(x+4)=x2+4x+3x+12=x2+7x+12(x + 3)(x + 4) = x^2 + 4x + 3x + 12 = x^2 + 7x + 12. ✓

Factor.

  • (a) x2−9x+14x^2 - 9x + 14
  • (b) x2+2x−15x^2 + 2x - 15
  • (c) x2−4x−21x^2 - 4x - 21

Solution.

(a) Product 1414 (positive), sum −9-9 (negative): both numbers are negative. The pair −2,−7-2, -7 has product 1414 and sum −9-9.

x2−9x+14=(x−2)(x−7)x^2 - 9x + 14 = (x - 2)(x - 7)

(b) Product −15-15 (negative): one number is positive and one is negative. The sum 22 is positive, so the number farther from zero is positive. Try 55 and −3-3: product −15-15, sum 22. ✓

x2+2x−15=(x+5)(x−3)x^2 + 2x - 15 = (x + 5)(x - 3)

(c) Product −21-21, sum −4-4: opposite signs, and the number farther from zero is negative. Try −7-7 and 33: product −21-21, sum −4-4. ✓

x2−4x−21=(x−7)(x+3)x^2 - 4x - 21 = (x - 7)(x + 3)

Check (c): (x−7)(x+3)=x2+3x−7x−21=x2−4x−21(x - 7)(x + 3) = x^2 + 3x - 7x - 21 = x^2 - 4x - 21. ✓

Factor fully.

  • (a) 3x2−3x−363x^2 - 3x - 36
  • (b) −x2+2x+8-x^2 + 2x + 8

Solution.

(a) Every term is divisible by 33:

3x2−3x−36=3(x2−x−12)=3(x−4)(x+3)−4×3=−12, −4+3=−1\begin{aligned} 3x^2 - 3x - 36 &= 3(x^2 - x - 12) \\ &= 3(x - 4)(x + 3) && -4 \times 3 = -12, \ -4 + 3 = -1 \end{aligned}

(b) The x2x^2 term is negative, so take out −1-1. Every sign inside flips:

−x2+2x+8=−(x2−2x−8)=−(x−4)(x+2)−4×2=−8, −4+2=−2\begin{aligned} -x^2 + 2x + 8 &= -(x^2 - 2x - 8) \\ &= -(x - 4)(x + 2) && -4 \times 2 = -8, \ -4 + 2 = -2 \end{aligned}

Check (b) with x=1x = 1: the original is −1+2+8=9-1 + 2 + 8 = 9, and −(1−4)(1+2)=−(−3)(3)=9-(1 - 4)(1 + 2) = -(-3)(3) = 9. ✓

A rectangular patio has an area of (x2+11x+24)(x^2 + 11x + 24) m². Find expressions for its length and width, and find the dimensions when x=4x = 4.

Solution. Factor the area. We need a product of 2424 and a sum of 1111: the pair 3,83, 8 works.

x2+11x+24=(x+3)(x+8)x^2 + 11x + 24 = (x + 3)(x + 8)

The patio is (x+8)(x + 8) m long and (x+3)(x + 3) m wide.

When x=4x = 4: the length is 4+8=124 + 8 = 12 m and the width is 4+3=74 + 3 = 7 m.

Check: the area should be 12×7=8412 \times 7 = 84 m², and 42+11(4)+24=16+44+24=844^2 + 11(4) + 24 = 16 + 44 + 24 = 84. ✓

Mixing up the product and the sum. The numbers multiply to give the last term and add to give the middle coefficient. For x2+7x+12x^2 + 7x + 12, you need product 1212 and sum 77, not the other way around.

Getting the signs backwards. For x2−5x−14x^2 - 5x - 14, the pair is −7-7 and 22, so the answer is (x−7)(x+2)(x - 7)(x + 2). Writing (x+7)(x−2)(x + 7)(x - 2) gives a middle term of +5x+5x. Check the middle term by expanding.

Forgetting the common factor in the answer. 3x2−3x−36=3(x−4)(x+3)3x^2 - 3x - 36 = 3(x - 4)(x + 3). If you drop the 33, your answer is only a third of the original expression.

Not looking for a common factor first. If you try to factor 2x2+4x−302x^2 + 4x - 30 directly, the x2x^2 coefficient isn’t 11 and the product-and-sum method doesn’t apply. Take out the 22 first: 2(x2+2x−15)=2(x+5)(x−3)2(x^2 + 2x - 15) = 2(x + 5)(x - 3).

Giving up too early, or never giving up. List all the factor pairs of cc, including the negative ones. If none has the right sum, the trinomial doesn’t factor. Say so; that’s a correct answer.

1. (Warm-up) Find two integers with the given product and sum.

  • (a) product 1818, sum 99
  • (b) product −20-20, sum 11
  • (c) product 2424, sum −10-10
Solution

(a) 33 and 66

(b) 55 and −4-4

(c) −4-4 and −6-6

2. (Warm-up) Factor.

  • (a) x2+9x+20x^2 + 9x + 20
  • (b) x2−8x+15x^2 - 8x + 15
Solution

(a) Product 2020, sum 99: 44 and 55. So x2+9x+20=(x+4)(x+5)x^2 + 9x + 20 = (x + 4)(x + 5).

(b) Product 1515, sum −8-8: −3-3 and −5-5. So x2−8x+15=(x−3)(x−5)x^2 - 8x + 15 = (x - 3)(x - 5).

3. (Core) Factor.

  • (a) x2+3x−28x^2 + 3x - 28
  • (b) x2−2x−35x^2 - 2x - 35
  • (c) x2−13x+36x^2 - 13x + 36
Solution

(a) Product −28-28, sum 33: 77 and −4-4. So (x+7)(x−4)(x + 7)(x - 4).

(b) Product −35-35, sum −2-2: −7-7 and 55. So (x−7)(x+5)(x - 7)(x + 5).

(c) Product 3636, sum −13-13: −4-4 and −9-9. So (x−4)(x−9)(x - 4)(x - 9).

Check (c): (x−4)(x−9)=x2−9x−4x+36=x2−13x+36(x - 4)(x - 9) = x^2 - 9x - 4x + 36 = x^2 - 13x + 36. ✓

4. (Core) Factor fully.

  • (a) 2x2+4x−302x^2 + 4x - 30
  • (b) 5a2−40a+605a^2 - 40a + 60
Solution

(a)

2x2+4x−30=2(x2+2x−15)=2(x+5)(x−3)2x^2 + 4x - 30 = 2(x^2 + 2x - 15) = 2(x + 5)(x - 3)

(b)

5a2−40a+60=5(a2−8a+12)=5(a−2)(a−6)5a^2 - 40a + 60 = 5(a^2 - 8a + 12) = 5(a - 2)(a - 6)

5. (Core) Factor −x2−3x+10-x^2 - 3x + 10.

Solution

Take out −1-1 first:

−x2−3x+10=−(x2+3x−10)=−(x+5)(x−2)-x^2 - 3x + 10 = -(x^2 + 3x - 10) = -(x + 5)(x - 2)

Check with x=0x = 0: the original is 1010, and −(5)(−2)=10-(5)(-2) = 10. ✓

6. (Core) Factor x2+7xy+10y2x^2 + 7xy + 10y^2.

Solution

This works the same way, with yy travelling along: we need two numbers with product 1010 and sum 77, which are 22 and 55.

x2+7xy+10y2=(x+2y)(x+5y)x^2 + 7xy + 10y^2 = (x + 2y)(x + 5y)

Check: (x+2y)(x+5y)=x2+5xy+2xy+10y2=x2+7xy+10y2(x + 2y)(x + 5y) = x^2 + 5xy + 2xy + 10y^2 = x^2 + 7xy + 10y^2. ✓

7. (Core) Does x2+4x+6x^2 + 4x + 6 factor over the integers? Explain.

Solution

No. We need product 66 and sum 44. The factor pairs of 66 are 1,61, 6 (sum 77), 2,32, 3 (sum 55), −1,−6-1, -6 (sum −7-7) and −2,−3-2, -3 (sum −5-5). None has a sum of 44, so it doesn’t factor.

8. (Challenge) Find all integers kk so that x2+kx+12x^2 + kx + 12 can be factored over the integers.

Solution

kk must be the sum of a pair of integers whose product is 1212:

Pair1,121, 122,62, 63,43, 4−1,−12-1, -12−2,−6-2, -6−3,−4-3, -4
Sum13138877−13-13−8-8−7-7

So kk can be 1313, 88, 77, −7-7, −8-8 or −13-13.

9. (Challenge) Factor (x+1)2−5(x+1)+6(x + 1)^2 - 5(x + 1) + 6. (Hint: let u=x+1u = x + 1.)

Solution

With u=x+1u = x + 1, the expression is u2−5u+6u^2 - 5u + 6. Product 66, sum −5-5: −2-2 and −3-3.

u2−5u+6=(u−2)(u−3)u^2 - 5u + 6 = (u - 2)(u - 3)

Now replace uu with x+1x + 1:

(x+1−2)(x+1−3)=(x−1)(x−2)(x + 1 - 2)(x + 1 - 3) = (x - 1)(x - 2)

Check by expanding the original: x2+2x+1−5x−5+6=x2−3x+2x^2 + 2x + 1 - 5x - 5 + 6 = x^2 - 3x + 2, and (x−1)(x−2)=x2−3x+2(x - 1)(x - 2) = x^2 - 3x + 2. ✓