Factoring Quadratics

by Jon Dreyer

Many people have relatively little trouble learning to factor (some) quadratics of the form x2+b⁡x+c, but throwing in an a (a standard-form quadratic of the form a⁡x2+b⁡x+c) throws people for a loop. I have seen many presentations of how to factor this kind of quadratic, but this one also shows why the method works.

First let's examine how we factor quadratics like x2+5⁡x+6. Factoring means finding things that multiply to get the thing we are trying to factor. In the case of quadratics, that means finding two linear factors that multiply to get the original quadratic. Often a useful technique is to make a box in which the insides represent the quadratic, and to the left and on top we write the factors that multiply out to get what's in the box. This is a visual version of the distributive law. Here is a solution:

× x +2
x x2 ⁡2⁡x
+3 3⁡x 6

This represents the equation

(x+3)(x+2)=x2+3⁡x+2⁡x+6=x2+5⁡x+6

Note that the contents of each quadrant of the box is the product of the thing to its left and the thing above it. The “hard part” of factoring the quadratic was picking the 3 and the 2: the numbers that add up to 5 (b in the standard form quadratic) and multiply to 6 (c in the standard form quadratic). Notice that, since a=1 in this quadratic, c=a⁡c so we could also say that 3 and 2 multiply to a⁡c. Let's focus on making them multiply to a⁡c because that method works for harder quadratics also: cases when a≠1.

Many of us also focus on the 3 in x+3 and the 2 in x+2 as the numbers that add to b and multiply to a⁡c. That works in this case, but not in cases when a≠1. Instead focus on the 3 and 2 inside the box. This seems like a silly distinction now but it won't in the next problem.

Specific example with a≠1 using the “box” method

Now let's factor 4⁡x2-8⁡x-5.

  1. Notice that, in this quadratic, a⁡c=4⋅(−5)=−20.⁡Choose m and n such that m⁡n=a⁡c=−20 and m+n=b=−8. This gives us m=−10 and n=2. Look ahead to the “But wait!” in step 3 to understand why we do this. Now fill in the insides of a “factoring box” using the m and n you just picked:

    4⁡x2 2⁡x
    (−10)⁡x −5
  2. Let's start filling out the two factors of a⁡x2 (4⁡x2 here) on the outside of the box. We don't know the coefficients yet so we'll write them like this:

    × k⁡x
    j⁡x 4⁡x2 2⁡x
    (−10)⁡x −5

    Obviously j⁡k=a=4 (otherwise j⁡x⋅k⁡x≠4⁡x2). To get a pretty factorization that has only integers, we want a j that divides both coefficients in its row of the box (a, which is 4 here, and n, which is 2 here), and a k that also divides both coefficients of its column (a again and m, which is −10 here). This gives us j=2 and k=2:

    × 2⁡x
    2⁡x 4⁡x2 2⁡x
    (−10)⁡x −5
  3. Now it's easy to fill out the rest mechanically. We need to be able to multiply the bottom left number by 2 to get −10, giving −5, and we need to be able to multiply the top right number by 2 to get 2, giving ?1.

    × 2⁡x +1
    2⁡x 4⁡x2 2⁡x
    -5 (−10)⁡x −5

    Notice that −5=−102 and 1=22. But wait! How did we get “lucky” on the −5 at the bottom right: If we picked the −5 based on the first column and the +1 based on the first row, how did we know that the −5 and the ?1 would multiply to get the bottom right cell? Well,

    (−5)(1) = (−102)⁡(22) = −10⋅22⋅2 (multiplying fractions) = 4(−5)4 (because that's how we picked 10, 2, 2 and 2) = −5

    Thus the factorization is (2⁡x-5)⁡(2⁡x+1). You can check that this factorization works by multiplying it out to make sure it equals the original quadratic, 4⁡x2-8⁡x-5.

General case: factoring using the “box” method

The problem is now to factor the general standard-form quadratic, a⁡x2+b⁡x+c. As you read this general solution, compare with the specific example above. The steps are numbered the same.

  1. Choose m and n such that

    m⁡n=a⁡c⁡⁡⁡and⁡⁡⁡⁡m+n=b

    (Look ahead to the “But wait!” below to see why.) Now fill in the insides of a “factoring box” using the m and n you just picked:

    a⁡x2 n⁡x
    m⁡x c
  2. Pick j and k such that

    j⁡k=a

    For a nice, integer factorization, make sure j divides n and k divides m. (This is not always possible.) This gives us a box like this:

    × k⁡x
    j⁡x a⁡x2 n⁡x
    m⁡x c
  3. Now fill out the rest mechanically:

    × k⁡x +nj
    j⁡x a⁡x2 n⁡x
    +mk m⁡x c

    We chose j and k so j⁡k=a, so the x2 term of the product is a⁡x2. The choice of m and n so m+⁡n=b ensures that the x term of the product of the factors is b⁡x. But wait! Why is the constant term c? Remember that we insisted that m⁡n=a⁡c, and, again, that j⁡k=a. Thus

    mk⋅nj=m⁡nj⁡k=a⁡ca=c

    This is really the “big idea”: By choosing m, n, j and k properly, the rest of the box has to work:

    (j⁡x+mk)⁡(k⁡x+nj)=a⁡x2+b⁡x+c

    Once you see that mk⋅nj=c, the rest is easy.

    You don't really have to remember that the constant terms are mk and nj if you use the box; once you have chosen m, n, j and k properly, the box does the rest.

General case: Factoring algebraically

We don't really need the box to do this at all. We can do the same steps just using algebra. Again, the step numbers are the same as the other examples.

To factor a⁡x2+b⁡x+c:

  1. Find m and n such that

    m⁡n=a⁡c⁡⁡⁡and⁡⁡⁡⁡m+n=b
  2. Find j and k such that

    j⁡k=a

    Normally when factoring we also want k to divide m and for j to divide n. This gives us a nice, integer factorization.

  3. This gives us a factorization of (j⁡x+mk)⁡(k⁡x+nj).

    Here's why it works, no box needed:

    (j⁡x+mk)⁡(k⁡x+nj) = (j⁡k)⁡x2+(mk)⁡k⁡x+j⁡(nj)⁡x+m⁡nj⁡k = a⁡x2+m⁡x+n⁡x+m⁡nj⁡k = a⁡x2+(m+n)⁡x+m⁡nj⁡k = a⁡x2+b⁡x+m⁡nj⁡k = a⁡x2+b⁡x+a⁡ca = a⁡x2+b⁡x+c

    Voilà!

    The careful reader will notice that this algebraic argument follows the same path as the “box” method, just without the box.