Subspaces
Which subsets of a vector space are themselves vector spaces, using the same operations? This question sounds narrow. But its answer organizes almost everything that follows in linear algebra. A line through the origin in the plane, a plane through the origin in space, the solutions to a homogeneous linear system, the polynomials of degree at most three, the symmetric matrices — all of these are subspaces. Recognizing them as such instantly hands you a rich supply of theorems for free. The reason subspaces matter is efficiency. A vector space must satisfy ten axioms. These include closure under two operations, commutativity, associativity, identities, inverses, and distributive laws. Checking all ten from scratch for every subset would be exhausting and redundant. This is because a subset of a vector space automatically inherits associativity, commutativity, and the distributive laws from the ambient space. The subspace criterion isolates exactly the three conditions that can actually fail. It turns a ten-item checklist into a three-item one. The big picture is that subspaces are the natural "linear" subsets. They are the ones closed under the two operations that define a vector space, addition and scalar multiplication. Geometrically they are exactly the flat sets through the origin — lines, planes, and their higher-dimensional analogues. Algebraically they are the solution sets of homogeneous linear equations. They are also the kernels and images of linear maps, and the building blocks for the notion of span. This article gives the precise definition of a subspace. It proves the subspace criterion with full rigor. It works through standard examples, including solution spaces of homogeneous systems. It shows exactly which hypotheses cannot be dropped. It closes by connecting subspaces to the ideas of span and sums of subspaces. These ideas build directly on top of this material.
- A subspace is a subset of a vector space that is itself a vector space under the same operations.
- The subspace criterion reduces ten vector space axioms to three checkable conditions.
- The zero vector must lie in every subspace; a subset missing it is never a subspace.
- Solution sets of homogeneous linear systems are always subspaces; non-homogeneous ones never are.
- Lines and planes through the origin are subspaces of and ; those not through the origin are not.
- Key idea: to check a subset is a subspace, verify it contains and is closed under addition and scalar multiplication — everything else is inherited automatically.
Where this lives today
Subspaces are the organizing objects behind nearly every application of linear algebra. In differential equations, the solution set of a homogeneous linear ODE (or a homogeneous linear recurrence) forms a subspace of the space of functions (or sequences), which is exactly why superposition of solutions works: any linear combination of solutions is again a solution. In computer graphics and robotics, the set of velocity directions tangent to a constraint surface at a point forms a subspace (the tangent space), used to compute feasible motions. In coding theory and cryptography, linear codes are defined precisely as subspaces of for a finite field ; the fact that codewords form a subspace (rather than an arbitrary subset) is what makes efficient encoding and decoding algorithms possible, including syndrome decoding. In statistics, the column space of a design matrix in linear regression is a subspace of , and least-squares fitting is literally the problem of projecting a data vector onto this subspace. In quantum mechanics, physical states with a fixed value of a conserved quantity (like total spin or particle number) span a subspace of the full Hilbert space, and observables act by mapping subspaces to subspaces. In numerical linear algebra, the null space and column space of a matrix — both subspaces — are the two fundamental subspaces used to analyze the solvability and rank of linear systems, directly generalizing Example 1 above. All of these depend on the same three-condition checklist proved in the Subspace Criterion.
Ask the tutor: Why is the null space of a matrix always a subspace but the solution set of an inhomogeneous system never is?
Let be a vector space over a field . A subset is called a subspace of if , equipped with the addition and scalar multiplication inherited from , is itself a vector space over . Equivalently (this equivalence is the content of the Subspace Criterion below), is a subspace if and only if all three of the following hold: 1. Contains zero: , where is the zero vector of . 2. Closed under addition: for all , . 3. Closed under scalar multiplication: for all and all , .
Intuition
Think of a vector space as a flat, infinitely extended geometric object anchored at the origin. A subspace is a "flat" piece of that object which itself passes through the origin and is closed under stretching and adding. In , the subspaces are: the zero vector alone, every line through the origin, and the whole plane. Nothing else qualifies — not a line that misses the origin, not a single quadrant, not a circle. The word "closed" is doing real work. If you take two vectors in and add them, the result must land back in ; if you scale a vector in by any scalar (including and negative numbers), the result must land back in . Scaling by is exactly what forces — so condition 1 is almost a consequence of condition 3, except that condition 3 is stated as "for all ," which is vacuous if is empty. That is why condition 1 is listed separately: it also guarantees is nonempty, which is needed before condition 3 says anything. Geometrically, closure under scalar multiplication means: if a vector is in , the entire line through the origin and that vector is in . Closure under addition means: if two vectors are in , every vector obtainable by the parallelogram rule from them is in . Together, these two closure properties are precisely what makes a union of lines through the origin that is also "flat" in the sense of containing all sums.
Theorem: The Subspace Criterion
Let be a vector space over a field , and let be a subset of . Then is a subspace of if and only if the following three conditions hold: (i) ; (ii) is closed under addition: ; (iii) is closed under scalar multiplication: .
We prove both directions. Let be a vector space over with the ten vector space axioms holding for its addition and scalar multiplication.
() Suppose is a subspace. By definition, is a vector space in its own right under the operations inherited from . In particular the vector space axioms for require that addition and scalar multiplication, as operations on , actually take values in : that is, must be closed under addition and scalar multiplication. This gives (ii) and (iii) immediately. For (i): a vector space is by definition nonempty (it contains a zero vector), so has some element . By axiom, has an additive identity satisfying . We show . Since and the addition on is the addition of restricted to , the equation also holds in . But in , the zero vector is the unique additive identity satisfying for all (uniqueness of the additive identity in a vector space is a standard consequence of the axioms of vector space axioms: if and , then , using that is an identity in applied to , and commutativity of addition in ). Hence , and since , we conclude . This proves (i).
() Suppose (i), (ii), (iii) hold. We must check that , with addition and scalar multiplication restricted from , satisfies all the vector space axioms. We check each in turn, noting that (ii) and (iii) guarantee the two operations are well-defined as maps and respectively, so the axioms below are meaningful statements about elements of .
- Additive closure: This is exactly (ii).
- Scalar closure: This is exactly (iii).
- Commutativity of addition: For , we have because this holds for all vectors in , and . The identity inherited from restricts correctly.
- Associativity of addition: For , holds because it holds in .
- Additive identity: By (i), . For any , holds because it holds in . So serves as the additive identity of .
- Additive inverses: Let . By (iii) with , . In , it is a standard consequence of the vector space axioms that is the additive inverse of , i.e. (this follows from the distributive law and the fact , both axioms/consequences holding in ). Since this equation holds in and both , it holds as an equation of elements of , showing every has an additive inverse in .
- Scalar multiplication distributes over vector addition: for , , because it holds in .
- Scalar multiplication distributes over scalar addition: , because it holds in .
- Compatibility of scalar multiplication with field multiplication: , because it holds in .
- Scalar identity: for , because it holds in .
Every axiom either holds automatically because it holds for all elements of (and ), or is exactly one of the hypotheses (i)–(iii). Since is nonempty (by (i)) and the two operations restrict to well-defined operations on (by (ii), (iii)), all ten vector space axioms hold for . Hence is a vector space under the inherited operations, i.e. is a subspace of . This completes the proof in both directions.
∎The proof technique here is direct verification of axioms, split into a forward direction that extracts necessary conditions from the definition of "vector space," and a backward direction that shows those same three conditions are sufficient because every other axiom is a universally quantified statement about that automatically restricts to any subset closed under the operations.
Let be a nonempty subset of a vector space closed under addition and scalar multiplication (conditions (ii) and (iii)). Then is automatically a subspace, and in particular is automatic.
Since , pick any . By closure under scalar multiplication (iii) with , we get . In , it is a standard fact that for every (this follows from the distributive law: , and adding the additive inverse of to both sides gives ). Hence , verifying (i). Conditions (ii), (iii) are given, so by the Subspace Criterion, is a subspace.
∎This corollary is the version most often used in practice: check (usually by exhibiting or noting some obvious element lies in ), then check closure under addition and scalar multiplication.
Worked examples
Example 1: The solution set of a homogeneous linear system. Let be a fixed matrix with real entries, and let
We claim is a subspace of . Take, concretely, and
so . Check (i): The zero vector satisfies , since matrix multiplication sends to (each entry of is a sum of terms each multiplied by ). So . Check (ii): Suppose , so and . By linearity of matrix multiplication (distributivity, an established property of matrix-vector products),
so . Check (iii): Suppose and , so . By linearity,
so . By the Subspace Criterion, is a subspace of . Concretely, let's verify with an actual solution. Set : the second equation gives , and the first gives . So ; check: ✓, and ✓. Scaling, also solves the system: ✓ and ✓, confirming closure under scalar multiplication in this instance. This example is the prototype for why homogeneity matters: the right-hand side must be , precisely so that is a solution and so that the linearity computations and preserve the defining equation . Compare with the counterexample below.
Example 2: Symmetric matrices form a subspace, but matrices of determinant do not. Let , the vector space of all real matrices (a standard example of a vector space, with entrywise addition and scalar multiplication). Let
be the set of symmetric matrices. We check is a subspace. Check (i): The zero matrix satisfies , so . Check (ii): Let , so and . Using the property (a standard fact about the transpose, itself provable entrywise: the entry of is the entry of , namely , which equals the entry of ),
so . Check (iii): Let , . Using (again checkable entrywise),
so . By the Subspace Criterion, is a subspace of . Let's verify with concrete matrices: take
both symmetric. Then
which is symmetric (the entry equals the entry ), confirming closure under addition in this instance. And is symmetric as well. Now contrast this with
This is not a subspace. First, since , already violating condition (i) — so by the Subspace Criterion (contrapositive of the forward direction, or just directly: a subspace must contain ), cannot be a subspace. Concretely, take
and note has determinant , so also fails closure under addition. Both failures independently show is not a subspace.
Consider the same coefficient matrix as in Example 1,
but now consider the non-homogeneous system with . Define
This weakens condition (i) of the theorem's role: we no longer have a right-hand side of , so there is no guarantee . Indeed, check directly: , so . Since , condition (i) of the Subspace Criterion already fails, so cannot be a subspace. To see the failure of closure concretely (independent confirmation), find one solution: set ; then the second equation gives , and the first gives . So ; check : first entry ✓, second entry ✓. Now double it: . Check : first entry . So : closure under scalar multiplication fails. This is exactly because whenever — scaling a solution of an inhomogeneous system does not give another solution of the same system unless . This shows precisely why the theorem's hypothesis "" (or equivalently, working with a homogeneous system) cannot be dropped: is a perfectly good geometric object — an affine subspace, a translate of the subspace from Example 1 — but it is not a linear subspace, and none of the vector space machinery (span, dimension in the linear sense, linear combinations summing to a subspace element) applies to it directly.
Scope, edge cases & common traps
| Situation | Is it a subspace? | Why |
|---|---|---|
| alone (the trivial subspace) | Yes | Vacuously/trivially satisfies all three conditions |
| itself | Yes | Every vector space is a subspace of itself |
| A line through the origin in | Yes | Closed under addition (collinear vectors add to collinear vectors on the same line) and scaling |
| A line not through the origin | No | Fails to contain |
| Solution set of | Yes | Example 1 above; this is the kernel or null space of |
| Solution set of , | No | Counterexample above; this is an affine subspace, not linear |
| Union of two distinct lines through origin in | No | Fails closure under addition (sum of one vector from each line is generally on neither) |
| Intersection of two subspaces | Yes | Both closure conditions and containment of pass through intersection (proved similarly, foreshadowing Sums of Subspaces) |
| First-quadrant vectors in | No | Closed under addition and contains , but fails scalar closure: leaves the set |
| Vectors with integer entries in | No | Closed under addition and contains , but fails scalar closure over : |
The mathematician behind it
Origins · 1 minGiuseppe Peano and how this was discovered
Giuseppe Peano was an Italian mathematician best known for axiomatizing the natural numbers, but he was also the first to give a fully explicit, modern axiomatic definition of a vector space, in his 1888 book Calcolo Geometrico. Building on Hermann Grassmann's earlier, more geometric Ausdehnungslehre (1844), Peano isolated the abstract algebraic properties — closure, associativity, distributivity — that define a "linear system," anticipating by decades the abstract treatment of vector spaces and their subspaces that became standard in the twentieth century. His work made precise exactly the kind of axiom-checking that the subspace criterion exploits: once a structure satisfies a short list of axioms, an entire calculus of linear combinations, spans, and subspaces follows mechanically.
Does every vector space have at least one subspace?
Yes — every vector space has at least two subspaces automatically: the trivial subspace , consisting of only the zero vector, and itself. Both satisfy the subspace criterion vacuously or trivially: contains zero, and , for any scalar ; and trivially satisfies all three conditions since it is closed under its own operations by definition. These are sometimes called the trivial subspaces. A vector space may have many more subspaces (infinitely many, if over an infinite field), or, if itself, these two trivial subspaces coincide.
Is a subspace required to be a proper subset, or can it equal the whole space?
A subspace can equal the whole space ; there is no requirement of properness in the general definition. When authors want to exclude this case, they use the term proper subspace, meaning (strictly contained). Similarly, some authors reserve "subspace" to exclude the trivial subspace using the phrase "nonzero subspace," but by default, both and count as subspaces of . Always check context or explicit qualifiers like "proper" or "nontrivial" when reading a claim about subspaces.
Why do we need to check scalar multiplication for all scalars, including negative ones and non-integers?
Because the field over which is a vector space includes all its elements as legitimate scalars, and the subspace must be closed under multiplication by every one of them, not just a convenient subset. Over , this includes negative numbers, irrational numbers, and zero. A common trap is a set like the first quadrant , which is closed under addition and contains , yet fails because multiplying by produces a vector outside the set. The scalar field matters too: is a subspace of over but not of over , since irrational scalars break closure.
How does the subspace criterion relate to the concept of span, which comes next?
The subspace criterion tells you how to recognize a subspace once you have a candidate subset. The concept of span tells you how to construct a subspace from a given set of vectors: the span of a set is defined as the set of all linear combinations of vectors in , and one proves (using exactly the subspace criterion) that this span is always a subspace — indeed the smallest subspace containing . So the criterion proved here is the tool used immediately afterward to justify that span produces a genuine subspace, rather than merely some subset.
Is the empty set ever a subspace?
No, never. Every subspace must contain the zero vector by condition (i) of the subspace criterion, so the empty set — which contains nothing — automatically fails to be a subspace of any vector space with at least one element (and every vector space has at least the zero vector, so every vector space is nonempty). This is a frequent point of confusion because the empty set is vacuously closed under addition and scalar multiplication (there are no elements to violate those conditions), but vacuous closure is not enough; the explicit requirement rules the empty set out immediately.
Are the row space, column space, and null space of a matrix all subspaces?
Yes, all three are subspaces, though of different ambient spaces. For an matrix : the column space (span of the columns) is a subspace of ; the row space (span of the rows) is a subspace of ; and the null space is a subspace of , exactly as verified in Example 1 of this article. All three are proved subspaces either directly via the subspace criterion (as done here for the null space) or via the fact that any span of a set of vectors is automatically a subspace, a fact that follows immediately from the same criterion.
If and are both subspaces of , is always a subspace?
No, generally not — only is guaranteed to be a subspace. The union is a subspace if and only if or ; otherwise, closure under addition typically fails, as in the -axis/-axis example above (each axis is a one-dimensional subspace, but their union is not closed under addition). This is exactly why the notion of sum of subspaces, , is introduced: it is the smallest subspace that does contain both and , correcting for the failure of the union to be closed under addition.