Historical Context & Motivation
Matrices are everywhere — from computer graphics to weather prediction. But for centuries, mathematicians wondered: what can a matrix actually do? When you multiply a matrix by different vectors, which outputs are possible, and which inputs give you zero? These questions led to two powerful ideas called the column space and the null space of a matrix.
The central question is this: given a matrix A, what outputs can Ax produce, and which inputs x get "crushed" to the zero vector? Answering these two questions reveals the structure hiding inside every matrix.
Core Principles & Definitions
Before we dive into column space and null space, let's make sure we're comfortable with a few building blocks. A matrix is a grid of numbers arranged in rows and columns. A vector is a list of numbers stacked in a column (think of it like a single column of the matrix). When you multiply a matrix A by a vector x, you get a new vector b. We write this as Ax = b.
Column Space (Col A)
Null Space (Nul A)
Linear Combination
Span
Visual Explanation
Let's visualize what a matrix does. Imagine the matrix A as a machine that takes in a 2D vector (an input arrow) and produces a 2D output arrow. The diagram below shows how the columns of A determine the column space, and how certain input vectors land on the zero vector.
Notice the key relationship: the column space lives in the output space (it shows what the matrix can produce), while the null space lives in the input space (it shows which inputs get "squished" to zero). These two spaces together tell you almost everything about how a matrix behaves.
Mathematical Framework
Now let's see the formal definitions. Suppose A is an m × n matrix with columns c₁, c₂, …, cₙ.
How to Find Column Space & Null Space
To find these two spaces, we use a technique called row reduction (also known as Gaussian elimination). You convert the matrix to row echelon form (REF) or reduced row echelon form (RREF). The diagram below walks through the process for both spaces.
Worked Example
Let's work through a complete example with a small matrix. We'll find both the column space and the null space step by step.
Column Space vs. Null Space — Key Differences
Column space and null space are two sides of the same coin. They describe different aspects of the same matrix, and understanding their differences is crucial.
| Feature | Column Space (Col A) | Null Space (Nul A) |
|---|---|---|
| Question it answers | What outputs can Ax produce? | What inputs make Ax = 0? |
| Lives in | Output space (ℝᵐ) | Input space (ℝⁿ) |
| Built from | Pivot columns of original A | Solutions to Ax = 0 |
| Dimension name | Rank | Nullity |
| Always contains | The zero vector (always reachable via x = 0) | The zero vector (A × 0 = 0 always) |
Connections to Advanced Topics
Column space and null space are just the beginning. As you continue in linear algebra, you'll meet two more related spaces: the row space and the left null space. Together, these four spaces form what mathematician Gilbert Strang calls the "Fundamental Theorem of Linear Algebra."
| Concept | What You Know Now | Where It Leads |
|---|---|---|
| Column Space | Span of columns of A; the "reachable outputs" | Image/range of a linear transformation; orthogonal complement of left null space |
| Null Space | Solutions to Ax = 0; the "invisible inputs" | Kernel of a linear transformation; orthogonal complement of row space |
| Rank–Nullity | rank + nullity = number of columns | Generalizes to dimension theorem for linear maps between any vector spaces |
In data science, the null space helps identify redundant features in a dataset. In engineering, it reveals the "degrees of freedom" in a mechanical system. The column space tells engineers which forces or loads a structure can withstand. These are not just abstract ideas — they have real, powerful applications.
Practice Problems
Summary
Every matrix A has two fundamental spaces. The column space (Col A) is the set of all possible outputs b in the equation Ax = b — it's the span of the pivot columns of the original matrix. The null space (Nul A) is the set of all input vectors x that get mapped to zero — it's found by solving Ax = 0 after row reduction.
The dimensions of these two spaces are linked by the rank–nullity theorem: rank + nullity = n (the number of columns). A high rank means the matrix can reach many outputs; a high nullity means many inputs are "invisible" to the matrix. To find the column space, identify pivot columns via row reduction and select those columns from the original matrix. To find the null space, solve for the free variables in the RREF system.