Proceeding in a similar manner to the problem above, we see that
\begin{equation*}
(A+B)^2 = (A+B)(A+B) = AA + AB + BA + BB\text{.}
\end{equation*}
We can rewrite \(AA = A^2\) and \(BB = B^2\text{.}\) Also, since matrix addition is commutative, we can move the terms \(AB\) and \(BA\) to the end. This leaves us with
\begin{equation*}
(A+B)^2 = A^2 + B^2 + AB + BA\text{.}
\end{equation*}
Note that if
\(AB = BA\text{,}\) then we could combine the middle terms into
\(2AB\text{.}\) However, from the warning in
TheoremΒ 2.7, we see that matrix multiplication is often not commutative. Therefore, we
cannot replace
\(AB + BA\) with
\(2AB\text{.}\) This leads us to believe the statement is false.
We can prove it is false by giving a counterexample. Probably, pretty much anything we try will work since matrix commutation is very rare. Let
\(A = \begin{bmatrix} 1 \amp 2 \\ 3 \amp 4 \end{bmatrix}\) and
\(B = \begin{bmatrix} 4 \amp 3 \\ 2 \amp 1 \end{bmatrix}\text{.}\) Note that
\(\begin{eqnarray*}(A+B)^2 = \left(\begin{bmatrix} 1 \amp 2 \\ 3 \amp 4 \end{bmatrix} + \begin{bmatrix} 4 \amp 3 \\ 2 \amp 1 \end{bmatrix}\right)^2 = \begin{bmatrix} 5 \amp 5 \\ 5 \amp 5 \end{bmatrix}^2 \amp = \amp \begin{bmatrix} 5 \amp 5 \\ 5 \amp 5 \end{bmatrix}\begin{bmatrix} 5 \amp 5 \\ 5 \amp 5 \end{bmatrix}\\ \amp = \amp \begin{bmatrix} 50 \amp 50 \\ 50 \amp 50 \end{bmatrix};\end{eqnarray*}\)
\(\begin{eqnarray*}A^2 + B^2 + 2AB \amp = \amp \begin{bmatrix} 1 \amp 2 \\ 3 \amp 4 \end{bmatrix}^2 + \begin{bmatrix} 4 \amp 3 \\ 2 \amp 1 \end{bmatrix}^2 + 2\begin{bmatrix}1 \amp 2 \\ 3\amp 4 \end{bmatrix}\begin{bmatrix} 4 \amp 3 \\ 2 \amp 1 \end{bmatrix} \\ \amp = \amp \begin{bmatrix} 1 \amp 2 \\ 3 \amp 4 \end{bmatrix}\begin{bmatrix}1 \amp 2 \\ 3 \amp 4\end{bmatrix} + \begin{bmatrix} 4 \amp 3 \\ 2 \amp 1 \end{bmatrix}\begin{bmatrix} 4 \amp 3 \\ 2 \amp 1 \end{bmatrix} + 2\begin{bmatrix} 8 \amp 5 \\ 20 \amp 13 \end{bmatrix} \\ \amp = \amp \begin{bmatrix} 7 \amp 10 \\ 15 \amp 22 \end{bmatrix} + \begin{bmatrix} 22 \amp 15 \\ 10 \amp 7 \end{bmatrix} + \begin{bmatrix} 16 \amp 10 \\ 40 \amp 26 \end{bmatrix} \\ \amp = \amp \begin{bmatrix} 45 \amp 35 \\ 65 \amp 55 \end{bmatrix}\end{eqnarray*}\)
Therefore, since
\((A+B)^2 \neq A^2 + B^2 + 2AB\) for these particular matrices, the statement must be FALSE.