\(\left(x+y-z\right)^3-x^3-y^3+z^3\)
\(=\left[\left(x+y\right)-z\right]^3-x^3-y^3+z^3\)
\(=\left(x+y\right)^3-z^3-3\left(x+y\right)z\left(x+y-z\right)-x^3-y^3+z^3\)
\(=x^3+y^3-z^3+3xy\left(x+y\right)-3\left(x+y\right)z\left(x+y-z\right)-x^3-y^3+z^3\)
\(=3xy\left(x+y\right)-3z\left(x+y\right)\left(x+y-z\right)\)
\(=3\left(x+y\right)\left[xy-z\left(x+y-z\right)\right]\)
\(=3\left(x+y\right)\left(xy-zx-yz+z^2\right)\)
\(=3\left(x+y\right)\left[x\left(y-z\right)-z\left(y-z\right)\right]\)
\(=3\left(x+y\right)\left(y-z\right)\left(x-z\right)\)
#\(Urushi\text{☕}\)
Áp dụng (a+b)3 = a3+b3+3ab(a+b), ta có:
(x+y+z)3-x3-y3-z3
=[(x+y)+z]3-x3-y3-z3
=(x+y)3+z3+3z(x+y)(x+y+z)-x3-y3-z3
=x3+y3+3xy(x+y)+z3+3z(x+y)(x+y+z)-x3-y3-z3
=3(x+y)(xy+xz+yz+z2)
=3(x+y)[x(y+z)+z(y+z)]
=3(x+y)(y+z)(x+z)
=(x+y-z-x)[(x+y-z)^2+x(x+y-z)+x^2]-(y-z)(y^2+yz+z^2)
=(y-z)(x^2+y^2+z^2+2xy-2xz-2yz+x^2+xy-xz+x^2-y^2-yz-z^2)
=(y-z)(3x^2+3xy-3xz-3yz)
=3(y-z)(x^2+xy-xz-yz)
=3(y-z)[x(x+y)-z(x+y)]
=3(y-z)(x+y)(x-z)