Dimension and Rank
Dimension counts how many independent directions a subspace has, and the rank of a matrix is the dimension of everything it can output. Each input direction either survives into the output or gets crushed to zero, so rank plus nullity always equals the number of columns.
What the symbols mean
- Rank
Number of pivots: independent directions the output can reach.
- Nullity
Number of free variables: independent directions crushed to zero.
- Number of columns
The dimension of the input space.
Explanation
The rank of a matrix is simply the number of independent directions its outputs can point in: 1 if every output lands on a line, 2 if they fill a plane, and so on. Think of it as how much the matrix really does, as opposed to how big it looks. The dimension of the null space gets its own name too, "nullity," because it measures what gets sent to zero (null). It's good for telling at a glance how much information a matrix keeps. The rank–nullity formula looks abstract, but it's just a count: (directions that survive), (directions crushed to zero) and (the directions you started with). Nothing gets lost in the accounting. It's simpler than it looks.
Why it adds up. The dimension of a subspace is the number of vectors in any basis, and you already know how to find bases from row reduction. Every column of either holds a pivot, which gives one basis vector for the column space, or corresponds to a free variable, which gives one basis vector for the null space. No column can do both, and none can do neither. So rank + nullity = number of columns.
Bounds. The rank of an matrix is at most . That makes sense: each pivot needs its own row and its own column.
Interpretation. A transformation from "spends" its input dimensions: some survive as output directions (rank), and the rest collapse (nullity).
A common mistake. It's tempting to think rank plus nullity equals the number of rows, since the rows are what you row reduce. It's the number of columns: the null space lives in the input space , and is the number of columns.
See it
Worked examples
Find the rank and nullity of .
- 1
Row 2 is twice row 1, so subtracting leaves a row of zeros and there's one pivot. That makes the rank 1, and the other two columns give free variables.
Rank 1, nullity .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find the rank of .
Find the dimension of its null space.
A matrix has rank 5. What is the dimension of its null space?
What is the largest possible rank of a matrix?
What is the rank of the identity matrix?
A camera maps 3D points to 2D image points with a matrix of rank . The points that land on the image's center form its null space. What is that null space's dimension?
The hardest one here. Get it, and you've got this lesson.
A matrix has a null space of dimension . What is the dimension of the null space of ?
Where it's used
Image compression keeps only the top few "rank-one" pieces of a picture's matrix; the rank tells you how much independent information a dataset really holds.