Return to the Purplemath home page

 The Purplemath Forums
Helping students gain understanding
and self-confidence in algebra

powered by FreeFind


Return to the Lessons Index  | Do the Lessons in Order  |  Get "Purplemath on CD" for offline use  |  Print-friendly page

Special Factoring:
     Recognizing Factoring Patterns
(page 3 of 3)

Sections: Differences of squares, Sums and differences of cubes, Recognizing patterns

You've learned the difference-of-squares formula and the difference- and sum-of-cubes formulas. But how do you know which formula to use, and when to use it?

First off, to use any of these formulas, you have to have only two terms in your polynomial. If you've factored out everything you can and you're still left with two terms with a square or a cube in them, then you should look at using one of these formulas. For instance, 6x2 + 6x is two terms, but you can factor out a 6x, giving you 6x2 + 6x = 6x(x + 1). Since the bit inside the parentheses does not have a squared or a cubed variable in it, you can't apply any of these special factoring formulas (and you don't need to, since it's already fully factored -- you can't go further than just plain old "x"!).

On the other hand, 2x2 162 = 2(x2 81), and x2 81 is a quadratic. When you see that you have a two-term non-linear polynomial, check to see if it fits any of the formulas. In this case, you've got a difference of squares, so apply that formula: 2x2 162 = 2(x2 81) = 2(x 9)(x + 9).

Warning: Always remember that, in cases like 2x2 + 162, all you can do is factor out the 2; the sum of squares doesn't factor! 2x2 + 162 = 2(x2 + 81). (Your book may call x2 + 81 "prime", "unfactorable", or "irreducible". These all mean the same thing.)

There is one special case for applying these formulas. Take a look at x6 64. Is this expression a difference of squares, being ( (x3)2 82 ), or a difference of cubes, being ( (x2)3 43 )? Actually, it's both. You can factor this difference in either of two ways:

    difference of squares, followed by difference of cubes:

      x6 64 = (x3)2 82
          = (x3 8)(x3 + 8)
          = (x3 23)(x3 + 23)
          = (x 2)(x2 + 2x + 4)(x + 2)(x2 2x + 4)

    difference of cubes, followed by difference of squares:

      x6 64 = (x2)3 43
          = (x2 4)((x2)2 + 4x2 + 42)
          = (x2 4)(x4 + 4x2 + 16)
          = (x 2)(x + 2)(x4 + 4x2 + 16)

You should get full credit for either answer, since you shouldn't be expected to know (or to guess) that the quartic polynomial x4 + 4x2 + 16 factors as (x2 + 2x + 4)(x2 2x + 4). But if you happen to notice that a problem could be worked either way (as a difference of squares or as a difference of cubes), then you can see from the above example that it might be best to apply the difference-of-squares formula first, because doing the squares first means that you'll get all four factors, not just three.

Since the hardest part of factoring usually comes in figuring out how to proceed with a given problem, below are some factoring examples, with an explanation of which way you need to go with it to arrive at the answer. Note: Not all solutions are provided.

  • Factor x2 + 11x + 18

    This polynomial has three terms. Try to factor the "usual" way. Find factors of 18 that add up to 11, and then fill in the parentheses: Copyright Elizabeth Stapel 2000-2011 All Rights Reserved




      x2 + 11x + 18 = (x + 2)(x + 9)

  • Factor 16x2 49

    This has two terms, and nothing factors out of both terms, so you have to be thinking "difference of squares, or sum or difference of cubes". Since there are no cubes (and especially since the x is squared), you should look for a difference of squares. Sixteen is a square, and so is 49, so apply the difference of squares formula to (4x)2 72.

  • Factor 3x3 12x

    You can factor out a 3x, giving you 3x(x2 4). This leaves two terms inside the parentheses, where the two terms have a subtraction in the middle, and the x is squared. Apply the difference of squares formula to x2 22, and don't forget the factor of "3x" when you write your final answer.

  • Factor x2 + 6x + 9

    This is a quadratic with three terms. Factor in the "usual" way: 

      x2 + 6x + 9 = (x + 3)(x + 3)

You might also have noticed that this is a perfect square trinomial, from the fact that x2 is the square of x, 9 is the square of 3, and (x)(3)(2) = 6x, which matches the middle term. So this answer could also have been written as (x + 3)2.

  • Factor 27x3 8

    This has two terms, and nothing comes out of both. It's a difference. Twenty-seven is a cube, and so is 8. Apply the difference of cubes formula to (3x)3 23.

  • Factor 7x7 56x

    This has two terms, and a 7x comes out of both, giving you 7x(x6 8). Inside the parentheses you still have two terms, and it's a difference. The first term, x6, could be a cube, (x2)3, or a square, (x3)2, but 8 can only be a cube, 23. Apply the difference of cubes formula to (x2)3 23.

  • Factor x9 + 1

    This polynomial has two terms, and nothing factors out of both. Remember that you can put any power you feel like on 1, so you just have to figure out what to do with the x9. Since this is a sum, not a difference, you have to hope that there is some way you can turn x9 into a cube. There is: apply the sum of cubes formula to (x3)3 + 13 to get (x3 + 1)(x6  x3 + 1). Then notice that you can apply the sum of cubes formula again, to the factor x3 + 1.

  • Factor (x + y)3 + (x y)3

    Yes, this is needlessly complex, but you might see something like this in an extra-credit assignment. This is just a big lumpy sum of cubes. Be very careful with your parentheses when applying the formula. As you can imagine, there are many opportunities for mistakes!

    (x + y)3 + (x y)3
        = [ (x + y) + (x y) ] [ (x + y)2 (x + y)(x y) + (x y)2 ]
        = [ 2x ] [ (x2 + 2xy + y2) (x2 y2) + (x2 2xy + y2) ]
        = [ 2x ] [ x2 + 2xy + y2 x2 + y2 + x2 2xy + y2 ]
        = [ 2x ] [ x2 + 3y2 ]

To successfully complete these problems, just take your time, and don't be afraid to rely on your instincts and common sense.

<< Previous  Top  |  1 | 2 | 3  |  Return to Index

Cite this article as:

Stapel, Elizabeth. "Special Factoring: Recognizing Factoring Patterns." Purplemath. Available from Accessed


  Linking to this site
  Printing pages
  School licensing

Reviews of
Internet Sites:
   Free Help
   Et Cetera

The "Homework

Study Skills Survey

Tutoring from Purplemath
Find a local math tutor

This lesson may be printed out for your personal use.

Content copyright protected by Copyscape website plagiarism search

  Copyright 2000-2012  Elizabeth Stapel   |   About   |   Terms of Use


 Feedback   |   Error?