Matrices: Operations, Inverses, Determinants
A matrix is a rectangular array of numbers; matrices can be added, scaled, and multiplied, and square matrices may possess an inverse (an "undo" matrix) and a single number called the determinant that detects invertibility. Key result: a square matrix is invertible if and only if its determinant is nonzero, and the inverse exists uniquely when it does. Used everywhere systems of linear equations appear — graphics, physics, statistics, economics. Formalized by Cayley, Sylvester, and Cramer between the 18th and 19th centuries.
A matrix is best understood not as a static grid of numbers but as a transformation — a rule that turns input vectors into output vectors. Multiplication composes transformations, the determinant measures how much the transformation scales area or volume (and whether it flips orientation), and the inverse is the transformation that undoes the original. A zero determinant means the transformation collapses space (squashing a region to zero area), which is exactly why no inverse can exist — you cannot un-squash what has been flattened.
Formal Statement
An matrix is a rectangular array of numbers with rows and columns. The entry in row , column is written :
Derivation hint: this is a definition; the first index always names the row, the second the column ("row before column"). The matrix is square if . The main diagonal consists of the entries .
For two matrices and , and a scalar :
Derivation hint: both operations act entry by entry; addition requires identical shapes. These operations make matrices of a fixed shape behave like vectors: associative, commutative addition, with a zero matrix and additive inverses.
If is and is (inner dimensions match), the product is the matrix with entries:
Derivation hint: take the dot product of row of with column of . The entry is row of "marched along" column of , multiplying paired entries and summing.
The identity matrix has 1's on the main diagonal and 0's elsewhere:
Derivation hint: it is the multiplicative neutral element — and whenever shapes allow.
A square matrix is invertible (or nonsingular) if there exists a matrix with:
Derivation hint: the inverse undoes ; for square matrices, a one-sided inverse is automatically two-sided. If no such exists, is called singular.
For a matrix:
Derivation hint: it is the signed area of the parallelogram spanned by the rows (or columns). For a matrix, expand along the first row (cofactor expansion):
Derivation hint: alternate signs ; each term is an entry times the determinant of the minor obtained by deleting its row and column.
Let . Then is invertible if and only if , and:
Derivation hint: swap the diagonal entries, negate the off-diagonal entries, divide by the determinant.
A square matrix is invertible if and only if . Moreover, the determinant of a product satisfies:
Derivation hint: products of scaling factors multiply; an inverse must scale by the reciprocal.
Why It Holds / Derivation
We verify that the claimed inverse [8] works.
Step 1. Let and propose , assuming .
Step 2. Compute by rule [3]:
Step 3. Entry : . Entry : . Entry : . Entry : .
Step 4. Therefore
Step 5. The identical computation gives , so .
Step 6. If , the formula's division is undefined, and one can show the columns of are proportional, so collapses the plane onto a line — no inverse can exist.
∎Step 1. Geometrically, equals the area (2D) or volume (3D) scaling factor of the transformation .
Step 2. If , the transformation squashes the plane into a line (or space into a plane), reducing area to zero — distinct inputs collapse to the same output.
Step 3. A transformation that is not one-to-one cannot be reversed, so no inverse exists.
Step 4. Conversely, if , no collapse occurs; the transformation is reversible, and the explicit inverse (via the adjugate formula) exists.
∎The English mathematician Arthur Cayley founded matrix algebra as a subject in its own right. In his 1858 Memoir on the Theory of Matrices, he treated matrices as objects that could be added and multiplied, introduced the inverse, and stated what became the Cayley–Hamilton theorem (every square matrix satisfies its own characteristic equation). Cayley collaborated closely with James Joseph Sylvester, who coined the very word "matrix" (Latin for "womb") in 1850, picturing it as the array from which determinants are born.
Building Intuition
Think of a matrix as instructions for transforming a sheet of graph paper. The two columns tell you where the basis arrows and land after the transformation. Once you know where those two arrows go, every point's destination is determined. The determinant is the area of the parallelogram formed by the two transformed arrows. If that area is 1, the transformation preserves size; if it's 3, areas triple; if it's negative, the plane gets flipped over (orientation reversed); if it's 0, the two arrows became parallel and the whole plane has been crushed onto a single line.
Multiplication is doing one transformation, then another — composition. It's not commutative because rotating-then-stretching generally lands you somewhere different from stretching-then-rotating. The inverse is the transformation that puts every arrow back where it started — and you can only do that if no flattening occurred, i.e. the determinant isn't zero.
Worked Examples
Given: , . Find .
Step 1 — Check dimensions. is , is ; inner dimensions match, product is .
Step 2 — Entry (1,1): row 1 of dot column 1 of : .
Step 3 — Entry (1,2): .
Step 4 — Entry (2,1): .
Step 5 — Entry (2,2): .
Check non-commutativity: computing gives .
Given: Solve using the inverse. Coefficient matrix , .
Step 1 — Determinant: . Nonzero, so is invertible.
Step 2 — Inverse by formula [8]:
Step 3 — Solve :
Check: ✓ and ✓.
Common Misconceptions
Matrix multiplication is NOT commutative. In general , and one product may exist while the other does not (if shapes don't align both ways). Never reorder matrices freely as you would numbers.
You cannot "divide" by a matrix. There is no division operator; you multiply by the inverse — and you must respect order: gives (left multiply), not .
A zero determinant does not mean a zero matrix. It means the matrix is singular (non-invertible) — e.g. has determinant 0 but no zero entries.
Claim (false): "If then or ." For ordinary numbers this is true, but matrices admit zero divisors:
Neither nor is the zero matrix, yet their product is. This is impossible for invertible matrices but routine for singular ones.
Connections
Matrices are the computational engine behind Systems of Linear Equations — solving is exactly inverting or row-reducing . They generalize the idea of a Vector and provide the language for Linear Transformations, where each matrix is a transformation. The determinant connects to Area and Volume Scaling in geometry and to the Cross Product in three dimensions (which is itself a determinant). At a deeper level, matrices lead into Eigenvalues and Eigenvectors, where one seeks the special directions a matrix merely stretches without rotating.
Real-World Applications
Historical Development
Subtleties & Limits
Although the and determinant and inverse formulas are clean, they explode in size for large matrices: the general "expansion by minors" requires roughly operations, hopeless even for . Practical computation instead uses Gaussian elimination ( operations), but rounding errors in floating-point arithmetic can make a matrix that is mathematically invertible behave as singular — this is the study of numerical conditioning. The threshold between "invertible" and "effectively singular" is genuinely blurry on real computers. A live research frontier asks: what is the fastest possible algorithm for matrix multiplication? The naïve method is ; Strassen (1969) achieved , and the current record sits near , but whether one can reach the conjectured ideal of essentially remains open.
See Also
Systems of Linear Equations · Determinants · Eigenvalues and Eigenvectors · Linear Transformations · Vector · Gaussian Elimination · Cramer's Rule · Cross Product