Factor Special Products
The strategy for factoring we developed in the last section will guide you as you factor most binomials, trinomials, and polynomials with more than three terms. 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. You can square a binomial by using FOIL, but using the Binomial Squares pattern you saw in a previous chapter saves you a step. Let’s review by squaring a binomial using FOIL:
The first term is the square of the first term of the binomial and the last term is the square of the last term. The middle term is twice the product of the two terms of the binomial:
The trinomial is called a perfect square trinomial. It is the square of the binomial .
When you square a binomial, the product is a perfect square trinomial. In this chapter you are learning to factor — now you will start with a perfect square trinomial and factor it into its prime factors. You could factor this trinomial using the methods of the last section, since it is of the form . 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.
Perfect Square Trinomials Pattern. If and are real numbers,
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, . Next check that the last term is a perfect square, . Then check the middle term — is it twice the product, ? If everything checks, you can easily write the factors.
Example. Factor: .
Does the trinomial fit the perfect square trinomials pattern, ? The first term is a perfect square, , and the last term is a perfect square, . The middle term is twice the product of and , so it matches . Write it as the square of a binomial:
Check by multiplying: . ✓
Factor:
The first term is and the last term is . Check that the middle term is .Factor:
The first term is and the last term is ; write it as the square of .The sign of the middle term determines which pattern we will use. When the middle term is negative, we use the pattern , which factors to . The steps are summarized here.
Factor perfect square trinomials.
- Does the trinomial fit the pattern or ?
- Is the first term a perfect square? Write it as a square, .
- Is the last term a perfect square? Write it as a square, .
- Check the middle term. Is it ?
- Write the square of the binomial: or .
- Check by multiplying.
Example. Factor: .
The first and last terms are squares. The middle term is negative, so the binomial square would be . Write the first term as and the last term as ; the middle term is , so the pattern matches:
Factor:
The middle term is negative, so the factor is . The first term is and the last is .Factor:
Write the first term as and the last as ; the negative middle term gives .The next example is a perfect square trinomial with two variables.
Example. Factor: .
Test each term to verify the pattern. The first term is and the last term is ; the middle term is . It fits, so we write the square of the binomial:
Factor:
The first term is and the last is . Check that the middle term is .Factor:
Write the first term as and the last as ; the middle term is .Remember the very first step in our strategy for factoring polynomials — ask “is there a greatest common factor?” and, if there is, factor the GCF out before going any further. Perfect square trinomials may have a GCF in all three terms and it should be factored out first. Sometimes, once the GCF has been factored, you will recognize a perfect square trinomial.
Example. Factor: .
There is a GCF of , so factor it out first:
The trinomial in parentheses is a perfect square: , , and . Factor it, keeping the factor :
Factor completely:
First factor out the GCF . The remaining trinomial is a perfect square.Factor completely:
First factor out the GCF . The remaining trinomial is a perfect square.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, for example:
When you multiply conjugate binomials, the middle terms of the product add to . All you have left is a binomial, the difference of squares. Multiplying conjugates is the only way to get a binomial from the product of two binomials.
Difference of Squares Pattern. If and are real numbers,
The first and last terms are squares and they are subtracted; the factors are a pair of conjugates.
To factor, we use the product pattern “in reverse” to factor the difference of squares. 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 differences of squares.
- Does the binomial fit the pattern ?
- Is this a difference?
- Are the first and last terms perfect squares?
- Write them as squares, .
- Write the product of conjugates, .
- Check by multiplying.
Example. Factor: .
Does the binomial fit the pattern? It is a difference, and both terms are perfect squares: and . Write them as squares, then write the product of conjugates:
Check by multiplying: . ✓
Factor:
Write the terms as squares: . The factors are the conjugate pair .Factor:
, so this is , a difference of squares.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 is prime!
Example. Factor: .
This is a difference, and both terms are perfect squares — don’t forget that is a perfect square. Write as and as , then factor as the product of conjugates:
Factor:
Both and are perfect squares, so this is .Factor:
Write as and as , then use the difference of squares pattern.Example. Factor: .
Is this a difference of squares? Yes — and . Factor as the product of conjugates:
Factor:
and ; the factors are the conjugate pair.Factor:
Write as and as , then write the product of conjugates.The binomial in the next example may look “backwards,” but it is still the difference of squares.
Example. Factor: .
Is this a difference of squares? Yes — and . Factor as the product of conjugates:
Be careful not to rewrite the original expression as .
Factor:
Write as and keep the order: .Factor:
, so this is , a difference of squares.To completely factor the binomial in the next example, we factor a difference of squares twice!
Example. Factor: .
Is this a difference of squares? Yes — and . Factor it as the product of conjugates. Notice the first binomial is also a difference of squares! The last factor, the sum of squares, cannot be factored:
Factor completely:
First factor , then factor the difference of squares again. The sum of squares stays.Factor completely:
Write as : , then factor again.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.
Example. Factor: .
Is there a GCF? Yes, — factor it out. The binomial that remains is a difference of squares. Factor it as a product of conjugates:
Factor completely:
Factor out the GCF first; the remaining is a difference of squares.Factor completely:
Factor out the GCF first; the remaining is a difference of squares.Remember, a sum of squares does not factor. After removing the GCF, if what remains is a sum of squares, it is prime.
Example. Factor: .
Is there a GCF? Yes, — factor it out:
Is the binomial in parentheses a difference of squares? No — it is a sum of squares. Sums of squares do not factor, so is prime and is the complete factorization.
Factor completely:
Factor out the GCF . What remains, , is a sum of squares — it is prime.Factor completely:
Factor out the GCF . What remains, , is a sum of squares — it does not factor.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 can check these formulas by multiplication; for the sum of cubes, distributing over gives .
Sum and Difference of Cubes Pattern.
The two patterns look very similar. 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. The trinomial factor in the sum and difference of cubes pattern cannot be factored.
It can be very helpful if you learn to recognize the cubes of the integers from to , just like you have learned to recognize squares:
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.
Example. Factor: .
Does the binomial fit the pattern? It is a sum, and both terms are perfect cubes: and . Write the terms as cubes, use the sum of cubes pattern, and simplify inside the parentheses:
Factor:
. Use the sum of cubes pattern with and ; the middle term of the trinomial is .Factor:
. Use the sum of cubes pattern with and .Be careful to use the correct signs in the factors of the sum and difference of cubes.
Example. Factor: .
This binomial is a difference. The first and last terms are perfect cubes: and . Use the difference of cubes pattern and simplify:
Factor:
. Use the difference of cubes pattern with and ; the middle term of the trinomial is .Factor:
. Use the difference of cubes pattern with and .Example. Factor: .
This binomial is a difference. The first and last terms are perfect cubes: and . Use the difference of cubes pattern and simplify:
Factor:
and . Use the difference of cubes pattern with and .Factor:
and . Use the difference of cubes pattern with and .Example. Factor: .
This binomial is a difference. Both terms are perfect cubes: and . Use the difference of cubes pattern and simplify:
Factor:
and . Use the difference of cubes pattern with and .Factor:
Factor out the GCF first, leaving , then apply the difference of cubes pattern with and .In the next example, we first factor out the GCF. Then we can recognize the sum of cubes.
Example. Factor: .
Factor the common factor first. The binomial that remains is a sum, and its terms are perfect cubes: and . Use the sum of cubes pattern and simplify:
Factor completely:
Factor out the GCF first, leaving , then apply the sum of cubes pattern with and .Factor completely:
Factor out the GCF first, leaving , then apply the sum of cubes pattern with and .Key terms
perfect square trinomial — a trinomial of the form or ; it factors to or . difference of squares — a binomial of the form ; it factors to the conjugate pair . sum of squares — a binomial of the form ; it does not factor and is prime. sum of cubes — . difference of cubes — .
This section is adapted from Elementary Algebra 2e, Section 7.4: Factor Special Products by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recast the pattern-derivation walkthroughs and worked-example step tables as typeset display equations, kept the Perfect Square Trinomials, Difference of Squares, and Sum and Difference of Cubes patterns and How To procedures as callouts, recreated the cubes reference table as a markdown table; omitted the Be Prepared quiz, Self Check checklist, media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.