\(\Leftrightarrow\left(x^2y-2xyz+z^2y\right)+\left(x^2z-y^2x-z^2x+y^2z\right)=0\)
\(\Leftrightarrow y\left(x-z\right)^2+xz\left(x-z\right)-y^2\left(x-z\right)=0\)
\(\Leftrightarrow\left(x-z\right)\left(xy-yz+zx-y^2\right)=0\)
\(\Leftrightarrow\left(x-z\right)\left(x\left(y+z\right)-y\left(y+z\right)\right)=0\)
\(\Leftrightarrow\left(x-z\right)\left(x-y\right)\left(y+z\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=y\\x=z\\y=-z\end{matrix}\right.\) hay có 2 số bằng hoặc đối nhau