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 a rectangular array of numbers arranged in rows and columns, written with brackets, and serving as a compact bookkeeping device for linear relationships between quantities. Matrices matter because nearly every system of linear equations, geometric transformation, or coupled set of variables can be encoded as a matrix and manipulated with a small algebra of operations. We can add matrices of the same shape, multiply a matrix by a scalar, and — crucially — multiply two matrices when their inner dimensions match. For square matrices, the determinant is a single number computed from the entries, and the inverse is the matrix that reverses the original's action. The surprising fact: matrix multiplication is not commutative — and are usually different matrices, and can even have different sizes, which makes matrices behave unlike ordinary numbers.

The Core Insight

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

Matrix

An matrix is a rectangular array of numbers with rows and columns. The entry in row , column is written :

1
⟳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 .

Matrix Addition and Scalar Multiplication

For two matrices and , and a scalar :

2
⟳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.

Matrix Multiplication

If is and is (inner dimensions match), the product is the matrix with entries:

3
⟳take the dot product of row of with column of .

The entry is row of "marched along" column of , multiplying paired entries and summing.

Identity Matrix

The identity matrix has 1's on the main diagonal and 0's elsewhere:

4
⟳it is the multiplicative neutral element — and whenever shapes allow.

Inverse Matrix

A square matrix is invertible (or nonsingular) if there exists a matrix with:

5
⟳the inverse undoes ; for square matrices, a one-sided inverse is automatically two-sided.

If no such exists, is called singular.

Determinant — 2×2 and 3×3

For a matrix:

6
⟳it is the signed area of the parallelogram spanned by the rows (or columns).

For a matrix, expand along the first row (cofactor expansion):

7
⟳alternate signs ; each term is an entry times the determinant of the minor obtained by deleting its row and column.

Inverse of a 2×2 Matrix

Let . Then is invertible if and only if , and:

8
⟳swap the diagonal entries, negate the off-diagonal entries, divide by the determinant.

Invertibility Criterion

A square matrix is invertible if and only if . Moreover, the determinant of a product satisfies:

9
⟳products of scaling factors multiply; an inverse must scale by the reciprocal.

Why It Holds / Derivation

The 2×2 Inverse Formula

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.

Determinant Detects Singularity (sketch)

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.

Arthur Cayley | 1821–1895

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.

A 2×2 matrix transforms the unit square; the determinant is the area of the resulting parallelogram.

x y unit square col 1 = (a, c) col 2 = (b, d) area = |det A|

Worked Examples

Multiplying Two Matrices

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 .

Determinant, Inverse, and Solving a System

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

  • Computer graphics & video games: Every rotation, scaling, and translation of 3D models uses transformation matrices; the GPU multiplies millions per second.
  • Google's PageRank: The original web-ranking algorithm finds the dominant eigenvector of a giant matrix encoding hyperlinks between pages.
  • Cryptography (Hill cipher): Text is encrypted by multiplying letter-vectors by a matrix; decryption uses the inverse matrix modulo 26.
  • Economics (Leontief input–output models): A matrix encodes how each industry's output feeds into others; the inverse predicts total production needed for given demand.
  • Engineering (structural analysis): Stiffness matrices relate forces to displacements in bridges and trusses; solving the linear system gives stresses.
  • Computer vision & machine learning: Image transformations, neural-network layers, and dimensionality reduction (PCA) are all matrix operations.
  • 3D physics & robotics: Rotation matrices and their inverses orient robot arms and spacecraft, converting between coordinate frames.

Historical Development

  • c. 200 BCE — China: The Nine Chapters on the Mathematical Art solves simultaneous equations using a grid of coefficients and column operations — essentially Gaussian elimination, two millennia early.
  • 1683 — Japan & 1693 — Europe: Seki Takakazu and, independently, Gottfried Leibniz introduce determinants to study systems of equations.
  • 1750 — Gabriel Cramer: Publishes Cramer's Rule, expressing solutions of linear systems as ratios of determinants.
  • 1812 — Cauchy: Augustin-Louis Cauchy gives the modern definition of determinant and proves the product rule .
  • 1850 — James Joseph Sylvester: Coins the term "matrix" for the array generating minors and determinants.
  • 1858 — Arthur Cayley: Memoir on the Theory of Matrices establishes matrix algebra — addition, multiplication, inverses — as an independent theory.
  • 1879 — Frobenius: Georg Frobenius develops the theory of matrix rank and canonical forms.
  • 1925 — Heisenberg & Born: Matrix mechanics formulates quantum theory entirely in terms of (infinite) matrices, giving the abstract subject deep physical meaning.
  • 1947–present: With electronic computers, matrix algorithms (LU decomposition, QR, SVD) become the backbone of scientific computing.

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

Before this

Where this leads