Matrices
A matrix is a rectangular array of numbers arranged in rows and columns, written . Matrices encode and manipulate systems of linear equations, geometric transformations, and data tables. They are added entrywise but multiplied by a special row-times-column rule that is not commutative. Used everywhere from computer graphics to economics; the modern theory was crystallized by Arthur Cayley in 1858.
A matrix is simultaneously two things: a static table of data and a dynamic operation. The single rule of matrix multiplication — "each entry is a row dotted with a column" — is the mechanism that lets a matrix act on vectors, compose transformations, and solve equations all at once. Master that one rule and most of the subject follows.
Formal Statement
An matrix over the real numbers is an array
Derivation hint: this is a definition — note sits in row , column ; the row index always comes first. Here is the number of rows, the number of columns, and is the entry in row , column . The pair is the order or dimension. A matrix with is square. A matrix is a row vector; an matrix is a column vector.
For two matrices and , and a scalar :
Derivation hint: addition and scalar multiplication act entrywise; both matrices must have identical order to be added.
If is and is , then the product is the matrix with entries
Derivation hint: the entry is the dot product of row of with column of ; the "inner" dimensions must match. The number of columns of must equal the number of rows of for the product to be defined.
The identity matrix has 1's on the main diagonal and 0's elsewhere: (the Kronecker delta). A square matrix is invertible (nonsingular) if there exists with
Derivation hint: the inverse undoes ; it exists precisely when (see below).
For , the determinant is
Derivation hint: it is the signed area of the parallelogram spanned by the columns and . is invertible if and only if , and then
Derivation hint: verify directly by multiplying; the swap of and sign flips on come from solving .
Why It Holds / Derivation
We seek with .
Step 1. Write out using rule [3]:
Derivation hint: multiply row-by-column and set equal to the identity entry by entry.
Step 2. This gives two independent systems:
Derivation hint: the first column of determines ; the second column determines .
Step 3. Solve the first system by elimination. From we get (assuming ); substituting and clearing gives and .
Step 4. Solving the second system identically yields , . Assembling gives formula [6]. The division by shows the inverse exists exactly when .
∎The English mathematician Arthur Cayley founded the abstract theory of matrices in his 1858 Memoir on the Theory of Matrices, where he first treated a matrix as a single algebraic object with its own arithmetic — defining addition, multiplication, and inverses. He recognized that matrix multiplication is non-commutative and stated (verifying for and ) what is now the Cayley–Hamilton theorem: every square matrix satisfies its own characteristic equation. A lawyer for fourteen years who published over 200 papers in his spare time before taking a Cambridge chair, Cayley also developed invariant theory and contributed to group theory and geometry.
Building Intuition
Think of a matrix as a machine that transforms vectors. Feed in a column vector , and comes out as a new vector — possibly rotated, stretched, sheared, or projected. The columns of tell you exactly where the basis vectors land: column is the image of the -th unit vector. Multiplying two matrices means "do first, then " — composing two transformations into one. This is why order matters: rotating then reflecting is generally different from reflecting then rotating. Addition, by contrast, is gentle and commutative because it just superimposes two tables entry by entry.
```svg
```
Worked Examples
Given: and . Compute .
Step 1 — check dimensions. is , is ; inner dimensions match, so is .
Step 2 — apply rule [3], each entry = row · column.
Step 3 — assemble.
(Check non-commutativity: computing gives .)
Given: Solve using a matrix inverse.
Step 1 — write as . , .
Step 2 — determinant (eq [5]). , so exists.
Step 3 — inverse (eq [6]).
Step 4 — multiply .
(Check: ✓ and ✓.)
Common Misconceptions
Matrix multiplication is NOT commutative. In general , and sometimes only one product is even defined (a times a works one way only). Never "cancel" or reorder factors freely. Likewise, there is no matrix division — you multiply by an inverse, and you must be careful whether it goes on the left () or the right (), since these differ.
The familiar fact "if then or " fails for matrices. Take
Then , the zero matrix, even though neither nor is zero. These are zero divisors; both have determinant , so neither is invertible — which is exactly why the cancellation law breaks.
Connections
Matrices are the computational engine behind nearly all of Linear Algebra. Each matrix represents a Linear Transformations once bases are chosen, with its columns giving the images of basis vectors. The Determinant measures how a matrix scales area/volume and detects invertibility. Solving is the matrix form of Systems of Linear Equations, usually carried out by Gaussian Elimination rather than computing inverses. The deeper structure of a square matrix is captured by its Eigenvalues and Eigenvectors, which reveal directions that the matrix merely stretches. Matrices also realize the abstract notion of a Vector Spaces of linear maps under addition and composition.
Real-World Applications
Historical Development
Subtleties & Limits
Computing matrix products fast is a surprisingly deep open question. The schoolbook rule [3] costs about multiplications for matrices. In 1969 Volker Strassen shocked everyone by doing it in roughly operations, and successive refinements (Coppersmith–Winograd and beyond) have pushed the exponent below . But the true minimal exponent — the smallest number such that multiplication is possible in time — is unknown; many conjecture , which would be essentially optimal, but no proof exists. Separately, the numerical stability of inversion is subtle: nearly-singular matrices (small but nonzero determinant) amplify rounding errors dramatically, quantified by the condition number, so in practice one almost never forms explicitly.
See Also
Linear Algebra · Determinant · Systems of Linear Equations · Eigenvalues and Eigenvectors · Linear Transformations · Gaussian Elimination · Vectors · Vector Spaces