Linear Algebra

Rank & Nullity Theorem

Visualize how 3D transformations split space into image and kernel dimensions.

Rank & Nullity Theorem

Concept Overview

The Rank-Nullity Theorem is a fundamental theorem in linear algebra that relates the dimensions of two important vector spaces associated with a linear transformation: the image (or column space) and the kernel (or null space). It states that the sum of the dimension of the image (the rank) and the dimension of the kernel (the nullity) is equal to the dimension of the domain of the transformation.

Mathematical Definition

Let V and W be vector spaces over a field, and let T: V → W be a linear transformation. If V is finite-dimensional, then:

dim(Im(T)) + dim(Ker(T)) = dim(V)
Alternatively, written in terms of matrices:
Rank(A) + Nullity(A) = n
Where:
- n is the number of columns of matrix A (the dimension of the domain V)
- Rank(A) is the dimension of the column space (image)
- Nullity(A) is the dimension of the null space (kernel)

Key Concepts

Image (Column Space)

The image or column space of a transformation T is the set of all possible output vectors. Its dimension is called the rank of the transformation. Geometrically, if you take all the vectors in the input space V and pass them through T, the result sweeps out a subspace in W. The rank tells you how many "dimensions" of output are reachable.

Kernel (Null Space)

The kernel or null space is the set of all input vectors in V that map to the zero vector in W. Its dimension is called the nullity. Geometrically, it represents the "collapsed" dimensions — the directions in the input space that are completely flattened or squeezed out by the transformation.

Conservation of Dimensions

The theorem is essentially a statement about the conservation of dimensions. The input space has n total dimensions. After the transformation, some dimensions survive and form the image (rank), while the rest are collapsed into the origin and form the kernel (nullity). Their sum must always exactly equal the original number of dimensions n.

Historical Context

The ideas leading to the Rank-Nullity Theorem began with the study of systems of linear equations by mathematicians like Carl Friedrich Gauss and Wilhelm Jordan. The formal concept of rank was introduced by James Joseph Sylvester in 1850.

The theorem itself, framed in terms of vector spaces and linear maps, emerged later in the early 20th century as linear algebra was formalized axiomatically by Hermann Grassmann and Giuseppe Peano. It became a cornerstone result, unifying the geometric perspective of transformations with the algebraic perspective of solving systems of equations.

Real-world Applications

  • Solving Linear Systems: The theorem tells us immediately if a system of equations has a unique solution, infinitely many solutions, or no solution, based on the rank of the coefficient matrix.
  • Control Theory: In systems engineering, rank and nullity determine whether a physical system (like a robot or aircraft) is fully controllable or observable based on its state equations.
  • Data Science & Machine Learning: When performing Principal Component Analysis (PCA) or Singular Value Decomposition (SVD), the rank of the data matrix tells you the true underlying dimensionality of the data, guiding dimensionality reduction.
  • Error-Correcting Codes: In information theory, the null space of a parity-check matrix defines the set of valid code words. The nullity determines the number of message bits that can be encoded.

Related Concepts

  • Linear Transformations — visualizes 2D transformations via matrix operations
  • Null Space & Column Space — explores the spaces underlying this theorem
  • Systems of Linear Equations — connects rank to the number of solutions
  • Determinant & Area — relates to rank (a full-rank square matrix has a non-zero determinant)

Experience it interactively

Adjust parameters, observe in real time, and build deep intuition with Riano’s interactive Rank & Nullity Theorem module.

Try Rank & Nullity Theorem on Riano →

More in Linear Algebra