When we distribute, we multiply across parentheses to turn a product into a sum; factoring works in reverse to find what was multiplied in the first place.
1
Factoring Out the Greatest Common Factor
We want to factor 3x+12 and 12x+18 back into products.
Factoring Out the Greatest Common Factor
3x+1212x+18=?=?
Text solution
Split out the greatest common factor 6Look for the largest number that divides evenly into both 12 and 18 so no common factors are left behind inside.
12x+18=6⋅2x+6⋅3
Pull 6 to the front of the parenthesesPlace the shared 6 outside and keep the remaining pieces inside.
=6(2x+3)
2
Factoring Out Variables with Exponents
Now let's factor expressions where the terms share variables with exponents as well as numbers: 6x3+9x2 and 12x3y2+18x2y4.
Factoring Out Variables with Exponents
6x3+9x212x3y2+18x2y4=?=?
Text solution
Find the shared number and variable factors in 6x3+9x2Between 6 and 9 the greatest common factor is 3, and between x3 and x2 both terms have at least x2.
6x3+9x2=3x2⋅2x+3x2⋅3
Pull 3x2 to the frontPlace 3x2 outside the parentheses and leave the remaining factors inside.
=3x2(2x+3)
For 12x3y2+18x2y4, we go through one piece at a time: numbers, then x's, then y's:
Find the greatest common factor piece by pieceCombine the largest shared factor of the numbers (6), the x's (x2), and the y's (y2) into 6x2y2.
12x3y2+18x2y4=6x2y2⋅2x+6x2y2⋅3y2
Pull 6x2y2 to the frontCollect what remains of each term inside the parentheses.
=6x2y2(2x+3y2)
You never have to guess whether your factored answer is right: mentally distribute the outside factor back in to check that it gives back the original expression.
Try pulling shared factors out of 12x3y2+18x2y4 to see how the inside terms only stop sharing factors once the full greatest common factor 6x2y2 is out front.
Two terms stop sharing factors only when you pull their full greatest common factor out front, and putting it back in distributes it to both terms.
3
Leaving a 1 Behind and Factoring Out a Negative
Next, we want to factor 8x2+4x, where the greatest common factor is one of the entire terms, and −5x2+10x−15, which starts with a negative term.
Leaving a 1 Behind and Factoring Out a Negative
8x2+4x−5x2+10x−15=?=?
Text solution
Rewrite the second term of 8x2+4x using 1Both terms share 4x, and the second term is 4x⋅1.
8x2+4x=4x⋅2x+4x⋅1
Factor out 4x and leave 1 behindPulling the entire 4x out front leaves 1 in the second spot so distributing gives both terms back.
=4x(2x+1)
When the first term is negative, as in −5x2+10x−15, we pull the negative sign out with the greatest common factor:
Factor out −5 and flip the inside signsPulling −5 out to the front reverses the sign of every term left inside the parentheses.
−5x2+10x−15=−5(x2−2x+3)
4
Factoring Out a Binomial and Factoring by Grouping
So far, every term in the expression has shared a single factor. Now we want to factor x(x+3)+5(x+3), where the shared piece is a binomial (x+3), and then use that idea to factor the four-term expression x3+3x2+5x+15, where no factor goes into all four terms at once.
Factoring Out a Binomial and Factoring by Grouping
x⋅(apple)+5⋅(apple)x3+3x2+5x+15=?=?
Text solution
Factor the GCF out of each pair separatelySplit the four terms down the middle into two pairs, pulling x2 from the first pair and +5 from the second pair.
x3+3x2+5x+15=x2(x+3)+5(x+3)
Factor out the shared binomial (x+3)Treat the matching (x+3) as a single factor, pull it to the front, and collect the outside pieces x2 and +5 in the second set of parentheses.
=(x+3)(x2+5)
Step through the grouping of x3+3x2+5x+15 to see how the matching (x+3) comes out front while x2 and +5 combine into (x2+5).
Factoring each pair of terms reveals a shared factor that pulls out to the front like any other common factor.
5
Factoring a Negative or a 1 from the Second Group
For grouping to work, the two sets of parentheses must match completely, including their signs. Let's factor 2x3+8x2−3x−12, where the second group starts with a minus sign, and x3−4x2+x−4, where the second group already matches the first parentheses.
Factoring a Negative or a 1 from the Second Group
2x3+8x2−3x−12x3−4x2+x−4=?=?
Text solution
Factor each pair of 2x3+8x2−3x−12, pulling a negative from the second pairPull 2x2 from the first pair, and pull −3 (rather than +3) from −3x−12 so its inside signs flip to match (x+4).
2x3+8x2−3x−12=2x2(x+4)−3(x+4)
Factor out the shared (x+4)Pull (x+4) to the front and collect 2x2−3.
=(x+4)(2x2−3)
In x3−4x2+x−4, the second pair has no shared number other than 1 and no shared variable:
Factor x2 from the first pair and +1 from the second pairPulling +1 out of +x−4 leaves the terms unchanged and makes the outside +1 visible.
x3−4x2+x−4=x2(x−4)+1(x−4)
Factor out the shared (x−4)Pull (x−4) to the front and combine x2+1.
=(x−4)(x2+1)
6
Factoring by Grouping with Two Variables
Now let's factor a four-term expression that has both x and y:2xy+10x+3y+15.
Factoring by Grouping with Two Variables
2xy+10x+3y+15=?
Text solution
Factor the GCF from each pairSplit the expression in half and pull 2x from the first pair and +3 from the second pair to get (y+5) in both halves.
2xy+10x+3y+15=2x(y+5)+3(y+5)
Factor out the shared (y+5)Pull (y+5) to the front and collect 2x+3 in the second set of parentheses.
=(y+5)(2x+3)
7
Reordering Terms to Factor by Grouping
Next, we want to factor 6xy−10+15x−4y, where splitting the expression in the order given leaves parentheses that do not match.
Reordering Terms to Factor by Grouping
6xy−10+15x−4y=?
Text solution
Reorder the terms so each pair shares a factorMove +15x next to 6xy and −10 to the end, keeping each term's plus or minus sign with it.
6xy−10+15x−4y=6xy+15x−4y−10
Factor the GCF from each pairPull 3x from the first pair and −2 from the second pair so both parentheses become (2y+5).
=3x(2y+5)−2(2y+5)
Factor out the shared (2y+5)Pull (2y+5) to the front and collect 3x−2.
=(2y+5)(3x−2)
Try the different ways to pair the terms of 6xy−10+15x−4y: pairing 6xy with −10 gets stuck, while pairing 6xy with either +15x or −4y gives the same factored answer.
Pairing the first term with either term that shares a variable with it makes the two groups share a binomial factor and gives the same factored result.
8
Factoring Out a GCF Before Grouping
Finally, we want to factor 3x3+6x2−15x−30, where all four terms share a common factor before we even begin grouping.
Factoring Out a GCF Before Grouping
3x3+6x2−15x−30=?
Text solution
Factor out the overall GCF from all four termsEvery coefficient is divisible by 3, so pull 3 to the very front first to make the numbers inside smaller.
3x3+6x2−15x−30=3[x3+2x2−5x−10]
Factor the two pairs inside the bracketsKeep 3 out front and pull x2 from the first pair and −5 from the second pair.
=3[x2(x+2)−5(x+2)]
Factor out the shared (x+2)Pull (x+2) out alongside the 3 and collect x2−5.
=3(x+2)(x2−5)
Key concepts
Whenever you factor, start by checking if all terms share a greatest common factor, going piece by piece through the numbers and each variable. Pulling out the GCF can finish the problem right away, as in 12x3y2+18x2y4=6x2y2(2x+3y2), or make a four-term problem smaller before you group, as in 3x3+6x2−15x−30=3[x3+2x2−5x−10]. Watch for two special cases: if an entire term comes out front, leave a 1 behind to hold its spot (8x2+4x=4x(2x+1)), and if the first term is negative, pull the negative sign out and flip every sign inside (−5x2+10x−15=−5(x2−2x+3)).
If there are four terms with nothing left in common across all four, try splitting them down the middle and factoring the GCF out of each pair. Then check whether the parentheses match, as they do here.
2x3+8x2−3x−12=2x2(x+4)−3(x+4)=(x+4)(2x2−3)
Pull out the sign of each group's first term along with its GCF, using +1 or −1 if needed, and then check whether the parentheses match (x3−4x2+x−4=x2(x−4)+1(x−4)=(x−4)(x2+1)). If splitting the four terms as written leaves parentheses that don't match, reorder the terms, keeping each term's sign with it, so each pair shares a factor before grouping (6xy−10+15x−4y=6xy+15x−4y−10).
9
Practice
1
Factor 16x+24.
Pulling out 2 to get 2(8x+12) or 4 to get 4(4x+6) stops too early because the terms inside still share a factor.
16 and 24 are both divisible by 2 and 4, but what is the largest number that divides evenly into both?
Pulling out 2 to get 2(8x+12) or 4 to get 4(4x+6) stops too early because the terms inside still share a factor. Pulling out the full greatest common factor 8 gives
8(2x+3)
2
Factor 10x3+15x2.
Find the greatest common factor of 10 and 15 first, then check how many x's both x3 and x2 have in common.
Pulling out only 5x to get 5x(2x2+3x) leaves a shared x inside the parentheses. Pulling out 5x2 gives
5x2(2x+3)
3
Factor 8x4y2+20x2y3.
Build the outside factor one piece at a time: first the numbers 8 and 20, then the x's, then the y's.
Taking 4x2y2 out front but miscounting the remaining exponents gives 4x2y2(2x+5y2) (but factoring x2 out of x4 leaves x2, and factoring y2 out of y3 leaves y). Keeping the remaining exponents straight gives
4x2y2(2x2+5y)
4
Factor 9x2+3x.
After you pull the greatest common factor 3x out of both terms, what stays behind in the second spot so distributing gives two terms back?
Dropping the second spot once 3x is pulled out gives 3x(3x), which multiplies back to just 9x2. Leaving a 1 behind to hold the place gives
3x(3x+1)
5
Factor −4x2+12x−20.
Because the first term starts with a minus sign, pull −4 out to the front. What happens to the signs of +12x and −20 inside?
Pulling −4 out front but leaving the signs of the last two terms unchanged gives −4(x2+3x−5), which distributes to −4x2−12x+20. Flipping every sign inside the parentheses gives
−4(x2−3x+5)
6
Factor x(x+6)+4(x+6).
Look at the two halves separated by the plus sign and treat the shared (x+6) as a single factor.
Squaring the shared binomial to write (x+6)2(x+4) confuses factoring out a shared (x+6) with multiplying two of them together. Pulling the single shared (x+6) factor to the front leaves
(x+6)(x+4)
7
Factor x3+2x2+7x+14.
Nothing divides all four terms at once; split the expression down the middle and factor the greatest common factor out of each pair.
Stopping after the first step at x2(x+2)+7(x+2) leaves a sum rather than a factored product. Pulling the shared (x+2) to the front gives
(x+2)(x2+7)
8
Factor 3x3+15x2−2x−10.
The first pair factors as 3x2(x+5); look at the minus sign on −2x to decide what to pull out of −2x−10 so the second parentheses also become (x+5).
Pulling −2 out of −2x−10 without flipping the sign on −10 gives 3x2(x+5)−2(x−5), where the parentheses do not match (and forgetting the minus sign on 2 entirely gives (x+5)(3x2+2)). Flipping both signs inside to get 3x2(x+5)−2(x+5) gives
(x+5)(3x2−2)
9
Factor x3−6x2+x−6.
The first pair gives x2(x−6), and the second pair +x−6 already matches (x−6). What number can you factor out of +x−6?
Seeing nothing to factor out of +x−6 and dropping its outside number leaves x2(x−6). Writing +1(x−6) so the +1 stays visible gives x2(x−6)+1(x−6), which factors to
(x−6)(x2+1)
10
Factor 3xy+12x+2y+8.
Split the four terms down the middle; which variable is shared by both terms in the first pair 3xy+12x?
Writing 3y(x+4) for the first pair gives 3xy+12y, so it does not reproduce 3xy+12x. Pulling 3x from the first pair and +2 from the second pair gives 3x(y+4)+2(y+4), which factors to
(y+4)(3x+2)
11
Factor 4xy−15+12x−5y.
The first pair 4xy−15 shares neither a number nor a variable; reorder the terms first so 4xy sits next to a term it shares a variable with.
Reordering to 4xy+12x−5y−15 and pulling −5 from the second pair without flipping the sign on −15 gives 4x(y+3)−5(y−3), where the parentheses do not match. Flipping the sign to get 4x(y+3)−5(y+3) gives
(y+3)(4x−5)
12
Factor 2x3+10x2−6x−30.
Before splitting the four terms into pairs, look at 2,10,−6, and −30. Do all four terms share a greatest common factor you can pull out first?
Grouping right away without pulling out the overall GCF gives (x+5)(2x2−6), which is incomplete because the terms of 2x2−6 still share a factor of 2 (and pulling 2 out at the start but forgetting to write it on the final line gives (x+5)(x2−3)). Keeping the 2 in front of 2[x2(x+5)−3(x+5)] gives