\(\left(x+y\right)^2+\left(x-y\right)^2-2\left(x+y\right)\left(x-y\right)\)
\(=x^2+2xy+y^2+x^2-2xy+y^2-2x^2+2y^2\)
\(=4y^2\)
= x2+2xy+y2+x2-2xy+y2-2(x2-y2)
=(x2+x2)+(2xy-2xy)+(y2+y2)-2x2+2y2
=2x2+2y2-2x2+2y2
=4y2
\(\left(x+y\right)^2+\left(x-y\right)^2-2\left(x+y\right)\left(x-y\right)=\left(x+y-x+y\right)^2=\left(2y\right)^2=4y^2\)