Matrix Multiplication (2×2)
Compute a 2×2 matrix product with four independent row-by-column dot products.
Fill all four entries
Use each of the two left rows with each of the two right columns. Keep the row index fixed while moving across output columns.
[[1, 2], [3, 4]] · [[2, 0], [1, 3]]Preserve signs in each product
Negative entries subtract from the running sum. Compute every term before simplifying the final entry.
[[−1, 3], [2, 0]] · [[4, −2], [1, 5]]Notice that order matters
Matrix multiplication is not commutative. Swapping the operands changes the row and column being combined in each output cell.
[[0, 1], [2, 3]] · [[1, 2], [0, 4]]Practice
Practice: problems like this one, made and checked in your browser.
Recap
- Every output entry is a row-by-column dot product.
- Two factors of size 2×2 produce a 2×2 result.
- Keep operand order fixed because AB need not equal BA.