\(\left(x+y\right)\left(x^2-y^2\right)+\left(y+z\right)\left(y^2-z^2\right)+\left(x+z\right)\left(z^2-x^2\right)\)
\(=\left(x+y\right)\left(x^2-y^2\right)-\left(y+z\right)\left[\left(x^2-y^2\right)+\left(z^2-x^2\right)\right]+\left(x+z\right)\left(z^2-x^2\right)\)
\(=\left(x+y\right)\left(x^2-y^2\right)-\left(y+z\right)\left(x^2-y^2\right)-\left(y+z\right)\left(z^2-x^2\right)+\left(x+z\right)\left(z^2-x^2\right)\)
\(=\left(x^2-y^2\right)\left(x+y-y-z\right)-\left(z^2-x^2\right)\left(y+z-x-z\right)\)
\(=\left(x^2-y^2\right)\left(x-z\right)-\left(z^2-x^2\right)\left(y-x\right)\)
\(=\left(x-y\right)\left(x+y\right)\left(x-z\right)-\left(z-x\right)\left(z+x\right)\left(y-x\right)\)
\(=-\left(y-x\right)\left(x+y\right)\left(x-z\right)+\left(x-z\right)\left(z+x\right)\left(y-x\right)\)
\(=\left(y-x\right)\left(x-z\right)\left[-\left(x+y\right)+\left(z+x\right)\right]\)
\(=\left(y-x\right)\left(x-z\right)\left(-x+y+z+x\right)\)
\(=\left(y-x\right)\left(x-z\right)\left(y+z\right)\)