Ta có: \(x\left(y^2-z^2\right)+y\left(z^2-x^2\right)+z\left(x^2-y^2\right)\)
\(=x\left(y-z\right)\left(y+z\right)+yz^2-x^2y+zx^2-y^2z\)
\(=x\left(y-z\right)\left(y+z\right)-\left(y^2z-yz^2\right)-\left(x^2y-zx^2\right)\)
\(=x\left(y-z\right)\left(y+z\right)-yz\left(y-z\right)-x^2\left(y-z\right)\)
\(=\left(y-z\right)\left(xy+zx-yz-x^2\right)\)
\(=\left(y-z\right)\left[\left(zx-yz\right)-\left(x^2-xy\right)\right]\)
\(=\left(y-z\right)\left[z\left(x-y\right)-x\left(x-y\right)\right]\)
\(=\left(x-y\right)\left(y-z\right)\left(z-x\right)\)