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