Detailed Explanation
In ordinary numbers, multiplication is commutative, meaning \( a \times b = b \times a \). For matrices, this is generally NOT true. The product \( AB \) is usually different from \( BA \). To multiply two matrices, we take the dot product of each row of the first matrix with each column of the second matrix. Because the roles of the two matrices swap when we compute \( BA \) instead of \( AB \), the resulting entries change. This example proves the non-commutative nature of matrix multiplication by direct computation.
Formula Used
For \( 2 \times 2 \) matrices, \[ \begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} p & q \\ r & s \end{bmatrix} = \begin{bmatrix} ap+br & aq+bs \\ cp+dr & cq+ds \end{bmatrix} \]
Solution
- Step 1: Write down the given matrices clearly. \[ A = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}, \quad B = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \]
- Step 2: Compute \( AB \) by multiplying each row of \( A \) with each column of \( B \). \[ AB = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \] The entries are computed as: \[ (1)(0)+(0)(1)=0, \quad (1)(1)+(0)(0)=1 \] \[ (0)(0)+(-1)(1)=-1, \quad (0)(1)+(-1)(0)=0 \]
- Step 3: Collect the entries to get the product. \[ AB = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} \]
- Step 4: Now compute \( BA \), this time with \( B \) first and \( A \) second. \[ BA = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix} \] The entries are computed as: \[ (0)(1)+(1)(0)=0, \quad (0)(0)+(1)(-1)=-1 \] \[ (1)(1)+(0)(0)=1, \quad (1)(0)+(0)(-1)=0 \]
- Step 5: Collect the entries to get the product. \[ BA = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \]
- Step 6: Compare the two results. \[ AB = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}, \quad BA = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \] The off-diagonal signs are opposite, so \( AB \ne BA \). This shows matrix multiplication is not commutative.
Final Answer
\[ AB = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}, \quad BA = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \] Since \( AB \ne BA \), matrix multiplication is not commutative.
Common Mistake
A common mistake is assuming \( AB = BA \) for matrices as with ordinary numbers, and computing only one product. Always compute both products separately and never swap the order of a matrix product carelessly.