SECTION 1
Historical Context & Motivation
For centuries, mathematicians have been solving systems of equations — sets of rules with multiple unknowns. Think of a mystery where you have several clues, and you need to figure out the values that make every clue true at the same time. By the 1800s, mathematicians began organizing these clues into neat rectangular grids called matrices. This organization made it much easier to spot patterns and solve problems.
As mathematicians studied matrices more carefully, they realized that the rows and columns of a matrix each tell a different part of the story. The row space, column space, and null space became the three main "lenses" for understanding what a matrix can and cannot do. Together, they form a complete picture.
1693 • Leibniz Uses Determinants
1850 • Sylvester Coins "Matrix"
1878 • Frobenius & Rank
1955 • The Four Fundamental Subspaces
The big question that drove this entire field forward was: When you multiply a matrix by a vector, what outputs are possible, and what inputs get "lost" (sent to zero)? Understanding row space, column space, and null space answers this question completely.
SECTION 2
Core Principles & Definitions
Before we dive into how these spaces relate, let's define each one clearly. Imagine a matrix as a machine: you feed in a vector (a list of numbers), and the machine spits out another vector. The three spaces describe what the machine can produce and what it ignores.
Column Space
Row Space
Null Space
Rank
KEY TAKEAWAY
SECTION 3
Visual Explanation — The Big Picture
The diagram below shows how a matrix A acts as a transformation from the input space (on the left) to the output space (on the right). Notice how the input space splits into two perpendicular parts: the row space and the null space. The matrix maps the row space onto the column space, and it crushes the entire null space down to the zero vector.
This diagram captures the most important idea in the entire lesson. The row space and null space are perpendicular complements inside the input space — their dimensions always add up to the total number of columns n. Meanwhile, the column space lives in the output space and has the same dimension as the row space. That shared dimension is the rank.
SECTION 4
Mathematical Framework
Let's put numbers to the ideas. Suppose A is an m × n matrix (m rows and n columns) with rank r. We can describe the three spaces and their dimensions using two elegant equations.
RANK EQUALS COLUMN RANK
The number of independent rows always equals the number of independent columns. This value is the rank r of the matrix.
RANK–NULLITY THEOREM
Here n is the number of columns. The rank r plus the dimension of the null space (called the nullity) always equals n. If the matrix has 5 columns and rank 3, the null space must have dimension 5 − 3 = 2.
NULL SPACE DEFINITION
The null space is the collection of all vectors x such that Ax equals the zero vector. In everyday language: it's every input that the matrix "ignores."
Why Does Row Rank = Column Rank?
There is also a fourth space called the left null space, which is the null space of Aᵀ (the transpose of A). It lives in the output space and is perpendicular to the column space. Its dimension is m − r. Together, these four spaces are called the four fundamental subspaces of a matrix.
SECTION 5
Detailed Breakdown — The Four Fundamental Subspaces
The diagram below organizes all four subspaces into a single picture. Notice the perpendicularity relationships: in the input space, the row space is perpendicular to the null space; in the output space, the column space is perpendicular to the left null space. Every vector in ℝⁿ can be split into a row-space part and a null-space part, and every vector in ℝᵐ can be split into a column-space part and a left-null-space part.
| Subspace | Lives In | Dimension | How to Find It |
|---|---|---|---|
| Row Space | ℝⁿ (input) | r | Non-zero rows of row echelon form |
| Column Space | ℝᵐ (output) | r | Pivot columns from original matrix A |
| Null Space | ℝⁿ (input) | n − r | Solve Ax = 0 using free variables |
| Left Null Space | ℝᵐ (output) | m − r | Solve Aᵀy = 0 |
Summary of the four fundamental subspaces for an m × n matrix of rank r
SECTION 6
Worked Example
Let's find all three main spaces for a concrete matrix and verify the rank–nullity theorem.
Finding Row Space, Column Space, and Null Space
- 1
Step 1 — Write the Matrix
Consider the 2 × 3 matrix A = [[1, 2, 3], [2, 4, 6]]. This matrix has m = 2 rows and n = 3 columns.A is a 2 × 3 matrix - 2
Step 2 — Row Reduce to Echelon Form
Replace row 2 with (row 2 − 2 × row 1): [[1, 2, 3], [0, 0, 0]]. The second row becomes all zeros because row 2 was just 2 times row 1.Echelon form: [[1, 2, 3], [0, 0, 0]] - 3
Step 3 — Identify the Rank
There is only 1 non-zero row in the echelon form, and only 1 pivot (in column 1). So the rank r = 1.Rank r = 1 - 4
Step 4 — Find the Row Space
The row space is spanned by the non-zero rows of the echelon form. So the row space = span{(1, 2, 3)}. It's a line through the origin in ℝ³. Its dimension is 1, matching the rank.Row Space = span{(1, 2, 3)}, dim = 1 - 5
Step 5 — Find the Column Space
The pivot is in column 1, so we take column 1 from the original matrix A. Column 1 of A is (1, 2). The column space = span{(1, 2)}. It's a line through the origin in ℝ². Its dimension is also 1.Column Space = span{(1, 2)}, dim = 1 - 6
Step 6 — Find the Null Space
Solve Ax = 0 using the echelon form. With x₁ as the pivot variable and x₂, x₃ as free variables: x₁ + 2x₂ + 3x₃ = 0, so x₁ = −2x₂ − 3x₃. Setting x₂ = 1, x₃ = 0 gives (−2, 1, 0). Setting x₂ = 0, x₃ = 1 gives (−3, 0, 1). The null space is spanned by these two vectors.Null Space = span{(−2, 1, 0), (−3, 0, 1)}, dim = 2 - 7
Step 7 — Verify Rank–Nullity
rank + nullity = 1 + 2 = 3 = n (the number of columns). ✓ The theorem checks out!1 + 2 = 3 ✓
SECTION 7
Comparing the Three Spaces
Students often mix up the row space and column space, or confuse the null space with "the leftover columns." The table below highlights the key differences and similarities so you can keep them straight.
| Feature | Row Space | Column Space | Null Space |
|---|---|---|---|
| Where it lives | Input space ℝⁿ | Output space ℝᵐ | Input space ℝⁿ |
| Dimension | r (rank) | r (rank) | n − r (nullity) |
| Built from | Rows of A | Columns of A | Solutions to Ax = 0 |
| Perpendicular to | Null space | Left null space | Row space |
| Key question it answers | Which input directions matter? | What outputs are reachable? | Which inputs are invisible? |
Side-by-side comparison of the three main subspaces
KEY TAKEAWAY
SECTION 8
Connection to Advanced Theory
The ideas of row space, column space, and null space are not just classroom tools — they form the backbone of many advanced topics in mathematics, science, and engineering. The table below shows how these foundational concepts connect to more advanced areas you might encounter in college.
| This Lesson's Concept | Advanced Extension |
|---|---|
| Column space (reachable outputs) | Image of a linear transformation — central in abstract algebra and functional analysis |
| Null space (invisible inputs) | Kernel of a linear map — key to understanding eigenvalues, SVD, and differential equations |
| Rank–nullity theorem | Dimension theorem for linear maps — generalizes to infinite-dimensional spaces in functional analysis |
| Perpendicularity of row space & null space | Orthogonal complements — fundamental to least-squares regression and data science |
| Four fundamental subspaces | Singular Value Decomposition (SVD) — used in image compression, recommendation systems, and machine learning |
How today's concepts lead to advanced mathematics
If you continue studying linear algebra, you will encounter the Singular Value Decomposition (SVD), which beautifully decomposes any matrix into rotations and scalings that act on exactly these four subspaces. The row space gets rotated into the column space, and the null space gets rotated into the left null space. Everything you learned today is the foundation for that powerful tool.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
Every matrix has three key spaces that together reveal its structure. The row space (spanned by the matrix's rows) and the null space (all inputs sent to zero) live in the input space ℝⁿ and are perpendicular to each other. The column space (all reachable outputs) lives in the output space ℝᵐ. The rank r is the shared dimension of the row space and column space, and the rank–nullity theorem guarantees that r + dim(Null Space) = n, the number of columns.
To find these spaces, row reduce the matrix: non-zero rows of the echelon form span the row space, pivot columns of the original matrix span the column space, and free variables generate the null space. These three spaces, along with the left null space, form the four fundamental subspaces — the most important structural framework in all of linear algebra.