(x+y+z)3-x3-y3-z3
=(x+y)3+3(x+y)2z+3(x+y)z2+z3+x3-y3-z3
=x3+y3+3xy(x+y)+3(x+y)2z+3(x+y)z2+z3+x3-y3-z3
=3(x+y)[xy+(x+y)z+z2]
=3(x+y)(xy+xz+yz+z2)
=3(x+y)[x(y+z)+z(y+z)]
=3(x+y)(y+z)(z+x)
(x+y+z)3-x3-y3-z3
=(x+y)3+3(x+y)2z+3(x+y)z2+z3+x3-y3-z3
=x3+y3+3xy(x+y)+3(x+y)2z+3(x+y)z2+z3+x3-y3-z3
=3(x+y)[xy+(x+y)z+z2]
=3(x+y)(xy+xz+yz+z2)
=3(x+y)[x(y+z)+z(y+z)]
=3(x+y)(y+z)(z+x)