a ) \(\left(x+y\right)^3+\left(x-y\right)^3-2x^3\)
\(=x^3+3x^2y+3y^2x+y^3+x^3-3x^2y+3y^2x-y^3-2x^3\)
\(=\left(x^3+x^3-2x^3\right)+\left(y^3-y^3\right)+\left(3x^2y-3x^2y\right)+\left(3y^2x+3y^2x\right)\)
\(=6y^2x\)
b ) \(\left(x+y\right)^2-\left(x-y\right)^2+\left(x+y\right)\left(x-y\right)\)
\(=\left(x+y-x+y\right)\left(x+y+x-y\right)+x^2-y^2\)
\(=2y.2x+x^2-y^2\)
\(=x^2-y^2+4xy\)
c ) \(\left(3x+1\right)^2+2\left(9x^2-1\right)+\left(3x-1\right)^2\)
\(=\left(3x+1\right)^2+2\left(3x+1\right)\left(3x-1\right)+\left(3x-1\right)^2\)
\(=\left(3x+1+3x-1\right)^2\)
\(=\left(6x\right)^2=36x^2\)
d ) \(\left(a+b+c\right)^2-2\left(a+b+c\right)\left(b+c\right)+\left(b+c\right)^2\)
\(=\left(a+b+c-b-c\right)^2\)
\(=a^2\)