Simplify the expression
Look for structure before expanding. Expanding directly gives six products and is easy to botch. The second bracket is the tell-tale second factor of the sum of cubes, so the plan is to make the first bracket look like times something.
Factor out of the first bracket. Both terms share :
The expression becomes
Apply the sum-of-cubes identity. Since
the three-bracket product turns into a single simple product:
Distribute .
Cancel the opposite terms. and sum to zero, leaving
The fact that the messy piece cancels is the signal that the sum-of-cubes route was the intended one.
Spot-check with numbers. Take , : the original is , and . Match.
Need to solve a different problem like this? Open the solver →