a)(a+b+c)2-(a+b)2-(a+c)2-(b+c)2
=a2+b2+c2+2ab+2bc+2ca-a2-2ab-b2-a2-2ac-c2-b2-2bc-c2
=-a2-b2-c2
=-(a2+b2+c2)
b)(a+b+c)2-(a-b+c)2+(a+b-c)2+(-a+b+c)2
=a2+2ab+b2+2bc+c2+2ac-a2-b2-c2+2ab+2bc-2ac+a2+b2+c2+2ab-2bc-2ac+a2+b2+c2-2ab-2ac+2bc
=2a2+2b2+2c2+4ab-4bc-4ac