Subspaces
Subtopic: Vector Spaces
A subspace is a vector space living inside a larger vector space—a subset that is itself closed under addition and scalar multiplication. Subspaces are everywhere: lines and planes through the origin in
Introduction
Imagine
But not every subset is a subspace. A plane that doesn't pass through the origin isn't closed under scalar multiplication—scaling a vector on that plane might land outside it. A sphere isn't closed under addition—add two points on a sphere and you typically land outside it.
Subspaces capture the "flat" pieces of a vector space that preserve the linear structure.
Definition
Let
Equivalently (and more practically),
W is nonempty (typically verified by checking0∈W )W is closed under addition: ifu,v∈W , thenu+v∈W W is closed under scalar multiplication: ifv∈W andc∈F , thenc*v∈W
These three conditions are called the subspace test. You do not need to check all eight vector space axioms—they are inherited from
Geometric Interpretation
In
In
The key geometric insight: subspaces must pass through the origin. A line or plane not through the origin fails because
You can visualize a subspace as a “flat slice” through the origin. In higher dimensions, subspaces are hyperplanes (of various dimensions) passing through the origin.
The Subspace Test
To prove
Step 1: Non-empty
Show that at least one element is in
Step 2: Closure under addition
Take two arbitrary elements
Step 3: Closure under scalar multiplication
Take any
If any step fails,
Worked Example
Let
Step
Substitute
So the zero vector is in
Step
Let
We check whether
satisfies the defining equation:
Step
Let
Check whether
All three conditions hold, so
Geometrically,
Non-Example
Let
Check if
Important Subspaces
Null Space (Kernel)
For a matrix
Column Space (Range)
For a matrix
Span
Given vectors
The span is always a subspace — the smallest subspace containing those vectors.
Properties of Subspaces
Every vector space
V has at least two subspaces:{0} (the trivial subspace) andV itself.The intersection of subspaces is a subspace. If
(W_1) and(W_2) are subspaces ofV , then(W_1)∩(W_2) is also a subspace.The union of subspaces is generally NOT a subspace (unless one contains the other).
The sum of subspaces
(W_1)+(W_2)={(w_1)+(w_2):(w_1)∈(W_1),(w_2)∈(W_2)} is a subspace.
Applications and Connections
In solving linear systems
In machine learning, PCA finds subspaces that capture the most variance in data.
In quantum mechanics, possible states of a system form a subspace of the full Hilbert space, constrained by physical conditions.
The dimension of a subspace becomes crucial for the rank–nullity theorem and for understanding linear transformations.
Summary
A subspace is a subset of a vector space that is itself a vector space under the same operations. To verify: check that