A numerical example concretely illustrates the row-by-column rule and confirms that the product of matrices is not commutative.

Example — Numerical calculation

A=(1234),B=(5678).A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix},\quad B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}. AB=(15+2716+2835+4736+48)=(19224350).AB = \begin{pmatrix} 1\cdot 5+2\cdot 7 & 1\cdot 6+2\cdot 8 \\ 3\cdot 5+4\cdot 7 & 3\cdot 6+4\cdot 8\end{pmatrix} = \begin{pmatrix} 19 & 22 \\ 43 & 50\end{pmatrix}. BA=(5+1810+247+2414+32)=(23343146)AB.BA = \begin{pmatrix} 5+18 & 10+24 \\ 7+24 & 14+32\end{pmatrix} = \begin{pmatrix} 23 & 34 \\ 31 & 46\end{pmatrix} \ne AB.

Topics: Linear systems
Concepts: Matrix product
Skills: Calculate