Algebra 1Polynomials and Factoring5 of 7
Polynomials and Factoring · 5

Factoring ax² + bx + c

When a number sits in front of x2x^2, like in 2x2+11x+122x^2 \splitterm{{}+ 11x} + 12, we can no longer factor by just finding two numbers that multiply to 1212 and add to 11\splitterm{11}.

Un-multiplying by grouping
2x2+11x+12=( ? )( ? ) \displaystyle \begin{aligned}2x^2 \splitterm{{}+ 11x} + 12 &= (\,\text{?}\,)(\,\text{?}\,)\end{aligned}\,
2x2+8x+3x+12=2x(x+4)+3(x+4)=(2x+3)(x+4)\displaystyle \begin{aligned} &2x^2 \splitterm{{}+ 8x} \splitterm{{}+ 3x} + 12 \\ &\quad= \collected{2x}\shared{(x + 4)} \collected{{}+ 3}\shared{(x + 4)} \\ &\quad= \collected{(2x + 3)}\shared{(x + 4)} \end{aligned}
1

Finding the two middle numbers

When we are only given 2x2+11x+122x^2 \splitterm{{}+ 11x} + 12, we need a way to tell that 11x\splitterm{11x} splits into 8x\splitterm{8x} and 3x\splitterm{3x} rather than any other pair that adds to 11\splitterm{11}.

How to find the two middle numbers
2x2+11x+12=2x2+?x+?x+12 \displaystyle \begin{aligned}&2x^2 \splitterm{{}+ 11x} + 12\\[6pt]&= 2x^2 \splitterm{{}+ \text{?}x} \splitterm{{}+ \text{?}x} + 12\end{aligned}\,
Outside numbers:2⋅12=(2⋅1)⋅(3⋅4)=24Middle numbers:8⋅3=(2⋅4)⋅(3⋅1)=24\displaystyle \begin{aligned} \text{Outside numbers:} & \\ 2 \cdot 12 &= (\collected{2} \cdot \shared{1}) \cdot (\collected{3} \cdot \shared{4}) = \acproduct{24} \\[6pt] \text{Middle numbers:} & \\ \splitterm{8} \cdot \splitterm{3} &= (\collected{2} \cdot \shared{4}) \cdot (\collected{3} \cdot \shared{1}) = \acproduct{24} \end{aligned}

Many pairs of numbers add up to 11\splitterm{11}, but factoring in pairs only gives a matching parenthesis when the two middle numbers also multiply to 2⋅12=242 \cdot 12 = \acproduct{24}.

Splitting the middle term only gives matching parentheses when the two middle numbers multiply to the same product as the outside numbers.
2

Factoring by splitting the middle term

Let's use this to factor a new expression from scratch:

3x2+14x+8\displaystyle 3x^2 \splitterm{{}+ 14x} + 8
Factoring by splitting the middle term
3x2+14x+8=  ? \displaystyle \begin{aligned}3x^2 \splitterm{{}+ 14x} + 8 &= \;?\end{aligned}\,
Text solution
Multiply the outside numbers and find the middle pairWe need two numbers that multiply to 3⋅8=243 \cdot 8 = \acproduct{24} and add up to the middle number 14\splitterm{14}, which gives 12\splitterm{12} and 2\splitterm{2}.
3⋅8=2412⋅2=24,12+2=14\displaystyle \begin{aligned} 3 \cdot 8 &= \acproduct{24} \\ \splitterm{12} \cdot \splitterm{2} &= \acproduct{24}, \quad \splitterm{12} + \splitterm{2} = \splitterm{14} \end{aligned}
Split the middle termRewrite 14x\splitterm{14x} as 12x+2x\splitterm{12x} + \splitterm{2x} so the expression has four terms without changing its value.
3x2+14x+8\displaystyle 3x^2 \splitterm{{}+ 14x} + 8 =3x2+12x+2x+8\displaystyle = 3x^2 \splitterm{{}+ 12x} \splitterm{{}+ 2x} + 8
Factor each pair and combinePull the common factor out of the first two terms and the last two terms, then factor out the matching (x+4)\shared{(x + 4)} parenthesis.
3x2+12x+2x+8=3x(x+4)+2(x+4)=(3x+2)(x+4)\displaystyle \begin{aligned} &3x^2 \splitterm{{}+ 12x} \splitterm{{}+ 2x} + 8 \\ &\quad= \collected{3x}\shared{(x + 4)} \collected{{}+ 2}\shared{(x + 4)} \\ &\quad= \collected{(3x + 2)}\shared{(x + 4)} \end{aligned}
3

Factoring with negative signs

Now let's factor an expression with subtraction signs:

6x2−7x−3\displaystyle 6x^2 \splitterm{{}- 7x} - 3
Factoring with negative signs
6x2−7x−3=  ? \displaystyle \begin{aligned}6x^2 \splitterm{{}- 7x} - 3 &= \;?\end{aligned}\,
Text solution
Multiply the outside numbers, keeping the negative signInclude the minus sign with −3-3 when multiplying the outside numbers, then find the pair that multiplies to −18\acproduct{-18} and adds to −7\splitterm{-7}.
6⋅(−3)=−182⋅(−9)=−18,2+(−9)=−7\displaystyle \begin{aligned} 6 \cdot (-3) &= \acproduct{-18} \\ \splitterm{2} \cdot \splitterm{(-9)} &= \acproduct{-18}, \quad \splitterm{2} + \splitterm{(-9)} = \splitterm{-7} \end{aligned}
Split the middle termRewrite −7x\splitterm{-7x} using +2x\splitterm{+2x} and −9x\splitterm{-9x}.
6x2−7x−3\displaystyle 6x^2 \splitterm{{}- 7x} - 3 =6x2+2x−9x−3\displaystyle = 6x^2 \splitterm{{}+ 2x} \splitterm{{}- 9x} - 3
Pull a negative out of the second pair and combinePull 2x\collected{2x} out of the first pair (leaving +1\shared{+1} since 2x÷2x=1\splitterm{2x} \div \collected{2x} = \shared{1}), and pull −3\collected{-3} out of the second pair so both negative signs flip to positive and match (3x+1)\shared{(3x + 1)}.
6x2+2x−9x−3=2x(3x+1)−3(3x+1)=(2x−3)(3x+1)\displaystyle \begin{aligned} &6x^2 \splitterm{{}+ 2x} \splitterm{{}- 9x} - 3 \\ &\quad= \collected{2x}\shared{(3x + 1)} \collected{{}- 3}\shared{(3x + 1)} \\ &\quad= \collected{(2x - 3)}\shared{(3x + 1)} \end{aligned}
4

Pulling out a common factor first

Next, let's factor an expression where all three terms share a common factor:

4x2+26x+30\displaystyle 4x^2 \splitterm{{}+ 26x} + 30

Jumping straight to 4⋅30=1204 \cdot 30 = \acproduct{120} makes the numbers much larger than they need to be and can leave a factor of 22 stuck inside one of the parentheses at the end.

Pulling out a common factor first
4x2+26x+30=  ? \displaystyle \begin{aligned}4x^2 \splitterm{{}+ 26x} + 30 &= \;?\end{aligned}\,
Text solution
Pull the common factor out to the frontDivide the common factor of 22 out of all three terms before doing anything else.
4x2+26x+30\displaystyle 4x^2 \splitterm{{}+ 26x} + 30 =2(2x2+13x+15)\displaystyle = 2(2x^2 \splitterm{{}+ 13x} + 15)
Find the middle pair for the inside expressionWork with the smaller numbers inside the parentheses to find two numbers that multiply to 2⋅15=302 \cdot 15 = \acproduct{30} and add to 13\splitterm{13}.
2⋅15=3010⋅3=30,10+3=13\displaystyle \begin{aligned} 2 \cdot 15 &= \acproduct{30} \\ \splitterm{10} \cdot \splitterm{3} &= \acproduct{30}, \quad \splitterm{10} + \splitterm{3} = \splitterm{13} \end{aligned}
Split and group inside while keeping the front factorFactor the inside expression in pairs and keep the 22 out in front.
2(2x2+13x+15)=2(2x2+10x+3x+15)=2[2x(x+5)+3(x+5)]=2(2x+3)(x+5)\displaystyle \begin{aligned} &2(2x^2 \splitterm{{}+ 13x} + 15) \\ &\quad= 2(2x^2 \splitterm{{}+ 10x} \splitterm{{}+ 3x} + 15) \\ &\quad= 2[\collected{2x}\shared{(x + 5)} \collected{{}+ 3}\shared{(x + 5)}] \\ &\quad= 2\collected{(2x + 3)}\shared{(x + 5)} \end{aligned}
5

When the x2x^2 term is negative

Now let's handle a negative sign in front of the x2x^2 term:

−2x2−5x+12\displaystyle -2x^2 \splitterm{{}- 5x} + 12
When the x² term is negative
−2x2−5x+12=  ? \displaystyle \begin{aligned}-2x^2 \splitterm{{}- 5x} + 12 &= \;?\end{aligned}\,
Text solution
Pull a negative sign out of the entire expressionFactor −1-1 out to the front so every sign inside the parentheses flips and the x2x^2 term becomes positive.
−2x2−5x+12\displaystyle -2x^2 \splitterm{{}- 5x} + 12 =−(2x2+5x−12)\displaystyle = -(2x^2 \splitterm{{}+ 5x} - 12)
Find the middle pair for the inside termsUse the flipped inside numbers to find a pair that multiplies to 2⋅(−12)=−242 \cdot (-12) = \acproduct{-24} and adds to +5\splitterm{+5}.
2⋅(−12)=−248⋅(−3)=−24,8+(−3)=5\displaystyle \begin{aligned} 2 \cdot (-12) &= \acproduct{-24} \\ \splitterm{8} \cdot \splitterm{(-3)} &= \acproduct{-24}, \quad \splitterm{8} + \splitterm{(-3)} = \splitterm{5} \end{aligned}
Split and group inside while keeping the negative out frontFactor the four terms inside in pairs, pulling −3\collected{-3} out of the second pair because the third term is negative, and keep the minus sign in front of the final answer.
−(2x2+5x−12)=−(2x2+8x−3x−12)=−[2x(x+4)−3(x+4)]=−(2x−3)(x+4)\displaystyle \begin{aligned} &{-}(2x^2 \splitterm{{}+ 5x} - 12) \\ &\quad= -(2x^2 \splitterm{{}+ 8x} \splitterm{{}- 3x} - 12) \\ &\quad= -[\collected{2x}\shared{(x + 4)} \collected{{}- 3}\shared{(x + 4)}] \\ &\quad= -\collected{(2x - 3)}\shared{(x + 4)} \end{aligned}
6

Why x2+bx+cx^2 + bx + c was simpler

Why did x2+7x+12x^2 \splitterm{{}+ 7x} + 12 let us jump straight to (x+3)(x+4)\collected{(x + 3)}\shared{(x + 4)} without splitting the middle term?

Why x² + bx + c was simpler
x2+7x+12=(x+3)(x+4) \displaystyle \begin{aligned}&x^2 \splitterm{{}+ 7x} + 12\\[6pt]&= \collected{(x + 3)}\shared{(x + 4)}\end{aligned}\,
Why no split of 7x?\displaystyle \text{Why no split of } \splitterm{7x}\text{?}

Key concepts

To factor ax2+bx+cax^2 \splitterm{{}+ bx} + c, start by checking the front: pull out any greatest common factor (as in 4x2+26x+30=2(2x2+13x+15)4x^2 \splitterm{{}+ 26x} + 30 = 2(2x^2 \splitterm{{}+ 13x} + 15)), and if the x2x^2 term is negative, pull a negative out to the front so every sign inside flips (as in −2x2−5x+12=−(2x2+5x−12)-2x^2 \splitterm{{}- 5x} + 12 = -(2x^2 \splitterm{{}+ 5x} - 12)).

Once the inside x2x^2 term is positive with no common factor left, look for an integer pair. If no integer pair has the required product and sum, the inside expression cannot be factored into linear factors with integer coefficients. When a pair exists:

When the front number is 11 (x2+bx+cx^2 \splitterm{{}+ bx} + c)

You do not need to split and group. With no number in front of x2x^2, the two numbers that multiply to c\acproduct{c} and add to b\splitterm{b} go straight into the parentheses, like 3\splitterm{3} and 4\splitterm{4} in x2+7x+12=(x+3)(x+4)x^2 \splitterm{{}+ 7x} + 12 = \collected{(x + 3)}\shared{(x + 4)}.

When a number sits in front of x2x^2 (ax2+bx+cax^2 \splitterm{{}+ bx} + c)

Find two numbers that multiply to a⋅c\acproduct{a \cdot c} and add to b\splitterm{b}, split bx\splitterm{bx} into those two xx-terms, and factor in pairs:

3x2+14x+8=3x2+12x+2x+8=3x(x+4)+2(x+4)=(3x+2)(x+4)\displaystyle \begin{aligned} 3x^2 \splitterm{{}+ 14x} + 8 &= 3x^2 \splitterm{{}+ 12x} \splitterm{{}+ 2x} + 8 \\ &= \collected{3x}\shared{(x + 4)} \collected{{}+ 2}\shared{(x + 4)} \\ &= \collected{(3x + 2)}\shared{(x + 4)} \end{aligned}

When factoring the pairs, watch out for two things: if the third term is negative, pull a negative factor out of the second pair so its signs flip to match the first parenthesis; and when a factor divides a term completely (like 2x÷2x\splitterm{2x} \div \collected{2x}), it leaves +1\shared{+1} inside the parenthesis, not nothing.

7

Practice

1

Factor 3x2+11x+63x^2 + 11x + 6.

Multiply the outside numbers 3⋅63 \cdot 6 first. What two numbers multiply to that product and add to 1111?

The outside numbers multiply to 3⋅6=183 \cdot 6 = \acproduct{18}, and the two numbers that multiply to 18\acproduct{18} and add to 11\splitterm{11} are 9\splitterm{9} and 2\splitterm{2}. (Be careful not to put 9\splitterm{9} and 2\splitterm{2} straight into the parentheses as (x+9)(x+2)(x + 9)(x + 2) or (3x+9)(x+2)(3x + 9)(x + 2); because of the 33 in front of x2x^2, we have to split 11x\splitterm{11x} and group.)
3x2+11x+6=3x2+9x+2x+6=3x(x+3)+2(x+3)=(3x+2)(x+3)\displaystyle \begin{aligned} 3x^2 \splitterm{{}+ 11x} + 6 &= 3x^2 \splitterm{{}+ 9x} \splitterm{{}+ 2x} + 6 \\ &= \collected{3x}\shared{(x + 3)} \collected{{}+ 2}\shared{(x + 3)} \\ &= \collected{(3x + 2)}\shared{(x + 3)} \end{aligned}
2

Factor 4x2−5x−64x^2 - 5x - 6.

Keep the negative sign with −6-6 when multiplying the outside numbers; since they multiply to a negative number and add to −5-5, which of the two middle numbers must be negative?

The outside product is 4⋅(−6)=−244 \cdot (-6) = \acproduct{-24}, so we need two numbers that multiply to −24\acproduct{-24} and add to −5\splitterm{-5}, which are −8\splitterm{-8} and 3\splitterm{3} (reversing the signs to −3-3 and +8+8 makes them add to +5+5 instead of −5\splitterm{-5}, which leads to the wrong answer (4x−3)(x+2)(4x - 3)(x + 2)).
4x2−5x−6=4x2−8x+3x−6=4x(x−2)+3(x−2)=(4x+3)(x−2)\displaystyle \begin{aligned} 4x^2 \splitterm{{}- 5x} - 6 &= 4x^2 \splitterm{{}- 8x} \splitterm{{}+ 3x} - 6 \\ &= \collected{4x}\shared{(x - 2)} \collected{{}+ 3}\shared{(x - 2)} \\ &= \collected{(4x + 3)}\shared{(x - 2)} \end{aligned}
3

Factor 6x2−11x+36x^2 - 11x + 3.

The outside numbers multiply to +18+18, while the middle number is −11-11. What signs must the two middle numbers have to multiply to a positive and add to a negative?

To multiply to 6⋅3=186 \cdot 3 = \acproduct{18} and add to −11\splitterm{-11}, both middle numbers must be negative: −9\splitterm{-9} and −2\splitterm{-2}. When grouping 6x2−9x−2x+36x^2 \splitterm{{}- 9x} \splitterm{{}- 2x} + 3, the third term starts with a minus sign, so pull −1\collected{-1} out of −2x+3\splitterm{-2x} + 3 (writing +1(2x−3)+1(2x - 3) for −2x+3\splitterm{-2x} + 3 gives the wrong answer (3x+1)(2x−3)(3x + 1)(2x - 3)).
6x2−11x+3=6x2−9x−2x+3=3x(2x−3)−1(2x−3)=(3x−1)(2x−3)\displaystyle \begin{aligned} 6x^2 \splitterm{{}- 11x} + 3 &= 6x^2 \splitterm{{}- 9x} \splitterm{{}- 2x} + 3 \\ &= \collected{3x}\shared{(2x - 3)} \collected{{}- 1}\shared{(2x - 3)} \\ &= \collected{(3x - 1)}\shared{(2x - 3)} \end{aligned}
4

Factor 6x2+21x+96x^2 + 21x + 9.

Look at all three numbers (66, 2121, and 99) before multiplying the outside terms. What common factor can you divide out of all three?

All three terms are divisible by 33, so pull 33 out to the front first to get 3(2x2+7x+3)3(2x^2 \splitterm{{}+ 7x} + 3) (skipping this step and multiplying 6⋅9=546 \cdot 9 = \acproduct{54} leaves the 33 unfactored inside one parenthesis as (6x+3)(x+3)(6x + 3)(x + 3) or (2x+1)(3x+9)(2x + 1)(3x + 9)). Inside, 2⋅3=62 \cdot 3 = \acproduct{6}, and the numbers that multiply to 6\acproduct{6} and add to 7\splitterm{7} are 6\splitterm{6} and 1\splitterm{1}:
6x2+21x+9=3(2x2+7x+3)=3(2x2+6x+1x+3)=3[2x(x+3)+1(x+3)]=3(2x+1)(x+3)\displaystyle \begin{aligned} 6x^2 \splitterm{{}+ 21x} + 9 &= 3(2x^2 \splitterm{{}+ 7x} + 3) \\ &= 3(2x^2 \splitterm{{}+ 6x} \splitterm{{}+ 1x} + 3) \\ &= 3[\collected{2x}\shared{(x + 3)} \collected{{}+ 1}\shared{(x + 3)}] \\ &= 3\collected{(2x + 1)}\shared{(x + 3)} \end{aligned}
5

Factor −5x2−7x+6-5x^2 - 7x + 6.

Start by pulling a negative sign out of the entire expression. What happens to the signs of −7x-7x and +6+6 inside the parentheses?

Pulling a negative out to the front flips every sign inside to give −(5x2+7x−6)-(5x^2 \splitterm{{}+ 7x} - 6) (forgetting to flip −7x\splitterm{-7x} to +7x\splitterm{+7x} leads to using −10-10 and +3+3, which gives the wrong answer −(5x+3)(x−2)-(5x + 3)(x - 2)). Inside, 5⋅(−6)=−305 \cdot (-6) = \acproduct{-30}, and the numbers that multiply to −30\acproduct{-30} and add to +7\splitterm{+7} are +10\splitterm{+10} and −3\splitterm{-3}:
−5x2−7x+6=−(5x2+7x−6)=−(5x2+10x−3x−6)=−[5x(x+2)−3(x+2)]=−(5x−3)(x+2)\displaystyle \begin{aligned} -5x^2 \splitterm{{}- 7x} + 6 &= -(5x^2 \splitterm{{}+ 7x} - 6) \\ &= -(5x^2 \splitterm{{}+ 10x} \splitterm{{}- 3x} - 6) \\ &= -[\collected{5x}\shared{(x + 2)} \collected{{}- 3}\shared{(x + 2)}] \\ &= -\collected{(5x - 3)}\shared{(x + 2)} \end{aligned}
6

Factor −6x2+14x+12-6x^2 + 14x + 12.

Pull out the common factor and the negative sign in one step. What negative common factor can you pull out of −6-6, 1414, and 1212?

Pulling −2-2 out of all three terms flips every sign inside to give −2(3x2−7x−6)-2(3x^2 \splitterm{{}- 7x} - 6) (dividing +14x\splitterm{+14x} by 22 instead of −2-2 gives +7x+7x inside, which leads to the wrong answer −2(3x−2)(x+3)-2(3x - 2)(x + 3)). Inside, 3⋅(−6)=−183 \cdot (-6) = \acproduct{-18}, and the numbers that multiply to −18\acproduct{-18} and add to −7\splitterm{-7} are −9\splitterm{-9} and +2\splitterm{+2}:
−6x2+14x+12=−2(3x2−7x−6)=−2(3x2−9x+2x−6)=−2[3x(x−3)+2(x−3)]=−2(3x+2)(x−3)\displaystyle \begin{aligned} -6x^2 \splitterm{{}+ 14x} + 12 &= -2(3x^2 \splitterm{{}- 7x} - 6) \\ &= -2(3x^2 \splitterm{{}- 9x} \splitterm{{}+ 2x} - 6) \\ &= -2[\collected{3x}\shared{(x - 3)} \collected{{}+ 2}\shared{(x - 3)}] \\ &= -2\collected{(3x + 2)}\shared{(x - 3)} \end{aligned}