This site is a work in progress. New lessons are added regularly. Contact us

Factoring Quadratics

Learning goals

  • Find two numbers with sum bb and product cc
  • Read the signs from cc first, then from bb
  • Solve by factoring and the zero-product property
  • Pull out a common factor, or a shared xx, first
  • Check by expanding the factors back
  • Call a trinomial irreducible when no integer pair fits

Factoring reverses expanding

To factor a trinomial is to write it as a product of factors, the exact reverse of expanding a product into a trinomial. Since the two operations undo each other, the way to discover the factors is to look closely at what expanding produces. In the chapter on expanding you multiplied two simple factors of the form x+px + p and x+qx + q and got

(x+p)(x+q)=x2+(p+q)x+pq.(x + p)(x + q) = x^2 + (p + q)x + pq.

Read that equation from right to left and it stops being a multiplication rule and becomes a factoring recipe.

Why factoring x2+bx+cx^2 + bx + c means finding two numbers with sum bb and product cc#

Start by expanding a general product of the two factors x+px + p and x+qx + q, multiplying every term of the first by every term of the second:

(x+p)(x+q)=x2+qx+px+pq=x2+(p+q)x+pq.(x + p)(x + q) = x^2 + qx + px + pq = x^2 + (p + q)x + pq.

Now suppose this product is the trinomial x2+bx+cx^2 + bx + c you are trying to factor. Two expressions in xx are equal for every value of xx only when they match term by term. So line up the coefficient of xx and the constant term on each side:

p+q=bandpq=c.p + q = b \qquad \text{and} \qquad pq = c.

That is the whole secret of the method. To factor x2+bx+cx^2 + bx + c you need two numbers, pp and qq, that add up to bb and multiply to cc. Find that pair and the factorization is (x+p)(x+q)(x + p)(x + q), with nothing left to guess. Notice also that the squared term on the left is a plain x2x^2 with coefficient 11, and the expansion produces an x2x^2 with coefficient 11 to match. That match is exactly why this recipe fits a trinomial that begins with x2x^2 and no number in front.

The picture behind the recipe is the same rectangle you drew for expanding, read the other way. Give a rectangle a width of x+px + p and a height of x+qx + q. The two splits carve it into four pieces whose areas are x2x^2, pxpx, qxqx, and the small corner pqpq.

Area model for factoring x squared plus b x plus cA rectangle of width x plus p and height x plus q is divided by one vertical and one horizontal line into four cells with areas x squared, p x, q x, and p q, whose sum is x squared plus the quantity p plus q times x plus p q.xpxqpxqxpqx² + (p + q)x + pq
A rectangle with side x + p across the top and side x + q down the left splits into four pieces, a square of area x squared, two strips of area px and qx, and a corner block of area pq. The four areas add to x squared plus the quantity p plus q times x plus pq, which is x squared + bx + c when p + q = b and pq = c.

The two strips pxpx and qxqx together make the middle term, since they combine to (p+q)x(p + q)x, and the corner pqpq is the constant. So matching the middle term of a trinomial pins down p+qp + q, and matching the constant pins down pqpq. Everything below is just carrying out that search.

Finding the two numbers

The recipe turns factoring into a small, orderly search. Run through the pairs of whole numbers that multiply to cc, and pick the pair that also adds to bb. The signs do much of the work of narrowing that search, so read them before you start listing.

Because c=pqc = pq is the product of the two numbers, its sign tells you whether they share a sign. When cc is positive, pp and qq must have the same sign, because only two positives or two negatives multiply to a positive. In that case the pair’s sum bb tells you which sign they share: both positive when bb is positive, and both negative when bb is negative. When cc is negative, the two numbers must have opposite signs, because a positive times a negative is negative. When the signs are opposite, the number with the larger size carries the sign of bb. Reading the signs this way cuts the list of candidate pairs roughly in half before you add anything.

Worked example 1 Factor x2+7x+12x^2 + 7x + 12

Here b=7b = 7 and c=12c = 12. The product 1212 is positive and the sum 77 is positive, so both numbers are positive. List the positive pairs that multiply to 1212 and check which one adds to 77:

112=12 (sum 13),26=12 (sum 8),34=12 (sum 7).1 \cdot 12 = 12\ (\text{sum } 13), \quad 2 \cdot 6 = 12\ (\text{sum } 8), \quad 3 \cdot 4 = 12\ (\text{sum } 7).

The pair 33 and 44 has the sum you want, so those are pp and qq:

x2+7x+12=(x+3)(x+4).x^2 + 7x + 12 = (x + 3)(x + 4).

Check by expanding the answer back: (x+3)(x+4)=x2+4x+3x+12=x2+7x+12(x + 3)(x + 4) = x^2 + 4x + 3x + 12 = x^2 + 7x + 12, the original.

Worked example 2 Factor x29x+20x^2 - 9x + 20

Now b=9b = -9 and c=20c = 20. The product 2020 is positive, so the two numbers share a sign, and the sum 9-9 is negative, so both are negative. List the negative pairs multiplying to 2020:

(1)(20) (sum 21),(2)(10) (sum 12),(4)(5) (sum 9).(-1)(-20)\ (\text{sum } -21), \quad (-2)(-10)\ (\text{sum } -12), \quad (-4)(-5)\ (\text{sum } -9).

The pair 4-4 and 5-5 works, so

x29x+20=(x4)(x5).x^2 - 9x + 20 = (x - 4)(x - 5).

Expanding confirms it: (x4)(x5)=x25x4x+20=x29x+20(x - 4)(x - 5) = x^2 - 5x - 4x + 20 = x^2 - 9x + 20.

Worked example 3 Factor x2+2x15x^2 + 2x - 15, then x22x15x^2 - 2x - 15

Both trinomials have c=15c = -15, which is negative, so in each the two numbers have opposite signs. The size pairs that multiply to 1515 are 11 and 1515 or 33 and 55. Of those two pairs, only 33 and 55 can be arranged to give a sum of size 22.

For x2+2x15x^2 + 2x - 15 the sum is +2+2, so the larger number is positive: take +5+5 and 3-3, since 5+(3)=25 + (-3) = 2 and 5(3)=155 \cdot (-3) = -15:

x2+2x15=(x+5)(x3).x^2 + 2x - 15 = (x + 5)(x - 3).

For x22x15x^2 - 2x - 15 the sum is 2-2, so the larger number is negative: take 5-5 and +3+3, since 5+3=2-5 + 3 = -2 and (5)(3)=15(-5)(3) = -15:

x22x15=(x5)(x+3).x^2 - 2x - 15 = (x - 5)(x + 3).

The same size pair {3,5}\{3, 5\} handles both trinomials; only the sign on the larger number flips to match the sign of bb.

The method does not care if bb happens to be 00. To factor x29x^2 - 9, read it as x2+0x9x^2 + 0x - 9 and look for two numbers with sum 00 and product 9-9. Opposite numbers of the same size add to 00, and 33 and 3-3 multiply to 9-9, so x29=(x+3)(x3)x^2 - 9 = (x + 3)(x - 3). A missing middle term simply means the two numbers are opposites.

Check your understanding

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

Answer choices

Solving a quadratic by factoring

Factoring is worth the effort because it feeds straight into the zero-product property from the last lesson. To solve x2+bx+c=0x^2 + bx + c = 0, factor the left side into (x+p)(x+q)(x + p)(x + q) and set the product to zero:

(x+p)(x+q)=0.(x + p)(x + q) = 0.

A product is zero only when one of its factors is zero, so x+p=0x + p = 0 or x+q=0x + q = 0, which gives x=px = -p or x=qx = -q. Watch the sign flip one more time: the number that sits inside a factor as +p+p becomes the root p-p. A factor and the root it produces always have opposite signs, and that is where a careless solve most often goes wrong.

Worked example 4 Solve x2+x6=0x^2 + x - 6 = 0

First factor the left side. With b=1b = 1 and c=6c = -6, the product is negative, so the two numbers have opposite signs, and they must add to 11. The pair 33 and 2-2 works, since 3+(2)=13 + (-2) = 1 and 3(2)=63 \cdot (-2) = -6:

x2+x6=(x+3)(x2)=0.x^2 + x - 6 = (x + 3)(x - 2) = 0.

By the zero-product property, set each factor to 00:

x+3=0orx2=0,x + 3 = 0 \qquad \text{or} \qquad x - 2 = 0,

so x=3x = -3 or x=2x = 2. Two checks are available, and it is worth using them. Substituting confirms the roots, since (3)2+(3)6=936=0(-3)^2 + (-3) - 6 = 9 - 3 - 6 = 0 and 22+26=02^2 + 2 - 6 = 0. Expanding the factors also rebuilds the original, since (x+3)(x2)=x2+x6(x + 3)(x - 2) = x^2 + x - 6. Either check catches a slip.

Check your understanding

Solve x23x10=0x^2 - 3x - 10 = 0 by factoring.

Answer choices

Pulling out a common factor first

Two setups look harder than they are, and both begin with a factor you pull out before the sum-and-product search even starts.

The first is a trinomial whose three coefficients share a common numerical factor, such as 2x2+6x+42x^2 + 6x + 4. Its leading coefficient is not 11, so the recipe does not apply directly. But every term is even, so factor the 22 out front first:

2x2+6x+4=2(x2+3x+2).2x^2 + 6x + 4 = 2(x^2 + 3x + 2).

Inside the parentheses the leading coefficient is back to 11. The sum-and-product method now finishes the job: two numbers with sum 33 and product 22 are 11 and 22, so

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

Always pull out a common numerical factor first. It shrinks the numbers you have to work with and turns a stubborn-looking trinomial into a monic one you already know how to handle.

The second setup is a trinomial with no constant term, like x25xx^2 - 5x. Here c=0c = 0, and instead of hunting for a pair you simply pull out the shared xx:

x25x=x(x5).x^2 - 5x = x(x - 5).

Every term contains an xx, so xx is the common factor, and a single linear factor is left. Solving x25x=0x^2 - 5x = 0 then gives x=0x = 0 or x=5x = 5. The root x=0x = 0 is the one most often lost, because dividing both sides by xx quietly throws it away. Keep the factor rather than dividing, and both roots survive.

Worked example 5 Solve 3x26x24=03x^2 - 6x - 24 = 0

Every coefficient is a multiple of 33, so pull out the 33 first:

3x26x24=3(x22x8)=0.3x^2 - 6x - 24 = 3(x^2 - 2x - 8) = 0.

Now factor the monic trinomial inside. With sum 2-2 and product 8-8, the numbers are 4-4 and 22, since 4+2=2-4 + 2 = -2 and (4)(2)=8(-4)(2) = -8:

3(x4)(x+2)=0.3(x - 4)(x + 2) = 0.

The constant 33 can never equal 00, so it contributes no root; the product is zero exactly when one of the variable factors is. Setting x4=0x - 4 = 0 or x+2=0x + 2 = 0 gives

x=4orx=2.x = 4 \qquad \text{or} \qquad x = -2.

A nonzero number pulled out front is carried along for the ride and never changes the roots.

Check your understanding

Factor 2x2+10x+122x^2 + 10x + 12 completely.

Answer choices

When a trinomial will not factor

Not every trinomial can be factored this way. The method depends on finding two whole numbers with the right sum and product, and sometimes no such pair exists. Take x2+x+1x^2 + x + 1. You would need two numbers that multiply to 11 and add to 11. The only integer pairs that multiply to 11 are 11 and 11, which add to 22, or 1-1 and 1-1, which add to 2-2. Neither adds to 11, so the search fails, and x2+x+1x^2 + x + 1 is irreducible over the integers: it cannot be written as a product of factors with whole-number coefficients.

That does not mean the equation x2+x+1=0x^2 + x + 1 = 0 has no solutions. It means only that factoring over the integers is the wrong tool for it. Later lessons build methods, completing the square and the quadratic formula, that solve any quadratic whether it factors or not. For now, an honest run through the factor pairs of cc may turn up no pair that adds to bb. When that happens, you can stop and report that the trinomial does not factor over the integers, rather than force an answer that is not there.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

Here is a puzzle roughly eighteen centuries old. Divide 2020 into two parts whose product is 9696.

It belongs to Diophantus, who worked in Alexandria, a Greek city in Egypt. He gathered a collection of problems of exactly this shape, and this one is the twenty-seventh in his opening book. You can already answer it, because two numbers with a given sum and a given product is precisely the search you ran all lesson. The pair is 1212 and 88, which is the same as writing x220x+96=(x12)(x8)x^2 - 20x + 96 = (x - 12)(x - 8).

The valuable part is the caution he attached. Before you begin the hunt, he says, check that a tidy answer exists. Halve the sum, square the result, and subtract the product. Whatever remains must itself be a square number. Here half of 2020 is 1010, and 100100 minus 9696 leaves 44, a genuine square. The test is passed, so the search is worth starting.

He needed that caution for the reason you discovered at the end of this lesson. The search genuinely can fail. Confronted with x2+x+1x^2 + x + 1, you examined every factor pair of cc and found nothing that added to bb. His test and your run through the pairs deliver the same verdict in different words. No such pair exists, and reporting that honestly is a conclusion, not a defeat.