Matrices
Quick answer
A matrix is a rectangular array of numbers arranged in rows and columns. You can add matrices of the same size entry by entry, and multiply A·B when A has as many columns as B has rows. A square matrix has an inverse exactly when its determinant is not zero.
Matrix operations
| Addition | Add matching entries; sizes must match |
|---|---|
| Scalar multiple | Multiply every entry by k |
| Product AB | Entry (i, j) is row i of A dotted with column j of B |
| Transpose Aᵀ | Swap rows and columns |
| Determinant (2×2) | det [[a, b], [c, d]] = ad − bc |
| Inverse (2×2) | (1/(ad − bc)) · [[d, −b], [−c, a]] |
Matrix multiplication is not commutative
In general AB ≠ BA. Try it in the matrix calculator: the default A and B give different products in each order.
Solving systems with matrices
The system 2x + y = 5, x + 3y = 10 is A·[x, y]ᵀ = [5, 10]ᵀ with A = [[2, 1], [1, 3]]. Row-reduce the augmented matrix [A | b] (RREF) to read off x = 1, y = 3.
Frequently asked questions
What does a determinant of 0 mean?
The matrix is singular: it has no inverse, and the system it represents has either no solution or infinitely many.