Solution
In ordinary algebra, we often expand using commutativity (i.e. ab=ba). For matrices, in general:
AB=BA
So expansions that rely on combining AB and BA are not valid.
(i) Why in general (A+B)2=A2+2AB+B2
Expand:
(A+B)2=(A+B)(A+B)=A2+AB+BA+B2
For it to equal A2+2AB+B2, we would need AB+BA=2AB, i.e. BA=AB, which is not true in general.
Hence:
(A+B)2=A2+2AB+B2 (in general)
(ii) Why in general (A−B)2=A2−2AB+B2
Expand:
(A−B)2=(A−B)(A−B)=A2−AB−BA+B2
For it to equal A2−2AB+B2, we would need −AB−BA=−2AB, i.e. BA=AB, which is not true in general.
So:
(A−B)2=A2−2AB+B2 (in general)
(iii) Why in general (A+B)(A−B)=A2−B2
Expand:
(A+B)(A−B)=A2−AB+BA−B2
For it to equal A2−B2, we would need −AB+BA=0, i.e. BA=AB, which is not true in general.
Thus:
(A+B)(A−B)=A2−B2 (in general)