If \(A = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}\) and \(B = \begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix}\), then \(AB - BA\) is equal to
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(\begin{bmatrix} 6 & 0 \\ 0 & -6 \end{bmatrix}\)
Each element of a product is a row of the first matrix times a column of the second.
\( \displaystyle AB = \begin{bmatrix} 1 + 6 & 0 + 2 \\ 0 + 3 & 0 + 1 \end{bmatrix} = \begin{bmatrix} 7 & 2 \\ 3 & 1 \end{bmatrix} \)
\( \displaystyle BA = \begin{bmatrix} 1 + 0 & 2 + 0 \\ 3 + 0 & 6 + 1 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 7 \end{bmatrix} \)
Subtracting element by element:
\( \displaystyle AB - BA = \begin{bmatrix} 6 & 0 \\ 0 & -6 \end{bmatrix} \)
Since \(AB - BA \ne O\), the two products are different: matrix multiplication is not commutative.