1. Home
  2. Blog
  3. The product-sum method

The product-sum method for factoring ax² + bx + c

To factor ax2+bx+c by the product-sum method, find two numbers whose product is a×c and whose sum is b, use them to split the middle term bx into two terms, and factor the four terms by grouping. It works for every trinomial that factors over the integers, including the ones where a≠1, and when no such pair exists, it tells you so.

Why the two numbers multiply to a × c

Multiply out any two binomials and watch where the middle term comes from:

(px+q)(rx+s)=prx2+psx+qrx+qs
  • The leading coefficient is a=pr and the constant is c=qs.
  • The two middle pieces, ps and qr, add up to b.
  • Their product is ps×qr=(pr)(qs), which is a×c.

So every trinomial that factors hides two numbers with product ac and sum b: they are the two middle terms from before they were combined. The method finds them and splits the middle term back into those two pieces. The four terms then factor by grouping, because that is exactly how they were produced. When a=1, the product ac is just c, which is the familiar search for x2+bx+c.

The method in five steps

  1. Take out any common factor first. Smaller coefficients mean fewer pairs to try.
  2. Compute a×c, and let the signs narrow the search. If ac>0, both numbers have the sign of b. If ac<0, they have opposite signs, and the one farther from zero takes the sign of b.
  3. List the factor pairs of the size of ac until one gives the right sum (or, for opposite signs, the right difference).
  4. Split bx into two terms using the pair.
  5. Group the terms in pairs, take the common factor out of each pair, then take out the common bracket. Check by expanding.

Worked example 1

Factor 20x2−3x−2.

  • Common factor: none; 20, 3 and 2 share no factor.
  • Product and sum: ac=20×(−2)=−40 and b=−3. The product is negative, so the signs differ; the sum is negative, so the number farther from zero is the negative one.
  • Pairs of 40: 1×40, 2×20, 4×10, 5×8. The pair that differs by 3 is 5 and 8, so the numbers are 5 and −8: 5×(−8)=−40 and 5+(−8)=−3.
  • Split: 20x2−3x−2=20x2+5x−8x−2
  • Group: =5x(4x+1)−2(4x+1) =(4x+1)(5x−2)
  • Check: (4x+1)(5x−2)=20x2−8x+5x−2=20x2−3x−2.

In the second pair, take out −2, not 2: choose the sign that leaves the same bracket as the first pair, 4x+1. The order of the split does not matter either. Writing 20x2−8x+5x−2 groups as 4x(5x−2)+1(5x−2) and gives the same two factors.

Worked example 2: the common factor comes first

Factor 12x2+34x+14.

  • Every coefficient is even: 12x2+34x+14=2(6x2+17x+7).
  • For 6x2+17x+7: ac=42 and b=17, both positive, so both numbers are positive. Pairs of 42: 1×42, 2×21, 3×14, 6×7. The sum 17 comes from 3 and 14.
  • Split and group: 6x2+3x+14x+7=3x(2x+1)+7(2x+1)=(2x+1)(3x+7)
  • Bring the 2 back: 12x2+34x+14=2(2x+1)(3x+7).

Skipping the first step still works, but it costs you. The product becomes 12×14=168, which has twice as many factor pairs to search, and the 2 still has to be pulled out of a bracket at the end: the split 6x+28x leads to (2x+1)(6x+14).

The most common mistake. When a≠1, the two numbers multiply to a×c, not to c. The habit carried over from trinomials like x2+bx+c is to look for a product of c. With a≠1 that search either finds nothing, and the student wrongly decides the trinomial cannot be factored, or finds a pair whose split will not group. Make ac the first thing you write on every product-sum question.

When no pair exists

If you have listed every factor pair of ac and none has the right sum, the trinomial does not factor over the integers, and that is a legitimate answer. Take 2x2+5x+4: ac=8, and the pairs 1×8 and 2×4 add to 9 and 6, never 5 (the negative pairs give negative sums).

There is a quick confirmation. The two numbers you are looking for are the solutions of t2−bt+ac=0. When a, b and c are integers, as they are in every product-sum question, those solutions are integers exactly when the discriminant b2−4ac is a perfect square (0, 1, 4, 9, 16, and so on). For 2x2+5x+4 it is 25−32=−7, so no pair exists.

Optional, and beyond what Secondary 4 asks. When ac is large and the discriminant is a perfect square, the same fact hands you the pair directly:

b+b2−4ac2andb−b2−4ac2

In worked example 1, b2−4ac=9+160=169=132, and half of −3+13 and of −3−13 gives 5 and −8.

A trinomial that will not factor still has a standard form, and completing the square always gets you there. One that does factor is now in factored form, and what each form of a quadratic function tells you explains what to read off it.

Check your understanding

No calculator. Check every factorization by expanding it.

  1. Find two numbers whose product is −36 and whose sum is 5.
  2. Factor 3x2+10x+8.
  3. Factor 9x2+3x−2.
  4. Factor 12x2−17x+6.
  5. Factor completely: 6x3+3x2−9x.
  6. Explain why, when a×c is positive and b is negative, both numbers in the product-sum method must be negative.
  7. Léa wants to factor 3x2−10x−8. She looks for two numbers with product −8 and sum −10, finds none, and concludes that the trinomial cannot be factored. Find her error, then factor the trinomial.
  8. True or false: because no two integers have product 8 and sum 7, the function f(x)=2x2+7x+4 has no zeroes. Explain.
Show the answers
  1. 9 and −4: 9×(−4)=−36 and 9+(−4)=5. The product is negative, so the signs differ, and the sum is positive, so the larger number is the positive one.
  2. (3x+4)(x+2). Here ac=24 with sum 10, so the numbers are 4 and 6: 3x2+4x+6x+8=x(3x+4)+2(3x+4).
  3. (3x+2)(3x−1). Here ac=−18 with sum 3, so the numbers are 6 and −3: 9x2+6x−3x−2=3x(3x+2)−1(3x+2). The second pair gives up −1 so that the brackets match.
  4. (3x−2)(4x−3). Here ac=72 with sum −17, so both numbers are negative: −8 and −9. Then 12x2−8x−9x+6=4x(3x−2)−3(3x−2).
  5. 3x(2x+3)(x−1). The common factor 3x comes out first, leaving 2x2+x−3, with ac=−6 and sum 1: the numbers 3 and −2 give 2x2+3x−2x−3=x(2x+3)−1(2x+3).
  6. A positive product means the two numbers have the same sign. Two positive numbers have a positive sum, so if the sum b is negative, both numbers have to be negative.
  7. Her product is wrong: with a=3, the two numbers must multiply to 3×(−8)=−24, not −8. With sum −10 they are −12 and 2, and 3x2+2x−12x−8=x(3x+2)−4(3x+2)=(3x+2)(x−4).
  8. False. No integer pair only means that f has no factored form with integer coefficients. Its discriminant is 72−4(2)(4)=17>0, so f has two real zeroes, −7±174; they are simply not rational. This is the perfect-square test from the section above: 17 is positive, so there are real zeroes, but it is not a perfect square, so there is no integer pair.

Keep practising

The free Secondary 4 Algebraic Expressions worksheet has a product-sum question in a set that mixes every factoring technique, which is the real test: deciding which one a trinomial needs. The Quadratic Functions worksheet then uses factoring to find the zeroes of a function.

Want one-on-one help with this? I offer Secondary 4 and 5 math tutoring in Montreal, in person or online. Sessions start with a short written diagnostic, and a written recap goes to whoever books after every session.

Practise factoring

Ready to improve your grades?

WhatsApp is the way to reach me — tell me the course you're taking and what you're stuck on, and we'll sort out a first session from there.

Message Me on WhatsApp

or send a message

I reply within a day, usually sooner. Your details are used only to answer you — see the Privacy Policy.

Private math & science tutoring in Montreal, QC — Westmount · Outremont · Town of Mount Royal · Hampstead · Côte-Saint-Luc · NDG · Nuns' Island · West Island — and online across Quebec.

Chat with Marius