Module 11 · Systems of equations and inequalities · Lesson 68 of 84
Matrices and matrix operations
What matrices are, adding and scaling them, and multiplying rows by columns.
In this lesson · about 20 minutes
- Read the size and entries of a matrix
- Add, subtract and scale matrices
- Multiply two matrices and know when a product exists
A matrix is a rectangle of numbers in rows and columns. A matrix with m rows and n columns is m × n (rows first). The entry in row i, column j is called aij. A spreadsheet of sales by store and by month is a matrix.
Adding and scaling
- Add or subtract matrices of the same size entry by entry.
- Scalar multiplication: multiply every entry by the number. A 10% price rise is 1.1 times the price matrix.
Multiplying matrices
To multiply A (m × n) by B (n × p), the inside sizes must match: columns of A = rows of B. The result is m × p.
Each entry of AB is a row of A times a column of B: multiply matching entries and add. For example:
[1 2; 3 4] · [5 6; 7 8] = [1·5 + 2·7, 1·6 + 2·8; 3·5 + 4·7, 3·6 + 4·8] = [19 22; 43 50]
Matrix multiplication is not commutative: usually AB ≠ BA, and one may exist when the other does not. The identity matrix I (1s on the diagonal, 0s elsewhere) acts like the number 1: AI = IA = A.
Try it · interactive
Matrix calculator
Edit A and B. Compare AB with BA. Then try A⁻¹, and make det A = 0 to see when there is no inverse.
A
B
| 2 | 0 |
| 5 | 2 |
det A = ad − bc
(2)(3) − (1)(5) = 1
det B
4
Row of A times column of B: top-left = (2)(1) + (1)(0) = 2.
Compare AB and BA: matrix multiplication usually depends on the order.
Whiteboard · watch and try
Row times column
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Loading practice…
Check your understanding0 of 4 correct
Key terms
Say the meaning to yourself, then tap a card to check.
Quiz score: 0 of 4
Practice sets mastered: 0 of 1
Based on Algebra and Trigonometry 2e by Jay Abramson and others (OpenStax, Rice University), openstax.org/details/books/algebra-and-trigonometry-2e, licensed under CC BY-NC-SA 4.0. Noviq Academy rewrote and reorganized the material in its own words and added its own examples, whiteboard lessons, tools and quizzes; this adapted course is free and shared under the same license. Not endorsed by OpenStax or Rice University. Read-aloud and the whiteboard voice use your device's built-in voices, so the voice varies by device.