Factoring Harder Quadratics

Learning goals

  • Split the leading coefficient across both factors
  • Try reverse FOIL, expanding each candidate to check
  • Use a⋅ca \cdot c to find the pair that splits the middle
  • Remove a common factor before factoring the rest
  • Recognize that a root can come out as a fraction when the leading coefficient exceeds one

The leading coefficient splits across both factors

A trinomial such as 2x2+7x+32x^2+7x+3 is non-monic: its leading coefficient is not 11. In this lesson we look for factors with integer coefficients. The leading coefficient must come from multiplying the two xx terms, while the middle term comes from two cross products.

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#

First expand a numerical example:

(2x+3)(3x+4)=6x2+8x+9x+12=6x2+17x+12.\begin{aligned} (2x+3)(3x+4)&=6x^2+8x+9x+12\\ &=6x^2+17x+12. \end{aligned}

The leading coefficient is 2⋅3=62\cdot3=6, the constant is 3⋅4=123\cdot4=12, and the middle coefficient is 2⋅4+3⋅3=172\cdot4+3\cdot3=17.

Now use letters for the same four positions: p=2p=2, r=3r=3 in the first factor, and q=3q=3, s=4s=4 in the second. Although qq and rr both equal 33 here, they play different roles: qq multiplies xx, while rr is a constant. Distributing gives

(px+r)(qx+s)=pq x2+ps x+qr x+rs=pq x2+(ps+qr)x+rs.\begin{gathered} (px+r)(qx+s)\\ =pq\,x^2+ps\,x+qr\,x+rs\\ =pq\,x^2+(ps+qr)x+rs. \end{gathered}

Two quadratic expressions equal for every xx must have the same coefficients. So any factorization of ax2+bx+cax^2+bx+c must satisfy all three equations:

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

So choose factor pairs for aa and cc whose cross products psps and qrqr add to bb. Since a≠0a\ne0 for a quadratic, neither pp nor qq can be zero.

For positive lengths, a rectangle shows the same multiplication. Split its width into pxpx and rr, and its height into qxqx and ss. The algebra above also works with negative numbers, even though a side length cannot be negative.

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
The four areas add to pqx² + (ps + qr)x + rs. The two cross terms make the middle term.

The diagonally opposite cells give pq x2pq\,x^2 and rsrs. The other two cells give the cross terms ps xps\,x and qr xqr\,x.

Factoring by reverse FOIL

Choose a factor pair for aa and a factor pair for cc. Arrange them in (px+r)(qx+s)(px+r)(qx+s), then expand to check the middle term. If it is not bxbx, try a different arrangement or a different factor pair. The first examples have positive coefficients, so we start with positive factor pairs.

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 2⋅12 \cdot 1, and c=3c = 3 splits as 3⋅13 \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.\begin{aligned} (2x + 3)(x + 1) &= 2x^2 + 5x + 3,\\ (2x + 1)(x + 3) &= 2x^2 + 7x + 3. \end{aligned}

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 2x2x multiplies the constant in the other binomial. Putting 33 there gives 6x6x; putting 11 there gives 2x2x. That is why swapping the constants changes the middle term. Reversing the order of the two whole factors still leaves the product unchanged: (x+3)(2x+1)(x+3)(2x+1) is the same factorization.

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 1⋅81 \cdot 8 and 2⋅42 \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, \\ (3x + 8)(x + 1) &\to 11x, \\ (3x + 2)(x + 4) &\to 14x, \\ (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

Using the product of a and c

In the previous lesson, the two factoring numbers had sum bb and product cc. Here we look at the cross-term coefficients instead. The proof’s example (2x+3)(3x+4)(2x+3)(3x+4) had cross-term coefficients 88 and 99. They add to 1717, and their product is 7272, the same as 6⋅126\cdot12. Regroup the four numbers:

(2⋅4)(3⋅3)=(2⋅3)(3⋅4)=72.(2\cdot4)(3\cdot3)=(2\cdot3)(3\cdot4)=72.

This happens in every factorization (px+r)(qx+s)(px+r)(qx+s) because multiplication can be regrouped:

(ps)(qr)=(pq)(rs)=a⋅c.(ps)(qr)=(pq)(rs)=a\cdot c.

The cross-term coefficients therefore have sum bb and product a⋅ca\cdot c. Find that pair first, then choose factors that produce those cross terms, and expand to check all three coefficients.

Worked example 3 Factor 6x2+7x−36x^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 a⋅c=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 cross terms 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 (3x−1)(2x+3)(3x - 1)(2x + 3). Expand to confirm:

(3x−1)(2x+3)=6x2+9x−2x−3=6x2+7x−3.(3x - 1)(2x + 3) = 6x^2 + 9x - 2x - 3 = 6x^2 + 7x - 3.

The cross products are the 9x9x and −2x-2x predicted by the sum-and-product pair, and the whole product rebuilds the original, so

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

Check your understanding

Factor 3x2−8x+43x^2 - 8x + 4.

Answer choices

Pull out a common factor first

Before trying factor pairs, remove the greatest common factor of the coefficients. The smaller coefficients make the remaining search easier.

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 2⋅2=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 changes the expression. Writing (6x+3)(x+2)(6x+3)(x+2) is equal to the original, but still has a common factor inside the first binomial. For a complete factorization, pull that 33 out and keep it out front.

Solving gives roots that can be fractions

To solve ax2+bx+c=0ax^2+bx+c=0, first write its left side as a product. Then the zero-product property says to set each factor to zero. For example, 2x−3=02x-3=0 gives x=3/2x=3/2: a root can be a fraction.

In general, if ax2+bx+c=(px+r)(qx+s)ax^2+bx+c=(px+r)(qx+s), then

(px+r)(qx+s)=0(px+r)(qx+s)=0

means px+r=0px+r=0 or qx+s=0qx+s=0. Since pp and qq are nonzero, division gives x=−r/px=-r/p or x=−s/qx=-s/q. So a quadratic with integer coefficients can have roots that are not integers.

Worked example 5 Solve 2x2+x−6=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 22 gives 4x4x, and pairing xx with −3-3 gives −3x-3x, which suggests (2x−3)(x+2)(2x - 3)(x + 2), which expands to 2x2+4x−3x−6=2x2+x−62x^2 + 4x - 3x - 6 = 2x^2 + x - 6. So

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

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

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

The roots are x=3/2x=3/2 and x=−2x=-2. Check by substitution:

2(32)2+32−6=92+32−6=0,2(−2)2+(−2)−6=8−2−6=0.\begin{aligned} 2\left(\frac32\right)^2+\frac32-6 &=\frac92+\frac32-6=0,\\ 2(-2)^2+(-2)-6&=8-2-6=0. \end{aligned}

Check your understanding

Solve 2x2−5x−3=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 fail. Any integer factorization would produce cross-term coefficients with product a⋅ca\cdot c and sum bb. So if no such integer pair exists, no integer factorization is possible. Take 2x2+2x−12x^2 + 2x - 1. The middle would have to split into two integers with product 2⋅(−1)=−22 \cdot (-1) = -2 and sum 22. But the only integer pairs multiplying to −2-2 are 11 and −2-2 (sum −1-1) or −1-1 and 22 (sum 11). 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 give methods for finding real roots when they exist, even when integer factoring fails. For now, a complete search with no matching pair is enough to report that the trinomial does not factor over the integers.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

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

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems 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)

What can an algebra book do when a solution is not a whole number or a fraction? Abu Kamil, a mathematician working in Egypt around the year 900900, treated square roots as quantities he could calculate with.

His algebra book included problems whose answers contain square roots. In one problem about splitting 1010 into two parts, an answer appears as 125−5\sqrt{125}-5. He also worked with irrational numbers in the equations themselves, rather than using only integer coefficients. His book contained 6969 problems, and later mathematicians, including Fibonacci, drew on his work.

Abu Kamil did not invent the idea of an irrational length. His achievement was to develop methods for calculating with such quantities in algebra. Answers like his are not integers, so when integer factoring fails, that does not show that an equation has no real roots; another method may express them using square roots.

Sources: MacTutor biography of Abu Kamil and Heinz Klaus Strick’s account of his algebra.

Your progress

See all your progress →