## 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

## Recent Activity

new question: Prove a formula is part of the Gentzen System by LadyAnne

Mar 30

new question: A problem about Euler's totient function by mbhatia

new problem: Problem: Show that phi(a^n-1), (where phi is the Euler totient function), is divisible by n for any natural number n and any natural number a >1. by mbhatia

new problem: MSC browser just displays "No articles found. Up to ." by jaimeglz

Mar 26

new correction: Misspelled name by DavidSteinsaltz

Mar 21

new correction: underline-typo by Filipe

Mar 19

new correction: cocycle pro cocyle by pahio

Mar 7

new image: plot W(t) = P(waiting time <= t) (2nd attempt) by robert_dodier

new image: expected waiting time by robert_dodier

new image: plot W(t) = P(waiting time <= t) by robert_dodier