Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Factor a Trinomial

For x2+bx+cx^2 + bx + c, look for two numbers that multiply to cc and add to bb. When the leading coefficient aa is not 11, the same search on acac tells you how to split the middle term, and grouping finishes the job.

Recognize the task

Three terms of the form ax2+bx+cax^2 + bx + c: x2+7x+12x^2 + 7x + 12, x2−x−20x^2 - x - 20, 6x2+11x−106x^2 + 11x - 10, 3x2−3x−183x^2 - 3x - 18. Test: can you find two integers with product acac and sum bb?
The lesson splits the simple case (a=1a = 1) from the general case; the pattern is the trinomial factoring pattern.

Two ways to do it

a = 1: product and sumsimple case
x2+bx+c=(x+p)(x+q),pq=c, p+q=bx^2 + bx + c = (x + p)(x + q), \quad pq = c,\ p + q = b
List the factor pairs of cc and pick the one with the right sum.
a ≠ 1: the ac methodgeneral case
ax2+bx+c=ax2+px+qx+c,pq=ac, p+q=bax^2 + bx + c = ax^2 + px + qx + c, \quad pq = ac,\ p + q = b
Split the middle term with pp and qq, then factor by grouping.

Steps

StepOn 6x2+11x−106x^2 + 11x - 10
1Take out a GCF first. GCF makes the numbers smaller.none here
2Compute ac and list its factor pairs. Mind the signs: a negative acac means the two numbers have opposite signs.ac=−60ac = -60: try 1515 and −4-4
3Pick the pair whose sum is b.15+(−4)=1115 + (-4) = 11 ✓
4Split the middle term and group. For a=1a = 1 you can skip this and write (x+p)(x+q)(x + p)(x + q) directly.6x2+15x−4x−10=3x(2x+5)−2(2x+5)6x^2 + 15x - 4x - 10 = 3x(2x + 5) - 2(2x + 5)
5Factor out the bracket and check. Expand the answer back.Distribute every term ↗(3x−2)(2x+5)(3x - 2)(2x + 5); check: 6x2+15x−4x−106x^2 + 15x - 4x - 10 ✓

Worked examples

Example 1 · leading coefficient 1

simple case
x2−x−20x^2 - x - 20: product −20-20, sum −1-1: −5-5 and 44
(x−5)(x+4)(x - 5)(x + 4)

Example 2 · both numbers negative

ac method
2x2−7x+32x^2 - 7x + 3: ac=6ac = 6, sum −7-7: −6-6 and −1-1
2x2−6x−x+3=2x(x−3)−1(x−3)=(2x−1)(x−3)2x^2 - 6x - x + 3 = 2x(x - 3) - 1(x - 3) = (2x - 1)(x - 3)

Example 3 · GCF first

smaller numbers
3x2−3x−18=3(x2−x−6)3x^2 - 3x - 18 = 3(x^2 - x - 6)
3(x−3)(x+2)3(x - 3)(x + 2)
Check any factorization in the factoring calculator.

See it happen

FOIL, generalized. Multiply each term of the left polynomial by each term of the right — that's the grid. Group cells with the same power of x into like-term buckets, then sum each bucket.
Pick an example or build your own
Left polynomial — P(x)
x2 − 3x + 2
x
x
x
Right polynomial — Q(x)
2x + 5
x
x
0 / 6 cells
P(x) · Q(x) — pairwise products and collection
Left has 3 terms, right has 2 terms. Distributing gives 3 × 2 = 6 pairwise products. Each cell's exponent is the sum of its row and column exponents — that's how products group into like-term buckets.
2x5
x22x35x2
−3x−6x2−15x
24x10
x3 termsexp = 3
(empty)
sum: 0
x2 termsexp = 2
(empty)
sum: 0
x termsexp = 1
(empty)
sum: 0
constantsexp = 0
(empty)
sum: 0
Result (pending)
P(x) · Q(x) = ?
Multiplying two binomials fills a two-by-two grid: the corners are ax2ax^2 and cc, and the two middle cells add up to bxbx. Factoring a trinomial is filling that grid backwards, which is exactly what splitting the middle term does.

Common mistakes

Using c instead of ac when a ≠ 1

✗ 6x2+11x−106x^2 + 11x - 10: factor pairs of −10-10 only
✓ search the pairs of ac=−60ac = -60

Right numbers, wrong signs

✗ x2−x−20=(x+5)(x−4)x^2 - x - 20 = (x + 5)(x - 4)
✓ that has middle term +x+x; it is (x−5)(x+4)(x - 5)(x + 4)

Forgetting the GCF in the answer

✗ 3x2−3x−18=(x−3)(x+2)3x^2 - 3x - 18 = (x - 3)(x + 2)
✓ 3(x−3)(x+2)3(x - 3)(x + 2)