Linear Algebra · Undergraduate
Subspaces: Column Space and Null Space
Quick answer
A subspace of ℝⁿ is a set that contains the zero vector and is closed under addition and scalar multiplication: lines and planes through the origin, and every span. Each m × n matrix A has two. The column space Col A, the span of the columns, lives in ℝᵐ and holds every b for which Ax = b is solvable. The null space Nul A, the solutions of Ax = 0, lives in ℝⁿ. Row reduction gives a basis for both: the pivot columns of A for Col A, and the direction vectors of the parametric solution for Nul A.
What you'll learn
- Decide whether a set of vectors is a subspace
- Describe the column space and null space of a matrix
- Find a basis for the null space from parametric vector form
- Find a basis for the column space from the pivot columns
Sets that stay closed
The span of a set of vectors has a useful property: combining vectors inside it never leads outside it. Sets with that property are subspaces.
A subspace of ℝⁿ is a set of vectors in ℝⁿ such that
- the zero vector is in ;
- if and are in , so is ;
- if is in and is a scalar, is in .
Lines and planes through the origin are subspaces; so is every span, and so are and ℝⁿ itself. A line that misses the origin is not a subspace, and neither is the first quadrant of the plane, which contains but not .
Every matrix comes with two subspaces.
- The column space is the span of the columns of . It sits in ℝᵐ, and it is exactly the set of for which has a solution.
- The null space is the set of solutions of . It sits in ℝⁿ.
Why the null space is a subspace
The zero vector solves . If and , then
so sums and multiples of solutions are solutions. Linearity of is exactly what keeps the solutions of closed under both operations. The same argument fails for with . There, two solutions add to a solution of , and the zero vector is not a solution at all.
Bases for both spaces from one row reduction
A basis of a subspace is a linearly independent set that spans it: enough vectors to reach everything, with none to spare. One row reduction of produces a basis for each of its subspaces.
- Null space. Write the solution of in parametric vector form. The vectors multiplying the free variables form a basis.
- Column space. The columns of that hold pivots form a basis. Take them from itself: row operations change the column space, but they keep every linear relation among the columns, so they show which columns to keep.
Worked examples
Common mistakes
Practice problems
-
Is the set of vectors with a subspace of ℝ²?
Answer
No
Full solution
It contains but not , so it is not closed under scalar multiplication.
-
Is the set of vectors with a subspace of ℝ³?
Answer
Yes
Full solution
It is the null space of , and every null space is a subspace.
-
Find a basis for .
Answer
Full solution
The reduced form is , so with free.
-
Find a basis for .
Answer
Full solution
The matrix is already reduced: is free, and .
-
For , find a basis for .
Answer
Full solution
Row reduction gives , with pivots in columns and . Take those columns of . The third column is their sum.
-
Find a basis for for the same matrix.
Answer
Full solution
From the reduced form, is free, and .
-
A matrix is given. Is a subspace of ℝ⁴ or of ℝ⁷?
Answer
ℝ⁷
Full solution
Solutions of need entries, one per column.
-
If has no solution, what does that say about and ?
Answer
is not in .
Full solution
is always a combination of the columns, so a solution exists exactly when is one of those combinations.
-
For an invertible matrix, what are and ?
Answer
ℝⁿ and
Full solution
By the Invertible Matrix Theorem the columns span ℝⁿ and has only the trivial solution.
-
A student reduces from Example 2 and reports as a basis for , the pivot columns of the reduced matrix. What went wrong?
Hint
Is a combination of the columns of ?
Answer
The basis must come from itself: .
Full solution
Every column of has third entry equal to the sum of its first two entries, so every vector in does too. breaks that pattern and is not in at all. Row operations change the column space; they only preserve the relations among columns.
Frequently asked questions
What is a subspace?
A set of vectors in ℝⁿ that contains the zero vector and is closed under addition and scalar multiplication. Lines and planes through the origin are examples.
What is the column space of a matrix?
The span of its columns, written Col A. It is exactly the set of vectors b for which Ax = b has a solution.
What is the null space of a matrix?
The set of all solutions of Ax = 0, written Nul A. For an m × n matrix it is a subspace of ℝⁿ.
How do you find a basis for the column space?
Row reduce A to find the pivot columns, then take the corresponding columns of the original matrix A, not of its reduced form.
How do you find a basis for the null space?
Solve Ax = 0 in parametric vector form. The vectors multiplying the free variables form a basis.