Skip to content
Factor Trinomials of the Form x²+bx+c

Factor Trinomials of the Form $x^2+bx+c$

By the end of this section, you will be able to: factor trinomials of the form x2+bx+cx^2+bx+c, and factor trinomials of the form x2+bxy+cy2x^2+bxy+cy^2.

Factor Trinomials of the Form x2+bx+cx^2+bx+c

You have already learned how to multiply binomials using FOIL. Now you’ll need to “undo” this multiplication — to start with the product and end up with the factors. Let’s look at an example of multiplying binomials to refresh your memory.

(x+2)(x+3)factorsx2+3x+2x+6x2+5x+6product \begin{array}{rcl} (x+2)(x+3) & & \text{factors} \\ x^2 + 3x + 2x + 6 & & \\ x^2 + 5x + 6 & & \text{product} \end{array}

To factor the trinomial means to start with the product, x2+5x+6x^2+5x+6, and end with the factors, (x+2)(x+3)(x+2)(x+3). You need to think about where each of the terms in the trinomial came from.

The first term came from multiplying the first term in each binomial. So to get x2x^2 in the product, each binomial must start with an xx.

x2+5x+6(x   )(x   ) \begin{array}{c} x^2 + 5x + 6 \\ (x\ \ \ )(x\ \ \ ) \end{array}

The last term in the trinomial came from multiplying the last terms in each binomial. So the last terms must multiply to 66. What two numbers multiply to 66? The factors of 66 could be 11 and 66, or 22 and 33. How do you know which pair to use?

Consider the middle term. It came from adding the outer and inner terms. So the numbers that must have a product of 66 will need a sum of 55. We’ll test both possibilities in the table below.

Factors of 66Sum of factors
1,61, 61+6=71+6=7
2,32, 32+3=52+3=5

We see that 22 and 33 are the numbers that multiply to 66 and add to 55. So we have the factors of x2+5x+6x^2+5x+6. They are (x+2)(x+3)(x+2)(x+3).

x2+5x+6product(x+2)(x+3)factors \begin{array}{rcl} x^2 + 5x + 6 & & \text{product} \\ (x+2)(x+3) & & \text{factors} \end{array}

You should check this by multiplying.

Looking back, we started with x2+5x+6x^2+5x+6, which is of the form x2+bx+cx^2+bx+c, where b=5b=5 and c=6c=6. We factored it into two binomials of the form (x+m)(x+m) and (x+n)(x+n). To get the correct factors, we found two numbers mm and nn whose product is cc and sum is bb.

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

Write the factors as two binomials with first terms x.(x   )(x   )Find two numbers m and n that multiply to 12 and add to 7.Use 3 and 4 as the last terms.(x+3)(x+4) \begin{array}{lrcl} \text{Write the factors as two binomials with first terms } x. & & & (x\ \ \ )(x\ \ \ ) \\[4pt] \text{Find two numbers } m \text{ and } n \text{ that multiply to } 12 \text{ and add to } 7. & & & \\[4pt] \text{Use } 3 \text{ and } 4 \text{ as the last terms.} & & & (x+3)(x+4) \end{array}

Find two numbers that multiply to 1212 and add to 77:

Factors of 1212Sum of factors
1,121, 121+12=131+12=13
2,62, 62+6=82+6=8
3,43, 43+4=73+4=7

Check by multiplying the factors:

(x+3)(x+4)x2+4x+3x+12x2+7x+12 \begin{array}{rcl} (x+3)(x+4) & & \\ x^2 + 4x + 3x + 12 & & \\ x^2 + 7x + 12 & & \checkmark \end{array}

Factor: x2+6x+8x^2 + 6x + 8.

Factor: y2+8y+15y^2 + 8y + 15.

Factor trinomials of the form x2+bx+cx^2+bx+c.

  1. Write the factors as two binomials with first terms xx: (x  )(x  )(x\ \ )(x\ \ ).
  2. Find two numbers mm and nn that
    • multiply to cc, mn=cm \cdot n = c
    • add to bb, m+n=bm + n = b.
  3. Use mm and nn as the last terms of the factors: (x+m)(x+n)(x+m)(x+n).
  4. Check by multiplying the factors.

Example. Factor: u2+11u+24u^2+11u+24.

Notice that the variable is uu, so the factors will have first terms uu. Find two numbers that multiply to 2424 and add to 1111:

Factors of 2424Sum of factors
1,241, 241+24=251+24=25
2,122, 122+12=142+12=14
3,83, 83+8=113+8=11
4,64, 64+6=104+6=10

Use 33 and 88 as the last terms of the binomials: (u+3)(u+8)(u+3)(u+8). Check by multiplying:

(u+3)(u+8)u2+8u+3u+24u2+11u+24 \begin{array}{rcl} (u+3)(u+8) & & \\ u^2 + 8u + 3u + 24 & & \\ u^2 + 11u + 24 & & \checkmark \end{array}

Factor: q2+10q+24q^2 + 10q + 24.

Factor: t2+14t+24t^2 + 14t + 24.

Example. Factor: y2+17y+60y^2+17y+60.

Write the factors as two binomials with first terms yy, then find two numbers that multiply to 6060 and add to 1717:

Factors of 6060Sum of factors
1,601, 601+60=611+60=61
2,302, 302+30=322+30=32
3,203, 203+20=233+20=23
4,154, 154+15=194+15=19
5,125, 125+12=175+12=17
6,106, 106+10=166+10=16

Use 55 and 1212 as the last terms: (y+5)(y+12)(y+5)(y+12). Check by multiplying:

(y+5)(y+12)y2+12y+5y+60y2+17y+60 \begin{array}{rcl} (y+5)(y+12) & & \\ y^2 + 12y + 5y + 60 & & \\ y^2 + 17y + 60 & & \checkmark \end{array}

Factor: x2+19x+60x^2 + 19x + 60.

Factor: v2+23v+60v^2 + 23v + 60.

Factor trinomials with bb negative, cc positive

In the examples so far, all terms in the trinomial were positive. What happens when there are negative terms? Well, it depends which term is negative. Let’s look first at trinomials with only the middle term negative.

Remember: to get a negative sum and a positive product, the numbers must both be negative.

Example. Factor: t211t+28t^2-11t+28.

With the positive last term, 2828, and the negative middle term, 11t-11t, we need two negative factors. Find two numbers that multiply to 2828 and add to 11-11:

Factors of 2828Sum of factors
1,28-1, -281+(28)=29-1+(-28)=-29
2,14-2, -142+(14)=16-2+(-14)=-16
4,7-4, -74+(7)=11-4+(-7)=-11

Use 4-4 and 7-7 as the last terms of the binomials: (t4)(t7)(t-4)(t-7). Check by multiplying:

(t4)(t7)t27t4t+28t211t+28 \begin{array}{rcl} (t-4)(t-7) & & \\ t^2 - 7t - 4t + 28 & & \\ t^2 - 11t + 28 & & \checkmark \end{array}

Factor: u29u+18u^2 - 9u + 18.

Factor: y216y+63y^2 - 16y + 63.

Factor trinomials with cc negative

Now, what if the last term in the trinomial is negative? Think about FOIL. The last term is the product of the last terms in the two binomials. A negative product results from multiplying two numbers with opposite signs. You have to be very careful to choose factors to make sure you get the correct sign for the middle term, too.

Remember: to get a negative product, the numbers must have different signs.

Example. Factor: z2+4z5z^2+4z-5.

To get a negative last term, multiply one positive and one negative. We need factors of 5-5 that add to positive 44:

Factors of 5-5Sum of factors
1,51, -51+(5)=41+(-5)=-4
1,5-1, 51+5=4-1+5=4

Notice we listed both 1,51, -5 and 1,5-1, 5 to make sure we got the sign of the middle term correct. Use 1-1 and 55 as the last terms: (z1)(z+5)(z-1)(z+5). Check by multiplying:

(z1)(z+5)z2+5z1z5z2+4z5 \begin{array}{rcl} (z-1)(z+5) & & \\ z^2 + 5z - 1z - 5 & & \\ z^2 + 4z - 5 & & \checkmark \end{array}

Factor: h2+4h12h^2 + 4h - 12.

Factor: k2+k20k^2 + k - 20.

Let’s make a minor change to the last trinomial and see what effect it has on the factors.

Example. Factor: z24z5z^2-4z-5.

This time, we need factors of 5-5 that add to 4-4:

Factors of 5-5Sum of factors
1,51, -51+(5)=41+(-5)=-4
1,5-1, 51+5=4-1+5=4

Use 11 and 5-5 as the last terms of the binomials: (z+1)(z5)(z+1)(z-5). Check by multiplying:

(z+1)(z5)z25z+1z5z24z5 \begin{array}{rcl} (z+1)(z-5) & & \\ z^2 - 5z + 1z - 5 & & \\ z^2 - 4z - 5 & & \checkmark \end{array}

Notice that the factors of z24z5z^2-4z-5 are very similar to the factors of z2+4z5z^2+4z-5. It is very important to make sure you choose the factor pair that results in the correct sign of the middle term.

Factor: x24x12x^2 - 4x - 12.

Factor: y2y20y^2 - y - 20.

Example. Factor: q22q15q^2-2q-15.

The factors will be two binomials with first terms qq. You can use 3,53, -5 as the last terms of the binomials, giving (q+3)(q5)(q+3)(q-5).

Factors of 15-15Sum of factors
1,151, -151+(15)=141+(-15)=-14
1,15-1, 151+15=14-1+15=14
3,53, -53+(5)=23+(-5)=-2
3,5-3, 53+5=2-3+5=2

Check by multiplying:

(q+3)(q5)q25q+3q15q22q15 \begin{array}{rcl} (q+3)(q-5) & & \\ q^2 - 5q + 3q - 15 & & \\ q^2 - 2q - 15 & & \checkmark \end{array}

Factor: r23r40r^2 - 3r - 40.

Factor: s23s10s^2 - 3s - 10.

When a trinomial is prime

Some trinomials are prime. The only way to be certain a trinomial is prime is to list all the possibilities and show that none of them work.

Example. Factor: y26y+15y^2-6y+15.

The factors will be two binomials with first terms yy. Since the last term, 1515, is positive and the middle term is negative, we look for two negative factors of 1515:

Factors of 1515Sum of factors
1,15-1, -151+(15)=16-1+(-15)=-16
3,5-3, -53+(5)=8-3+(-5)=-8

As shown in the table, none of the factors add to 6-6; therefore, the expression is prime.

A trinomial answer of “Prime” cannot be typed into the answer box, so the two drills below both factor. Reason through m2+4m+18m^2+4m+18 and n210n+12n^2-10n+12 on paper: list the factor pairs of the last term and confirm that none of them sum to the middle coefficient — both are prime.

Putting it together

Example. Factor: 2x+x2482x+x^2-48.

First we put the terms in decreasing degree order: x2+2x48x^2+2x-48. The factors will be two binomials with first terms xx. Since the last term is negative, we need factors with different signs that add to 22:

Factors of 48-48Sum of factors
1,48-1, 481+48=47-1+48=47
2,24-2, 242+24=22-2+24=22
3,16-3, 163+16=13-3+16=13
4,12-4, 124+12=8-4+12=8
6,8-6, 86+8=2-6+8=2

Use 6,8-6, 8 as the last terms of the binomials: (x6)(x+8)(x-6)(x+8). Check by multiplying:

(x6)(x+8)x26x+8x48x2+2x48 \begin{array}{rcl} (x-6)(x+8) & & \\ x^2 - 6x + 8x - 48 & & \\ x^2 + 2x - 48 & & \checkmark \end{array}

Factor: 9m+m2+189m + m^2 + 18. Write the trinomial in decreasing degree order first.

Factor: 7n+12+n2-7n + 12 + n^2. Write the trinomial in decreasing degree order first.

Let’s summarize the method we just developed to factor trinomials of the form x2+bx+cx^2+bx+c.

Factor trinomials. When we factor a trinomial, we look at the signs of its terms first to determine the signs of the binomial factors.

x2+bx+c(x+m)(x+n) \begin{array}{c} x^2 + bx + c \\ (x+m)(x+n) \end{array}

When cc is positive, mm and nn have the same sign, which matches the sign of bb:

b positiveb negativex2+5x+6x26x+8(x+2)(x+3)(x4)(x2) \begin{array}{lcl} b \text{ positive} & \quad & b \text{ negative} \\ x^2 + 5x + 6 & & x^2 - 6x + 8 \\ (x+2)(x+3) & & (x-4)(x-2) \end{array}

When cc is negative, mm and nn have opposite signs. The sign of the one with the larger absolute value matches the sign of bb:

x2+x12x22x15(x+4)(x3)(x5)(x+3) \begin{array}{lcl} x^2 + x - 12 & \quad & x^2 - 2x - 15 \\ (x+4)(x-3) & & (x-5)(x+3) \end{array}

Factor Trinomials of the Form x2+bxy+cy2x^2+bxy+cy^2

Sometimes you’ll need to factor trinomials of the form x2+bxy+cy2x^2+bxy+cy^2 with two variables, such as x2+12xy+36y2x^2+12xy+36y^2. The first term, x2x^2, is the product of the first terms of the binomial factors, xxx \cdot x. The y2y^2 in the last term means that the second terms of the binomial factors must each contain yy. To get the coefficients bb and cc, you use the same process summarized in the previous objective.

Example. Factor: x2+12xy+36y2x^2+12xy+36y^2.

Note that the first terms are xx and the last terms contain yy: (x _ y)(x _ y)(x\ \_\ y)(x\ \_\ y). Find the numbers that multiply to 3636 and add to 1212:

Factors of 3636Sum of factors
1,361, 361+36=371+36=37
2,182, 182+18=202+18=20
3,123, 123+12=153+12=15
4,94, 94+9=134+9=13
6,66, 66+6=126+6=12

Use 66 and 66 as the coefficients of the last terms: (x+6y)(x+6y)(x+6y)(x+6y). Check by multiplying:

(x+6y)(x+6y)x2+6xy+6xy+36y2x2+12xy+36y2 \begin{array}{rcl} (x+6y)(x+6y) & & \\ x^2 + 6xy + 6xy + 36y^2 & & \\ x^2 + 12xy + 36y^2 & & \checkmark \end{array}

Factor: u2+11uv+28v2u^2 + 11uv + 28v^2.

Factor: x2+13xy+42y2x^2 + 13xy + 42y^2.

Example. Factor: r28rs9s2r^2-8rs-9s^2.

We need rr in the first term of each binomial and ss in the second term. The last term of the trinomial is negative, so the factors must have opposite signs. Find the numbers that multiply to 9-9 and add to 8-8:

Factors of 9-9Sum of factors
1,91, -91+(9)=81+(-9)=-8
1,9-1, 91+9=8-1+9=8
3,33, -33+(3)=03+(-3)=0

Use 1,91, -9 as coefficients of the last terms: (r+s)(r9s)(r+s)(r-9s). Check by multiplying:

(r9s)(r+s)r2+rs9rs9s2r28rs9s2 \begin{array}{rcl} (r-9s)(r+s) & & \\ r^2 + rs - 9rs - 9s^2 & & \\ r^2 - 8rs - 9s^2 & & \checkmark \end{array}

Factor: a211ab+10b2a^2 - 11ab + 10b^2.

Factor: m213mn+12n2m^2 - 13mn + 12n^2.

Example. Factor: u29uv12v2u^2-9uv-12v^2.

We need uu in the first term of each binomial and vv in the second term. The last term is negative, so the factors must have opposite signs. Find the numbers that multiply to 12-12 and add to 9-9:

Factors of 12-12Sum of factors
1,121, -121+(12)=111+(-12)=-11
1,12-1, 121+12=11-1+12=11
2,62, -62+(6)=42+(-6)=-4
2,6-2, 62+6=4-2+6=4
3,43, -43+(4)=13+(-4)=-1
3,4-3, 43+4=1-3+4=1

Note there are no factor pairs that give us 9-9 as a sum. The trinomial is prime.

As before, a “Prime” answer can’t be typed into the box. Two source problems, x27xy10y2x^2-7xy-10y^2 and p2+15pq+20q2p^2+15pq+20q^2, are both prime — verify on paper that no factor pair of the last coefficient sums to the middle one (10-10 never sums to 7-7; 2020 never sums to 1515). The drill below is a closely related trinomial that does factor.

Factor: x23xy10y2x^2 - 3xy - 10y^2.

Key terms

factor a trinomial — to write a trinomial x2+bx+cx^2+bx+c as a product of two binomials (x+m)(x+n)(x+m)(x+n), where mm and nn multiply to cc and add to bb. prime trinomial — a trinomial that cannot be written as a product of two binomials with integer coefficients (no factor pair of cc adds to bb).


This section is adapted from Elementary Algebra 2e, Section 7.2: Factor Trinomials of the Form x2+bx+cx^2+bx+c by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recast the worked-example step tables as typeset display arrays and the factor-pair searches as markdown tables; omitted the Be Prepared quiz, Self Check checklist, media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback, replacing the two prime-trinomial “Try Its” (which cannot be typed into the answer box) with factorable drills plus a note to reason the prime cases through by hand.