Polynomials & Factoring

Factoring Trinomials: Step-by-Step Methods and Worked Examples

A trinomial x2+bx+cx^2+bx+c factors as (x+m)(x+n)(x+m)(x+n), where mm and nn multiply to cc and add to bb. When the leading coefficient is not 1, find two numbers that multiply to acac and add to bb, split the middle term with them, and factor by grouping.

x2+bx+c=(x+m)(x+n),m+n=b,mn=cx^2+bx+c=(x+m)(x+n),\quad m+n=b,\quad mn=c

Try it with your numbers

Show every step

A trinomial is a polynomial with exactly three terms, and the ones you meet in algebra are almost always quadratics: ax2+bx+cax^2+bx+c. Factoring turns that sum into a product of two binomials, which is the key step for solving quadratic equations, simplifying fractions and graphing parabolas.

How Do You Factor Trinomials When the Leading Coefficient Is 1?

Bar chart of factor pair sums of 72 shrinking toward the middle, 8 and 9 sum to 17
Pair sums of 72 fall from 73 down to 17 at 8 × 9, so a small b points to the middle pairs.

Take x2+9x+20x^2+9x+20. Two binomials that start with xx are the frame: (x+  )(x+  )(x+\ \ )(x+\ \ ). The blanks need two numbers with product 2020 and sum 99. List the factor pairs of 2020 in order and check each sum: 1+20=211+20=21, 2+10=122+10=12, 4+5=94+5=9. The last pair works.

x2+9x+20=(x+4)(x+5)x^2+9x+20=(x+4)(x+5)

A speed tip for large constants: when cc is positive, the sums of its factor pairs are smallest near the middle of the list and grow toward the ends. For x2+17x+72x^2+17x+72, the pairs near 72≈8.5\sqrt{72}\approx 8.5 are the ones to try first, and 88 and 99 give sum 1717 immediately. A small bb points to the middle, a large bb points to the ends.

The expression has degree 2, so it has at most two linear factors. That bounds the work: once you find one valid pair, you are done, and no other pair can also work.

Quick check

Factor x2+10x+21x^2+10x+21.

Why the Sum and Product Trick Works

The trick is the FOIL method run backwards. Multiply two binomials and collect the middle terms:

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

The middle coefficient is the sum m+nm+n and the constant is the product mnmn. Factoring is nothing more than recovering mm and nn from those two clues, which is why it feels like a puzzle with exactly one solution.

The roots hide in the factors

If x2+bx+c=(x+m)(x+n)x^2+bx+c=(x+m)(x+n), the equation equals zero at x=−mx=-m and x=−nx=-n. So bb is the negative of the roots' sum, and cc is their product.

This also explains why guessing works at all. Every wrong pair fails for a reason you can see: the product is right but the sum is wrong, or the reverse. You are never choosing between equally plausible answers, only searching a short list.

Factoring Trinomials With Negative Numbers

Table of factor pairs of 24 showing the gap, not the sum, equals 2 for x² − 2x − 24
For x² − 2x − 24, no factor pair of 24 sums to 2, but 4 and 6 have a gap of 2, giving (x − 6)(x + 4).

Signs decide the whole search, so read them before listing any pairs. When cc is positive, mm and nn share a sign, and it matches the sign of bb. When cc is negative, mm and nn have opposite signs, and the one with the larger absolute value takes the sign of bb.

Try x2−2x−24x^2-2x-24. Since c=−24c=-24 is negative, the pair has opposite signs. Their absolute values must differ by 22, because b=−2b=-2. Among the factor pairs of 2424, only 44 and 66 differ by 22. The larger one, 66, takes the minus sign:

x2−2x−24=(x−6)(x+4)x^2-2x-24=(x-6)(x+4)

The trap that costs the most points is using the sum when cc is negative. With opposite signs, the sum of the two numbers is the difference of their sizes, so you are hunting for a pair whose gap equals ∣b∣|b|, not whose total does. Writing the numbers into the binomials with the wrong sign is the second most common slip, and the check in the last section catches it.

Try this: Predict the signs of the two numbers in x2−x−30x^2-x-30 before listing any factor pairs, then find them. (Answer: (x−6)(x+5)(x-6)(x+5).)

How to Factor Trinomials When a Is Not 1

When the leading coefficient is not 1, the sum and product trick needs one upgrade. Here is why. Multiply two general binomials:

(px+q)(rx+s)=pr x2+(ps+qr)x+qs(px+q)(rx+s)=pr\,x^2+(ps+qr)x+qs

The two middle products, psps and qrqr, add to bb. Their product is ps⋅qr=pr⋅qs=acps\cdot qr=pr\cdot qs=ac. So you look for two numbers that multiply to acac and add to bb, then use them to split the middle term. This is the ac method, and it ends with factoring by grouping.

  1. Multiply aa and cc.
  2. Find two numbers with that product and a sum of bb.
  3. Rewrite bxbx as the sum of two terms using those numbers.
  4. Group the four terms in pairs and factor each pair.
  5. Factor out the common binomial.

Work it on 6x2+11x−106x^2+11x-10. Here ac=−60ac=-60. The pair 1515 and −4-4 has product −60-60 and sum 1111. Split the middle term and group:

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

Notice the second group: −4x−10-4x-10 factors as −2(2x+5)-2(2x+5), not 2(… )2(\dots). Pulling out the negative so the leftover binomial matches the first group is the step students miss most often. If the two binomials do not match, the sign of the second group is the first thing to fix. The box method arranges the same four terms in a grid, which many learners find easier to track.

Is This Trinomial Factorable? The Discriminant Test

Some trinomials have no integer factorization, and hunting for one wastes minutes. The discriminant settles it before you start. Compute b2−4acb^2-4ac and look at the result:

  • A perfect square (including 00): the trinomial factors over the integers.
  • A positive number that is not a perfect square: the roots are real but irrational, so no integer factors exist.
  • A negative number: there are no real roots, so no real linear factors.

For x2+4x+6x^2+4x+6, b2−4ac=16−24=−8b^2-4ac=16-24=-8, so it cannot be factored over the reals. For x2+2x−5x^2+2x-5, the value is 4+20=244+20=24, which is not a perfect square, so the roots are irrational. For 6x2+11x−106x^2+11x-10 from the last section, the value is 121+240=361=192121+240=361=19^2, a perfect square, which confirms the factors (2x+5)(3x−2)(2x+5)(3x-2) exist.

The test is the quadratic formula’s square-root part, in disguise. The roots are x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}, and they are rational exactly when that square root is a whole number. For the example above, x=−11±1912x=\frac{-11\pm19}{12} gives 23\frac{2}{3} and −52-\frac{5}{2}, matching the zeros of (3x−2)(3x-2) and (2x+5)(2x+5). For more practice with this formula, see these quadratic formula problems with answers.

Quick check

Can x2+6x+10x^2+6x+10 be factored into real linear factors? Answer yes or no.

Factoring Trinomials With a GCF or Two Variables

Always look for a common factor first. Take 6x2+9x−156x^2+9x-15. Skipping the GCF means working with ac=−90ac=-90. Pulling out 33 first leaves 2x2+3x−52x^2+3x-5, where ac=−10ac=-10, and the pair −2-2 and 55 appears almost at once:

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

Keep the 33 in the final answer. Dropping it is a surprisingly common way to lose the mark after doing all the hard work correctly. The full technique is in factoring out the GCF.

Finished means fully factored

4x2+10x+64x^2+10x+6 becomes 2(2x2+5x+3)=2(2x+3)(x+1)2(2x^2+5x+3)=2(2x+3)(x+1). Stopping at 2(2x2+5x+3)2(2x^2+5x+3) leaves a factorable trinomial inside the brackets.

Two variables follow the same logic with the second variable riding along. For x2+5xy+6y2x^2+5xy+6y^2, find numbers with product 66 and sum 55: 22 and 33. Attach yy to each: (x+2y)(x+3y)(x+2y)(x+3y). If the leading coefficient is negative, as in −x2+5x−6-x^2+5x-6, factor out −1-1 first: −(x2−5x+6)=−(x−2)(x−3)-(x^2-5x+6)=-(x-2)(x-3).

Hidden Trinomials: Substitution and Perfect Squares

A trinomial does not have to start with x2x^2. If the exponents are 4,2,04, 2, 0 or any pattern where the first is double the middle, substitute. In x4−5x2−36x^4-5x^2-36, let u=x2u=x^2 to get u2−5u−36u^2-5u-36. The numbers −9-9 and 44 work, so (u−9)(u+4)(u-9)(u+4). Put x2x^2 back and finish:

x4−5x2−36=(x2−9)(x2+4)=(x−3)(x+3)(x2+4)x^4-5x^2-36=(x^2-9)(x^2+4)=(x-3)(x+3)(x^2+4)

The factor x2+4x^2+4 stays because its discriminant is 0−16<00-16<0. Always try to keep factoring each piece, but know when a piece is done.

Some trinomials are squares in disguise. If the first and last terms are perfect squares and the middle term is twice the product of their roots, the trinomial is a perfect square trinomial: 4x2+12x+9=(2x+3)24x^2+12x+9=(2x+3)^2, since 2⋅2⋅3=122\cdot2\cdot3=12.

Trinomials of higher degree sometimes yield to a root search. For x3−7x−6x^3-7x-6, testing x=−1x=-1 gives −1+7−6=0-1+7-6=0, so by the factor theorem (x+1)(x+1) is a factor. Synthetic division with −1-1 on the coefficients 1,0,−7,−61,0,-7,-6 produces 1,−1,−61,-1,-6 with remainder 00, so the quotient is x2−x−6=(x−3)(x+2)x^2-x-6=(x-3)(x+2). The full factorization is (x+1)(x+2)(x−3)(x+1)(x+2)(x-3).

Factoring Trinomials to Solve Quadratic Equations

Factoring pays off through the zero product property: if a product equals zero, at least one factor is zero. To solve x2−2x−24=0x^2-2x-24=0, factor the left side and set each piece to zero:

(x−6)(x+4)=0⇒x=6  or  x=−4(x-6)(x+4)=0\quad\Rightarrow\quad x=6\ \text{ or }\ x=-4

Those two values are also where the parabola y=x2−2x−24y=x^2-2x-24 crosses the xx-axis. Factoring is the fastest route when the discriminant is a perfect square. When it is not, the quadratic formula is the right tool.

Factoring also appears in geometry. A rectangular patio with area x2+9x+20x^2+9x+20 square feet has side lengths (x+4)(x+4) and (x+5)(x+5) feet. Check with x=3x=3: the sides are 77 and 88, the area is 5656, and 9+27+20=569+27+20=56. Contractors, designers and anyone working backwards from an area to its dimensions use the same step.

Quick check

Solve x2−x−12=0x^2-x-12=0 by factoring.

How to Check a Factored Trinomial

The standard check is to multiply the factors back out and compare with the original. For (2x+5)(3x−2)(2x+5)(3x-2), the product is 6x2−4x+15x−10=6x2+11x−106x^2-4x+15x-10=6x^2+11x-10, which matches. If you want more practice multiplying binomials in either direction, multiplying polynomials covers it fully.

A faster check uses numbers. Substitute a small value for xx into both the trinomial and your factors. At x=1x=1, the trinomial gives 6+11−10=76+11-10=7, and the factors give (2+5)(3−2)=7(2+5)(3-2)=7. At x=2x=2, the trinomial gives 24+22−10=3624+22-10=36, and the factors give (4+5)(6−2)=36(4+5)(6-2)=36. One test value can match by coincidence, so use two. Avoid x=0x=0, because it only checks the constant term.

Two more instant checks: the product of the first terms of your binomials must equal the leading term, and the product of the last terms must equal cc. If either fails, the signs or the order are wrong. For a full set of mixed problems at all levels, work through the factoring practice problems.

Practice problems

0 of 5 solved

  1. Factor x2+8x+15x^2+8x+15.

  2. Factor x2−3x−28x^2-3x-28.

  3. Factor 2x2+11x+122x^2+11x+12.

  4. Factor 12x2−x−612x^2-x-6.

  5. Factor completely: x4−13x2+36x^4-13x^2+36.

Common questions

What is the easiest way to factor a trinomial?

If the leading coefficient is 1, find two numbers that multiply to the constant and add to the middle coefficient. If it is not 1, use the ac method: multiply aa and cc, find the pair that adds to bb, split the middle term and factor by grouping.

How do you factor a trinomial when a is not 1?

Multiply aa by cc, then find two numbers with that product and a sum of bb. Rewrite bxbx as the sum of two terms using those numbers, then factor the four-term expression by grouping. The box method is the same idea laid out in a grid.

How do you know if a trinomial cannot be factored?

Compute the discriminant b2−4acb^2-4ac. If it is not a perfect square, the trinomial has no factorization into binomials with integer coefficients. A trinomial like that is called prime over the integers.

Do you always factor out the GCF first?

Yes, check for a greatest common factor before anything else. It shrinks the numbers, often turns a hard a≠1a\neq1 problem into an easy one, and the GCF must appear in the final answer.

What is the difference between a trinomial and a perfect square trinomial?

A trinomial is any polynomial with three terms. A perfect square trinomial is a special one that equals a binomial squared, such as x2+6x+9=(x+3)2x^2+6x+9=(x+3)^2. Its discriminant is exactly zero.

Does the order of the two binomial factors matter?

No. Multiplication is commutative, so (x+3)(x+5)(x+3)(x+5) and (x+5)(x+3)(x+5)(x+3) are the same answer. When splitting the middle term in the ac method, either order also leads to the same factors.

Up next