a) \(2\left(x-y\right)\left(x+y\right)+\left(x+y\right)^2+\left(x-y\right)^2\)
\(\left(x+y+x-y\right)^2=\left(2x\right)^2=4x^2\)
b) \(\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+\left(y-z\right)^2+2\left(x-y+z\right)\left(y-z\right)\)
\(=\left(x-y+z+y-z\right)^2=x^2\)
a) \(\left(x-y+x+y\right)^2=4x^2\)
b) \(\left(x-y+z+y-z\right)^2=x^2\)