Matrices

Topic guide · Updated 2026-11-26

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

AdditionAdd matching entries; sizes must match
Scalar multipleMultiply every entry by k
Product ABEntry (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.