Example 1
Question: Show that \[\begin{bmatrix} 3 & 2 \\ 1 & -4 \end{bmatrix} \begin{bmatrix} 1 & 5 \\ 0 & 2 \end{bmatrix} \ne \begin{bmatrix} 1 & 5 \\ 0 & 2 \end{bmatrix} \begin{bmatrix} 3 & 2 \\ 1 & -4 \end{bmatrix}\]
Solution: Let \(A = \begin{bmatrix} 3 & 2 \\ 1 & -4 \end{bmatrix}\) and \(B = \begin{bmatrix} 1 & 5 \\ 0 & 2 \end{bmatrix}\). Computing AB: \[AB = \begin{bmatrix} 3 & 2 \\ 1 & -4 \end{bmatrix} \begin{bmatrix} 1 & 5 \\ 0 & 2 \end{bmatrix}\] Entry (1,1): \(3 \times 1 + 2 \times 0 = 3\) Entry (1,2): \(3 \times 5 + 2 \times 2 = 15 + 4 = 19\) Entry (2,1): \(1 \times 1 + (-4) \times 0 = 1\) Entry (2,2): \(1 \times 5 + (-4) \times 2 = 5 - 8 = -3\) Therefore \[AB = \begin{bmatrix} 3 & 19 \\ 1 & -3 \end{bmatrix}\] Computing BA: \[BA = \begin{bmatrix} 1 & 5 \\ 0 & 2 \end{bmatrix} \begin{bmatrix} 3 & 2 \\ 1 & -4 \end{bmatrix}\] Entry (1,1): \(1 \times 3 + 5 \times 1 = 3 + 5 = 8\) Entry (1,2): \(1 \times 2 + 5 \times (-4) = 2 - 20 = -18\) Entry (2,1): \(0 \times 3 + 2 \times 1 = 0 + 2 = 2\) Entry (2,2): \(0 \times 2 + 2 \times (-4) = 0 - 8 = -8\) Therefore \[BA = \begin{bmatrix} 8 & -18 \\ 2 & -8 \end{bmatrix}\] Since \(AB = \begin{bmatrix} 3 & 19 \\ 1 & -3 \end{bmatrix}\) and \(BA = \begin{bmatrix} 8 & -18 \\ 2 & -8 \end{bmatrix}\), the entry (1,1) of AB is 3 while the entry (1,1) of BA is 8. Since at least one entry differs, we conclude \(AB \ne BA\).
Answer: \(AB = \begin{bmatrix} 3 & 19 \\ 1 & -3 \end{bmatrix}\) and \(BA = \begin{bmatrix} 8 & -18 \\ 2 & -8 \end{bmatrix}\). Since the matrices are unequal, \(AB \ne BA\).
Example 2
Question: Show that \[\begin{bmatrix} 2 & -3 \\ 4 & 1 \end{bmatrix} \begin{bmatrix} 0 & 5 \\ 2 & -1 \end{bmatrix} \ne \begin{bmatrix} 0 & 5 \\ 2 & -1 \end{bmatrix} \begin{bmatrix} 2 & -3 \\ 4 & 1 \end{bmatrix}\]
Solution: Let \(P = \begin{bmatrix} 2 & -3 \\ 4 & 1 \end{bmatrix}\) and \(Q = \begin{bmatrix} 0 & 5 \\ 2 & -1 \end{bmatrix}\). Computing PQ: \[PQ = \begin{bmatrix} 2 & -3 \\ 4 & 1 \end{bmatrix} \begin{bmatrix} 0 & 5 \\ 2 & -1 \end{bmatrix}\] Entry (1,1): \(2 \times 0 + (-3) \times 2 = 0 - 6 = -6\) Entry (1,2): \(2 \times 5 + (-3) \times (-1) = 10 + 3 = 13\) Entry (2,1): \(4 \times 0 + 1 \times 2 = 0 + 2 = 2\) Entry (2,2): \(4 \times 5 + 1 \times (-1) = 20 - 1 = 19\) Therefore \[PQ = \begin{bmatrix} -6 & 13 \\ 2 & 19 \end{bmatrix}\] Computing QP: \[QP = \begin{bmatrix} 0 & 5 \\ 2 & -1 \end{bmatrix} \begin{bmatrix} 2 & -3 \\ 4 & 1 \end{bmatrix}\] Entry (1,1): \(0 \times 2 + 5 \times 4 = 0 + 20 = 20\) Entry (1,2): \(0 \times (-3) + 5 \times 1 = 0 + 5 = 5\) Entry (2,1): \(2 \times 2 + (-1) \times 4 = 4 - 4 = 0\) Entry (2,2): \(2 \times (-3) + (-1) \times 1 = -6 - 1 = -7\) Therefore \[QP = \begin{bmatrix} 20 & 5 \\ 0 & -7 \end{bmatrix}\] Since \(PQ = \begin{bmatrix} -6 & 13 \\ 2 & 19 \end{bmatrix}\) and \(QP = \begin{bmatrix} 20 & 5 \\ 0 & -7 \end{bmatrix}\), every single entry is different. Hence \(PQ \ne QP\).
Answer: \(PQ = \begin{bmatrix} -6 & 13 \\ 2 & 19 \end{bmatrix}\) and \(QP = \begin{bmatrix} 20 & 5 \\ 0 & -7 \end{bmatrix}\). Since the matrices are unequal, \(PQ \ne QP\).