Sums of Subspaces

Suppose you have two planes through the origin in R3\mathbb{R}^3. 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 R3\mathbb{R}^3 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.

Key takeaways
  • For subspaces U1,…,UkU_1,\dots,U_k of a vector space VV, the sum U1+⋯+UkU_1+\cdots+U_k is the set of all vectors expressible as u1+⋯+uku_1+\cdots+u_k with ui∈Uiu_i \in U_i.
  • The sum equals span⁡(U1∪⋯∪Uk)\operatorname{span}(U_1 \cup \cdots \cup U_k): it is exactly the span of the union of the subspaces.
  • The sum is always a subspace of VV, and it is the smallest subspace containing every UiU_i.
  • 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, span⁡(v1,…,vn)=span⁡(v1)+⋯+span⁡(vn)\operatorname{span}(v_1,\dots,v_n) = \operatorname{span}(v_1) + \cdots + \operatorname{span}(v_n).
  • 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 dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U+W) = \dim U + \dim W - \dim(U \cap W)?

DefinitionSum of Subspaces

Let VV be a vector space over a field F\mathbb{F}, and let U1,U2,…,UkU_1, U_2, \dots, U_k be subspaces of VV (with k≥1k \geq 1 a finite integer). The sum of U1,…,UkU_1,\dots,U_k, denoted

U1+U2+⋯+Uk,U_1 + U_2 + \cdots + U_k,

is the set

U1+⋯+Uk:={ u1+u2+⋯+uk  :  ui∈Ui for each i=1,…,k }.U_1 + \cdots + U_k := \{\, u_1 + u_2 + \cdots + u_k \;:\; u_i \in U_i \text{ for each } i = 1,\dots,k \,\}.

That is, it consists of all vectors in VV that can be written as a sum of one vector from each subspace UiU_i.

Intuition

Picture two lines through the origin in R2\mathbb{R}^2 that are not equal to each other — say U1=span⁡(1,0)U_1 = \operatorname{span}(1,0) and U2=span⁡(0,1)U_2 = \operatorname{span}(0,1). Their union U1∪U2U_1 \cup U_2 is the "plus sign" shape consisting of both axes. This union is not a subspace: the vector (1,0)∈U1(1,0) \in U_1 and the vector (0,1)∈U2(0,1) \in U_2 both lie in the union, but their sum (1,1)(1,1) lies on neither axis, so it is not in U1∪U2U_1 \cup U_2. The union fails to be closed under addition. The sum U1+U2U_1 + U_2 repairs this defect by declaring that every such combination u1+u2u_1+u_2 must be included. In this example, U1+U2=R2U_1+U_2 = \mathbb{R}^2, because every vector (x,y)(x,y) can be written as (x,0)+(0,y)(x,0)+(0,y) with (x,0)∈U1(x,0)\in U_1 and (0,y)∈U2(0,y)\in U_2. 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 R3\mathbb{R}^3: two distinct planes through the origin intersect in a line, but their sum is forced to be all of R3\mathbb{R}^3, since two planes already contain enough independent directions to reach every vector by summation.

Figure
Union of two lines (not a subspace) versus their sum (all of R2\mathbb{R}^2)
Union U₁ ∪ U₂ U₁ = span(1,0) U₂ = span(0,1) (1,0) (0,1) (1,1) ∉ union Sum U₁ + U₂ = ℝ² (1,1) ∈ sum every point reachable as u₁ + u₂
TheoremThe Sum of Subspaces Is a Subspace, Equal to the Span of the Union

Let VV be a vector space over F\mathbb{F} and let U1,…,UkU_1, \dots, U_k be subspaces of VV. Then: 1. U1+⋯+UkU_1 + \cdots + U_k is a subspace of VV. 2. U1+⋯+Uk=span⁡(U1∪U2∪⋯∪Uk)U_1 + \cdots + U_k = \operatorname{span}(U_1 \cup U_2 \cup \cdots \cup U_k). 3. U1+⋯+UkU_1 + \cdots + U_k is the smallest subspace of VV containing every UiU_i: if WW is any subspace of VV with Ui⊆WU_i \subseteq W for all ii, then U1+⋯+Uk⊆WU_1 + \cdots + U_k \subseteq W.

Proof

We prove each part in turn, using only the definition of subspace and of span. Recall that for a set S⊆VS \subseteq V, the span span⁡(S)\operatorname{span}(S) is defined as the set of all finite linear combinations of vectors in SS, and it is a known fact (established when spans are introduced) that span⁡(S)\operatorname{span}(S) is always a subspace of VV and is the smallest subspace containing SS. 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: U1+⋯+UkU_1+\cdots+U_k 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 UiU_i is a subspace, 0∈Ui0 \in U_i for every ii. Hence 0=0+0+⋯+0∈U1+⋯+Uk0 = 0 + 0 + \cdots + 0 \in U_1+\cdots+U_k, choosing the zero vector from each UiU_i. Closed under addition. Let x,y∈U1+⋯+Ukx, y \in U_1+\cdots+U_k. By definition there exist u1,…,uku_1,\dots,u_k with ui∈Uiu_i \in U_i and x=u1+⋯+ukx = u_1+\cdots+u_k, and there exist w1,…,wkw_1,\dots,w_k with wi∈Uiw_i \in U_i and y=w1+⋯+wky = w_1+\cdots+w_k. Since each UiU_i is a subspace, it is closed under addition, so ui+wi∈Uiu_i + w_i \in U_i for each ii. By commutativity and associativity of vector addition,

x+y=(u1+w1)+(u2+w2)+⋯+(uk+wk),x+y = (u_1+w_1) + (u_2+w_2) + \cdots + (u_k+w_k),

which exhibits x+yx+y as a sum of one vector from each UiU_i (namely ui+wi∈Uiu_i+w_i \in U_i). Hence x+y∈U1+⋯+Ukx+y \in U_1+\cdots+U_k. Closed under scalar multiplication. Let x∈U1+⋯+Ukx \in U_1+\cdots+U_k, so x=u1+⋯+ukx = u_1+\cdots+u_k with ui∈Uiu_i \in U_i, and let λ∈F\lambda \in \mathbb{F}. Since each UiU_i is a subspace, it is closed under scalar multiplication, so λui∈Ui\lambda u_i \in U_i for each ii. By the distributive law in VV,

λx=λu1+λu2+⋯+λuk,\lambda x = \lambda u_1 + \lambda u_2 + \cdots + \lambda u_k,

which exhibits λx\lambda x as a sum of one vector from each UiU_i. Hence λx∈U1+⋯+Uk\lambda x \in U_1+\cdots+U_k. All three conditions hold, so U1+⋯+UkU_1+\cdots+U_k is a subspace of VV.

Part 2: U1+⋯+Uk=span⁡(U1∪⋯∪Uk)U_1+\cdots+U_k = \operatorname{span}(U_1\cup\cdots\cup U_k). We show the two sets are equal by proving each is a subset of the other. (⊆\subseteq) Let x∈U1+⋯+Ukx \in U_1+\cdots+U_k, so x=u1+⋯+ukx = u_1+\cdots+u_k with ui∈Uiu_i \in U_i for each ii. Each uiu_i lies in Ui⊆U1∪⋯∪UkU_i \subseteq U_1\cup\cdots\cup U_k. The expression u1+⋯+uku_1+\cdots+u_k is (in particular) a linear combination of vectors from U1∪⋯∪UkU_1\cup\cdots\cup U_k — namely the combination with all coefficients equal to 11 — so x∈span⁡(U1∪⋯∪Uk)x \in \operatorname{span}(U_1\cup\cdots\cup U_k) by the definition of span. (⊇\supseteq) Let x∈span⁡(U1∪⋯∪Uk)x \in \operatorname{span}(U_1\cup\cdots\cup U_k). By definition of span, there exist finitely many vectors v1,…,vm∈U1∪⋯∪Ukv_1,\dots,v_m \in U_1\cup\cdots\cup U_k and scalars c1,…,cm∈Fc_1,\dots,c_m \in \mathbb{F} such that

x=c1v1+c2v2+⋯+cmvm.x = c_1v_1 + c_2v_2 + \cdots + c_mv_m.

Each vjv_j lies in U1∪⋯∪UkU_1\cup\cdots\cup U_k, so each vjv_j belongs to at least one Ui(j)U_{i(j)} (choose one such index i(j)i(j) for each jj, if vjv_j happens to lie in more than one UiU_i; this choice is not required to be unique, only to exist). Since Ui(j)U_{i(j)} is a subspace, it is closed under scalar multiplication, so cjvj∈Ui(j)c_j v_j \in U_{i(j)}. Now group the terms according to which subspace index they were assigned to: for each i∈{1,…,k}i \in \{1,\dots,k\}, let

ui:=∑j:i(j)=icjvj,u_i := \sum_{j : i(j) = i} c_j v_j,

a sum (possibly empty, in which case we set ui=0u_i = 0) of vectors each lying in UiU_i. Since UiU_i is a subspace, it is closed under addition, so this finite sum of elements of UiU_i again lies in UiU_i, i.e. ui∈Uiu_i \in U_i. By construction,

u1+u2+⋯+uk=∑j=1mcjvj=x,u_1 + u_2 + \cdots + u_k = \sum_{j=1}^m c_j v_j = x,

since every term cjvjc_jv_j appears in exactly one group ui(j)u_{i(j)}. This exhibits xx as an element of U1+⋯+UkU_1+\cdots+U_k. Both inclusions hold, so the two sets are equal.

Part 3: U1+⋯+UkU_1+\cdots+U_k is the smallest subspace containing all the UiU_i. First, U1+⋯+UkU_1+\cdots+U_k does contain each UiU_i: given u∈Uiu \in U_i, write u=0+⋯+0+u+0+⋯+0u = 0 + \cdots + 0 + u + 0 + \cdots + 0 (the vector uu in the ii-th slot and the zero vector of each other UjU_j in the remaining slots, which is legitimate since 0∈Uj0 \in U_j for every jj). This exhibits uu as an element of U1+⋯+UkU_1+\cdots+U_k, so Ui⊆U1+⋯+UkU_i \subseteq U_1+\cdots+U_k for every ii. Consequently U1∪⋯∪Uk⊆U1+⋯+UkU_1\cup\cdots\cup U_k \subseteq U_1+\cdots+U_k. Now suppose WW is any subspace of VV with Ui⊆WU_i \subseteq W for every ii. Then U1∪⋯∪Uk⊆WU_1\cup\cdots\cup U_k \subseteq W. By the minimality property of span (part of Span of a Set: the span of a set SS is contained in every subspace containing SS), we get

span⁡(U1∪⋯∪Uk)⊆W.\operatorname{span}(U_1\cup\cdots\cup U_k) \subseteq W.

By Part 2, U1+⋯+Uk=span⁡(U1∪⋯∪Uk)⊆WU_1+\cdots+U_k = \operatorname{span}(U_1\cup\cdots\cup U_k) \subseteq W. This proves that U1+⋯+UkU_1+\cdots+U_k contains every UiU_i and is contained in every subspace WW that contains every UiU_i; that is precisely the statement that it is the smallest such subspace. ■\blacksquare

∎
CorollaryAssociativity and commutativity of sums

Let U1,U2,U3U_1, U_2, U_3 be subspaces of VV. Then

(U1+U2)+U3=U1+(U2+U3)=U1+U2+U3,(U_1+U_2)+U_3 = U_1+(U_2+U_3) = U_1+U_2+U_3,

and for any permutation σ\sigma of {1,…,k}\{1,\dots,k\},

U1+⋯+Uk=Uσ(1)+⋯+Uσ(k).U_1+\cdots+U_k = U_{\sigma(1)}+\cdots+U_{\sigma(k)}.
Proof

By Part 2 of the Sum of Subspaces theorem, U1+U2+U3=span⁡(U1∪U2∪U3)U_1+U_2+U_3 = \operatorname{span}(U_1\cup U_2\cup U_3), and likewise (U1+U2)+U3=span⁡((U1∪U2)∪U3)=span⁡(U1∪U2∪U3)(U_1+U_2)+U_3 = \operatorname{span}\big((U_1\cup U_2)\cup U_3\big) = \operatorname{span}(U_1\cup U_2\cup U_3), 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 span⁡(U1∪U2)\operatorname{span}(U_1 \cup U_2) already contains U1∪U2U_1\cup U_2, and adding U3U_3's union does not change the total set being spanned). Both expressions equal span⁡(U1∪U2∪U3)\operatorname{span}(U_1\cup U_2\cup U_3), hence are equal to each other, proving associativity. Commutativity under permutation follows since U1∪⋯∪UkU_1\cup\cdots\cup U_k is literally a union of sets, and set union does not depend on the order in which the sets are listed, so span⁡(U1∪⋯∪Uk)=span⁡(Uσ(1)∪⋯∪Uσ(k))\operatorname{span}(U_1\cup\cdots\cup U_k) = \operatorname{span}(U_{\sigma(1)}\cup\cdots\cup U_{\sigma(k)}) trivially. ■\blacksquare

∎

Worked examples

Example 1: Two non-trivial planes in R3\mathbb{R}^3 with an asymmetric spanning description. Let V=R3V = \mathbb{R}^3, and define

U=span⁡((1,2,0), (0,1,1)),W=span⁡((1,0,3)).U = \operatorname{span}\big((1,2,0),\,(0,1,1)\big), \qquad W = \operatorname{span}\big((1,0,3)\big).

Here UU is a plane through the origin (it is 2-dimensional, since (1,2,0)(1,2,0) and (0,1,1)(0,1,1) are not parallel), and WW is a line through the origin. We compute U+WU+W. By Part 2 of the theorem,

U+W=span⁡((1,2,0), (0,1,1), (1,0,3)).U+W = \operatorname{span}\big((1,2,0),\,(0,1,1),\,(1,0,3)\big).

To find the dimension and an explicit description, row-reduce the matrix whose rows are these three vectors:

(120011103).\begin{pmatrix} 1 & 2 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 3 \end{pmatrix}.

Subtract row 1 from row 3: row 3 becomes (0,−2,3)(0,-2,3). Add 2×2\times row 2 to the new row 3: (0,−2,3)+2(0,1,1)=(0,0,5)(0,-2,3) + 2(0,1,1) = (0,0,5). Since (0,0,5)≠0(0,0,5) \neq 0, the three original rows are linearly independent (the row-reduced matrix has rank 3, an upper triangular form with nonzero pivots 1,1,51,1,5). Hence {(1,2,0),(0,1,1),(1,0,3)}\{(1,2,0),(0,1,1),(1,0,3)\} is a basis of R3\mathbb{R}^3, so

U+W=span⁡((1,2,0),(0,1,1),(1,0,3))=R3.U + W = \operatorname{span}\big((1,2,0),(0,1,1),(1,0,3)\big) = \mathbb{R}^3.

This matches intuition: a plane and a line not lying in that plane together must span all of R3\mathbb{R}^3. We can verify directly that (1,0,3)∉U(1,0,3) \notin U: if (1,0,3)=a(1,2,0)+b(0,1,1)(1,0,3) = a(1,2,0)+b(0,1,1) for scalars a,ba,b, then comparing first coordinates a=1a=1, comparing third coordinates b=3b=3, but then the second coordinate gives 2a+b=2+3=5≠02a+b = 2+3 = 5 \neq 0, a contradiction. So indeed W⊈UW \not\subseteq U, consistent with the sum growing strictly larger than UU alone (and reaching the whole space, since dim⁡U=2\dim U = 2 already and adding one more independent direction fills R3\mathbb{R}^3).

Example 2: A sum of subspaces of a polynomial space that is not all of the ambient space. Let V=P3(R)V = \mathcal{P}_3(\mathbb{R}), the vector space of real polynomials of degree at most 33, which has dimension 44 with basis {1,x,x2,x3}\{1, x, x^2, x^3\}. Define subspaces

U={ p∈P3(R):p(0)=0 },W=span⁡(1+x2,  x3).U = \{\,p \in \mathcal{P}_3(\mathbb{R}) : p(0) = 0\,\}, \qquad W = \operatorname{span}\big(1 + x^2,\; x^3\big).

First, verify UU is a subspace: it is the kernel of the linear map ev⁡0:P3(R)→R\operatorname{ev}_0 : \mathcal{P}_3(\mathbb{R}) \to \mathbb{R} sending p↦p(0)p \mapsto p(0), and kernels of linear maps are subspaces. Concretely, U=span⁡(x,x2,x3)U = \operatorname{span}(x, x^2, x^3), since a polynomial a0+a1x+a2x2+a3x3a_0 + a_1x+a_2x^2+a_3x^3 satisfies p(0)=a0=0p(0) = a_0 = 0 exactly when its constant term vanishes, and clearly {x,x2,x3}\{x,x^2,x^3\} is a basis of this 33-dimensional subspace (they are the images of standard basis vectors under a coordinate projection, hence linearly independent, and by dimension count they span UU since dim⁡U=3\dim U = 3 by the rank-nullity count on ev⁡0\operatorname{ev}_0). By Part 2 of the theorem,

U+W=span⁡(x, x2, x3, 1+x2, x3)=span⁡(x,x2,x3,1+x2).U + W = \operatorname{span}(x,\,x^2,\,x^3,\,1+x^2,\,x^3) = \operatorname{span}(x, x^2, x^3, 1+x^2).

(We may drop the repeated spanning vector x3x^3 since removing a duplicate from a spanning set does not change its span.) Since 1+x2=1⋅(1)+1⋅(x2)1+x^2 = 1\cdot(1) + 1\cdot(x^2), and x2x^2 is already in the list, the presence of 1+x21+x^2 together with x2x^2 lets us recover the constant polynomial 1=(1+x2)−x21 = (1+x^2) - x^2. So

U+W=span⁡(x,x2,x3,1)=P3(R)=V.U+W = \operatorname{span}(x, x^2, x^3, 1) = \mathcal{P}_3(\mathbb{R}) = V.

Let us double check this is correct and not accidental, by exhibiting an arbitrary a0+a1x+a2x2+a3x3∈Va_0+a_1x+a_2x^2+a_3x^3 \in V as a sum u+wu+w with u∈Uu \in U, w∈Ww \in W. Take

w=a0(1+x2),u=a1x+(a2−a0)x2+a3x3.w = a_0(1+x^2), \qquad u = a_1 x + (a_2 - a_0)x^2 + a_3 x^3.

Indeed u∈Uu \in U since its constant term is 00, and w∈Ww \in W since it is a scalar multiple of 1+x21+x^2. Their sum is

u+w=a0+a0x2+a1x+(a2−a0)x2+a3x3=a0+a1x+a2x2+a3x3,u + w = a_0 + a_0x^2 + a_1x + (a_2-a_0)x^2 + a_3x^3 = a_0 + a_1x + a_2x^2 + a_3x^3,

as required (the x2x^2-coefficients a0+(a2−a0)=a2a_0 + (a_2-a_0) = a_2 combine correctly). This confirms U+W=VU+W = V by direct construction, corroborating the spanning-set computation. Note by contrast that if we had instead taken W′=span⁡(x3)W' = \operatorname{span}(x^3) alone, then U+W′=span⁡(x,x2,x3)=UU + W' = \operatorname{span}(x,x^2,x^3) = U itself, since x3∈Ux^3 \in U already — a reminder that summing in a subspace that is already contained in UU changes nothing, consistent with Part 3 (the sum is the smallest subspace containing both, and if W′⊆UW' \subseteq U then UU itself already contains both, so the smallest such subspace is UU).

CounterexampleWhy we sum subspaces instead of merely taking unions

The entire reason for defining U1+⋯+UkU_1+\cdots+U_k rather than simply using U1∪⋯∪UkU_1 \cup \cdots \cup U_k is that the union of subspaces generally fails to be a subspace — it fails the closure-under-addition hypothesis. We exhibit this concretely. Let V=R2V = \mathbb{R}^2, and let

U1=span⁡(1,0)={(t,0):t∈R},U2=span⁡(0,1)={(0,t):t∈R}.U_1 = \operatorname{span}(1,0) = \{(t,0): t \in \mathbb{R}\}, \qquad U_2 = \operatorname{span}(0,1) = \{(0,t): t \in \mathbb{R}\}.

Both U1U_1 and U2U_2 are subspaces of R2\mathbb{R}^2 (each is the span of a single vector, hence a subspace by the span-is-a-subspace fact). Consider S:=U1∪U2S := U_1 \cup U_2. We claim SS is not a subspace of R2\mathbb{R}^2, specifically because it fails closure under addition. Take x=(1,0)∈U1⊆Sx = (1,0) \in U_1 \subseteq S and y=(0,1)∈U2⊆Sy = (0,1) \in U_2 \subseteq S. Then

x+y=(1,1).x + y = (1,1).

Is (1,1)∈S(1,1) \in S? We check both possibilities. If (1,1)∈U1(1,1) \in U_1, then (1,1)=(t,0)(1,1) = (t,0) for some t∈Rt \in \mathbb{R}, forcing the second coordinate 1=01 = 0, a contradiction. If (1,1)∈U2(1,1) \in U_2, then (1,1)=(0,t)(1,1) = (0,t) for some tt, forcing the first coordinate 1=01=0, again a contradiction. So (1,1)∉U1(1,1) \notin U_1 and (1,1)∉U2(1,1) \notin U_2, hence (1,1)∉U1∪U2=S(1,1) \notin U_1 \cup U_2 = S. We have exhibited x,y∈Sx, y \in S with x+y∉Sx + y \notin S. Therefore SS is not closed under addition, and in particular SS is not a subspace of R2\mathbb{R}^2. 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 U1+U2U_1+U_2 — breaks the subspace property. Indeed U1+U2=R2⊋U1∪U2U_1 + U_2 = \mathbb{R}^2 \supsetneq U_1 \cup U_2, and it is precisely the extra vectors like (1,1)(1,1), thrown in by the summation process, that restore closure.

Scope, edge cases & common traps

SituationWhat happensWhy
k=1k=1 (sum of one subspace)U1+⋯U_1 + \cdots with only U1U_1 present equals U1U_1Trivial case of the definition: sums with one summand are just that summand
One Ui={0}U_i = \{0\}Sum unaffected: U1+{0}=U1U_1 + \{0\} = U_1Adding the zero vector from the trivial subspace changes nothing
Ui⊆UjU_i \subseteq U_j for some i≠ji \neq jUiU_i contributes nothing new: sum equals sum with UiU_i omittedUi⊆UjU_i \subseteq U_j already, so Ui∪Uj=UjU_i \cup U_j = U_j, and span of the union is unaffected
Confusing sum with unionCommon error: assuming U1+U2=U1∪U2U_1+U_2 = U_1 \cup U_2False in general — see the counterexample; sum is generally strictly larger
Infinite index setDefinition given here is for finite kk onlySums of infinitely many subspaces require care (e.g. only finitely many nonzero summands allowed) and are a separate construction
Overlap of UiU_i'sSum does not "double count" overlap; dimension of sum can be less than ∑dim⁡Ui\sum \dim U_iForeshadows the Dimension Formulas for Subspaces, e.g. dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U+W) = \dim U + \dim W - \dim(U\cap W)

The mathematician behind it

Origins · 1 minHermann Günther Grassmann and how this was discovered
HG
Hermann Günther Grassmann
1809–1877 · Prussian mathematician, linguist, and physicist

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.

History
- 1809 — Hermann Grassmann is born in Stettin, in the Kingdom of Prussia.
- 1844 — Publishes Die lineale Ausdehnungslehre ("Theory of Linear Extension"), introducing an abstract algebra of extended magnitudes, including operations that amount to sums and combinations of subspaces of arbitrary dimension.
- 1862 — Publishes a revised and clarified edition of the Ausdehnungslehre, still met with limited recognition by contemporaries.
- 1870s — His ideas are gradually absorbed into the mathematical mainstream, influencing later formalizations of vector spaces, including what becomes known as the dimension formula for sums of subspaces (the Grassmann formula or Grassmann–Sylvester formula, foreshadowed here and developed fully under Dimension Formulas for Subspaces).
- 1877 — Grassmann dies in Stettin, his foundational contributions to linear algebra only fully recognized posthumously.

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 U1∪U2U_1 \cup U_2 consists only of vectors that lie entirely in U1U_1 or entirely in U2U_2, 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 R2\mathbb{R}^2). The sum U1+U2U_1+U_2 consists of all vectors obtainable as u1+u2u_1+u_2 with u1∈U1u_1\in U_1, u2∈U2u_2\in U_2, which is a strictly larger set in general, and it is always a subspace. The precise relationship is U1∪U2⊆U1+U2=span⁡(U1∪U2)U_1\cup U_2 \subseteq U_1+U_2 = \operatorname{span}(U_1\cup U_2), with equality of the first inclusion holding only in the degenerate case where one subspace contains the other.

How do I compute U+WU+W in practice, given spanning sets for UU and WW?

Concatenate the spanning sets: if U=span⁡(u1,…,up)U = \operatorname{span}(u_1,\dots,u_p) and W=span⁡(w1,…,wq)W = \operatorname{span}(w_1,\dots,w_q), then U+W=span⁡(u1,…,up,w1,…,wq)U+W = \operatorname{span}(u_1,\dots,u_p,w_1,\dots,w_q), a direct consequence of Part 2 of the main theorem. To find a basis of U+WU+W and its dimension, form a matrix with these p+qp+q 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 dim⁡(U+W)\dim(U+W).

Does dim⁡(U+W)=dim⁡U+dim⁡W\dim(U+W) = \dim U + \dim W always hold?

No, only when U∩W={0}U \cap W = \{0\}. In general the correct relation, proved under Dimension Formulas for Subspaces using a basis-extension argument, is dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U+W) = \dim U + \dim W - \dim(U\cap W). Whenever UU and WW share a nonzero common vector, the naive sum dim⁡U+dim⁡W\dim U + \dim W overcounts, because spanning vectors from U∩WU\cap W get effectively counted twice when you simply add the dimensions. The sum-of-subspaces construction itself, however, is always well-defined regardless of whether U∩W={0}U\cap W = \{0\}; the special case U∩W={0}U \cap W = \{0\} 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 U1,…,UkU_1,\dots,U_k, and this is the standard setting in most introductory treatments. When one wants to sum an infinite family {Uα}α∈A\{U_\alpha\}_{\alpha \in A} of subspaces, the customary definition is the set of all finite sums uα1+⋯+uαnu_{\alpha_1}+\cdots+u_{\alpha_n} with each uαi∈Uαiu_{\alpha_i} \in U_{\alpha_i} and only finitely many terms used (even though the index set AA may be infinite); equivalently it is span⁡(⋃α∈AUα)\operatorname{span}\big(\bigcup_{\alpha\in A} U_\alpha\big), 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 U+WU+W always different from UU and from WW?

No — it can coincide with one of them. If W⊆UW \subseteq U, then every vector u+wu+w with u∈U,w∈Wu \in U, w\in W already lies in UU (since W⊆UW \subseteq U and UU is closed under addition), so U+W=UU+W = U. This is a completely legitimate and common occurrence, not an exception to the theorem: the theorem guarantees U+WU+W is the smallest subspace containing both UU and WW, 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 Fn\mathbb{F}^n 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.

Before this

Where this leads