3.
1) ((a+b)+c)²=(a+b)²+2c(a+b)+c²=a²+2ab+b²+2ac+2bc+c²=
=a²+b²+c²+2ab+2ac+2bc
2) ((a-b)-c)²=(a-b)²-2c(a-b)+c²=a²-2ab+b²-2ac+2bc+c²=a²+b²+c²-2ab-2ac+2bc
3) (x+y+z)²=((x+y)+z)²=(x+y)²+2z(x+y)+z²=x²+2xy+y²+2xz+2yz+z²=
=x²+y²+z²+2xy+2xz+2yz
4) (x-y-z)(x-y-z)=(x-y-z)²=((x-y)-z)²=(x-y)²-2z(x-y)+z²=x²-2xy+y²-2xz+2yz+z²=
=x²+y²+z²-2xy+2yz-2xz