Skip to content

Factor Trinomials

By the end of this section, you will be able to: factor trinomials of the form x2+bx+cx^2+bx+c; factor trinomials of the form ax2+bx+cax^2+bx+c using trial and error; factor trinomials of the form ax2+bx+cax^2+bx+c using the “ac” method; and factor using substitution.

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 factor the trinomial means to start with the product, and end with the factors.

(x+m)(x+n)=x2+mx+nx+mn=x2+(m+n)x+mn \begin{array}{rcl} (x+m)(x+n)&=&x^2+mx+nx+mn\\[4pt] &=&x^2+(m+n)x+mn \end{array}

This tells us that to factor a trinomial of the form x2+bx+cx^2+bx+c, we need two factors (x+m)(x+m) and (x+n)(x+n) where mm and nn multiply to cc and add to bb.

Example. Factor x2+11x+24x^2+11x+24.

Write two sets of parentheses and put xx as the first term. The factor pairs of 2424 have sums 1+24=251+24=25, 2+12=142+12=14, 3+8=113+8=11, and 4+6=104+6=10. Use 33 and 88 as the last terms.

x2+11x+24=(x+3)(x+8)x^2+11x+24=(x+3)(x+8)(x+3)(x+8)=x2+8x+3x+24=x2+11x+24  \begin{array}{rcl} (x+3)(x+8)&=&x^2+8x+3x+24\\[4pt] &=&x^2+11x+24\ \checkmark \end{array}

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

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

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

  1. Write the factors as two binomials with first terms xx.
  2. Find m,nm,n that multiply to cc and add to bb.
  3. Use m,nm,n as the last terms of the factors.
  4. Check by multiplying the factors.

In the first example, all terms were positive. With only the middle term negative, a positive product and negative sum require two negative numbers.

Example. Factor y211y+28y^2-11y+28.

The negative factor pairs of 2828 have sums 1+(28)=29-1+(-28)=-29, 2+(14)=16-2+(-14)=-16, and 4+(7)=11-4+(-7)=-11. Therefore

y211y+28=(y4)(y7).y^2-11y+28=(y-4)(y-7).

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

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

If the last term is negative, its factors have opposite signs. Choose them carefully to get the correct sign for the middle term. Terms must be written in descending order.

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

First reorder it as x2+2x48x^2+2x-48. The factor-pair sums include 1+48=47-1+48=47, 2+24=22-2+24=22, 3+16=13-3+16=13, 4+12=8-4+12=8, and 6+8=2-6+8=2.

2x+x248=(x6)(x+8).2x+x^2-48=(x-6)(x+8).

Factor 9m+m2+189m+m^2+18.

Factor 7n+12+n2-7n+12+n^2.

Trinomials may have two variables. The y2y^2 in the last term means the second terms of the binomial factors must each contain yy.

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

The factor-pair sums for 9-9 are 8,8,08,-8,0. Use 1,91,-9:

r28rs9s2=(r+s)(r9s).r^2-8rs-9s^2=(r+s)(r-9s).

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

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

Some trinomials are prime. The only way to be certain is to list all possibilities and show none work.

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

The factor-pair sums for 12-12 are 11,11,4,4,1,1-11,11,-4,4,-1,1. None is 9-9, so the trinomial is prime.

Factor x27xy10y2x^2-7xy-10y^2.

Factor p2+15pq+20q2p^2+15pq+20q^2.

Strategy. When cc is positive, m,nm,n have the same sign: positive when bb is positive and negative when bb is negative. When cc is negative, they have opposite signs, and the sign of the number with larger absolute value matches the sign of bb.

Factor trinomials of the form ax2+bx+cax^2+bx+c using trial and error

Remember to always check for a GCF first. Sometimes, after factoring the GCF, the leading coefficient becomes 11.

Example. Factor completely: 4x3+16x220x4x^3+16x^2-20x.

4x3+16x220x=4x(x2+4x5)=4x(x1)(x+5).4x^3+16x^2-20x=4x(x^2+4x-5)=4x(x-1)(x+5).

Factor completely: 5x3+15x220x5x^3+15x^2-20x.

Factor completely: 6y3+18y260y6y^3+18y^2-60y.

When there is no GCF, test factor pairs. For 3x2+5x+23x^2+5x+2, test x,3xx,3x and both orders of 1,21,2. Inner and outer products show

3x2+5x+2=(x+1)(3x+2).3x^2+5x+2=(x+1)(3x+2).

Example. Factor 3y2+22y+73y^2+22y+7 using trial and error.

There is no GCF. Test the sole factor pairs y,3yy,3y and 1,71,7:

Possible factorsProduct
(y+1)(3y+7)(y+1)(3y+7)3y2+10y+73y^2+10y+7
(y+7)(3y+1)(y+7)(3y+1)3y2+22y+73y^2+22y+7

Thus 3y2+22y+7=(y+7)(3y+1)3y^2+22y+7=(y+7)(3y+1).

Factor completely using trial and error: 2a2+5a+32a^2+5a+3.

Factor completely using trial and error: 4b2+5b+14b^2+5b+1.

Factor using trial and error.

  1. Write in descending order.
  2. Factor any GCF.
  3. Find all factor pairs of the first term.
  4. Find all factor pairs of the third term.
  5. Test combinations until the correct product is found.
  6. Check by multiplying.

When the middle term is negative and the last term positive, both binomial signs must be negative.

Example. Factor 6b213b+56b^2-13b+5 using trial and error.

Testing b,6bb,6b and 2b,3b2b,3b with negative factors of 55 gives

Possible factorsProduct
(b1)(6b5)(b-1)(6b-5)6b211b+56b^2-11b+5
(b5)(6b1)(b-5)(6b-1)6b231b+56b^2-31b+5
(2b1)(3b5)(2b-1)(3b-5)6b213b+56b^2-13b+5
(2b5)(3b1)(2b-5)(3b-1)6b217b+56b^2-17b+5

So 6b213b+5=(2b1)(3b5)6b^2-13b+5=(2b-1)(3b-5).

Factor completely using trial and error: 8x214x+38x^2-14x+3.

Factor completely using trial and error: 10y237y+710y^2-37y+7.

If an expression has no GCF, neither factor can have a common factor. This eliminates some combinations.

Example. Factor 18x237xy+15y218x^2-37xy+15y^2 using trial and error.

Test x,18xx,18x, 2x,9x2x,9x, and 3x,6x3x,6x with y,15y-y,-15y and 3y,5y-3y,-5y, eliminating binomials with common factors. The correct product is

18x237xy+15y2=(2x3y)(9x5y).18x^2-37xy+15y^2=(2x-3y)(9x-5y).

Factor completely using trial and error: 18x23xy10y218x^2-3xy-10y^2.

Factor completely using trial and error: 30x253xy21y230x^2-53xy-21y^2.

If the leading coefficient is negative, so is the GCF.

Example. Factor 10y455y360y2-10y^4-55y^3-60y^2.

10y455y360y2=5y2(2y2+11y+12)=5y2(y+4)(2y+3).-10y^4-55y^3-60y^2=-5y^2(2y^2+11y+12)=-5y^2(y+4)(2y+3).

Factor completely: 15n385n2+100n15n^3-85n^2+100n.

Factor completely: 56q3+320q296q56q^3+320q^2-96q.

Factor trinomials of the form ax2+bx+cax^2+bx+c using the “ac” method

The “ac” method, sometimes called the grouping method, extends the preceding method. It is very structured and always works.

Example. Factor 6x2+7x+26x^2+7x+2 using the “ac” method.

There is no GCF. Since ac=12ac=12, use 3,43,4, which multiply to 1212 and add to 77. Split the middle term and factor by grouping:

6x2+7x+2=6x2+3x+4x+2=3x(2x+1)+2(2x+1)=(2x+1)(3x+2) \begin{array}{rcl} 6x^2+7x+2&=&6x^2+3x+4x+2\\[4pt] &=&3x(2x+1)+2(2x+1)\\[4pt] &=&(2x+1)(3x+2) \end{array}

Factor using the ac method: 6x2+13x+26x^2+13x+2.

Factor using the ac method: 4y2+8y+34y^2+8y+3.

Factor using the “ac” method. Factor any GCF; find acac; find m,nm,n that multiply to acac and add to bb; split the middle term using m,nm,n; factor by grouping; and check by multiplying.

Example. Factor 10y255y+7010y^2-55y+70 using the “ac” method.

Factor out 55. Inside, ac=28ac=28 and 4,7-4,-7 multiply to 2828 and add to 11-11.

10y255y+70=5(2y211y+14)=5(2y27y4y+14)=5(y2)(2y7) \begin{array}{rcl} 10y^2-55y+70&=&5(2y^2-11y+14)\\[4pt] &=&5(2y^2-7y-4y+14)\\[4pt] &=&5(y-2)(2y-7) \end{array}

Factor using the ac method: 16x232x+1216x^2-32x+12.

Factor using the ac method: 18w239w+1818w^2-39w+18.

Factor using substitution

Sometimes a trinomial does not appear to be in ax2+bx+cax^2+bx+c form. A thoughtful substitution can make it fit. It is standard to use uu. Look for a middle-term variable whose square is the variable part of the first term.

Example. Factor x44x25x^4-4x^2-5 by substitution.

Let u=x2u=x^2:

x44x25=u24u5=(u+1)(u5)=(x2+1)(x25).x^4-4x^2-5=u^2-4u-5=(u+1)(u-5)=(x^2+1)(x^2-5).

Factor by substitution: h4+4h212h^4+4h^2-12.

Factor by substitution: y4y220y^4-y^2-20.

Sometimes the expression to substitute is not a monomial.

Example. Factor (x2)2+7(x2)+12(x-2)^2+7(x-2)+12 by substitution.

Let u=x2u=x-2:

(x2)2+7(x2)+12=u2+7u+12=(u+3)(u+4)=(x+1)(x+2) \begin{array}{rcl} (x-2)^2+7(x-2)+12&=&u^2+7u+12\\[4pt] &=&(u+3)(u+4)\\[4pt] &=&(x+1)(x+2) \end{array}

This could also be factored by multiplying out and combining like terms, but most students prefer substitution.

Factor by substitution: (x5)2+6(x5)+8(x-5)^2+6(x-5)+8.

Factor by substitution: (y4)2+8(y4)+15(y-4)^2+8(y-4)+15.

Key terms

trial and error — testing possible factor pairs until their product is the original trinomial. ac method — finding two numbers whose product is acac and sum is bb, splitting the middle term, and factoring by grouping. factoring by substitution — replacing a repeated expression with a variable to make a familiar factorable form. prime trinomial — a trinomial that cannot be factored over the integers.


This section is adapted from Intermediate Algebra 2e, Section 6.2: Factor Trinomials by Lynn Marecek and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: reformatted worked-example tables and factoring diagrams as accessible math and tables, omitted the Be Prepared quiz, media link, and end-of-section exercises, and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.