a) \(\left(a+b+c\right)^2+a^2+b^2+c^2\)
\(=a^2+b^2+c^2+2ab+2bc+2ca+a^2+b^2+c^2\)
\(=a^2+2ab+b^2+b^2+2bc+c^2+c^2+2ca+a^2\)
\(=\left(a+b\right)^2+\left(b+c\right)^2+\left(c+a\right)^2\)
b) \(\left(a+b+c\right)^3-a^3-b^3-c^3\)
\(=\left(b+c\right)\left[\left(a+b+c\right)^2+\left(a+b+c\right)a+a^2\right]-\left(b+c\right)\left(b^2+bc+c^2\right)\)
\(=\left(b+c\right)\left(3a^2+3ab+3bc+3ac\right)\)
\(=3\left(a+b\right)\left(b+c\right)\left(c+a\right)\)