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 , solution sets of homogeneous equations, and null spaces of matrices. Understanding subspaces is essential for decomposing spaces and characterizing linear maps.
Introduction
Imagine , the space of all 3D vectors. Some subsets of have special structure: a plane through the origin contains all linear combinations of two vectors in it. A line through the origin is closed under scaling and addition (of vectors along that line). These are subspaces.
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 be a vector space over a field . A subset is a subspace of if is itself a vector space under the same operations.
Equivalently (and more practically), is a subspace if and only if:
is nonempty (typically verified by checking )
is closed under addition: if , then
is closed under scalar multiplication: if and , then
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 , the subspaces are: the zero vector alone , lines through the origin, and itself.
In , the subspaces are: , lines through the origin, planes through the origin, and itself.
The key geometric insight: subspaces must pass through the origin. A line or plane not through the origin fails because is not in the set, and scaling by must produce the zero vector.
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 is a subspace, verify these three conditions:
Step 1: Non-empty
Show that at least one element is in . The easiest way: show . Since any subspace must contain the zero vector , this is necessary anyway.
Step 2: Closure under addition
Take two arbitrary elements , and show that .
Step 3: Closure under scalar multiplication
Take any and any scalar , and show that .
If any step fails, is not a subspace. Provide a counterexample: specific elements that violate closure.
Worked Example
Let . Is a subspace of ?
Step : Check that
Substitute :
So the zero vector is in .
Step : Check closure under addition
Let and be in . Then:
We check whether
satisfies the defining equation:
Step : Check closure under scalar multiplication
Let and let be any scalar. Then .
Check whether is in :
All three conditions hold, so is a subspace of .
Geometrically, is a plane through the origin (solutions to a homogeneous linear equation).
Non-Example
Let . Is this a subspace?
Check if : . The zero vector is not in .
is NOT a subspace. Geometrically, it is a line that does not pass through the origin.
Important Subspaces
Null Space (Kernel)
For a matrix , the null space is . This is always a subspace (the solution set of a homogeneous system).
Column Space (Range)
For a matrix , the column space is — all possible outputs of the linear map. This is a subspace of the codomain.
Span
Given vectors , their span is all linear combinations .
The span is always a subspace — the smallest subspace containing those vectors.
Properties of Subspaces
Every vector space has at least two subspaces: (the trivial subspace) and itself.
The intersection of subspaces is a subspace. If and are subspaces of , then is also a subspace.
The union of subspaces is generally NOT a subspace (unless one contains the other).
The sum of subspaces is a subspace.
Applications and Connections
In solving linear systems , the solution set is either empty (no solution), a single point (unique solution), or a subspace translated by a particular solution (infinitely many solutions of the form ).
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 is in the set, and the set is closed under addition and scalar multiplication. Key examples include null spaces, column spaces, and spans. Subspaces must pass through the origin—sets defined by non-homogeneous equations, like , are not subspaces.