Algebra 1Polynomials and Factoring4 of 7
Polynomials and Factoring · 4

Factoring x² + bx + c

We already know how to multiply two binomials like (x+3)(x+4)(x + 3)(x + 4) to get x2+7x+12x^2 \middleterm{+ 7x} \endterm{+ 12}, and factoring is how we work backward from x2+7x+12x^2 \middleterm{+ 7x} \endterm{+ 12} to find the two parentheses that made it.

1

Multiplying Binomials in Reverse

To factor x2+7x+12x^2 \middleterm{+ 7x} \endterm{+ 12} back into two parentheses, we first need to see where the 7\middleterm{7} and the 12\endterm{12} come from when we multiply (x+3)(x+4)(x + 3)(x + 4) out.

Multiplying Binomials in Reverse
(x+3)(x+4)(x + 3)(x + 4)
xx
+3+3
xx
+4+4
(x+3)(x+4)=x2+7x+12(x + 3)(x + 4) = x^2 \htmlClass{lc-blue}{+ 7x} \htmlClass{lc-orange}{+ 12}
Added: 3+4=7\htmlClass{lc-blue}{\text{Added:}}\ 3 + 4 = \htmlClass{lc-blue}{7}
Multiplied: 3×4=12\htmlClass{lc-orange}{\text{Multiplied:}}\ 3 \times 4 = \htmlClass{lc-orange}{12}

When we multiply (x+3)(x+4)(x + 3)(x + 4) out, the two xx-terms add together in the middle and the two numbers multiply at the end:

(x+3)(x+4)=x2+3x+4x+12=x2+(3+4)⏟7x+(3×4)⏟12\displaystyle \begin{aligned} &(x + 3)(x + 4) \\ ={}& x^2 \middleterm{+ 3x + 4x} \endterm{+ 12} \\ ={}& x^2 + \middleterm{\underbrace{(3 + 4)}_{7}x} + \endterm{\underbrace{(3 \times 4)}_{12}} \end{aligned}

In this 2×22 \times 2 area box, for any two strip widths aa and bb, the middle number is always the sum of the two widths (a+b\middleterm{a + b}), and the end number is always the area of the corner rectangle (a×b\endterm{a \times b}).

The two blue strips always add up to give the middle term, while the orange corner's area gives the number at the end.
2

Factoring When All Terms Are Positive

Now let's go in reverse to factor a trinomial where all the terms are positive:

x2+8x+15\displaystyle x^2 \middleterm{+ 8x} \endterm{+ 15}

We want to find the two numbers in (x+?)(x+?)(x + \text{?})(x + \text{?}) that add to 8\middleterm{8} and multiply to 15\endterm{15}.

Factoring When All Terms Are Positive
x2+8x+15=(x+?)(x+?) \displaystyle \begin{aligned}&x^2 \middleterm{+ 8x} \endterm{+ 15}\\[6pt]&= (x + \text{?})(x + \text{?})\end{aligned}\,
Text solution
Set up the parentheses with xx in frontBecause x⋅x=x2x \cdot x = x^2, each parenthesis starts with xx.
x2+8x+15\displaystyle x^2 \middleterm{+ 8x} \endterm{+ 15} =(x+?)(x+?)\displaystyle = (x + \text{?})(x + \text{?})
List the whole-number pairs that multiply to 15\endterm{15}Start with the end number 15\endterm{15} so you only have two pairs to check.
1×15=153×5=15\displaystyle \begin{aligned} 1 \times 15 &= \endterm{15} \\ 3 \times 5 &= \endterm{15} \end{aligned}
Pick the pair that adds to 8\middleterm{8} and fill in the parenthesesSince 1+15=161 + 15 = 16 and 3+5=83 + 5 = \middleterm{8}, the two numbers are 33 and 55 (and writing (x+5)(x+3)(x + 5)(x + 3) is the exact same answer).
x2+8x+15\displaystyle x^2 \middleterm{+ 8x} \endterm{+ 15} =(x+3)(x+5)\displaystyle = (x + 3)(x + 5)
3

Factoring with Negative Signs

When minus signs show up, such as in

x2−9x+20orx2+2x−15\displaystyle x^2 \middleterm{- 9x} \endterm{+ 20} \quad \text{or} \quad x^2 \middleterm{+ 2x} \endterm{- 15}

we still look for two numbers that multiply to the end number and add to the middle number, using the signs to see whether the two numbers have the same sign or opposite signs.

Factoring with Negative Signs
x2−9x+20=  ?x2+2x−15=  ? \displaystyle \begin{aligned}x^2 \middleterm{- 9x} \endterm{+ 20} &= \;?\\[6pt]x^2 \middleterm{+ 2x} \endterm{- 15} &= \;?\end{aligned}\,
Text solution
Use two negative numbers when the end number is +20\endterm{+20} and the middle is −9\middleterm{-9}Two numbers that multiply to a positive and add to a negative must both be negative, and among −1×(−20)-1 \times (-20), −2×(−10)-2 \times (-10), and −4×(−5)-4 \times (-5), the pair that adds to −9\middleterm{-9} is −4-4 and −5-5.
x2−9x+20\displaystyle x^2 \middleterm{- 9x} \endterm{+ 20} =(x−4)(x−5)\displaystyle = (x - 4)(x - 5)
Use one positive and one negative when the end number is −15\endterm{-15}, giving the middle sign to the larger numberOpposite signs partially cancel when added, so we pick the factor pair of 1515 that is 22 apart (33 and 55) and give the sign of the middle term to 55.
x2+2x−15=(x+5)(x−3)(since +5+(−3)=+2)x2−2x−15=(x+3)(x−5)(since +3+(−5)=−2)\displaystyle \begin{aligned} &x^2 \middleterm{+ 2x} \endterm{- 15} = (x + 5)(x - 3) \\ &\quad (\text{since } +5 + (-3) = \middleterm{+2}) \\[6pt] &x^2 \middleterm{- 2x} \endterm{- 15} = (x + 3)(x - 5) \\ &\quad (\text{since } +3 + (-5) = \middleterm{-2}) \end{aligned}
Count up from 11 when the end number has many factorsFor x2−5x−36x^2 \middleterm{- 5x} \endterm{- 36}, put the minus sign on the larger factor and check 1×(−36)→−351 \times (-36) \to -35, 2×(−18)→−162 \times (-18) \to -16, 3×(−12)→−93 \times (-12) \to -9, and 4×(−9)→−54 \times (-9) \to \middleterm{-5} to find the pair without guessing.
x2−5x−36\displaystyle x^2 \middleterm{- 5x} \endterm{- 36} =(x+4)(x−9)\displaystyle = (x + 4)(x - 9)

When the two numbers in a factor pair have the same sign, the two xx-bars stack in the same direction, and the numbers multiply to a positive end number. When the two numbers have opposite signs, they multiply to a negative end number. The xx-bars overlap and partially cancel, so the coefficient of the middle term has the sign of the number with the larger absolute value.

Matching signs make the two middle bars add up and keep the last number positive, while opposite signs make the bars work against each other and turn the last number negative.
4

Two Variables, Common Factors, and Prime Polynomials

Now let's factor three kinds of expressions that look different at first:

x2−3xy−10y2,2x2+10x+12,x2+4x+10\displaystyle x^2 \middleterm{- 3xy} \endterm{- 10y^2}, \qquad 2x^2 + 10x + 12, \qquad x^2 \middleterm{+ 4x} \endterm{+ 10}

For 2x2+10x+122x^2 + 10x + 12, all three terms are divisible by 22. We pull out the greatest common factor (GCF) first, giving 2(x2+5x+6)2(x^2 \middleterm{+ 5x} \endterm{+ 6}) with a plain x2x^2 inside.

Two Variables, Common Factors, and Prime Polynomials
x2+7xy+12y2=  ?2x2+10x+12=  ?x2+4x+10=  ? \displaystyle \begin{aligned}x^2 \middleterm{+ 7xy} \endterm{+ 12y^2} &= \;?\\[6pt]2x^2 + 10x + 12 &= \;?\\[6pt]x^2 \middleterm{+ 4x} \endterm{+ 10} &= \;?\end{aligned}\,
Text solution
Place yy at the back of both parentheses when the last term has y2\endterm{y^2}Setting up (x+?y)(x+?y)(x + \text{?}y)(x + \text{?}y) gives the xy\middleterm{xy} in the middle and y2\endterm{y^2} at the end, so we just look for the two numbers +2+2 and −5-5 that multiply to −10\endterm{-10} and add to −3\middleterm{-3}.
x2−3xy−10y2\displaystyle x^2 \middleterm{- 3xy} \endterm{- 10y^2} =(x+2y)(x−5y)\displaystyle = (x + 2y)(x - 5y)
Pull out the greatest common factor of 22 firstFactor 22 out of all three terms in 2x2+10x+122x^2 + 10x + 12, then factor x2+5x+6x^2 \middleterm{+ 5x} \endterm{+ 6} using 22 and 33 while keeping the 22 in front.
2x2+10x+12=2(x2+5x+6)=2(x+2)(x+3)\displaystyle \begin{aligned} 2x^2 + 10x + 12 &= 2(x^2 \middleterm{+ 5x} \endterm{+ 6}) \\ &= 2(x + 2)(x + 3) \end{aligned}
Write "Prime" if no integer factor pair for the end number adds to the middle numberFor x2+4x+10x^2 \middleterm{+ 4x} \endterm{+ 10}, the only positive whole-number pairs that multiply to 10\endterm{10} are 1×101 \times 10 (sum 1111) and 2×52 \times 5 (sum 77), so it cannot be factored into two binomials with integer coefficients.
x2+4x+10is Prime (cannot be factored)\displaystyle \begin{gathered} x^2 \middleterm{+ 4x} \endterm{+ 10} \\ \text{is Prime (cannot be factored)} \end{gathered}

To factor a trinomial of this form, we look for two integers that fit this pattern:

x2+bx+c=(x+?)(x+?)where the two numbers multiply to cand add to b\displaystyle \boxed{\begin{gathered} x^2 + \middleterm{b}x + \endterm{c} = (x + \text{?})(x + \text{?}) \\ \text{where the two numbers multiply to } \endterm{c} \\ \text{and add to } \middleterm{b} \end{gathered}}

Once you fill in your two numbers, quickly multiply them and add them in your head. If they match c\endterm{c} and b\middleterm{b}, you know right away that your answer is right.

Key concepts

Before you start listing factor pairs, check for a common factor and pull it out first, as in 2x2+10x+12=2(x2+5x+6)2x^2 + 10x + 12 = 2(x^2 \middleterm{+ 5x} \endterm{+ 6}) =2(x+2)(x+3)= 2(x + 2)(x + 3). If there is a second variable squared at the back, put that variable in the back of both parentheses, as in x2−3xy−10y2=(x+2y)(x−5y)x^2 \middleterm{- 3xy} \endterm{- 10y^2} = (x + 2y)(x - 5y).

To factor x2+bx+c=(x+?)(x+?)x^2 + \middleterm{b}x + \endterm{c} = (x + \text{?})(x + \text{?}), list the positive factor pairs of ∣c∣|\endterm{c}| (counting up from 11), then choose signs so the two numbers multiply to c\endterm{c} and add to b\middleterm{b}:

End number c\endterm{c} is positive

→\rightarrow the two numbers have the same sign as b\middleterm{b}: both positive in x2+8x+15=(x+3)(x+5)x^2 \middleterm{+ 8x} \endterm{+ 15} = (x + 3)(x + 5), or both negative in x2−9x+20=(x−4)(x−5)x^2 \middleterm{- 9x} \endterm{+ 20} = (x - 4)(x - 5).

End number c\endterm{c} is negative

→\rightarrow the two numbers have opposite signs, and the larger number takes the sign of b\middleterm{b}: x2+2x−15=(x+5)(x−3)x^2 \middleterm{+ 2x} \endterm{- 15} = (x + 5)(x - 3), whereas x2−2x−15=(x+3)(x−5)x^2 \middleterm{- 2x} \endterm{- 15} = (x + 3)(x - 5).

No signed factor pair adds to b\middleterm{b}

→\rightarrow stop and write Prime (cannot be factored), as with x2+4x+10x^2 \middleterm{+ 4x} \endterm{+ 10} where 1+10=111 + 10 = 11 and 2+5=72 + 5 = 7.

5

Practice

1

Factor x2+9x+14x^2 \middleterm{+ 9x} \endterm{+ 14}.

List the whole-number pairs that multiply to 14\endterm{14} first, then check which pair adds to 9\middleterm{9}.

The whole-number pairs that multiply to 14\endterm{14} are 1×141 \times 14 and 2×72 \times 7.
Checking their sums gives 1+14=151 + 14 = 15 and 2+7=92 + 7 = \middleterm{9}. (Watch out: picking the first pair 11 and 1414 without checking the middle sum gives (x+1)(x+14)(x + 1)(x + 14), which multiplies out to x2+15x+14x^2 + 15x + 14.)
(x+2)(x+7)\displaystyle (x + 2)(x + 7)
2

Factor x2−11x+24x^2 \middleterm{- 11x} \endterm{+ 24}.

The end number is positive (+24\endterm{+24}) while the middle number is negative (−11\middleterm{-11}). What signs must both numbers have?

Because they multiply to +24\endterm{+24} and add to −11\middleterm{-11}, both numbers must be negative. Counting up through the negative pairs for 2424 gives (−1)(−24)→−25(-1)(-24) \to -25, (−2)(−12)→−14(-2)(-12) \to -14, and (−3)(−8)→−11(-3)(-8) \to \middleterm{-11}. (Watch out: missing the minus sign on −11x-11x gives (x+3)(x+8)(x + 3)(x + 8), and using opposite signs like −12-12 and +1+1 gives (x−12)(x+1)=x2−11x−12(x - 12)(x + 1) = x^2 - 11x - 12, which makes the end number negative.)
(x−3)(x−8)\displaystyle (x - 3)(x - 8)
3

Factor x2+3x−18x^2 \middleterm{+ 3x} \endterm{- 18}.

A negative end number (−18\endterm{-18}) means one plus and one minus. Which factor pair of 1818 is 33 apart, and which number gets the plus sign?

The factor pairs of 1818 are 1×181 \times 18, 2×92 \times 9, and 3×63 \times 6. The pair that is 33 apart is 33 and 66.
Because the middle term is +3x\middleterm{+3x}, the larger number (66) gets the plus sign and 33 gets the minus sign: +6+(−3)=+3+6 + (-3) = \middleterm{+3}. (Watch out: putting the minus sign on the larger number gives (x−6)(x+3)(x - 6)(x + 3), which gives −3x-3x in the middle instead of +3x+3x.)
(x+6)(x−3)\displaystyle (x + 6)(x - 3)
4

Factor x2−8x−48x^2 \middleterm{- 8x} \endterm{- 48}.

Since −48\endterm{-48} has many factors, count up from 11 (1×(−48)1 \times (-48), 2×(−24)2 \times (-24), 3×(−16)3 \times (-16), ...) with the minus sign on the larger factor until the pair adds to −8\middleterm{-8}.

Counting up from 11 with the larger number negative gives:
1+(−48)=−471 + (-48) = -47, 2+(−24)=−222 + (-24) = -22, 3+(−16)=−133 + (-16) = -13, and 4+(−12)=−84 + (-12) = \middleterm{-8}. (Watch out: jumping to the familiar pair 66 and 88 gives (x−6)(x−8)=x2−14x+48(x - 6)(x - 8) = x^2 - 14x + 48, and flipping the signs on 44 and 1212 gives (x−4)(x+12)=x2+8x−48(x - 4)(x + 12) = x^2 + 8x - 48.)
(x+4)(x−12)\displaystyle (x + 4)(x - 12)
5

Factor x2−5xy−14y2x^2 \middleterm{- 5xy} \endterm{- 14y^2}.

Set up the parentheses with xx in the fronts and yy in the backs, then find the pair that multiplies to −14\endterm{-14} and adds to −5\middleterm{-5}.

Because the expression ends in y2\endterm{y^2}, we set up the parentheses as (x+?y)(x+?y)(x + \text{?}y)(x + \text{?}y).
For −14\endterm{-14}, the pairs with the larger number negative are 1×(−14)→−131 \times (-14) \to -13 and 2×(−7)→−52 \times (-7) \to \middleterm{-5}. (Watch out: forgetting to include yy on the second terms gives (x+2)(x−7)(x + 2)(x - 7), which multiplies back to x2−5x−14x^2 - 5x - 14 without any yy's.)
(x+2y)(x−7y)\displaystyle (x + 2y)(x - 7y)
6

Factor 3x2−6x−243x^2 - 6x - 24.

Look at all three numbers (33, −6-6, and −24-24). What common factor can you pull out in front before looking for a factor pair?

All three terms are divisible by 33, so pull out the GCF of 33 first:
3x2−6x−24\displaystyle 3x^2 - 6x - 24 =3(x2−2x−8)\displaystyle = 3(x^2 \middleterm{- 2x} \endterm{- 8})
Now find two numbers that multiply to −8\endterm{-8} and add to −2\middleterm{-2}, which are +2+2 and −4-4. (Watch out: leaving the 33 off after factoring the inside gives (x+2)(x−4)(x + 2)(x - 4), which only multiplies to x2−2x−8x^2 - 2x - 8, one-third of the original expression.)
3(x+2)(x−4)\displaystyle 3(x + 2)(x - 4)
7

Factor x2+5x+12x^2 \middleterm{+ 5x} \endterm{+ 12}.

List every whole-number pair that multiplies to +12\endterm{+12} (1×121 \times 12, 2×62 \times 6, 3×43 \times 4) and check whether any of them adds to 5\middleterm{5}.

Checking the sums of every positive whole-number pair for 12\endterm{12} gives 1+12=131 + 12 = 13, 2+6=82 + 6 = 8, and 3+4=73 + 4 = 7. (Watch out: picking 22 and 33 just because 2+3=52 + 3 = 5 gives (x+2)(x+3)=x2+5x+6(x + 2)(x + 3) = x^2 + 5x + 6, which gives 66 at the end instead of 1212.) None of the pairs for 1212 adds to 5\middleterm{5}.
Prime (cannot be factored)\displaystyle \text{Prime (cannot be factored)}