linear transformations
Rank and Nullity
You should know: linear transformation
Overview
The rank of a matrix (or linear transformation) is the dimension of its column space — the number of independent directions its output can reach. The nullity is the dimension of its null space (kernel) — the dimension of the set of inputs that get crushed to zero. These two numbers are linked by the rank-nullity theorem, one of the most useful bookkeeping identities in linear algebra: rank plus nullity always equals the number of columns (the input dimension). Rank measures how much information a transformation preserves; nullity measures how much it destroys.
Intuition
Think of a linear transformation as a machine that flattens or preserves space. If it squashes some directions completely to zero (the null space), it necessarily loses that many dimensions from what it can output (the rank), because the total number of input dimensions is fixed. A transformation from 3D to anywhere that has a 1-dimensional null space (it collapses one line to the origin) can only produce a 2-dimensional image — you can't get back dimensions the transformation destroyed. The rank-nullity theorem is just precise accounting: dimensions destroyed plus dimensions preserved must equal the dimensions you started with.
Formal Definition
For an m×n matrix A representing a linear map T: ℝⁿ → ℝᵐ:
Worked Examples
Row reduce: R2 -> R2 - 2R1 gives a row of zeros, so only 1 independent row/column.
Rank is the number of pivot columns (1). By rank-nullity with n=2 columns, nullity = 2 - 1 = 1.
Answer: rank(A) = 1, nullity(A) = 1.
Practice Problems
A 4×5 matrix has rank 3. What is its nullity?
Find rank and nullity of B = [[2, 4, 0], [1, 2, 0], [0, 0, 3]].
A system of 4 linear equations in 6 unknowns (Ax = 0) has coefficient matrix of rank 4. How many free parameters does the general solution have, and what does this mean physically for, say, a robot arm's joint-velocity constraints?
Quiz
Summary
- Rank is the dimension of the column space (output); nullity is the dimension of the null space (inputs sent to zero).
- Rank-nullity theorem: rank(A) + nullity(A) = n, the number of columns of A.
- An n×n matrix is invertible exactly when its nullity is 0, equivalently when its rank is n.
Mathematics