\(a.\left(a-b+c\right)^2=a^2+b^2+c^2-2ab-2bc+2ca\)
\(b.\left(a+b-c-d\right)^2\)
\(=\left[a+b-\left(c+d\right)\right]\)
\(=a^2+b^2+\left(c+d\right)^2+2ab-2b\left(c+d\right)-2a\left(c+d\right)\)
\(=a^2+b^2+c^2+2cd+d^2+2ab-2bc-2bd-2ac-2ad\)
\(c.\left(2x-y+3z\right)^2=4x^2+y^2+9z^2-4xy-6yz+12xz\).