Ta có: \(\left(x-y+z\right)^2=x^2-y^2+z^2\)
<=> \(x^2+y^2+z^2-2xy-2yz+2zx=x^2-y^2+z^2\)
<=> \(2y^2-2xy-2yz+2zx=0\)
<=> \(\left(2y^2-2yz\right)-\left(2xy-2xz\right)=0\)
<=>\(2y\left(y-z\right)-2x\left(y-z\right)=0\)
<=>\(2\left(y-x\right)\left(y-z\right)=0\)
<=> \(\left[\begin{array}{nghiempt}y-x=0\\y-z=0\end{array}\right.\)
<=> \(\left[\begin{array}{nghiempt}y=x\\y=z\end{array}\right.\)
Với y=x thì mọi giá trị của z đều thỏa mãn.
Với y=z ta có: \(\left(x-2y\right)^2=x^2\)
<=> \(\left[\begin{array}{nghiempt}x-2y=-x\\x-2y=x\end{array}\right.\)
<=> \(\left[\begin{array}{nghiempt}x=y\\x=-y\end{array}\right.\)
=> x=y=z hoặc -x=y=z.