How to prove $x^3-y^3 = (x-y)(x^2+xy+y^2)$ without expand the right side? I can prove that $x^3-y^3 = (x-y)(x^2+xy+y^2)$ by expanding the right side.


*

*$x^3-y^3 = (x-y)x^2 + (x-y)(xy) + (x-y)y^2$ 

*$\implies x^3 - x^2y + x^2y -xy^2 + xy^2 - y^3$

*$\implies x^3 - y^3$


I was wondering what are other ways to prove that $x^3-y^3 = (x-y)(x^2+xy+y^2)$

Another way is as follows:
$$
(x - y)^3 = x^3 - 3x^2y + 3xy^2 - y^3 = (x^3 - y^3) -3xy(x - y) \quad \Rightarrow 
$$
$$
x^3 - y^3 = (x - y)^3 + 3xy(x - y) = (x - y)[(x - y)^2 + 3xy] \quad \Rightarrow
$$
$$
x^3 - y^3 = (x - y)(x^2 + xy + y^2)
$$
