Polynomials & Factoring

Box Method Factoring: How to Factor Trinomials with a Grid

To factor ax2+bx+cax^2+bx+c with the box method, find two numbers mm and nn with mn=acmn=ac and m+n=bm+n=b, then place ax2ax^2, mxmx, nxnx and cc in a 2×22\times2 box. The binomial factors are the GCFs of the rows and columns.

m⋅n=ac,m+n=bm\cdot n = ac,\quad m+n = b

Try it with your numbers

Show every step

The method is a tidy way to handle factoring trinomials whose leading coefficient is not 11, where guessing binomials by trial and error turns slow. It never asks you to guess. It asks you to search a short, finite list.

Why does the box method work for factoring?

Box method grid for 6x² + 11x − 10 showing both diagonals multiply to −60x²
In the box for 6x² + 11x − 10, each diagonal multiplies to −60x², which is why the middle numbers must multiply to ac.

Multiplication is the whole story. When you expand (px+q)(rx+s)(px+q)(rx+s) as an area model, the four cells of the rectangle hold prx2prx^2, psxpsx, qrxqrx and qsqs. This is the same bookkeeping as the FOIL method, laid out spatially instead of in a line. The two outer products of FOIL are exactly the two middle cells.

Now look at what those cells have in common. The two diagonals of any such box multiply to the same value:

(ps)(qr)=(pr)(qs)=ac(ps)(qr)=(pr)(qs)=ac

So the two middle cells, psxpsx and qrxqrx, multiply to ac x2ac\,x^2 and add to bxbx. That is the entire reason you hunt for two numbers with product acac and sum bb. They are the two middle cells, and the box tells you where they live.

Factoring runs the area model backwards. Each row of a filled box is a common factor times a piece of the second binomial, so the GCF of a row or column recovers one term of a factor. This is the same idea behind multiplying polynomials with a grid, reversed.

Quick check

A box for ax2+bx+cax^2+bx+c has middle cells 4x4x and 9x9x. What are bb and acac?

Box method factoring step by step

Here is the full procedure:

  1. Pull out any common factor from all three terms first.
  2. Compute acac, the leading coefficient times the constant.
  3. Find mm and nn with mn=acmn=ac and m+n=bm+n=b.
  4. Draw a 2×22\times2 box. Put ax2ax^2 top left, cc bottom right, and mxmx and nxnx in the other two cells, in either order.
  5. Take the GCF of each row and each column. Give each the sign that makes its cells come out right.
  6. Read one binomial from the row labels and the other from the column labels.

Example 1. Factor 6x2+11x−106x^2+11x-10. Here ac=−60ac=-60 and b=11b=11. The numbers have opposite signs, and the positive one is larger. Factor pairs of 6060 are 1,601,60; 2,302,30; 3,203,20; 4,154,15, and only 15−4=1115-4=11 works. So m=15m=15 and n=−4n=-4.

Row 1 has 6x26x^2 and 15x15x, with GCF 3x3x. Row 2 has −4x-4x and −10-10, with GCF −2-2. Column 1 has 6x26x^2 and −4x-4x, with GCF 2x2x. Column 2 has 15x15x and −10-10, with GCF 55. The completed box is:

2x53x6x215x−2−4x−10\begin{array}{c|cc} & 2x & 5 \\ \hline 3x & 6x^2 & 15x \\ -2 & -4x & -10 \end{array}

Every cell equals its row label times its column label, which confirms the work. The row labels give 3x−23x-2 and the column labels give 2x+52x+5:

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

The step that most often goes wrong is the one before the box: pulling out a common factor. A leftover common factor makes acac large and the search painful, and forgetting to write it back at the end makes the answer wrong.

How do you find the two middle numbers with negatives?

Two signs decide everything: the sign of acac and the sign of bb. Read them first and half the candidates disappear.

acac bb The two numbers
positive positive both positive
positive negative both negative
negative positive opposite signs, larger is positive
negative negative opposite signs, larger is negative

When acac is positive, the numbers are added, so you look for factor pairs of ∣ac∣|ac| whose sum is ∣b∣|b|. When acac is negative, the numbers are subtracted, so you look for pairs whose difference is ∣b∣|b|. List pairs from the outside in and stop at the first hit, because there is only ever one pair that works.

Example 2. Factor 2x2−7x+32x^2-7x+3. Here ac=6ac=6 and b=−7b=-7, so both numbers are negative. Pairs of 66 are 1,61,6 and 2,32,3, and only 1+6=71+6=7 fits, so m=−1m=-1 and n=−6n=-6.

Put 2x22x^2 and 33 on the diagonal and −6x-6x and −x-x in the other cells. Row 1 has GCF 2x2x and row 2 has GCF −1-1. Column 1 has GCF xx and column 2 has GCF −3-3:

x−32x2x2−6x−1−x3\begin{array}{c|cc} & x & -3 \\ \hline 2x & 2x^2 & -6x \\ -1 & -x & 3 \end{array}

The answer is (2x−1)(x−3)(2x-1)(x-3). The sign trap lives in the bottom row: the GCF must be −1-1, not 11, or the cells −x-x and 33 cannot both be produced.

Quick check

Which two numbers have product acac and sum bb for 3x2−8x+43x^2-8x+4?

Box method factoring with a common factor or negative lead

A trinomial like 12x2+10x−812x^2+10x-8 looks like it needs ac=−96ac=-96, but every term is even. Take out 22 first and the numbers shrink.

Example 3. Factor 12x2+10x−812x^2+10x-8. Pull out 22 to get 2(6x2+5x−4)2(6x^2+5x-4). Now ac=−24ac=-24 and b=5b=5, and 8−3=58-3=5 with product −24-24, so m=8m=8 and n=−3n=-3. Row 1 has GCF 2x2x, row 2 has GCF −1-1, column 1 has GCF 3x3x, and column 2 has GCF 44:

3x42x6x28x−1−3x−4\begin{array}{c|cc} & 3x & 4 \\ \hline 2x & 6x^2 & 8x \\ -1 & -3x & -4 \end{array}

So 6x2+5x−4=(2x−1)(3x+4)6x^2+5x-4=(2x-1)(3x+4), and the complete answer is:

12x2+10x−8=2(2x−1)(3x+4)12x^2+10x-8=2(2x-1)(3x+4)

A negative leading coefficient gets the same treatment. For −2x2+x+6-2x^2+x+6, factor out −1-1 to get −(2x2−x−6)-(2x^2-x-6). Then ac=−12ac=-12, m=−4m=-4, n=3n=3, and the box gives −(2x+3)(x−2)-(2x+3)(x-2). Check: (2x+3)(x−2)=2x2−x−6(2x+3)(x-2)=2x^2-x-6, so the outer −1-1 restores the original.

When does box method factoring fail?

Some trinomials do not factor over the integers, and the box cannot create a factoring that does not exist. The sign that you have hit one is that no factor pair of ∣ac∣|ac| gives the right sum or difference. Since the list of pairs is finite, you can prove failure rather than just give up.

Take 3x2+4x−53x^2+4x-5. Here ac=−15ac=-15, and the pairs 1,151,15 and 3,53,5 differ by 1414 and 22. You need 44, so nothing works. The trinomial is prime over the integers.

Skip the search with the discriminant

The numbers mm and nn are the roots of t2−bt+ac=0t^2-bt+ac=0, so m,n=b±b2−4ac2m,n=\frac{b\pm\sqrt{b^2-4ac}}{2}. If b2−4acb^2-4ac is a perfect square, the trinomial factors over the integers.

Test it on Example 1: b2−4ac=121+240=361=192b^2-4ac=121+240=361=19^2, so m,n=11±192=15,−4m,n=\frac{11\pm19}{2}=15,-4, exactly as found. For 3x2+4x−53x^2+4x-5, b2−4ac=76b^2-4ac=76, which is not a square, so you can stop at once. This ties factoring directly to the quadratic formula, and a negative discriminant means no real roots at all.

For large coefficients, the rational root theorem offers a second route: list the candidate roots ±pq\pm\frac{p}{q} and test them, instead of scanning factor pairs of a three-digit acac.

Box method vs factoring by grouping and special cases

The box and factoring by grouping are the same algebra in different clothing. Grouping splits the middle term into mx+nxmx+nx and factors in pairs. For Example 1:

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

The four terms and the final factors are identical to the box. The box keeps like terms aligned and shows you the sign of each GCF, which is why many students make fewer sign errors with it.

Equal middle numbers mean a perfect square

If m=nm=n, the box has two identical middle cells and the answer is a square. For 4x2+12x+94x^2+12x+9, ac=36ac=36 and m=n=6m=n=6, giving (2x+3)2(2x+3)^2.

The box also handles the cases around ordinary trinomials. A difference of two squares like x2−9x^2-9 has a middle cell pair of 3x3x and −3x-3x that cancel, which gives (x+3)(x−3)(x+3)(x-3). A perfect square trinomial is the m=nm=n case above. And a four-term polynomial like xy+3x+2y+6xy+3x+2y+6 fits the box directly: rows xx and 22, columns yy and 33, giving (x+2)(y+3)(x+2)(y+3).

How do you check a box method factoring answer?

Substitution check at x = 1 and x = −1 comparing correct and sign-slipped factors of 6x² + 11x − 10
The right factors match 7 and −15 at x = 1 and x = −1, while the sign slip gives −15 and 7.

Multiplying out the factors always works, but there are faster checks. Before you expand anything, confirm that the first terms of your binomials multiply to ax2ax^2 and the last terms multiply to cc. If either fails, the box was misread.

The fastest full test is a number substitution. Pick x=1x=1 and compare both sides. For Example 1, the trinomial gives 6+11−10=76+11-10=7, and the factors give (3−2)(2+5)=7(3-2)(2+5)=7. Try x=−1x=-1 as well: 6−11−10=−156-11-10=-15 and (−5)(3)=−15(-5)(3)=-15. A wrong sign in one binomial almost always breaks at least one of these.

Try this: Factor 4x2+8x−214x^2+8x-21 with the box method. Then test your answer at x=1x=1 and x=−1x=-1 by evaluating both the trinomial and your factors, and see whether the four numbers agree.

Two cautions when using substitution. Avoid x=0x=0, because it only tests the constant term. And a match at one value does not prove the factoring, since unrelated expressions can agree at a point, but a match at two or three well-chosen values makes an error very unlikely.

Quick check

A student claims (2x−3)(x+4)=2x2−5x−12(2x-3)(x+4)=2x^2-5x-12. Test it at x=1x=1. Is the claim right?

Where is factoring trinomials used in real problems?

Any time an area has a quadratic expression, factoring recovers its dimensions. If a rectangular garden has area 6x2+11x−106x^2+11x-10 square feet, its sides are (3x−2)(3x-2) and (2x+5)(2x+5) feet. At x=2x=2 that is a 44 by 99 garden with area 3636, and the trinomial gives 24+22−10=3624+22-10=36.

The bigger use is solving equations. Setting 6x2+11x−10=06x^2+11x-10=0 and using the factored form gives 3x−2=03x-2=0 or 2x+5=02x+5=0, so x=23x=\frac{2}{3} or x=−52x=-\frac{5}{2}. These roots come straight from the factors, which is the content of the factor theorem: x=23x=\frac{2}{3} is a root exactly when 3x−23x-2 is a factor. Notice also that the numerators 22 and 55 divide the constant 1010 and the denominators 33 and 22 divide the leading coefficient 66, as the rational root theorem predicts.

The same grid extends to two variables, as in 6x2+11xy−10y2=(3x−2y)(2x+5y)6x^2+11xy-10y^2=(3x-2y)(2x+5y). To build speed, work through a set of factoring practice problems and aim to read the sign pattern before you list a single factor pair.

Practice problems

0 of 5 solved

  1. Factor x2+7x+12x^2+7x+12 with the box method.

  2. Factor 2x2+7x+32x^2+7x+3.

  3. Factor 6x2−x−156x^2-x-15.

  4. Factor 8x2−14x−158x^2-14x-15.

  5. Factor completely: −12x2−2x+30-12x^2-2x+30.

Common questions

What is the box method for factoring?

It is a grid version of splitting the middle term. You find two numbers that multiply to acac and add to bb, place them in a 2×22\times2 box with ax2ax^2 and cc, then read the two binomials from the GCF of each row and column.

Does the order of the two middle terms in the box matter?

No. Swapping the two middle cells only swaps which binomial you write first, and multiplication is commutative, so the product is identical. The signs matter far more than the order.

Can the box method factor a trinomial when a=1a=1?

Yes. When a=1a=1 the box still works, though simply finding two numbers that multiply to cc and add to bb is usually faster. The box earns its place when aa is not 11 and guessing binomials gets messy.

What do I do if no pair of numbers works?

The trinomial is probably prime over the integers. Check b2−4acb^2-4ac: if it is not a perfect square, no integer factoring exists and you can stop searching.

How do I handle a negative leading coefficient?

Factor out −1-1 first so the trinomial starts with a positive coefficient, then run the box on what remains. Keep the −1-1 in front of your final answer.

Is the box method the same as factoring by grouping?

They use the same four terms. The box arranges the split middle term in a grid, while grouping writes it in a line and factors in pairs. Both give the same result.

Up next