Sums of Subspaces
Suppose you have two planes through the origin in . Or consider two subspaces of solutions to different linear systems. What is the smallest subspace containing both of them? This question forces us to confront a subtlety. The union of two subspaces is almost never a subspace itself. So we need a new construction to "combine" subspaces while staying inside the world of subspaces. The sum of subspaces answers this question completely and constructively. This idea matters because subspaces arise everywhere in linear algebra. They appear as kernels, images, eigenspaces, solution sets. We constantly need to combine them: to build a space out of two pieces, to decompose a transformation's domain, or to measure how much two subspaces overlap. The sum operation is the correct algebraic tool for "smallest subspace containing several given subspaces." It plays a role for subspaces analogous to what union plays for sets. But it is repaired to respect closure under addition and scalar multiplication. The big picture is that sums of subspaces are a special case of a more general construction. This construction is ubiquitous: the span of a set of vectors. We can identify a sum of subspaces as literally the span of the union of the subspaces. Once we do, all the machinery already developed for spans applies immediately. This includes the facts that spans are subspaces, that they are the smallest such containing the given set, and that spanning sets can be trimmed to bases. It all applies painlessly. This article gives the precise definition of the sum of a finite collection of subspaces. It proves rigorously that this sum equals the span of their union. It also equals the set of all finite sums of vectors chosen one from each subspace. The article establishes that it is itself a subspace. Indeed, it is the smallest subspace containing all of them. We work carefully through non-trivial examples in and in a space of polynomials. We exhibit a genuine counterexample showing why closure under addition is essential. Finally, we set up the language needed for the sharper notion of a Direct Sum of Subspaces. We also prepare for Dimension Formulas for Subspaces.
- For subspaces of a vector space , the sum is the set of all vectors expressible as with .
- The sum equals : it is exactly the span of the union of the subspaces.
- The sum is always a subspace of , and it is the smallest subspace containing every .
- Unlike the union of subspaces, the sum is closed under addition and scalar multiplication — this is precisely what fixes the failure of unions.
- Sums generalize familiar constructions: for example, .
- Key idea: the sum of subspaces is nothing more than the span of their union, repackaged so that "combine these subspaces" always yields a subspace.
Where this lives today
Sums of subspaces are a basic organizing tool across mathematics and its applications. In pure linear algebra, they underlie the sharper notion of a Direct Sum of Subspaces used to decompose vector spaces into independent pieces, essential for diagonalization, Jordan form, and the structure theory of linear operators. In functional analysis, sums (and their topological refinements, closed sums) of subspaces of Hilbert or Banach spaces describe how signals or functions decompose into orthogonal or complementary components, foundational to Fourier analysis and wavelet theory. In coding theory and cryptography, sums of subspaces over finite fields describe how codewords or key spaces combine, and the dimension formula governs redundancy and error-correcting capacity. In statistics, sums of subspaces appear when decomposing the column space of a design matrix into main-effect and interaction subspaces in the analysis of variance (ANOVA). In physics and engineering, sums of eigenspaces or invariant subspaces of an operator describe how a system's state space decomposes into modes, essential to normal mode analysis in mechanical and electrical systems, and to the spectral decomposition used in quantum mechanics.
Ask the tutor: How does the sum of two subspaces change if their intersection is nontrivial, and why does that lead to the dimension formula ?
Let be a vector space over a field , and let be subspaces of (with a finite integer). The sum of , denoted
is the set
That is, it consists of all vectors in that can be written as a sum of one vector from each subspace .
Intuition
Picture two lines through the origin in that are not equal to each other — say and . Their union is the "plus sign" shape consisting of both axes. This union is not a subspace: the vector and the vector both lie in the union, but their sum lies on neither axis, so it is not in . The union fails to be closed under addition. The sum repairs this defect by declaring that every such combination must be included. In this example, , because every vector can be written as with and . The sum is the smallest subspace that "closes up" the union under the vector space operations — and this is exactly what the span of a set does to any set of vectors. The picture to keep in mind: the sum sweeps out every vector reachable by adding one representative from each subspace, filling in a solid region (here, all of the plane) around the "skeleton" formed by the union. A second useful picture is in : two distinct planes through the origin intersect in a line, but their sum is forced to be all of , since two planes already contain enough independent directions to reach every vector by summation.
Let be a vector space over and let be subspaces of . Then: 1. is a subspace of . 2. . 3. is the smallest subspace of containing every : if is any subspace of with for all , then .
We prove each part in turn, using only the definition of subspace and of span. Recall that for a set , the span is defined as the set of all finite linear combinations of vectors in , and it is a known fact (established when spans are introduced) that is always a subspace of and is the smallest subspace containing . We use this fact — call it Span of a Set — as already established background, and we do not re-derive it here; we only apply it.
Part 1: is a subspace. We check the three subspace conditions directly (this gives an independent, self-contained proof not relying on Part 2, so that Part 2's proof does not become circular). Contains the zero vector. Since each is a subspace, for every . Hence , choosing the zero vector from each . Closed under addition. Let . By definition there exist with and , and there exist with and . Since each is a subspace, it is closed under addition, so for each . By commutativity and associativity of vector addition,
which exhibits as a sum of one vector from each (namely ). Hence . Closed under scalar multiplication. Let , so with , and let . Since each is a subspace, it is closed under scalar multiplication, so for each . By the distributive law in ,
which exhibits as a sum of one vector from each . Hence . All three conditions hold, so is a subspace of .
Part 2: . We show the two sets are equal by proving each is a subset of the other. () Let , so with for each . Each lies in . The expression is (in particular) a linear combination of vectors from — namely the combination with all coefficients equal to — so by the definition of span. () Let . By definition of span, there exist finitely many vectors and scalars such that
Each lies in , so each belongs to at least one (choose one such index for each , if happens to lie in more than one ; this choice is not required to be unique, only to exist). Since is a subspace, it is closed under scalar multiplication, so . Now group the terms according to which subspace index they were assigned to: for each , let
a sum (possibly empty, in which case we set ) of vectors each lying in . Since is a subspace, it is closed under addition, so this finite sum of elements of again lies in , i.e. . By construction,
since every term appears in exactly one group . This exhibits as an element of . Both inclusions hold, so the two sets are equal.
Part 3: is the smallest subspace containing all the . First, does contain each : given , write (the vector in the -th slot and the zero vector of each other in the remaining slots, which is legitimate since for every ). This exhibits as an element of , so for every . Consequently . Now suppose is any subspace of with for every . Then . By the minimality property of span (part of Span of a Set: the span of a set is contained in every subspace containing ), we get
By Part 2, . This proves that contains every and is contained in every subspace that contains every ; that is precisely the statement that it is the smallest such subspace.
∎Let be subspaces of . Then
and for any permutation of ,
By Part 2 of the Sum of Subspaces theorem, , and likewise , using that span of a union of a span-set and a further set is the span of the full union (a direct consequence of the minimality and containment properties of span, since already contains , and adding 's union does not change the total set being spanned). Both expressions equal , hence are equal to each other, proving associativity. Commutativity under permutation follows since is literally a union of sets, and set union does not depend on the order in which the sets are listed, so trivially.
∎Worked examples
Example 1: Two non-trivial planes in with an asymmetric spanning description. Let , and define
Here is a plane through the origin (it is 2-dimensional, since and are not parallel), and is a line through the origin. We compute . By Part 2 of the theorem,
To find the dimension and an explicit description, row-reduce the matrix whose rows are these three vectors:
Subtract row 1 from row 3: row 3 becomes . Add row 2 to the new row 3: . Since , the three original rows are linearly independent (the row-reduced matrix has rank 3, an upper triangular form with nonzero pivots ). Hence is a basis of , so
This matches intuition: a plane and a line not lying in that plane together must span all of . We can verify directly that : if for scalars , then comparing first coordinates , comparing third coordinates , but then the second coordinate gives , a contradiction. So indeed , consistent with the sum growing strictly larger than alone (and reaching the whole space, since already and adding one more independent direction fills ).
Example 2: A sum of subspaces of a polynomial space that is not all of the ambient space. Let , the vector space of real polynomials of degree at most , which has dimension with basis . Define subspaces
First, verify is a subspace: it is the kernel of the linear map sending , and kernels of linear maps are subspaces. Concretely, , since a polynomial satisfies exactly when its constant term vanishes, and clearly is a basis of this -dimensional subspace (they are the images of standard basis vectors under a coordinate projection, hence linearly independent, and by dimension count they span since by the rank-nullity count on ). By Part 2 of the theorem,
(We may drop the repeated spanning vector since removing a duplicate from a spanning set does not change its span.) Since , and is already in the list, the presence of together with lets us recover the constant polynomial . So
Let us double check this is correct and not accidental, by exhibiting an arbitrary as a sum with , . Take
Indeed since its constant term is , and since it is a scalar multiple of . Their sum is
as required (the -coefficients combine correctly). This confirms by direct construction, corroborating the spanning-set computation. Note by contrast that if we had instead taken alone, then itself, since already — a reminder that summing in a subspace that is already contained in changes nothing, consistent with Part 3 (the sum is the smallest subspace containing both, and if then itself already contains both, so the smallest such subspace is ).
The entire reason for defining rather than simply using is that the union of subspaces generally fails to be a subspace — it fails the closure-under-addition hypothesis. We exhibit this concretely. Let , and let
Both and are subspaces of (each is the span of a single vector, hence a subspace by the span-is-a-subspace fact). Consider . We claim is not a subspace of , specifically because it fails closure under addition. Take and . Then
Is ? We check both possibilities. If , then for some , forcing the second coordinate , a contradiction. If , then for some , forcing the first coordinate , again a contradiction. So and , hence . We have exhibited with . Therefore is not closed under addition, and in particular is not a subspace of . This is exactly the defect that the sum construction repairs: dropping the requirement that we combine (sum) elements from the different subspaces — i.e., using the raw union instead of — breaks the subspace property. Indeed , and it is precisely the extra vectors like , thrown in by the summation process, that restore closure.
Scope, edge cases & common traps
| Situation | What happens | Why |
|---|---|---|
| (sum of one subspace) | with only present equals | Trivial case of the definition: sums with one summand are just that summand |
| One | Sum unaffected: | Adding the zero vector from the trivial subspace changes nothing |
| for some | contributes nothing new: sum equals sum with omitted | already, so , and span of the union is unaffected |
| Confusing sum with union | Common error: assuming | False in general — see the counterexample; sum is generally strictly larger |
| Infinite index set | Definition given here is for finite only | Sums of infinitely many subspaces require care (e.g. only finitely many nonzero summands allowed) and are a separate construction |
| Overlap of 's | Sum does not "double count" overlap; dimension of sum can be less than | Foreshadows the Dimension Formulas for Subspaces, e.g. |
The mathematician behind it
Origins · 1 minHermann Günther Grassmann and how this was discovered
Grassmann worked largely outside the mainstream mathematical establishment of his time, as a secondary-school teacher in Stettin, yet he originated much of the conceptual apparatus of modern linear algebra — including the systematic algebra of subspaces, their sums, and their dimensions — decades before it was widely appreciated.
Grassmann's original insight was that subspaces of varying dimensions could be combined by an addition-like operation, and that this operation obeyed a precise arithmetic — the germ of what is now proven rigorously as the sum-of-subspaces theorem and its accompanying dimension formula. His work anticipated, by roughly half a century, the axiomatic vector space formalism in which the sum of subspaces is now routinely defined and used.
Is the sum of subspaces the same thing as their union?
No. The union consists only of vectors that lie entirely in or entirely in , and this set is generally not even a subspace, since it typically fails to be closed under addition (see the counterexample above with two coordinate axes in ). The sum consists of all vectors obtainable as with , , which is a strictly larger set in general, and it is always a subspace. The precise relationship is , with equality of the first inclusion holding only in the degenerate case where one subspace contains the other.
How do I compute in practice, given spanning sets for and ?
Concatenate the spanning sets: if and , then , a direct consequence of Part 2 of the main theorem. To find a basis of and its dimension, form a matrix with these vectors as rows (or columns) and row-reduce; the nonzero rows of the reduced form (or, equivalently, a maximal linearly independent subset of the original list) give a basis. The number of pivots is .
Does always hold?
No, only when . In general the correct relation, proved under Dimension Formulas for Subspaces using a basis-extension argument, is . Whenever and share a nonzero common vector, the naive sum overcounts, because spanning vectors from get effectively counted twice when you simply add the dimensions. The sum-of-subspaces construction itself, however, is always well-defined regardless of whether ; the special case is precisely what earns the name Direct Sums of Subspaces.
Can I take the sum of infinitely many subspaces?
The definition given here is stated for a finite list , and this is the standard setting in most introductory treatments. When one wants to sum an infinite family of subspaces, the customary definition is the set of all finite sums with each and only finitely many terms used (even though the index set may be infinite); equivalently it is , which still makes sense because span itself is always built from finite linear combinations. All the properties proved here (subspace, smallest containing subspace) extend to this setting with essentially the same arguments applied to finite subfamilies.
Is always different from and from ?
No — it can coincide with one of them. If , then every vector with already lies in (since and is closed under addition), so . This is a completely legitimate and common occurrence, not an exception to the theorem: the theorem guarantees is the smallest subspace containing both and , and when one already contains the other, that smallest subspace is simply the larger of the two.
How does the sum of subspaces relate to solving a "combine two spans" problem in coordinates?
If you are given two spanning sets in and asked for a description of the combined subspace, the sum construction tells you precisely what to do: stack all the given vectors together and take their span (Part 2 of the theorem). Any subsequent computation — finding a basis, computing dimension, testing membership of a target vector — is then just standard span/basis machinery from Coordinates Relative to a Basis applied to this single combined spanning list, with no additional theory needed beyond recognizing that the sum equals this span.