a) \(\left(a+b\right)^2-\left(a+b\right)\left(a-b\right)\)
\(=a^2+2ab+b^2-\left(a^2-b^2\right)\)\(=\left(a^2-a^2\right)+\left(b^2+b^2\right)+2ab\)\(=2b^2+2ab\)\(=2b\left(a+b\right)\)=> đpcm
b) \(\left(x-y\right)^2+2xy\)
\(=x^2-2xy+y^2+2xy\)\(=x^2+y^2\) => đpcm
c) \(\left(x+y\right)^2-2xy\)
\(=x^2+2xy+y^2-2xy\)\(=x^2+y^2\) => đpcm