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

Factoring Harder Quadratics

Learning goals

  • Split the leading coefficient across both factors
  • Try reverse FOIL, expanding each candidate to check
  • Use aca \cdot c to find the pair that splits the middle
  • Remove a common factor before factoring the rest
  • Expect fractional roots when the leading coefficient exceeds one

The leading coefficient splits across both factors

A trinomial like 2x2+7x+32x^2 + 7x + 3 is non-monic: its leading coefficient is 22, not 11. To factor a general non-monic trinomial ax2+bx+cax^2 + bx + c you are looking for two factors of the form px+rpx + r and qx+sqx + s. In those two factors the coefficients pp and qq sit in front of the xx terms. The reason the old sum-and-product trick no longer applies directly is that aa is now the product of pp and qq. So the leading coefficient is shared out between the two factors. To see exactly how every coefficient is built, expand the general product once and read it carefully.

Why the factors of ax2+bx+cax^2 + bx + c satisfy pq=apq = a,  rs=c\ rs = c, and  ps+qr=b\ ps + qr = b#

Multiply the two factors px+rpx + r and qx+sqx + s, taking every term of the first times every term of the second:

(px+r)(qx+s)=pqx2+psx+qrx+rs=pqx2+(ps+qr)x+rs.(px + r)(qx + s) = pq\,x^2 + ps\,x + qr\,x + rs = pq\,x^2 + (ps + qr)\,x + rs.

Now suppose this equals the trinomial ax2+bx+cax^2 + bx + c you want to factor. Two expressions in xx agree for every value of xx only when they match term by term. So line up the squared term, the xx term, and the constant on each side:

pq=a,ps+qr=b,rs=c.pq = a, \qquad ps + qr = b, \qquad rs = c.

This is the whole method in three equations. The constant cc is still the product rsrs of the two plain numbers, exactly as before. What is new is the first equation: the leading coefficient aa is the product pqpq of the two numbers that ride in front of the xx terms. And the middle coefficient bb is no longer a simple sum of two numbers, it is ps+qrps + qr. That expression is a sum of two cross products, each mixing a leading number from one factor with a constant from the other. So factoring a non-monic trinomial means choosing a factor pair for aa and a factor pair for cc that fit together so their cross products add to bb.

The same rectangle that pictured expanding shows where each coefficient lives. Give a rectangle a width of px+rpx + r and a height of qx+sqx + s. The two splits cut it into four pieces.

Area model for factoring a x squared plus b x plus cA rectangle of width p x plus r and height q x plus s is divided by one vertical and one horizontal line into four cells with areas p q x squared, q r x, p s x, and r s, whose sum is p q x squared plus the quantity p s plus q r times x plus r s.pxrqxspqx²qrxpsxrspqx² + (ps + qr)x + rs
A rectangle with side px + r across the top and side qx + s down the left splits into four pieces. The corner squares give pqx squared and rs, and the two off-diagonal strips give psx and qrx, whose coefficients add to the middle term b and multiply to a times c.

The two corner squares are the leading term pqx2pq\,x^2 and the constant rsrs. The two off-diagonal strips are psxps\,x and qrxqr\,x, and together they make the middle term (ps+qr)x(ps + qr)x. That picture also hides a useful fact you will use in a moment: the two strips have areas whose coefficients multiply to (ps)(qr)=pqrs=ac(ps)(qr) = pq \cdot rs = a \cdot c.

Factoring by reverse FOIL

With no shortcut yet, the honest method is a guided trial. Choose a factor pair for aa and a factor pair for cc, write the candidate (px+r)(qx+s)(px + r)(qx + s), and expand it to check the middle term. If the cross products ps+qrps + qr come out to bb, you are done; if not, swap the numbers around or try the next pair. Because expanding is quick, a handful of tries settles most trinomials. Start with a>0a > 0 and c>0c > 0, where every number in sight is positive.

Worked example 1 Factor 2x2+7x+32x^2 + 7x + 3

Here a=2a = 2, b=7b = 7, and c=3c = 3. Both 22 and 33 are prime, so there is only one factor pair to place: a=2a = 2 splits as 212 \cdot 1, and c=3c = 3 splits as 313 \cdot 1. That fixes the skeleton as (2x+ )(x+ )(2x + \underline{\ })(x + \underline{\ }) with 33 and 11 to drop into the blanks. Two arrangements are possible, so write each and expand to see which gives a middle term of 7x7x:

(2x+3)(x+1)=2x2+5x+3,(2x+1)(x+3)=2x2+7x+3.(2x + 3)(x + 1) = 2x^2 + 5x + 3, \qquad (2x + 1)(x + 3) = 2x^2 + 7x + 3.

The second arrangement lands the middle term on 7x7x, so

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

The order matters here in a way it never did for monic trinomials. Putting the 33 with the 2x2x doubles it into a 66, while putting the 11 there does not. That is the leading coefficient making itself felt inside the cross products.

Worked example 2 Factor 3x2+10x+83x^2 + 10x + 8

Now a=3a = 3, b=10b = 10, and c=8c = 8. Since 33 is prime the skeleton is (3x+ )(x+ )(3x + \underline{\ })(x + \underline{\ }), and the constant 88 offers the factor pairs 181 \cdot 8 and 242 \cdot 4. Each of those pairs can drop into the blanks in either order. Test them by expanding and watching only the middle term:

(3x+1)(x+8)25x,(3x+8)(x+1)11x,(3x+2)(x+4)14x,(3x+4)(x+2)10x.\begin{aligned} (3x + 1)(x + 8) &\to 25x, &\qquad (3x + 8)(x + 1) &\to 11x, \\ (3x + 2)(x + 4) &\to 14x, &\qquad (3x + 4)(x + 2) &\to 10x. \end{aligned}

The last pair hits 10x10x, so

3x2+10x+8=(3x+4)(x+2).3x^2 + 10x + 8 = (3x + 4)(x + 2).

Expanding confirms it fully: (3x+4)(x+2)=3x2+6x+4x+8=3x2+10x+8(3x + 4)(x + 2) = 3x^2 + 6x + 4x + 8 = 3x^2 + 10x + 8. Notice that the 33 in front makes the two arrangements (3x+4)(x+2)(3x + 4)(x + 2) and (3x+2)(x+4)(3x + 2)(x + 4) give different middle terms, so both really do need checking.

Check your understanding

Factor 2x2+7x+52x^2 + 7x + 5.

Answer choices

Let the product of a and c point the way

Trying every arrangement works, but you can aim the search instead of guessing. The middle coefficient is the sum of the two cross products, ps+qr=bps + qr = b, and from the rectangle those same cross products multiply to (ps)(qr)=ac(ps)(qr) = a \cdot c. So the two pieces the middle term splits into are just a pair of numbers with a known product and a known sum:

(ps)+(qr)=band(ps)(qr)=ac.(ps) + (qr) = b \qquad \text{and} \qquad (ps)(qr) = a \cdot c.

Finding that pair is exactly the sum-and-product search you already know, and it tells you what the two middle strips should be. Those strips point you straight at the factor pair to write down. The hint does not replace the trial; it tells you which candidate to build, and you still finish by expanding to be sure.

Worked example 3 Factor 6x2+7x36x^2 + 7x - 3

Here a=6a = 6, b=7b = 7, and c=3c = -3, so the middle term should split into two numbers with sum 77 and product ac=6(3)=18a \cdot c = 6 \cdot (-3) = -18. Because the product is negative the two numbers have opposite signs, and a short search gives them:

9+(2)=7and9(2)=18.9 + (-2) = 7 \qquad \text{and} \qquad 9 \cdot (-2) = -18.

So the two middle strips are 9x9x and 2x-2x. Now build a factor pair of 66 and of 3-3 whose cross products come out to 9x9x and 2x-2x. Pairing 3x3x with 33 makes a 9x9x, and pairing 2x2x with 1-1 makes a 2x-2x, which suggests (3x1)(2x+3)(3x - 1)(2x + 3). Expand to confirm:

(3x1)(2x+3)=6x2+9x2x3=6x2+7x3.(3x - 1)(2x + 3) = 6x^2 + 9x - 2x - 3 = 6x^2 + 7x - 3.

The cross products are the 9x9x and 2x-2x the hint promised, and the whole product rebuilds the original, so

6x2+7x3=(3x1)(2x+3).6x^2 + 7x - 3 = (3x - 1)(2x + 3).

Check your understanding

Factor 3x28x+43x^2 - 8x + 4.

Answer choices

Pull out a common factor first

Before trying any factor pairs, check whether all three coefficients share a common factor. If they do, pull it out. It shrinks the leading coefficient you have to break apart and often turns a bristly trinomial into a gentler one.

Worked example 4 Factor 6x2+15x+66x^2 + 15x + 6 completely

Every coefficient is a multiple of 33, so factor the 33 out front before anything else:

6x2+15x+6=3(2x2+5x+2).6x^2 + 15x + 6 = 3(2x^2 + 5x + 2).

Pulling out the 33 dropped the leading coefficient inside from 66 to 22, which is much easier to handle. Factor 2x2+5x+22x^2 + 5x + 2 by the same trial as before. The middle should split into two numbers with sum 55 and product 22=42 \cdot 2 = 4, namely 44 and 11, so try (2x+1)(x+2)(2x + 1)(x + 2):

(2x+1)(x+2)=2x2+4x+x+2=2x2+5x+2.(2x + 1)(x + 2) = 2x^2 + 4x + x + 2 = 2x^2 + 5x + 2.

Putting the common factor back gives the complete factorization:

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

Leaving off the 33, or stopping at something like (6x+3)(x+2)(6x + 3)(x + 2) that still hides a factor of 33 inside, counts as factored incompletely. Pull the common factor all the way out and keep it out front.

Solving gives roots that can be fractions

Factoring pays off the same way it did before: once the trinomial is a product, the zero-product property from the earlier lesson turns it into roots. To solve ax2+bx+c=0ax^2 + bx + c = 0, factor the left side into (px+r)(qx+s)(px + r)(qx + s) and set the product to zero. A product is zero only when one factor is zero, so

px+r=0orqx+s=0,px + r = 0 \qquad \text{or} \qquad qx + s = 0,

which give x=rpx = -\dfrac{r}{p} and x=sqx = -\dfrac{s}{q}. Here is the one genuinely new feature: because the leading numbers pp and qq can be bigger than 11, dividing by them can produce a fraction. Non-monic quadratics routinely have fractional roots, and that is expected, not a mistake.

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

First factor the left side. With a=2a = 2, b=1b = 1, and c=6c = -6, the middle should split into two numbers with sum 11 and product 2(6)=122 \cdot (-6) = -12. Those are 44 and 3-3, since 4+(3)=14 + (-3) = 1 and 4(3)=124 \cdot (-3) = -12. Pairing 2x2x with 3-3 and xx with 44 suggests (2x3)(x+2)(2x - 3)(x + 2), which expands to 2x2+4x3x6=2x2+x62x^2 + 4x - 3x - 6 = 2x^2 + x - 6. So

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

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

2x3=0orx+2=0.2x - 3 = 0 \qquad \text{or} \qquad x + 2 = 0.

The first factor gives x=32x = \dfrac{3}{2}, a fraction because the 22 in front had to be divided out; the second gives x=2x = -2. Check the fractional root by substituting, since that is where a slip hides: $2\left(\tfrac32\right)^2 + \tfrac32 - 6 = 2 \cdot \tfrac94 + \tfrac32 - 6 = \tfrac92

  • \tfrac32 - 6 = 6 - 6 = 0$. Both roots hold.

Check your understanding

Solve 2x25x3=02x^2 - 5x - 3 = 0 by factoring.

Answer choices

When a harder trinomial will not factor

As with monic trinomials, not every non-monic trinomial factors over the integers. The search can simply fail: no factor pair of aa and cc produces cross products that add to bb. Equivalently, no integer pair has product aca \cdot c and sum bb. Take 2x2+2x+12x^2 + 2x + 1. The middle would have to split into two integers with product 21=22 \cdot 1 = 2 and sum 22. But the only integer pairs multiplying to 22 are 11 and 22 (sum 33) or 1-1 and 2-2 (sum 3-3). Neither adds to 22, so the trinomial is irreducible over the integers.

That does not say the equation 2x2+2x+1=02x^2 + 2x + 1 = 0 has no solutions, only that integer factoring is the wrong tool for it. Later lessons build methods that solve any quadratic, whether it factors or not. For now, if an honest run through the pairs turns up nothing, you can stop and report that the trinomial does not factor over the integers. Reporting the failure is better than forcing a factorization 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)

Suppose your run through the factor pairs turns up nothing. For a long stretch of history, that was where the mathematics stopped.

The rule then was that an answer had to be a whole number or a fraction. Anything else was a length you could draw but not a quantity you could calculate with. A problem that arrived at one was reported as having no answer at all. That rule cost real results, because plenty of ordinary questions land on such a value.

Around the year 900900, in Egypt, a mathematician named Abu Kamil stopped obeying it. He wrote a book on equations in which those awkward roots appear as ordinary answers. He added them, he multiplied them, and he left them standing in the last line rather than apologizing for them. Later writers borrowed the habit, and within a few centuries it had become the plain meaning of the word number.

You met the same wall at the close of this lesson. When no integer pair has product aca \cdot c and sum bb, the trinomial is irreducible over the integers. The honest report is that integer factoring cannot reach its roots. Read that sentence narrowly. It says the tool has run out, not the equation. The roots are still there, waiting for a method willing to write them down.