Solution:
Concept: Sum and difference of two cubes: A3+B3=(A+B)(A2−AB+B2) and A3−B3=(A−B)(A2+AB+B2). The sign in the short bracket is the sign between the cubes, and the middle term AB of the long bracket has the opposite sign.
Step 1 — Write both terms as cubes.
Here 8x3 is (2x)3, so with A=x−y and B=2x this is a difference of cubes.
(x−y)3−8x3=(x−y)3−(2x)3
Step 2 — Use the identity.
We put A=x−y and B=2x into (A−B)(A2+AB+B2), keeping A in brackets.
=[(x−y)−2x][(x−y)2+(x−y)(2x)+(2x)2]
Step 3 — Simplify each bracket.
We expand the long bracket and collect like terms.
=(−x−y)(x2−2xy+y2+2x2−2xy+4x2)=(−x−y)(7x2−4xy+y2)=−(x+y)(7x2−4xy+y2)
Watch out: Note that (x−y)−2x is −x−y; take the minus sign out at the end.
Therefore, (x−y)3−8x3=−(x+y)(7x2−4xy+y2).