We already know how to multiply two binomials like (x+3)(x+4) to get x2+7x+12, and factoring is how we work backward from x2+7x+12 to find the two parentheses that made it.
1
Multiplying Binomials in Reverse
To factor x2+7x+12 back into two parentheses, we first need to see where the 7 and the 12 come from when we multiply (x+3)(x+4) out.
Multiplying Binomials in Reverse
When we multiply (x+3)(x+4) out, the two x-terms add together in the middle and the two numbers multiply at the end:
==(x+3)(x+4)x2+3x+4x+12x2+7(3+4)x+12(3×4)
In this 2×2 area box, for any two strip widths a and b, the middle number is always the sum of the two widths (a+b), and the end number is always the area of the corner rectangle (a×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
We want to find the two numbers in (x+?)(x+?) that add to 8 and multiply to 15.
Factoring When All Terms Are Positive
x2+8x+15=(x+?)(x+?)
Text solution
Set up the parentheses with x in frontBecause x⋅x=x2, each parenthesis starts with x.
x2+8x+15=(x+?)(x+?)
List the whole-number pairs that multiply to 15Start with the end number 15 so you only have two pairs to check.
1×153×5=15=15
Pick the pair that adds to 8 and fill in the parenthesesSince 1+15=16 and 3+5=8, the two numbers are 3 and 5 (and writing (x+5)(x+3) is the exact same answer).
x2+8x+15=(x+3)(x+5)
3
Factoring with Negative Signs
When minus signs show up, such as in
x2−9x+20orx2+2x−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+20x2+2x−15=?=?
Text solution
Use two negative numbers when the end number is +20 and the middle is −9Two numbers that multiply to a positive and add to a negative must both be negative, and among −1×(−20),−2×(−10), and −4×(−5), the pair that adds to −9 is −4 and −5.
x2−9x+20=(x−4)(x−5)
Use one positive and one negative when the end number is −15, giving the middle sign to the larger numberOpposite signs partially cancel when added, so we pick the factor pair of 15 that is 2 apart (3 and 5) and give the sign of the middle term to 5.
Count up from 1 when the end number has many factorsFor x2−5x−36, put the minus sign on the larger factor and check 1×(−36)→−35,2×(−18)→−16,3×(−12)→−9, and 4×(−9)→−5 to find the pair without guessing.
x2−5x−36=(x+4)(x−9)
When the two numbers in a factor pair have the same sign, the two x-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 x-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
For 2x2+10x+12, all three terms are divisible by 2. We pull out the greatest common factor (GCF) first, giving 2(x2+5x+6) with a plain x2 inside.
Two Variables, Common Factors, and Prime Polynomials
x2+7xy+12y22x2+10x+12x2+4x+10=?=?=?
Text solution
Place y at the back of both parentheses when the last term has y2Setting up (x+?y)(x+?y) gives the xy in the middle and y2 at the end, so we just look for the two numbers +2 and −5 that multiply to −10 and add to −3.
x2−3xy−10y2=(x+2y)(x−5y)
Pull out the greatest common factor of 2 firstFactor 2 out of all three terms in 2x2+10x+12, then factor x2+5x+6 using 2 and 3 while keeping the 2 in front.
2x2+10x+12=2(x2+5x+6)=2(x+2)(x+3)
Write "Prime" if no integer factor pair for the end number adds to the middle numberFor x2+4x+10, the only positive whole-number pairs that multiply to 10 are 1×10 (sum 11) and 2×5 (sum 7), so it cannot be factored into two binomials with integer coefficients.
x2+4x+10is Prime (cannot be factored)
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
Once you fill in your two numbers, quickly multiply them and add them in your head. If they match c and 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)=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).
To factor x2+bx+c=(x+?)(x+?), list the positive factor pairs of ∣c∣ (counting up from 1), then choose signs so the two numbers multiply to c and add to b:
End number c is positive
→ the two numbers have the same sign as b: both positive in x2+8x+15=(x+3)(x+5), or both negative in x2−9x+20=(x−4)(x−5).
End number c is negative
→ the two numbers have opposite signs, and the larger number takes the sign of b:x2+2x−15=(x+5)(x−3), whereas x2−2x−15=(x+3)(x−5).
No signed factor pair adds to b
→ stop and write Prime (cannot be factored), as with x2+4x+10 where 1+10=11 and 2+5=7.
5
Practice
1
Factor x2+9x+14.
List the whole-number pairs that multiply to 14 first, then check which pair adds to 9.
The whole-number pairs that multiply to 14 are 1×14 and 2×7.
Checking their sums gives 1+14=15 and 2+7=9. (Watch out: picking the first pair 1 and 14 without checking the middle sum gives (x+1)(x+14), which multiplies out to x2+15x+14.)
(x+2)(x+7)
2
Factor x2−11x+24.
The end number is positive (+24) while the middle number is negative (−11). What signs must both numbers have?
Because they multiply to +24 and add to −11, both numbers must be negative. Counting up through the negative pairs for 24 gives (−1)(−24)→−25,(−2)(−12)→−14, and (−3)(−8)→−11. (Watch out: missing the minus sign on −11x gives (x+3)(x+8), and using opposite signs like −12 and +1 gives (x−12)(x+1)=x2−11x−12, which makes the end number negative.)
(x−3)(x−8)
3
Factor x2+3x−18.
A negative end number (−18) means one plus and one minus. Which factor pair of 18 is 3 apart, and which number gets the plus sign?
The factor pairs of 18 are 1×18,2×9, and 3×6. The pair that is 3 apart is 3 and 6.
Because the middle term is +3x, the larger number (6) gets the plus sign and 3 gets the minus sign: +6+(−3)=+3. (Watch out: putting the minus sign on the larger number gives (x−6)(x+3), which gives −3x in the middle instead of +3x.)
(x+6)(x−3)
4
Factor x2−8x−48.
Since −48 has many factors, count up from 1(1×(−48),2×(−24),3×(−16), ...) with the minus sign on the larger factor until the pair adds to −8.
Counting up from 1 with the larger number negative gives:
1+(−48)=−47,2+(−24)=−22,3+(−16)=−13, and 4+(−12)=−8. (Watch out: jumping to the familiar pair 6 and 8 gives (x−6)(x−8)=x2−14x+48, and flipping the signs on 4 and 12 gives (x−4)(x+12)=x2+8x−48.)
(x+4)(x−12)
5
Factor x2−5xy−14y2.
Set up the parentheses with x in the fronts and y in the backs, then find the pair that multiplies to −14 and adds to −5.
Because the expression ends in y2, we set up the parentheses as (x+?y)(x+?y).
For −14, the pairs with the larger number negative are 1×(−14)→−13 and 2×(−7)→−5. (Watch out: forgetting to include y on the second terms gives (x+2)(x−7), which multiplies back to x2−5x−14 without any y's.)
(x+2y)(x−7y)
6
Factor 3x2−6x−24.
Look at all three numbers (3,−6, and −24). What common factor can you pull out in front before looking for a factor pair?
All three terms are divisible by 3, so pull out the GCF of 3 first:
3x2−6x−24=3(x2−2x−8)
Now find two numbers that multiply to −8 and add to −2, which are +2 and −4. (Watch out: leaving the 3 off after factoring the inside gives (x+2)(x−4), which only multiplies to x2−2x−8, one-third of the original expression.)
3(x+2)(x−4)
7
Factor x2+5x+12.
List every whole-number pair that multiplies to +12(1×12,2×6,3×4) and check whether any of them adds to 5.
Checking the sums of every positive whole-number pair for 12 gives 1+12=13,2+6=8, and 3+4=7. (Watch out: picking 2 and 3 just because 2+3=5 gives (x+2)(x+3)=x2+5x+6, which gives 6 at the end instead of 12.) None of the pairs for 12 adds to 5.