6.4: Factor Special Products
By the end of this section, you will be able to:
- Factor perfect square trinomials
- Factor differences of squares
- Factor sums and differences of cubes
Before you get started, take this readiness quiz.
- Simplify: \((3x^2)^3\).
- Multiply: \((m+4)^2\).
- Multiply: \((x−3)(x+3)\).
We have seen that some binomials and trinomials result from special products—squaring binomials and multiplying conjugates. If you learn to recognize these kinds of polynomials, you can use the special products patterns to factor them much more quickly.
Factor Perfect Square Trinomials
Some trinomials are perfect squares. They result from multiplying a binomial times itself. We squared a binomial using the Binomial Squares pattern in a previous chapter.
The trinomial \(9x^2+24x+16\) is called a perfect square trinomial . It is the square of the binomial \(3x+4\).
In this chapter, you will start with a perfect square trinomial and factor it into its prime factors. You could factor this trinomial using the methods described in the last section, since it is of the form \(ax^2+bx+c\). But if you recognize that the first and last terms are squares and the trinomial fits the perfect square trinomials pattern, you will save yourself a lot of work. Here is the pattern—the reverse of the binomial squares pattern.
If \(a\) and \(b\) are real numbers
\[a^2+2ab+b^2=(a+b)^2\nonumber\]
\[a^2−2ab+b^2=(a−b)^2\nonumber\]
To make use of this pattern, you have to recognize that a given trinomial fits it. Check first to see if the leading coefficient is a perfect square, \(a^2\). Next check that the last term is a perfect square, \(b^2\). Then check the middle term—is it the product, \(2ab\)? If everything checks, you can easily write the factors.
Factor: \(9x^2+12x+4\).
- Answer
-
Factor: \(4x^2+12x+9\).
- Answer
-
\((2x+3)^2\)
Factor: \(9y^2+24y+16\).
- Answer
-
\((3y+4)^2\)
The sign of the middle term determines which pattern we will use. When the middle term is negative, we use the pattern \(a^2−2ab+b^2\), which factors to \((a−b)^2\).
The steps are summarized here.
\(\begin{array} {lllll} \textbf{Step 1.} &\text{Does the trinomial fit the pattern?} &\quad &\hspace{7mm} a^2+2ab+b^2 &\hspace{7mm} a^2−2ab+b^2 \\ &\text{Are the first and last terms perfect squares?} &\quad & &\\ &\text{Write them as squares.} &\quad &\hspace{5mm}(a)^2\hspace{16mm} (b)^2 &\hspace{6mm}(a)^2\hspace{16mm} (b)^2 \\ &\text{Check the middle term. Is it }2ab? &\quad &\hspace{12mm} {\,}^{\searrow}{\,}_{2·a·b}{\,}^{\swarrow} &\hspace{12mm} {\,}^{\searrow}{\,}_{2·a·b}{\,}^{\swarrow} \\ \textbf{Step 2.} &\text{Write the square of the binomial.} &\quad &\hspace{13mm} (a+b)^2 &\hspace{13mm} (a−b)^2 \\ \textbf{Step 3.} &\text{Check by multiplying.} & & & \end{array}\)
We’ll work one now where the middle term is negative.
Factor: \(81y^2−72y+16\).
- Answer
-
The first and last terms are squares. See if the middle term fits the pattern of a perfect square trinomial. The middle term is negative, so the binomial square would be \((a−b)^2\).
\(81 y^{2}-72 y+16\) Are the first and last terms perfect squares? Check the middle term. Does it match \((a−b)^2\)? Yes. Write as the square of a binomial. \((9 y-4)^{2}\) Check by multiplying:
\[(9y−4)^2\nonumber\]\[(9y)^2−2·9y·4+4^2\nonumber\]\[81y^2−72y+16\checkmark\nonumber\]
Factor: \(64y^2−80y+25\).
- Answer
-
\((8y−5)^2\)
Factor: \(16z^2−72z+81\).
- Answer
-
\((4z−9)^2\)
The next example will be a perfect square trinomial with two variables.
Factor: \(36x^2+84xy+49y^2\).
- Answer
-
\(36 x^{2}+84 x y+49 y^{2}\) Test each term to verify the pattern. Factor. \((6 x+7 y)^{2}\) Check by multiplying.
\[(6x+7y)^2\nonumber\]\[(6x)^2+2·6x·7y+(7y)^2\nonumber\]\[36x^2+84xy+49y^2\checkmark\nonumber\]
Factor: \(49x^2+84xy+36y^2\).
- Answer
-
\((7x+6y)^2\)
Factor: \(64m^2+112mn+49n^2\).
- Answer
-
\((8m+7n)^2\)
Remember the first step in factoring is to look for a greatest common factor. Perfect square trinomials may have a GCF in all three terms and it should be factored out first. And, sometimes, once the GCF has been factored, you will recognize a perfect square trinomial.
Factor: \(100x^2y−80xy+16y\).
- Answer
-
\(100 x^{2} y-80 x y+16 y\) Is there a GCF? Yes, \(4y\), so factor it out. \(4 y\left(25 x^{2}-20 x+4\right)\) Is this a perfect square trinomial? Verify the pattern. Factor. \(4 y(5 x-2)^{2}\) Remember: Keep the factor 4 y in the final product. Check:
\[4y(5x−2)^2\nonumber\]\[4y[(5x)2−2·5x·2+22]\nonumber\]\[4y(25x2−20x+4)\nonumber\]100x2y−80xy+16y\checkmark\]
Factor: \(8x^2y−24xy+18y\).
- Answer
-
\(2y(2x−3)^2\)
Factor: \(27p^2q+90pq+75q\).
- Answer
-
\(3q(3p+5)^2\)
Factor Differences of Squares
The other special product you saw in the previous chapter was the Product of Conjugates pattern. You used this to multiply two binomials that were conjugates. Here’s an example:
A difference of squares factors to a product of conjugates.
If \(a\) and \(b\) are real numbers,
Remember, “difference” refers to subtraction. So, to use this pattern you must make sure you have a binomial in which two squares are being subtracted.
Factor: \(64y^2−1\).
- Answer
-
Factor: \(121m^2−1\).
- Answer
-
\((11m−1)(11m+1)\)
Factor: \(81y^2−1\).
- Answer
-
\((9y−1)(9y+1)\)
\(\begin{array} {llll} \textbf{Step 1.} &\text{Does the binomial fit the pattern?} &\qquad &\hspace{5mm} a^2−b^2 \\ &\text{Is this a difference?} &\qquad &\hspace{2mm} \text{____−____} \\ &\text{Are the first and last terms perfect squares?} & & \\ \textbf{Step 2.} &\text{Write them as squares.} &\qquad &\hspace{3mm} (a)^2−(b)^2 \\ \textbf{Step 3.} &\text{Write the product of conjugates.} &\qquad &(a−b)(a+b) \\ \textbf{Step 4.} &\text{Check by multiplying.} & & \end{array}\)
It is important to remember that sums of squares do not factor into a product of binomials . There are no binomial factors that multiply together to get a sum of squares. After removing any GCF, the expression \(a^2+b^2\) is prime!
The next example shows variables in both terms.
Factor: \(144x^2−49y^2\).
- Answer
-
\(\begin{array} {lll} &\quad &144x^2−49y^2 \\ \text{Is this a difference of squares? Yes.} &\quad &(12x)^2−(7y)^2 \\ \text{Factor as the product of conjugates.} &\quad &(12x−7y)(12x+7y) \\ \text{Check by multiplying.} &\quad &(12x−7y)(12x+7y) \\ \text{Check by multiplying.} &\quad & \\ &\quad & \\ &\quad & \\ \hspace{14mm} (12x−7y)(12x+7y) &\quad & \\ \hspace{21mm} 144x^2−49y^2\checkmark &\quad & \end{array}\)
Factor: \(196m^2−25n^2\).
- Answer
-
\((14m−5n)(14m+5n)\)
Factor: \(121p^2−9q^2\).
- Answer
-
\((11p−3q)(11p+3q)\)
As always, you should look for a common factor first whenever you have an expression to factor. Sometimes a common factor may “disguise” the difference of squares and you won’t recognize the perfect squares until you factor the GCF.
Also, to completely factor the binomial in the next example, we’ll factor a difference of squares twice!
Factor: \(48x^4y^2−243y^2\).
- Answer
-
\(\begin{array} {ll} &48x^4y^2−243y^2 \\ \text{Is there a GCF? Yes, }3y^2\text{—factor it out!} &3y^2(16x^4−81) \\ \text{Is the binomial a difference of squares? Yes.} &3y^2\left((4x^2)^2−(9)^2\right) \\ \text{Factor as a product of conjugates.} &3y^2(4x^2−9)(4x^2+9) \\ \text{Notice the first binomial is also a difference of squares!} &3y^2((2x)^2−(3)^2)(4x^2+9) \\ \text{Factor it as the product of conjugates.} &3y^2(2x−3)(2x+3)(4x^2+9) \end{array}\)
The last factor, the sum of squares, cannot be factored.
\(\begin{array} {l} \text{Check by multiplying:} \\ \hspace{10mm} 3y^2(2x−3)(2x+3)(4x^2+9) \\ \\ \\ \hspace{15mm} 3y^2(4x^2−9)(4x^2+9) \\ \hspace{20mm} 3y^2(16x^4−81) \\ \hspace{19mm} 48x^4y^2−243y^2\checkmark\end{array}\)
Factor: \(2x^4y^2−32y^2\).
- Answer
-
\(2y^2(x−2)(x+2)(x^2+4)\)
Factor: \(7a^4c^2−7b^4c^2\).
- Answer
-
\(7c^2(a−b)(a+b)(a^2+b^2)\)
The next example has a polynomial with 4 terms. So far, when this occurred we grouped the terms in twos and factored from there. Here we will notice that the first three terms form a perfect square trinomial.
Factor: \(x^2−6x+9−y^2\).
- Answer
-
Notice that the first three terms form a perfect square trinomial.
\(x^{2}-6 x+9-y^{2}\) Factor by grouping the first three terms. \(\underbrace{x^{2}-6 x+9} - y^{2}\) Use the perfect square trinomial pattern. \((x-3)^{2}-y^{2}\) Is this a difference of squares? Yes. Yes—write them as squares. Factor as the product of conjugates. \((x-3-y)(x-3+y)\) You may want to rewrite the solution as \((x−y−3)(x+y−3)\).
Factor: \(x^2−10x+25−y^2\).
- Answer
-
\((x−5−y)(x−5+y)\)
Factor: \(x^2+6x+9−4y^2\).
- Answer
-
\((x+3−2y)(x+3+2y)\)
Factor Sums and Differences of Cubes
There is another special pattern for factoring, one that we did not use when we multiplied polynomials. This is the pattern for the sum and difference of cubes. We will write these formulas first and then check them by multiplication.
\[a^3+b^3=(a+b)(a^2−ab+b^2\nonumber\]
\[a^3−b^3=(a−b)(a^2+ab+b^2)\nonumber\]
We’ll check the first pattern and leave the second to you.
| \(\color{red}(a+b) \color{black} \left(a^{2}-a b+b^{2}\right)\) | |
| Distribute. | \(\color{red}a \color{black}\left(a^{2}-a b+b^{2}\right)+ \color{red}b \color{black}\left(a^{2}-a b+b^{2}\right)\) |
| Multiply. | \(a^{3}-a^{2} b+a b^{2}+a^{2} b-a b^{2}+b^{3}\) |
| Combine like terms. | \(a^{3}+b^{3}\) |
\[a^3+b^3=(a+b)(a^2−ab+b^2\nonumber\]\[a^3−b^3=(a−b)(a^2+ab+b^2)\nonumber\]
The two patterns look very similar, don’t they? But notice the signs in the factors. The sign of the binomial factor matches the sign in the original binomial. And the sign of the middle term of the trinomial factor is the opposite of the sign in the original binomial. If you recognize the pattern of the signs, it may help you memorize the patterns.
The trinomial factor in the sum and difference of cubes pattern cannot be factored.
It be very helpful if you learn to recognize the cubes of the integers from 1 to 10, just like you have learned to recognize squares. We have listed the cubes of the integers from 1 to 10 in Table.
| n | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| \(n^3\) | 1 | 8 | 27 | 64 | 125 | 216 | 343 | 512 | 729 | 1000 |
Factor: \(x^3+64\).
- Answer
-
Factor: \(x^3+27\).
- Answer
-
\((x+3)(x^2−3x+9)\)
Factor: \(y^3+8\).
- Answer
-
\((y+2)(y^2−2y+4)\)
-
Does the binomial fit the sum or difference of cubes pattern?
Is it a sum or difference?
Are the first and last terms perfect cubes? - Write them as cubes.
- Use either the sum or difference of cubes pattern.
- Simplify inside the parentheses.
- Check by multiplying the factors.
Factor: \(27u^3−125v^3\).
- Answer
-
\(27 u^{3}-125 v^{3}\) This binomial is a difference. The first and last
terms are perfect cubes.Write the terms as cubes. Use the difference of cubes pattern. Simplify. Check by multiplying. We’ll leave the check to you.
Factor: \(8x^3−27y^3\).
- Answer
-
\((2x−3y)(4x^2+6xy+9y^2)\)
Factor: \(1000m^3−125n^3\).
- Answer
-
\((10m−5n)(100m^2+50mn+25n^2)\)
In the next example, we first factor out the GCF. Then we can recognize the sum of cubes.
Factor: \(6x^3y+48y^4\).
- Answer
-
\(6 x^{3} y+48 y^{4}\) Factor the common factor. \(6 y\left(x^{3}+8 y^{3}\right)\) This binomial is a sum The first and last
terms are perfect cubes.Write the terms as cubes. Use the sum of cubes pattern. Simplify. Check:
To check, you may find it easier to multiply the sum of cubes factors first, then multiply that product by 6y.6y. We’ll leave the multiplication for you.
Factor: \(500p^3+4q^3\).
- Answer
-
\(4(5p+q)(25p^2−5pq+q^2)\)
Factor: \(432c^3+686d^3\).
- Answer
-
\(2(6c+7d)(36c^2−42cd+49d^2)\)
The first term in the next example is a binomial cubed.
Factor: \((x+5)^3−64x^3\).
- Answer
-
\((x+5)^{3}-64 x^{3}\) This binomial is a difference. The first and
last terms are perfect cubes.Write the terms as cubes. Use the difference of cubes pattern. Simplify. \((x+5-4 x)\left(x^{2}+10 x+25+4 x^{2}+20 x+16 x^{2}\right)\) \((-3 x+5)\left(21 x^{2}+30 x+25\right)\) Check by multiplying. We’ll leave the check to you.
Factor: \((y+1)^3−27y^3\).
- Answer
-
\((−2y+1)(13y^2+5y+1)\)
Factor: \((n+3)^3−125n^3\).
- Answer
-
\((−4n+3)(31n^2+21n+9)\)
Access this online resource for additional instruction and practice with factoring special products.
Key Concepts
-
Perfect Square Trinomials Pattern:
If
a
and
b
are real numbers,
\[\begin{array} {l} a^2+2ab+b^2=(a+b)^2 \\ a^2−2ab+b^2=(a−b)^2\end{array} \nonumber\]
-
How to factor perfect square trinomials.
\(\begin{array} {lllll} \textbf{Step 1.} &\text{Does the trinomial fit the pattern?} &\quad &\hspace{7mm} a^2+2ab+b^2 &\hspace{7mm} a^2−2ab+b^2 \\ &\text{Are the first and last terms perfect squares?} &\quad & &\\ &\text{Write them as squares.} &\quad &\hspace{5mm}(a)^2\hspace{16mm} (b)^2 &\hspace{6mm}(a)^2\hspace{16mm} (b)^2 \\ &\text{Check the middle term. Is it }2ab? &\quad &\hspace{12mm} {\,}^{\searrow}{\,}_{2·a·b}{\,}^{\swarrow} &\hspace{12mm} {\,}^{\searrow}{\,}_{2·a·b}{\,}^{\swarrow} \\ \textbf{Step 2.} &\text{Write the square of the binomial.} &\quad &\hspace{13mm} (a+b)^2 &\hspace{13mm} (a−b)^2 \\ \textbf{Step 3.} &\text{Check by multiplying.} & & & \end{array}\) -
Difference of Squares Pattern:
If a,ba,b are real numbers,
-
How to factor differences of squares.
\(\begin{array} {llll} \textbf{Step 1.} &\text{Does the binomial fit the pattern?} &\qquad &\hspace{5mm} a^2−b^2 \\ &\text{Is this a difference?} &\qquad &\hspace{2mm} \text{____−____} \\ &\text{Are the first and last terms perfect squares?} & & \\ \textbf{Step 2.} &\text{Write them as squares.} &\qquad &\hspace{3mm} (a)^2−(b)^2 \\ \textbf{Step 3.} &\text{Write the product of conjugates.} &\qquad &(a−b)(a+b) \\ \textbf{Step 4.} &\text{Check by multiplying.} & & \end{array}\) -
Sum and Difference of Cubes Pattern
\(\begin{array} {l} a^3+b3=(a+b)(a^2−ab+b^2) \\ a^3−b^3=(a−b)(a^2+ab+b^2) \end{array} \) -
How to factor the sum or difference of cubes.
-
Does the binomial fit the sum or difference of cubes pattern?
Is it a sum or difference?
Are the first and last terms perfect cubes? - Write them as cubes.
- Use either the sum or difference of cubes pattern.
- Simplify inside the parentheses
- Check by multiplying the factors.
-
Does the binomial fit the sum or difference of cubes pattern?