Algebra 1Polynomials and Factoring6 of 7
Polynomials and Factoring · 6

Factoring Special Products

We already know how to factor trinomials like x2+bx+cx^2 + bx + c, and some expressions can be factored in seconds because of what happens in the two middle corners of the two-by-two box.

Why Middle Terms Cancel in the Box
(x+2)(x+5)(\htmlClass{lc-blue}{x} + \htmlClass{lc-orange}{2})(\htmlClass{lc-blue}{x} + \htmlClass{lc-orange}{5})
x\htmlClass{lc-blue}{x}
+2\htmlClass{lc-orange}{+2}
x\htmlClass{lc-blue}{x}
+5\htmlClass{lc-orange}{+5}
(x+2)(x+5)(\htmlClass{lc-blue}{x} + \htmlClass{lc-orange}{2})(\htmlClass{lc-blue}{x} + \htmlClass{lc-orange}{5})
x\htmlClass{lc-blue}{x}
+2\htmlClass{lc-orange}{+2}
x\htmlClass{lc-blue}{x}
+5\htmlClass{lc-orange}{+5}
x2\htmlClass{lc-blue}{x^2}
+2x\htmlClass{lc-pink}{+2x}
+5x\htmlClass{lc-pink}{+5x}
10\htmlClass{lc-orange}{10}
+2x+5x=+7x\htmlClass{lc-pink}{+2x} \htmlClass{lc-pink}{+ 5x} = \htmlClass{lc-pink}{+7x}
x2+7x+10\htmlClass{lc-blue}{x^2} \htmlClass{lc-pink}{+ 7x} \htmlClass{lc-orange}{+ 10}
(x+5)(x−5)(\htmlClass{lc-blue}{x} + \htmlClass{lc-orange}{5})(\htmlClass{lc-blue}{x} - \htmlClass{lc-orange}{5})
x\htmlClass{lc-blue}{x}
+5\htmlClass{lc-orange}{+5}
x\htmlClass{lc-blue}{x}
−5\htmlClass{lc-orange}{-5}
x2\htmlClass{lc-blue}{x^2}
+5x\htmlClass{lc-pink}{+5x}
−5x\htmlClass{lc-pink}{-5x}
−25\htmlClass{lc-orange}{-25}
+5x−5x=0\htmlClass{lc-pink}{+5x} \htmlClass{lc-pink}{- 5x} = \htmlClass{lc-pink}{0}
x2−25\htmlClass{lc-blue}{x^2} - \htmlClass{lc-orange}{25}
1

Factoring a Difference of Squares

Suppose we want to factor a two-term expression like x2−9\frontterm{x^2} - \endterm{9} or 16x2−49\frontterm{16x^2} - \endterm{49}, where the middle xx term is completely gone.

Factoring a Difference of Squares
x2−9=  ?16x2−49=  ?\displaystyle \begin{aligned}\frontterm{x^2} - \endterm{9} &= \;?\\[6pt]\frontterm{16x^2} - \endterm{49} &= \;?\end{aligned}
Text solution
Split both squares into equal partsFind what multiplies by itself to give the front term and what multiplies by itself to give the back number.
16x2\displaystyle \frontterm{16x^2} =4x⋅4xand49\displaystyle = \frontterm{4x} \cdot \frontterm{4x} \quad \text{and} \quad \endterm{49} =7⋅7\displaystyle = \endterm{7} \cdot \endterm{7}
Put opposite signs in the two factorsUse one plus and one minus so the −28x\middleterm{-28x} and +28x\middleterm{+28x} middle corners cancel out and +7⋅(−7)+\endterm{7} \cdot (-\endterm{7}) gives −49\endterm{-49}.
16x2−49\displaystyle \frontterm{16x^2} - \endterm{49} =(4x+7)(4x−7)\displaystyle = (\frontterm{4x} + \endterm{7})(\frontterm{4x} - \endterm{7})

Now see what happens when we try to factor a sum of squares like x2+25\frontterm{x^2} + \endterm{25}.

Opposite signs make the middle corners cancel out and leave a negative last term, while matching signs make the last term positive and double the middle term.
2

Factoring Perfect Square Trinomials

Next, we want to factor a three-term expression like 9x2−30x+25\frontterm{9x^2} \middleterm{- 30x} \endterm{+ 25} without having to multiply 9⋅25=2259 \cdot 25 = 225 and hunt through all its factor pairs.

Factoring Perfect Square Trinomials
(x+4)2=  ?(\htmlClass{lc-blue}{x} + \htmlClass{lc-orange}{4})^2 = \;?
x\htmlClass{lc-blue}{x}
4\htmlClass{lc-orange}{4}
x\htmlClass{lc-blue}{x}
4\htmlClass{lc-orange}{4}
Text solution
Find what squares to give the front and back endsBreak the first term and the positive last term into equal pieces.
9x2\displaystyle \frontterm{9x^2} =3x⋅3xand25\displaystyle = \frontterm{3x} \cdot \frontterm{3x} \quad \text{and} \quad \endterm{25} =5⋅5\displaystyle = \endterm{5} \cdot \endterm{5}
Multiply the pieces and double to check the middleCheck that two identical 3x\frontterm{3x}-by-5\endterm{5} corners in the box combine to match the middle term.
3x⋅5\displaystyle \frontterm{3x} \cdot \endterm{5} =15x⟶15x⋅2\displaystyle = \middleterm{15x} \quad \longrightarrow \quad \middleterm{15x} \cdot 2 =30x\displaystyle = \middleterm{30x}
Keep the middle sign in one squared factorBecause the middle term is −30x\middleterm{-30x}, both factors need a minus sign so that −15x\middleterm{-15x} and −15x\middleterm{-15x} combine to −30x\middleterm{-30x} while (−5)(−5)(-\endterm{5})(-\endterm{5}) stays +25\endterm{+25}.
9x2−30x+25\displaystyle \frontterm{9x^2} \middleterm{- 30x} \endterm{+ 25} =(3x−5)2\displaystyle = (\frontterm{3x} - \endterm{5})^2

Just seeing squares at both ends is not enough, though: we always have to check the middle term before using the shortcut.

Square terms at both ends aren't enough to make the whole box a square, because the two middle pieces have to match too.
3

Pulling Out a Greatest Common Factor First

Now suppose we are asked to factor 2x2−50\frontterm{2x^2} - \endterm{50} or 3x2+24x+48\frontterm{3x^2} \middleterm{+ 24x} \endterm{+ 48} completely, where the numbers at the ends aren't squares at all.

Pulling Out a Greatest Common Factor First
2x2−50=  ?3x2+24x+48=  ?\displaystyle \begin{aligned}\frontterm{2x^2} - \endterm{50} &= \;?\\[6pt]\frontterm{3x^2} \middleterm{+ 24x} \endterm{+ 48} &= \;?\end{aligned}
Text solution
Pull out the Greatest Common Factor (GCF) firstDivide every term by the common factor of 2\gcf{2} and place it in front of the parentheses to uncover the squares inside.
2x2−50\displaystyle \frontterm{2x^2} - \endterm{50} =2(x2−25)\displaystyle = \gcf{2}(\frontterm{x^2} - \endterm{25})
Factor the special product inside the parenthesesLeave the 2\gcf{2} out front and split the Difference of Squares x2−25\frontterm{x^2} - \endterm{25} with opposite signs.
2(x2−25)\displaystyle \gcf{2}(\frontterm{x^2} - \endterm{25}) =2(x+5)(x−5)\displaystyle = \gcf{2}(\frontterm{x} + \endterm{5})(\frontterm{x} - \endterm{5})

The same first move uncovers three-term squares when all three terms share a common factor:

3x2+24x+48=3(x2+8x+16)=3(x+4)2\displaystyle \begin{aligned} \frontterm{3x^2} \middleterm{+ 24x} \endterm{+ 48} &= \gcf{3}(\frontterm{x^2} \middleterm{+ 8x} \endterm{+ 16}) \\ &= \gcf{3}(\frontterm{x} + \endterm{4})^2 \end{aligned}
4

Factoring Higher Powers Completely

Now let's factor a higher power like x4−81\frontterm{x^4} - \endterm{81} completely, where splitting the expression once still leaves x2\frontterm{x^2} inside the new factors.

Factoring Higher Powers Completely
x4−81=  ?\displaystyle \begin{aligned}\frontterm{x^4} - \endterm{81} &= \;?\end{aligned}
Text solution
Split the fourth power into two x2\frontterm{x^2} factors with opposite signsSince x4=x2⋅x2\frontterm{x^4} = \frontterm{x^2} \cdot \frontterm{x^2} and 81=9⋅9\endterm{81} = \endterm{9} \cdot \endterm{9}, break the expression into a plus factor and a minus factor.
x4−81\displaystyle \frontterm{x^4} - \endterm{81} =(x2+9)(x2−9)\displaystyle = (\frontterm{x^2} + \endterm{9})(\frontterm{x^2} - \endterm{9})
Factor the new Difference of Squares againLeave the Sum of Squares x2+9x^2 + 9 alone, and split x2−9\splitfactor{x^2 - 9} into (x+3)(x−3)\splitfactor{(x + 3)(x - 3)}.
(x2+9)(x2−9)\displaystyle (x^2 + 9)\splitfactor{(x^2 - 9)} =(x2+9)(x+3)(x−3)\displaystyle = (x^2 + 9)\splitfactor{(x + 3)(x - 3)}

Key concepts

Putting these checks in order gives us a game plan for factoring special products.

Your Game Plan for Factoring Special Products
x2−49=  ?x4−81=  ?x2−12x+36=  ?\displaystyle \begin{aligned}\frontterm{x^2} - \endterm{49} &= \;?\\[6pt]\frontterm{x^4} - \endterm{81} &= \;?\\[6pt]\frontterm{x^2} \middleterm{- 12x} \endterm{+ 36} &= \;?\end{aligned}
5

Practice

1

Factor x2−64\frontterm{x^2} - \endterm{64}.

Two terms with a minus sign: what multiplies by itself to give x2\frontterm{x^2}, and what multiplies by itself to give 64\endterm{64}?

Split the two squares into x⋅x=x2\frontterm{x} \cdot \frontterm{x} = \frontterm{x^2} and 8⋅8=64\endterm{8} \cdot \endterm{8} = \endterm{64}, then give the factors opposite signs so the middle terms cancel out. (Watch out: writing (x−8)2(x - 8)^2 uses two minus signs, which multiplies out to x2−16x+64x^2 - 16x + 64 instead of canceling the middle.)
Answer: (x+8)(x−8)\displaystyle \text{Answer: } (x + 8)(x - 8)
2

Factor 25x2−9\frontterm{25x^2} - \endterm{9}.

Break both the front coefficient and the back number into equal factors before placing the signs.

Split 25x2\frontterm{25x^2} into 5x⋅5x\frontterm{5x} \cdot \frontterm{5x} and 9\endterm{9} into 3⋅3\endterm{3} \cdot \endterm{3}, then place opposite signs between them. (Watch out: leaving 2525 unsplit to get (25x+3)(x−3)(25x + 3)(x - 3) gives a middle term of −72x-72x instead of 00.)
Answer: (5x+3)(5x−3)\displaystyle \text{Answer: } (5x + 3)(5x - 3)
3

Factor x2+36\frontterm{x^2} + \endterm{36}.

Check the sign between the two squares before writing any parentheses.

Even though x2\frontterm{x^2} and 36\endterm{36} are both squares, there is a plus sign between them. (Watch out: (x+6)(x−6)(x + 6)(x - 6) gives x2−36x^2 - 36, and (x+6)2(x + 6)^2 gives x2+12x+36x^2 + 12x + 36, so no pair of factors works.)
Answer: Prime (cannot be factored)\displaystyle \text{Answer: Prime (cannot be factored)}
4

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

The front and back ends come from squaring x\frontterm{x} and 6\endterm{6}. Multiply those pieces and double the result to check the middle term.

The ends come from x\frontterm{x} and 6\endterm{6}, and doubling 6x\middleterm{6x} gives 12x\middleterm{12x}, which matches the middle term with a plus sign. (Watch out: don't use opposite signs to write (x+6)(x−6)(x + 6)(x - 6), which would cancel out the +12x+12x middle term and make the last term −36-36.)
Answer: (x+6)2\displaystyle \text{Answer: } (x + 6)^2
5

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

Multiply x\frontterm{x} and 9\endterm{9} and double the result to check the size of the middle term, then look at its sign.

The ends come from x\frontterm{x} and 9\endterm{9}, and 9x\middleterm{9x} doubled is 18x\middleterm{18x}; since the middle term is −18x\middleterm{-18x}, both factors need a minus sign. (Watch out: seeing +81+81 at the back often tempts people to write (x+9)2(x + 9)^2, which gives +18x+18x in the middle instead of −18x-18x.)
Answer: (x−9)2\displaystyle \text{Answer: } (x - 9)^2
6

Factor 4x2−20x+25\frontterm{4x^2} \middleterm{- 20x} \endterm{+ 25}.

Instead of multiplying 4⋅254 \cdot 25, take the square roots of the two ends and see what their product doubled gives.

The ends break into 2x⋅2x=4x2\frontterm{2x} \cdot \frontterm{2x} = \frontterm{4x^2} and 5⋅5=25\endterm{5} \cdot \endterm{5} = \endterm{25}, and doubling 2x⋅5=10x\frontterm{2x} \cdot \endterm{5} = \middleterm{10x} gives 20x\middleterm{20x}. Use the minus sign from −20x\middleterm{-20x}. (Watch out: using a plus sign because of +25+25 gives (2x+5)2=4x2+20x+25(2x + 5)^2 = 4x^2 + 20x + 25.)
Answer: (2x−5)2\displaystyle \text{Answer: } (2x - 5)^2
7

Factor x2+13x+36\frontterm{x^2} \middleterm{+ 13x} \endterm{+ 36}.

The ends come from squaring x\frontterm{x} and 6\endterm{6}, so test whether 6x\middleterm{6x} doubled matches 13x\middleterm{13x} before choosing your method.

Although the ends come from x\frontterm{x} and 6\endterm{6}, doubling 6x\middleterm{6x} gives 12x\middleterm{12x}, not 13x\middleterm{13x}. (Watch out: jumping straight to (x+6)2(x + 6)^2 without checking the middle leaves you short by xx.) Instead, use the two factors of 36\endterm{36} that add to 13\middleterm{13}, which are 99 and 44.
Answer: (x+9)(x+4)\displaystyle \text{Answer: } (x + 9)(x + 4)
8

Factor completely: 5x2−80\frontterm{5x^2} - \endterm{80}.

Neither 55 nor 8080 is a square, so check what number divides evenly into both terms first.

Pull out the GCF of 5\gcf{5} to get 5(x2−16)\gcf{5}(\frontterm{x^2} - \endterm{16}), then split the Difference of Squares x2−16\frontterm{x^2} - \endterm{16} inside the parentheses. (Watch out: stopping at 5(x2−16)5(x^2 - 16) leaves the expression only partly factored, and dropping the 55 to write just (x+4)(x−4)(x + 4)(x - 4) loses the common factor.)
Answer: 5(x+4)(x−4)\displaystyle \text{Answer: } 5(x + 4)(x - 4)
9

Factor completely: 2x2+20x+50\frontterm{2x^2} \middleterm{+ 20x} \endterm{+ 50}.

Pull out the Greatest Common Factor of all three terms first, then check the ends of the trinomial left inside.

Pull out the GCF of 2\gcf{2} to get 2(x2+10x+25)\gcf{2}(\frontterm{x^2} \middleterm{+ 10x} \endterm{+ 25}). Inside the parentheses, the ends come from squaring x\frontterm{x} and 5\endterm{5}, and 5x\middleterm{5x} doubled is 10x\middleterm{10x}. (Watch out: don't pull the 22 inside the square to write (2x+10)2(2x + 10)^2, which multiplies out to 4x2+40x+1004x^2 + 40x + 100.)
Answer: 2(x+5)2\displaystyle \text{Answer: } 2(x + 5)^2
10

Factor completely: x4−16\frontterm{x^4} - \endterm{16}.

Split x4\frontterm{x^4} into x2⋅x2\frontterm{x^2} \cdot \frontterm{x^2} first, then check both new parentheses to see which one splits a second time.

First split x4−16\frontterm{x^4} - \endterm{16} into (x2+4)(x2−4)(\frontterm{x^2} + \endterm{4})(\frontterm{x^2} - \endterm{4}). The Sum of Squares x2+4x^2 + 4 cannot be factored, while the Difference of Squares x2−4\splitfactor{x^2 - 4} splits again into (x+2)(x−2)\splitfactor{(x + 2)(x - 2)}. (Watch out: stopping at (x2+4)(x2−4)(x^2 + 4)(x^2 - 4) misses the second split, and factoring x2+4x^2 + 4 as well to get (x+2)2(x−2)2(x + 2)^2(x - 2)^2 is wrong because x2+4x^2 + 4 is prime.)
Answer: (x2+4)(x+2)(x−2)\displaystyle \text{Answer: } (x^2 + 4)(x + 2)(x - 2)