## You are here

Homefactoring a sum or difference of two cubes

## Primary tabs

# factoring a sum or difference of two cubes

The formula for factoring a difference of two cubes is:

$x^{3}-y^{3}=(x-y)(x^{2}+xy+y^{2})$ |

When teaching these factorization methods, it may be a good idea to encourage students to know one method for these factorizations rather than have them memorize two separate formulas.

First of all, the factorization is the product of a binomial and a trinomial. There is a mnemonic device for remembering the signs that works when the binomial is put in front of the trinomial as above.

Ignoring signs for the time being, let us determine how to remember the terms in the factorization. The two terms of the binomial are just the two terms of the original with the cubes dropped. The first term of the trinomial is the square of the first term of the binomial, and the last term of the trinomial is the square of the last term of the binomial. Finally, the middle term of the trinomial is the product of the two terms of the binomial.

Filling these in yields:

$x^{3}+y^{3}=(x\,\,\,\,\,\,\,y)(x^{2}\,\,\,\,\,\,\,xy\,\,\,\,\,\,\,y^{2})$ |

$x^{3}-y^{3}=(x\,\,\,\,\,\,\,y)(x^{2}\,\,\,\,\,\,\,xy\,\,\,\,\,\,\,y^{2})$ |

Now for the signs. A mnemonic for the signs is SDP, which stands for “same, different, plus”. This means that the first sign, the one in the binomial, is the *same* as that of the original problem; the second sign, the first one in the trinomial, is *different* from that of the original problem; and the third sign, the last one in the trinomial, is always *plus*.

Filling the signs in as indicated yields the correct formulas:

$x^{3}+y^{3}=(x+y)(x^{2}-xy+y^{2})$ |

$x^{3}-y^{3}=(x-y)(x^{2}+xy+y^{2})$ |

For students who have problems remembering SDP, the team name San Diego Padres comes in handy. (Who would have thought that a baseball team would be useful for remembering mathematical formulas?)

## Mathematics Subject Classification

97D40*no label found*

- Forums
- Planetary Bugs
- HS/Secondary
- University/Tertiary
- Graduate/Advanced
- Industry/Practice
- Research Topics
- LaTeX help
- Math Comptetitions
- Math History
- Math Humor
- PlanetMath Comments
- PlanetMath System Updates and News
- PlanetMath help
- PlanetMath.ORG
- Strategic Communications Development
- The Math Pub
- Testing messages (ignore)

- Other useful stuff
- Corrections