Vector Subspaces
The concept of a subspace is one of the most foundational and important topics in linear algebra. It bridges pure algebra (linear combinations of column vectors) with geometry (infinite lines, spanned planes, and high-dimensional hyperplanes).
In this lesson, we will explore both the algebraic and geometric perspectives of subspaces, study the formal closure criteria, and define how subspaces relate to their surrounding ambient space.
1. Algebraic Perspective
From an algebraic perspective, a subspace is defined by the set of all vectors that can be created by taking linear combinations of a specific vector or a set of vectors.
Recall that a linear combination of vectors involves multiplying them by real-valued scalars () and adding them together.
Example A: A Subspace from One Vector
Consider a single vector in :
Any other vector that can be expressed as a scaled multiple is in the same subspace as . For instance:
- is in the subspace (where ).
- is in the subspace (where ).
- is in the subspace (where ).
Conversely, vectors like , , and are NOT in the subspace:
- For the vector , we would need a scalar to match the first element (). However, for the second element, . Since no single scalar satisfies both components, this vector lies outside the subspace of .
Example B: A Subspace from Two Vectors
A subspace is not limited to a single vector. We can define a subspace from two vectors and by considering all of their possible linear combinations:
For example:
Let's test if the vector is in the spanned subspace. We choose scalars and :
Because we can successfully combine and to produce , this vector is officially a member of the subspace.
3. Subsets vs. Subspaces
A common point of confusion in linear algebra is the difference between a subset and a subspace. While they sound similar, they are very different mathematical objects:
- Subset: Simply any collection of points or vectors in a coordinate space that satisfies any custom condition you define. Subsets do not need to be closed under vector addition or scalar multiplication, nor do they need to contain the origin.
- Subspace: A highly restricted, "closed" subset that must satisfy the closure criteria and contain the zero vector.
All subspaces are subsets, but very few subsets are subspaces. Subspaces are subsets that act as "closed universes"—once you are inside, no linear operation can take you out.
Let's look at three concrete algebraic examples in to master this distinction.
Example 1: The Boundary Region ()
Consider the set of all points in 2D space where the -coordinate is greater than or equal to $2$:
- Origin Test: Let's check if the zero vector is in . Since the -coordinate is $0$, and $0 < 2$, the zero vector is not in this set:
- Scalar Multiplication Test: Let's choose a valid vector in the set, e.g., (since ). Let's scale it by a negative factor : Since $-3 < 2$, the scaled vector has escaped the set:
- Conclusion: is a perfectly valid subset, but it is NOT a subspace because it contains no origin and fails closure under scaling.
Example 2: The Curved Curve ()
Consider the set of all points that lie on the parabola :
- Origin Test: Check if the zero vector is in . Since , the zero vector is successfully included:
- Vector Addition Test: Let's pick two valid points on this parabola: Let's add these two vectors together: For this sum to belong to , its coordinates must satisfy . However: Adding the vectors took us completely off the parabola!
- Conclusion: is a valid subset containing the origin, but it is NOT a subspace because it is not closed under addition (curvature breaks linearity).
Example 3: The Linear Equation ()
Consider the set of all points lying on the line :
- Origin Test: Since , the zero vector is included:
- Addition & Scaling Test: Let's take any arbitrary vector and another vector , and scale them by any real numbers and : The -component of the result is exactly twice its -component. Thus, the linear combination must remain on the line:
- Conclusion: This subset is closed under all operations and contains the origin. Therefore, it IS a perfectly valid subspace!
4. Geometric Perspective
Geometrically, a subspace is represented as an infinite flat shape passing directly through the origin of the coordinate space.
The 1D Subspace (Line)
A single non-zero vector in a 3D coordinate space represents a line. By scaling by all scalars from to , we trace out an infinitely long line. This line is a 1D subspace passing through the origin.
The 2D Subspace (Plane)
If we introduce a second vector that is independent of , they can be combined to reach any point on a flat plane.
Here we see two vectors and their linear combination vector :

By taking all possible linear combinations of these two vectors, we span an entire two-dimensional plane passing through the origin. This represents a 2D subspace embedded inside a 3D surrounding space:

5. Subspaces vs. Ambient Space
It is crucial to distinguish between a subspace and the surrounding ambient space (also called the ambient dimensionality).
The Ambient Space is the full dimensional space in which our vectors are embedded. For example, if all vectors have three elements (), the ambient space is .
Inside an ambient 3D space (), there are exactly four possible dimensionalities for subspaces:
| Subspace Dimension | Geometric Description | Number of Possibilities |
|---|---|---|
| 0D Subspace | The single point at the origin $[0, 0, 0]$ | Exactly 1 |
| 1D Subspace | Any infinite straight line passing through the origin | Infinite |
| 2D Subspace | Any infinite flat plane passing through the origin | Infinite |
| 3D Subspace | The entire ambient 3D space itself | Exactly 1 |
Every single one of these subspaces intersects at the origin, because all subspaces must contain the zero vector.
6. Linear Independence and High-Dimensional Collapse
Simply having multiple vectors does not guarantee a high-dimensional subspace. The vectors must be linearly independent (meaning no vector can be expressed as a linear multiple of the others).
2D Collapse (Line instead of Plane)
Suppose we have two vectors:
Because , they lie on the exact same line. Taking all possible linear combinations of and will only yield that single line. Thus, despite having two vectors, we only get a 1D line subspace, not a 2D plane.
5D Generalization ()
This principle holds for any arbitrary dimension, such as an ambient 5D space ():
- 0D: The zero vector $[0, 0, 0, 0, 0]$.
- 1D: A single non-zero vector (spans a 5D line).
- 2D: Two independent vectors (span a 5D plane).
- 3D: Three independent vectors (span a 3D cube-like subspace).
- Collapse: If we have three vectors but the third is a scaled multiple of the second, they collapse and only span a 2D plane subspace.
In high-dimensional contexts, mathematicians use the term Hyperplane to describe a high-dimensional subspace embedded inside an even higher-dimensional ambient space.
Key Takeaways
- Subspace: A set of all vectors formed by the linear combinations of a starting set of vectors.
- Closure Criteria: A subspace must be closed under vector addition and scalar multiplication ().
- Zero Vector Rule: Every subspace must contain the origin ().
- Ambient Space: The parent coordinate space in which the subspace is embedded.
- Linear Independence: Multiple vectors only increase subspace dimensionality if they are independent; dependent vectors collapse into lower-dimensional subspaces.