Upgrade subject to access all content

If $A$ and $B$ are square matrices of the same size, which of the following conditions will guarantee that:

$$(A+B)(A+B)=A^2+2AB+B^2$$

$A$ is invertible

$tr(A)=0$

$A=cI$, i.e. a scalar multiple of the identity matrix

All of the above