That's one of the identities for a binomial. In this case, it's a difference of cubes. Simplified is:
a^3 - b^3
Factored is the
(a-b)^2(a^2+b^2-2ab)
For example:
x^3 - 27 You know both of them can be cubed perfectly.
So that gives you your first set which is (x-3)
To get the 2nd, for the first term, it's the square of the a, the 2nd term is the product of both, with an opposite sign from the original, and the 3rd term is the square of b.
Which is (x^2 + 3x + 9)
So factored, is
(x-3)(x^2 +3x + 9)
Look familiar? :D
-------
"Don't argue with idiots. They bring you to their level and beat you
with experience." ~Anonymous