Row times column
How matrices multiply.
Prices times quantities
Meera buys 2 pens and 5 story books. A pen costs ₹5 and a story book ₹50.
How much does she pay?
What this lesson covers
The idea
AB is defined when the number of columns of A equals the number of rows of B; for A of order m × n and B of order n × p, AB is m × p and its (i, k)-th element is the sum of products of the i-th row of A with the k-th column of B.
Prices times quantities
Meera buys 2 pens and 5 story books. A pen costs ₹5 and a story book ₹50.
How much does she pay?
- ₹260
- ₹62
- ₹55
Multiply C by D
This is the book's product CD. Tap each entry of CD: it lights up a row of C and a column of D.
Multiplication of matrices
AB is defined when the number of columns of A equals the number of rows of B. For A of order m × n and B of order n × p, AB is m × p, and its (i, k)-th entry is the sum of the products of the i-th row of A with the k-th column of B.
Meera's bill is the same rule: [2 5] × [5, 50] = 2 × 5 + 5 × 50 = 260. The book's CD = [[13, −2], [17, −13]].
Notes
(m × n)(n × p) = m × p: entry (i, k) = row i of A · column k of B.
Check yourself
A is 2 × 3 and B is 3 × 4. What is the order of AB?
[1 2] × [[3], [4]] = ?
Answer: 11
1 × 3 + 2 × 4 = 3 + 8 = 11.
A is 2 × 3 and B is 2 × 3. Is AB defined?
- 3 × 3. The 3s must match, and they drop out. AB is 2 × 4.
- 2 × 4 — correct. Yes: rows of A × columns of B.
- AB is not defined. Columns of A = 3 = rows of B, so AB is defined.
- Yes: they have the same order. Same order is the rule for adding. For AB, columns of A must equal rows of B.
- No: A has 3 columns but B has 2 rows — correct. Right.