Null Space of a Matrix
Problem
Find the null space of A = [[1,2,1],[2,4,2]]. Describe all solutions to A·x = 0.
Explanation
Definition
The null space (or kernel) of an matrix is
It's a subspace of : closed under addition and scalar multiplication, contains .
The dimension of the null space is called the nullity; by rank–nullity, .
Step-by-step
Step 1 — Row reduce.
: .
Step 2 — Identify pivots and free variables.
Pivot column: column 1. Free columns: columns 2 and 3. Let , .
Step 3 — Solve for pivot variables.
From row 1: .
Step 4 — Write the general solution.
Step 5 — A basis for :
Verification:
- ✓
- ✓
Why there are two free variables
is , rank 1 (one pivot). Rank-nullity: , so . Our answer has a 2-parameter family of solutions, matching.
Structure of solutions to
Solutions to (if any exist) have the form
where is a particular solution and ranges over the null space. So the null space describes the freedom in any linear solution.
- If , the solution (if it exists) is unique.
- If is larger, the solution is a translated copy of the null space.
Where null spaces show up
- Homogeneous ODEs: the space of solutions is the null space of a differential operator.
- Linear regression: redundant features span a non-trivial null space of the design matrix.
- Computer graphics: rotations have trivial null space; projections onto lower-dimensional subspaces have non-trivial null spaces.
Common mistakes
- Including the zero solution as a basis vector. The zero vector is always in the null space, but a basis consists of non-zero independent vectors.
- Mixing up "null space" and "zero matrix." Null space is a subspace of , not a matrix.
- Solving and forgetting to translate by . For non-homogeneous systems, you add a particular solution to a null-space element.
Try it in the visualization
In 3D, the null-space vectors span a plane through the origin. The plane tilts as you edit 's entries; its dimension updates from 0 (only origin) up to 3.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.