Factor out the greatest common factor from each group.
Group the first two terms and the last two terms.
Factor out the greatest common factor (GCF) from each group.
Factor the polynomial by factoring out the greatest common factor, .
Rewrite as .
Since both terms are perfect cubes, factor using the sum of cubes formula, where and .
Multiply by .
One to any power is one.
Remove unnecessary parentheses.