Learn Without Walls
← Module 5 HomeLesson 4 of 4Practice →

Lesson 4: The Rank-Nullity Theorem

Estimated time: 35-45 minutes

Learning Objectives

Statement of the Theorem

Rank-Nullity Theorem: Let T : R^n → R^m be a linear transformation with matrix A. Then:

rank(A) + nullity(A) = n

where rank(A) = dim(range(T)) = number of pivot columns, and nullity(A) = dim(ker(T)) = number of free variables.

In plain language: the number of dimensions in the output (rank) plus the number of dimensions crushed to zero (nullity) always adds up to the number of input dimensions (n).

Why It Works (Proof Sketch)

When you row reduce an n-column matrix A, every column is either a pivot column or a free column. There is no third option.

Since every column is one or the other: (number of pivots) + (number of free variables) = n. That is rank + nullity = n.

Applying the Theorem

Worked Example 1: Finding Nullity from Rank

A is a 4x6 matrix with rank 3. What is the nullity?

rank + nullity = n = 6 (number of columns).

3 + nullity = 6, so nullity = 3.

The kernel is 3-dimensional: three free variables, so Ax = 0 has a 3-parameter family of solutions.

Worked Example 2: A Concrete Matrix

A = [1 2 1 0; 0 1 1 1; 1 3 2 1]. Row reduce:

[1 2 1 0] → [1 0 -1 -2]
[0 1 1 1] → [0 1  1  1]
[1 3 2 1] → [0 0  0  0]

Pivots in columns 1, 2. Free variables: x3, x4. So rank = 2, nullity = 2. Check: 2 + 2 = 4 = n. ✓

Worked Example 3: Using the Theorem Strategically

T : R^5 → R^3 is linear. Can T be one-to-one?

If T were one-to-one, nullity = 0, so rank = 5. But rank ≤ min(m, n) = min(3, 5) = 3.

Since rank cannot be 5, T cannot be one-to-one. The kernel must have dimension at least 2.

Connections to One-to-One and Onto

For T : R^n → R^m:

T is one-to-one ⇔ nullity = 0 ⇔ rank = n ⇔ A has a pivot in every column. Requires n ≤ m.

T is onto ⇔ rank = m ⇔ A has a pivot in every row. Requires m ≤ n.

T is both (invertible) ⇔ rank = n = m ⇔ A is a square invertible matrix.

Worked Example 4

T : R^4 → R^4 with rank 3. What can we conclude?

nullity = 4 - 3 = 1. The kernel is a line (1-dimensional).

T is NOT one-to-one (nullity ≠ 0) and NOT onto (rank ≠ 4 = m).

For square matrices, failing one means failing both.

A Dimension-Counting Tool

The Rank-Nullity Theorem is essentially a dimension-counting principle. The domain splits into two complementary pieces: one piece maps faithfully into the range, and the other collapses to zero. Their dimensions always add up to the total.

Analogy

Think of a projector casting a 3D scene onto a 2D screen. One dimension of depth is "lost" (crushed to the screen). rank = 2 (the screen) + nullity = 1 (the depth direction) = 3 (the 3D space).

Check Your Understanding

1. A 3x5 matrix has nullity 2. What is the rank?

Answer: rank = 5 - 2 = 3.

2. Can a linear transformation T : R^3 → R^5 be onto?

Answer: No. rank ≤ n = 3, but onto requires rank = m = 5. Since 3 < 5, T cannot be onto.

3. T : R^7 → R^4 is onto. What is the dimension of the kernel?

Answer: Onto means rank = 4. nullity = 7 - 4 = 3. The kernel is 3-dimensional.

4. A square matrix A has nullity 0. Is A invertible?

Answer: Yes. If A is n x n with nullity 0, then rank = n. A has a pivot in every column (and every row), so A is invertible.

Key Takeaways

Practice

Apply what you have learned.

Practice Problems

Module Home

Module 5 Home