# Algebra: Special Factoring Patterns

## Special Factoring Patterns

Sometimes, you hardly have to do any work at all to factor a polynomial. This appeals to me, because deep down, I am a very lazy man, and if I didn't have to feed myself or my family, I'd be happily working a meaningless job and living in squalor (as I proved beyond any reasonable doubt when I was a bachelor). In some circumstances, all you have to do is recognize that the polynomial at hand follows a certain pattern. To spot these handy, time-saving patterns, you'll need to be able to spot perfect squares and perfect cubes.

A *perfect square* is what you get when you multiply something by itself (in other words, the result of squaring something). For instance, 36*w*^{4} is a perfect square, since it's the result of something multiplied by itself: (6*w*^{2})(6*w*^{2}) = 36*w*^{4}.

A *perfect cube* can be created by multiplying something by itself two times (in other words, the result of cubing something). Therefore, -8*y*^{3} is a perfect cube, since (-2*y*)(-2*y*)(-2*y*) = -8*y*^{3}.

Here are the special factor patterns you should be able to recognize. Memorize the formulas, because in some cases, it's very hard to generate them without wasting a lot of time.

##### Talk the Talk

A **perfect square** is a quantity that results when something is multiplied by itself, and a **perfect cube** is the result of multiplying something by itself twice.

##### Kelley's Cautions

Note that you cannot factor the *sum* of perfect squares as easily as the *difference*. In fact, as far as you're concerned, you cannot factor *a*^{2} + *b*^{2}, even though most algebra students try to factor it as (*a* + *b*)(*a* + *b*), which is totally wrong! If you multiply (*a* + *b*)(*a* + *b*), you get *a*^{2} + 2*ab* + *b*^{2}, not *a*^{2} + *b*^{2}. (If you need to review polynomial multiplication, it's covered in Introducing Polynomials.)

**The difference of perfect squares**: If two squares are subtracted, (*a*^{2}-*b*^{2}), you can automatically rewrite the difference as a binomial product (*a*+*b*)(*a*-*b*). For example, the polynomial*x*^{2}- 16 is a difference of perfect squares, since*x*^{2}- 16 = (*x*)^{2}- (4)^{2}. (If you compare*x*^{2}- 16 to the formula*a*^{2}-*b*^{2},*a*=*x*and*b*= 4, as they are the numbers that generate the perfect squares.) Therefore, it can be factored as (*x*+ 4)(*x*- 4).**The difference of perfect cubes**: If two perfect cubes are subtracted, they can be factored as the product of a binomial and a trinomial: (*a*^{3}-*b*^{3}) = (*a*-*b*)(*a*^{2}+*ab*+*b*^{2}). For example, given the polynomial 8*x*^{3}- 27 (in this case,*a*= 2*x*and*b*= 3), its factored form is (2*x*- 3)((2*x*)^{2}+ (2*x*)(3) + (3)^{2}), or (2*x*- 3)(4*x*^{2}+ 6*x*+ 9).**The sum of perfect cubes**: Unlike the sum of perfect squares, when perfect cubes are added together, they do follow a specific factor pattern. This pattern differs only slightly from its sister formula, the difference of perfect cubes; in fact, only a few signs are different: (*a*^{3}+*b*^{3}) = (*a*+*b*)(*a*^{2}-*ab*+*b*^{2}). Consider the polynomial*y*^{3}= 64; this represents the sum of perfect cubes*a*^{3}+*b*^{3}when*a*=*y*and*b*= 4, so according to the formula, its factored form is (*y*+ 4)(*y*^{2}- 4*y*+ 16).

One word of caution: Factoring by means of these special patterns works hand in hand with, not in opposition to, factoring using the greatest common factor. In fact, you should *always* look for a greatest common factor (and if it exists, factor it out) before trying to apply any other factoring technique. This guarantees that you'll get the fully factored form of the polynomial, and in some cases, will change the problem from impossible to easy.

**Example 3**: Factor the polynomials.

##### Kelley's Cautions

Always assume that you're expected to factor a polynomial *completely*. In other words, none of the resulting factors should, in turn, be factorable.

##### You've Got Problems

Problem 3: Factor the polynomial 5*x*^{2} - 125.

- (a) 16
*x*^{3}+ 2*y*^{3} **Solution**: This feels like a sum of perfect cubes problem, thanks to the powers of 3, but it doesn't exactly fit the formula. Even though*x*^{3}is a perfect cube, 16*x*^{3}isn't. (There's no rational number that multiplied by itself twice gives you 16.) Same goes for the other term.- This is one example why you should always try to factor out the greatest common factor first. Notice that both terms have a GCF of 2, so factor it out.
- 2(8
*x*^{3}+*y*^{3}) - Ignore that 2 outside the parentheses for now; the quantity inside
*is*the sum of perfect cubes, and fits the formula if*a*= 2*x*and*b*=*y*. Rewrite it in factored form, leaving the GCF exactly where it is, out front. - 2(2
*x*+*y*)(4*x*^{2}- 2*xy*+*y*^{2}) - (b)
*x*^{4}- 16 **Solution**: This is the difference of perfect squares, and fits the formula*a*^{2}-*b*^{2}= (*a*+*b*)(*a*-*b*) if you set*a*=*x*^{2}and*b*= 4. So, rewrite in the factored form prescribed by that formula:- (
*x*^{2}+ 4)(*x*^{2}- 4) - If you were to end here, you'd technically get the problem wrong, because it's not factored
*completely*; one of the factors,*x*^{2}- 4, is itself a perfect square and must be factored further. - (
*x*^{2}+ 4)(*x*+ 2)(*x*- 2)

Excerpted from The Complete Idiot's Guide to Algebra © 2004 by W. Michael Kelley. All rights reserved including the right of reproduction in whole or in part in any form. Used by arrangement with **Alpha Books**, a member of Penguin Group (USA) Inc.

You can purchase this book at Amazon.com and Barnes & Noble.

**See also:**