Matrix Multiplication Math Example 1

Follow the full solution, then compare it with the other examples linked below.

Example 1

medium
Compute [1234][5678]\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix}.

Solution

  1. 1
    Step 1: Entry (1,1)(1,1): 1โ‹…5+2โ‹…7=5+14=191 \cdot 5 + 2 \cdot 7 = 5 + 14 = 19.
  2. 2
    Step 2: Entry (1,2)(1,2): 1โ‹…6+2โ‹…8=6+16=221 \cdot 6 + 2 \cdot 8 = 6 + 16 = 22.
  3. 3
    Step 3: Entry (2,1)(2,1): 3โ‹…5+4โ‹…7=15+28=433 \cdot 5 + 4 \cdot 7 = 15 + 28 = 43.
  4. 4
    Step 4: Entry (2,2)(2,2): 3โ‹…6+4โ‹…8=18+32=503 \cdot 6 + 4 \cdot 8 = 18 + 32 = 50.
  5. 5
    Result: [19224350]\begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix}

Answer

[19224350]\begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix}
Each entry (i,j)(i,j) of the product is the dot product of row ii of the first matrix with column jj of the second matrix. Matrix multiplication is not commutative: ABโ‰ BAAB \neq BA in general.

About Matrix Multiplication

Multiplying matrices AA (mร—nm \times n) and BB (nร—pn \times p) by taking dot products of rows of AA with columns of BB to produce an mร—pm \times p result.

Learn more about Matrix Multiplication โ†’

More Matrix Multiplication Examples