Mathematical concepts
Matrix multiplication
Also called: matrix times vector · linear transformation · row by column
Definition
Multiplying matrices combines rows of the first with columns of the second: each entry of the result is a dot product of a row and a column.
Picture it
A matrix is a machine that transforms vectors: rotate, scale, shear. Multiplying two matrices chains two machines into one. Order matters, because rotating then scaling is not the same as scaling then rotating.
The maths
(AB)_ij = Σ_k A_ik × B_kj [a b; c d] [x; y] = [a x + b y; c x + d y]
| Quantity | Unit | Symbol |
|---|---|---|
| ratio | dimensionless | 1 |
Worked example
Compute [2 1; 0 3] × [4; 5].
- Row 1: 2 × 4 + 1 × 5 = 13
- Row 2: 0 × 4 + 3 × 5 = 15
AnswerThe result is [13; 15].
✓ The 2 numbers in this answer are recomputed from scratch by an automated test.
Common misconceptions
- Misconception: AB is usually not equal to BA.
- Misconception: Inner sizes must match: a 2×3 matrix can multiply a 3×1 vector, not a 2×1.