Null Space, Column Space, and Basis
Before A basis is an independent spanning set of a subspace, read from the free variables and the pivot columns after row reduction. Builds on: Vector Spaces and Subspaces · Solution Sets of Linear Systems and Free Variables · Linear Independence
Next Bases lead to dimension and rank, and to the orthogonal projections of chapter 6. Leads to: Dimension, Rank, and Coordinate Systems · Orthogonal Projections and the Gram-Schmidt Process
Before You Start: Prerequisite Check
Can you do these? (Click to reveal self-test)
Test yourself on these prerequisite skills:
Null space: For $A = \begin{pmatrix}2&4\\1&2\end{pmatrix}$, solve $A\mathbf{x} = \mathbf{0}$ and write all solutions in parametric vector form.
Check
$R_2 - \frac{1}{2}R_1$: row 2 becomes $[0,0]$. Free variable $x_2 = t$; then $x_1 = -2t$. $\text{Nul}(A) = \text{Span}\left\{\begin{pmatrix}-2\\1\end{pmatrix}\right\}$.
Column space: What is the column space of $A$?
Check
$\text{Col}(A)$ is the span of the columns of $A$, i.e., all vectors of the form $A\mathbf{x}$. For $A = \begin{pmatrix}2&4\\1&2\end{pmatrix}$, both columns are multiples of $\begin{pmatrix}2\\1\end{pmatrix}$, so $\text{Col}(A) = \text{Span}\left\{\begin{pmatrix}2\\1\end{pmatrix}\right\}$.
Basis intuition: What two properties must a basis for a subspace $H$ satisfy?
Check
A basis must be (1) linearly independent and (2) span $H$. Equivalently: it is a spanning set with no redundancy.
If you struggled: Review Vector Spaces and Subspaces and Solution Sets and Free Variables.
Try This First
For $A = \begin{pmatrix}1&2&4\\-1&-2&-4\\2&4&8\end{pmatrix}$, solve $A\mathbf{x} = \mathbf{0}$.
Is the solution set a single vector, or a collection of vectors? Before row-reducing, predict how many free variables you expect based on the structure of $A$.
Show Solution
Prediction: Every row is a multiple of $[1, 2, 4]$, so after row reduction at most one row is nonzero. With only 1 pivot in 3 columns, there will be 2 free variables.
Row reduce:
$R_2 + R_1$: $[0,0,0]$; $R_3 - 2R_1$: $[0,0,0]$.
RREF: $\begin{pmatrix}1&2&4\\0&0&0\\0&0&0\end{pmatrix}$
Free variables: $x_2 = s$ and $x_3 = t$. From row 1: $x_1 = -2s - 4t$.
\[ \text{Nul}(A) = \text{Span}\left\{\begin{pmatrix}-2\\1\\0\end{pmatrix}, \begin{pmatrix}-4\\0\\1\end{pmatrix}\right\} \]
The null space is not a single vector; it is an entire plane through the origin in $\mathbb{R}^3$. The two vectors that span it are the basis vectors for $\text{Nul}(A)$.
Two Fundamental Subspaces
Every $m \times n$ matrix $A$ comes with two canonical subspaces:
- Null space $\text{Nul}(A)$: the solution set of $A\mathbf{x} = \mathbf{0}$, in $\mathbb{R}^n$ (the domain).
- Column space $\text{Col}(A)$: the span of the columns of $A$, in $\mathbb{R}^m$ (the codomain).
These two subspaces answer complementary questions:
- Which inputs are invisible to $A$? (Null space)
- Which outputs can $A$ produce? (Column space)
Finding a basis for each: a smallest set of vectors that spans the space with no redundancy.
Prerequisite Map
Quick Reference
| Property | Value |
|---|---|
| Course | MATH 231 |
| Difficulty | Advanced |
| Time | ~30 minutes |
| Source | Lay, Linear Algebra and Its Applications, Sections 4.2 and 4.3 |
Basis Algorithms at a Glance
| Space | How to Find a Basis |
|---|---|
| $\text{Nul}(A)$ | Solve $A\mathbf{x}=\mathbf{0}$; take the direction vectors from the parametric form |
| $\text{Col}(A)$ | Row-reduce $A$; the basis consists of the original columns of $A$ at the pivot positions |
Critical warning: for $\text{Col}(A)$, use the original columns of $A$, not the pivot columns of the RREF.
Key Concepts
What Is a Basis?
A basis for a subspace $H$ is a set $\mathcal{B} = \{\mathbf{b}_1, \ldots, \mathbf{b}_p\}$ satisfying two conditions:
- $\mathcal{B}$ is linearly independent.
- $\mathcal{B}$ spans $H$: $H = \text{Span}\{\mathbf{b}_1, \ldots, \mathbf{b}_p\}$.
The Uniqueness of Size Theorem: any two bases for the same subspace $H$ contain the same number of vectors. That number is the dimension of $H$.
A basis is the most efficient description of a subspace: no vector is redundant (independence), and every vector in $H$ is reachable (spanning).
Standard examples:
- Standard basis for $\mathbb{R}^n$: the $n$ standard basis vectors $\mathbf{e}_1, \ldots, \mathbf{e}_n$.
- $\{mathbf{0}\}$ has dimension 0; its only basis is the empty set.
Source: Lay, Linear Algebra and Its Applications, Section 4.3: Linearly Independent Sets; Bases.
Basis for the Null Space
Algorithm:
- Row-reduce $[A \mid \mathbf{0}]$ to RREF.
- Identify free variables (non-pivot columns).
- Write the parametric solution: one direction vector per free variable.
- These direction vectors form a basis for $\text{Nul}(A)$.
The number of direction vectors equals the number of free variables equals $n - \text{rank}(A)$ (this is the nullity of $A$).
Worked example (3x4 matrix):
Let $A = \begin{pmatrix}1&2&0&4\\-1&-2&1&-3\\2&4&1&5\end{pmatrix}$.
Row reduce: $R_2 + R_1$, $R_3 - 2R_1$: \[ \begin{pmatrix}1&2&0&4\\0&0&1&1\\0&0&1&-3\end{pmatrix} \] $R_3 - R_2$: \[ \begin{pmatrix}1&2&0&4\\0&0&1&1\\0&0&0&-4\end{pmatrix} \] $R_3 \to -\frac{1}{4}R_3$, then $R_2 - R_3$, $R_1 - 4R_3$: \[ \text{RREF}: \begin{pmatrix}1&2&0&0\\0&0&1&0\\0&0&0&1\end{pmatrix} \]
Pivot columns: 1, 3, 4. Free column: 2. Let $x_2 = t$.
- $x_1 = -2t$, $x_2 = t$, $x_3 = 0$, $x_4 = 0$
\[ \text{Basis for Nul}(A) = \left\{\begin{pmatrix}-2\\1\\0\\0\end{pmatrix}\right\} \]
Source: Lay, Linear Algebra and Its Applications, Section 4.2: Null Spaces, Column Spaces, and Linear Transformations.
Basis for the Column Space
Algorithm:
- Row-reduce $A$ to any echelon form.
- Identify the pivot columns of the echelon form.
- The corresponding columns of the original matrix $A$ form a basis for $\text{Col}(A)$.
Why original columns, not RREF columns? Row operations change the column space of the matrix. The columns of RREF are not in the same span as the columns of $A$ in general. But row operations DO preserve which columns are pivot columns: the pivot columns of RREF indicate which original columns are independent.
Worked example (same matrix):
From the RREF above, pivot columns are 1, 3, 4.
Basis for $\text{Col}(A)$ = columns 1, 3, 4 of the ORIGINAL matrix $A$:
\[ \left\{\begin{pmatrix}1\\-1\\2\end{pmatrix}, \begin{pmatrix}0\\1\\1\end{pmatrix}, \begin{pmatrix}4\\-3\\5\end{pmatrix}\right\} \]
These three vectors span the same column space as all four columns of $A$.
The Spanning Set Theorem
Theorem (Lay, Section 4.3): Let $S = \{\mathbf{v}_1, \ldots, \mathbf{v}_p\}$ be a set in a vector space $V$ and let $H = \text{Span}\{S\}$.
(a) If one of the vectors in $S$, say $\mathbf{v}_k$, is a linear combination of the remaining vectors, then the set formed by removing $\mathbf{v}_k$ still spans $H$.
(b) If $H \neq \{\mathbf{0}\}$, some subset of $S$ is a basis for $H$.
The theorem tells you how to reduce an inefficient spanning set to a basis: remove any vector that is already a linear combination of the others.
Common Pitfalls
| Mistake | Why It Is Wrong | Correct Approach |
|---|---|---|
| Using RREF pivot columns as the Col$(A)$ basis | Row operations change the column space; RREF columns span a different space than the original columns | Use the pivot column positions to identify which ORIGINAL columns form the basis |
| Treating any spanning set as a basis | A spanning set may contain redundant vectors (dependent); a basis requires independence | Check independence, or use the pivot column algorithm which automatically gives an independent set |
| Assuming Nul$(A)$ and Col$(A)$ are in the same space | Nul$(A) \subseteq \mathbb{R}^n$ (domain); Col$(A) \subseteq \mathbb{R}^m$ (codomain) | Keep track of which space each subspace is in |
| Assuming dim(Nul$(A)$) = dim(Col$(A)$) | The Rank-Nullity Theorem says rank + nullity $= n$ (number of columns), not $m$ | Compute each dimension separately from the RREF |
The RREF Column Trap: A Concrete Example
Let $A = \begin{pmatrix}1&2\\2&4\end{pmatrix}$.
RREF of $A$ is $\begin{pmatrix}1&2\\0&0\end{pmatrix}$. Pivot column: column 1.
Pivot column of RREF: $\begin{pmatrix}1\\0\end{pmatrix}$.
Original column 1 of $A$: $\begin{pmatrix}1\\2\end{pmatrix}$.
Are these the same? No. $\begin{pmatrix}1\\0\end{pmatrix} \notin \text{Col}(A)$ because $\text{Col}(A)$ consists of multiples of $\begin{pmatrix}1\\2\end{pmatrix}$.
The correct basis for $\text{Col}(A)$ is $\left\{\begin{pmatrix}1\\2\end{pmatrix}\right\}$, not $\left\{\begin{pmatrix}1\\0\end{pmatrix}\right\}$.
Practice Problems
Find a basis for $\text{Nul}(A)$ where $A = \begin{pmatrix}1&2&3\\0&0&1\end{pmatrix}$.
State the dimension of $\text{Nul}(A)$.
For the same matrix $A = \begin{pmatrix}1&2&3\\0&0&1\end{pmatrix}$, find a basis for $\text{Col}(A)$.
State the dimension. What is the geometric nature of $\text{Col}(A)$ as a subset of $\mathbb{R}^2$?
The RREF of a $3 \times 5$ matrix $A$ is:
\[ \text{RREF}(A) = \left[\begin{array}{rrrrr} 1 & 2 & 0 & -1 & 0 \\ 0 & 0 & 1 & 3 & 0 \\ 0 & 0 & 0 & 0 & 1 \end{array}\right] \]
and the original matrix $A$ has columns:
\[ \mathbf{a}_1 = \begin{pmatrix}1\\0\\2\end{pmatrix}, \; \mathbf{a}_2 = \begin{pmatrix}2\\0\\4\end{pmatrix}, \; \mathbf{a}_3 = \begin{pmatrix}0\\1\\1\end{pmatrix}, \; \mathbf{a}_4 = \begin{pmatrix}-1\\3\\-5\end{pmatrix}, \; \mathbf{a}_5 = \begin{pmatrix}1\\2\\0\end{pmatrix} \]
Find a basis for both $\text{Nul}(A)$ and $\text{Col}(A)$. State the dimension of each.
A student row-reduces $A = \begin{pmatrix}1&2&2\\2&4&6\\3&6&8\end{pmatrix}$ to RREF and gets:
\[ \text{RREF}(A) = \begin{pmatrix}1&2&0\\0&0&1\\0&0&0\end{pmatrix} \]
The student claims: “The pivot columns are columns 1 and 3 of the RREF. So the basis for Col$(A)$ is $\left\{\begin{pmatrix}1\\0\\0\end{pmatrix}, \begin{pmatrix}0\\1\\0\end{pmatrix}\right\}$.”
(a) What error did the student make?
(b) Find the correct basis for Col$(A)$.
(c) Check that the student’s claimed basis vectors do not lie in Col$(A)$.
Determine whether $\mathcal{B} = \left\{\begin{pmatrix}1\\0\\0\end{pmatrix}, \begin{pmatrix}1\\1\\0\end{pmatrix}, \begin{pmatrix}1\\1\\1\end{pmatrix}\right\}$ is a basis for $\mathbb{R}^3$.
If yes, express $\mathbf{v} = \begin{pmatrix}5\\3\\2\end{pmatrix}$ as a linear combination of the vectors in $\mathcal{B}$.
Common Misconceptions
the basis for Col$(A)$ uses the pivot columns of the RREF. Row operations change which vectors are in the column space. The RREF of $A$ has different columns from $A$; using them gives a set of vectors that is in the column space of the RREF, not the column space of $A$. Only the pivot column POSITIONS carry over: the positions identify which original columns of $A$ are independent. Use those original columns.
any spanning set for a subspace is a basis. A spanning set may contain redundant vectors that are linear combinations of the others. A basis requires linear independence as well as spanning. The pivot column algorithm automatically produces an independent set, which is one reason it is preferred over simply listing “some spanning vectors.”
the dimensions of Nul$(A)$ and Col$(A)$ are the same. The Rank-Nullity Theorem states: dim(Nul$(A)$) + dim(Col$(A)$) $= n$ (the number of columns of $A$). There is no reason for the two dimensions to be equal unless $n$ happens to be even and rank$= n/2$.
Mastery Checklist
Novice (Level 1-2):
Competent (Level 3-4):
Proficient (Level 5):
Mental Model
The Skeleton
A basis is the skeleton of a subspace. Just as a skeleton is the minimal structure that determines the shape of a body, a basis is the minimal set that determines the shape of a subspace.
Remove any bone (vector) from the skeleton and the body loses shape: the remaining vectors no longer span the space. Add any redundant bone and it adds nothing; the body’s shape was already determined. The skeleton is exactly the right size, no more and no less.
The null space basis and column space basis are two different skeletons that describe two different subspaces: what the matrix “ignores” and what the matrix “can produce.”
Connections
Looking ahead in MATH 231:
- Dimension, Rank, and Coordinates: the size of the basis is the dimension; the rank-nullity theorem connects the dimensions of Nul and Col
- Orthogonal Projection and Gram-Schmidt: Gram-Schmidt converts any basis into an orthonormal basis, which simplifies projection computations
Real-world connections:
- In data compression, the column space of a data matrix contains all signals the matrix can represent; a basis for the column space is a set of “fundamental signals” from which all others are built.
- In control systems, the null space of a system matrix identifies all inputs that produce zero output.
Source: Lay, Linear Algebra and Its Applications, Section 4.2: Null Spaces, Column Spaces, and Linear Transformations; Section 4.3: Linearly Independent Sets; Bases.
Last updated: 2026-06-16
Watch and Read
- Lynch, MATH 231 lecture playlists (YouTube)Recorded MATH 231 lectures at EWU. Use them to see each topic worked through in a full class session.