Matrix Multiplication by Rows and Columns
Determine when a matrix product is defined. Compute entries using row-column dot products.
6 min · Matrices · Intermediate
Learning goals
- Determine when a matrix product is defined.
- Compute entries using row-column dot products.
Understand the concept
An m × n matrix A can multiply an n × p matrix B to form an m × p matrix AB. The inner dimensions must match. Entry (i, j) of AB is the sum of products of matching entries of row i of A and column j of B.
Matrix multiplication is generally not commutative. Even if both AB and BA exist, they can have different dimensions or entries. Check the order and shape before calculating.
Worked example 1
The row [2, 3] times the column [4, 5] gives the 1 × 1 matrix [2 × 4 + 3 × 5] = [23].
Worked example 2
For A with rows [1,2], [3,4] and B with rows [0,1], [1,0], AB has rows [2,1], [4,3].
Check your understanding
UNVRST English edition · Educational support · Editorial policy