26 min read
Matrix Multiplication
Multiplying two matrices combines rows of the first with columns of the second — a very different rule from addition.
Row Times Column
Matrix multiplication is only defined when the number of columns of the first matrix equals the number of rows of the second.
If A is and B is , then AB is .
For two matrices, each element of the product combines a ROW of A with a COLUMN of B:
Matrix lab
Matrix A
Matrix B
AB = [[19,22],[43,50]]
Example 1 — multiplying two matrices
Find AB, where A = and B = .
- Top-left: () + () =
- Top-right: () + () =
- Bottom-left: () + () =
- Bottom-right: () + () =
Answer: AB =
Example 2 — order matters
Using the same A and B, find BA, and compare with AB.
- Top-left: () + () =
- Top-right: () + () =
- Bottom-left: () + () =
- Bottom-right: () + () =
Answer: BA = — different from AB! Matrix multiplication is NOT commutative: order matters.
Example 3 — a 2×3 times a 3×2
Find AB, where
- Columns of A () match rows of B (), so AB exists and is .
- Top-left:
- Top-right:
- Bottom-left:
- Bottom-right:
Answer: AB =
Example 4 — multiplying by a 3×3
Find the first row of CD, where
- Both are , so CD is .
- Row of C is .
- Column of D:
- Column of D:
- Column of D:
Answer: first row of CD =
Practice
Swipe or use the arrows to move between questions.
1 / 2
More lessons in Matrices and Determinants · Next: The Identity Matrix · Previous: Scalar Multiplication
