\(a,=\left(x+3-x-4\right)^2=\left(-1\right)^2=1\\ b,=x\left(x^2+2x+1\right)-\left(x^2+6x+9\right)+2\left(x^2-5x+6\right)\\ =x^3+2x^2+x-x^2-6x-9+2x^2-10x+12\\ =x^3+3x^2-15x+3\\ c,=\left(x+y+x-2y\right)^2=\left(2x-y\right)^2=4x^2-4xy+y^2\\ d,=2\left(x-1\right)\left(x+1\right)+\left(x+1\right)^2+\left(x-1\right)^2\\ =\left(x+1+x-1\right)^2=\left(2x\right)^2=4x^2\)