Matrix Operations: Step-By-Step Multiplication Example

  1. Example:

    $AB = \begin{bmatrix}1 & 2 \\ \boldsymbol{\color{green}{3}} & \boldsymbol{\color{green}{4}} \\ 5 & 6 \\ 7 & 8\end{bmatrix} \begin{bmatrix}1 & \boldsymbol{\color{green}{0}} & 2 \\ 0 & \boldsymbol{\color{green}{1}} & 3\end{bmatrix} = \begin{bmatrix} 1 & 2 & 8 \\ 3 & \boldsymbol{\color{green}{4}} & c_{2,3}\\ c_{3,1} & c_{3,2} & c_{3,3}\\ c_{4,1} & c_{4,2} & c_{4,3} \end{bmatrix} = C$


    Explanation: We do $c_{2,2} =$$\; 3 \cdot 0 + 4 \cdot 1 =$$\; 0 + 4 =$$\; 4$. This is the element on row $2$ and column $2$, so we used row $2$ of matrix $A$ and column $2$ of matrix $B$.