Direct Sums of Subspaces

Suppose a vector space VV is built from two subspaces UU and WW by taking all sums u+wu+w. A natural question arises immediately: can every vector in VV be written as such a sum in only one way? This is not automatic. If UU and WW overlap nontrivially, a single vector can be re-expressed in infinitely many ways. This happens by shuffling a piece back and forth between the two pieces of the sum. The direct sum is precisely the situation where this ambiguity vanishes. It is where the decomposition into a UU-part and a WW-part is forced and unique. This idea matters because uniqueness of decomposition is what lets us treat VV as though it were literally built out of independent, non-interacting pieces. Once a space splits as a direct sum U⊕WU \oplus W, linear maps, dimension counts, and matrix representations all become "block-diagonal." A linear operator can be studied separately on UU and on WW. A basis of VV can be assembled by concatenating bases of UU and WW. Many arguments in advanced linear algebra reduce to inducting one summand at a time. Direct sums are the algebraic incarnation of the geometric idea of "independent directions" or "complementary subspaces." They generalize the decomposition of the plane into an xx-axis and a yy-axis. The big picture is that Sums of Subspaces gives us a way to combine subspaces. But only the direct sum gives us a way to decompose a space into pieces. These pieces behave like separate coordinate systems glued together. This distinction — sum versus direct sum — is one of the most consequential dichotomies in the subject. It underlies the existence of complementary subspaces in finite dimensions. It underlies the block structure exploited when computing dimensions. Eventually it underlies the construction of Quotient Spaces, where V/UV/U can be identified with any complement of UU. This works precisely because such complements realize VV as a direct sum. This article gives the exact definition of an internal direct sum. It proves the fundamental equivalence between "unique decomposition," "zero-vector-only decomposition," and (for two subspaces) "trivial intersection." It establishes the existence of complements in finite-dimensional spaces. Every claim is proved from first principles. This builds only on the notion of a sum of subspaces and on basic facts about linear independence and spanning.

Key takeaways
  • A sum U+WU + W becomes a direct sum U⊕WU \oplus W exactly when every vector of U+WU+W has a unique representation as u+wu+w.
  • Uniqueness of the decomposition of every vector is equivalent to uniqueness of the decomposition of 00 alone.
  • For two subspaces, U⊕WU \oplus W holds if and only if U∩W={0}U \cap W = \{0\} — the trivial-intersection criterion.
  • For more than two subspaces, pairwise trivial intersection is not enough; a stronger condition is required.
  • Every subspace UU of a finite-dimensional space VV has a complement WW, with V=U⊕WV = U \oplus W, though WW is never unique unless U={0}U = \{0\} or U=VU=V.
  • Key idea: direct sum = sum with no redundancy, and redundancy is detected by checking whether 00 decomposes only as 0=0+00 = 0 + 0.

Where this lives today

Direct sum decompositions are the backbone of eigenspace theory: when an operator is diagonalizable, the whole space splits as a direct sum of its eigenspaces, and this is exactly what makes diagonalization meaningful — coordinates along each eigenspace evolve independently under the operator. The same idea underlies the primary decomposition and Jordan form for operators that are not diagonalizable, where generalized eigenspaces replace eigenspaces but the direct-sum structure persists. In signal processing and numerical linear algebra, orthogonal direct sum decompositions (V=U⊕U⊥V = U \oplus U^\perp) are the basis of least-squares projection and the singular value decomposition, letting a signal be split into a "modeled" component and a "residual" component that do not interfere with each other. In coding theory and cryptography, error-correcting codes are frequently constructed as direct sum decompositions of a vector space over a finite field, so that information and redundancy occupy cleanly separated coordinates. In representation theory and quantum mechanics, decomposing a representation or a Hilbert space into a direct sum of irreducible pieces is precisely how physicists classify particle states and how algebraists classify group actions; the uniqueness of decomposition guaranteed by the theorem here is what makes such classifications well-defined. Finally, direct sums are the immediate stepping stone to Quotient Spaces: given any complement WW of UU in VV, the quotient V/UV/U is naturally isomorphic to WW, and to the Dimension Formulas for Subspaces that compute dim⁡(U+W)\dim(U+W) in terms of dim⁡U\dim U, dim⁡W\dim W, and dim⁡(U∩W)\dim(U\cap W), specializing beautifully to dim⁡U+dim⁡W\dim U + \dim W exactly in the direct-sum case.

Ask the tutor: If V=U1⊕U2⊕U3V = U_1 \oplus U_2 \oplus U_3, why must Ui∩Uj={0}U_i \cap U_j = \{0\} for every pair i≠ji \neq j, and is that condition alone ever sufficient?

DefinitionInternal Direct Sum

Let VV be a vector space over a field F\mathbb{F}, and let U1,…,UmU_1, \dots, U_m be subspaces of VV. The sum

U1+U2+⋯+Um={ u1+u2+⋯+um:ui∈Ui for each i }U_1 + U_2 + \cdots + U_m = \{\, u_1 + u_2 + \cdots + u_m : u_i \in U_i \text{ for each } i \,\}

is called a direct sum, written

U1⊕U2⊕⋯⊕Um,U_1 \oplus U_2 \oplus \cdots \oplus U_m,

if every element of U1+⋯+UmU_1 + \cdots + U_m can be written in only one way as a sum u1+⋯+umu_1 + \cdots + u_m with ui∈Uiu_i \in U_i. That is, whenever

u1+⋯+um=u1′+⋯+um′,ui,ui′∈Ui,u_1 + \cdots + u_m = u_1' + \cdots + u_m', \qquad u_i, u_i' \in U_i,

it follows that ui=ui′u_i = u_i' for every i=1,…,mi = 1, \dots, m. When m=2m=2 this reads: U+WU + W is direct, written U⊕WU \oplus W, when every v∈U+Wv \in U+W has a unique expression v=u+wv = u + w with u∈Uu \in U, w∈Ww \in W. A subspace WW with V=U⊕WV = U \oplus W is called a complement of UU in VV.

Intuition

Picture V=R2V = \mathbb{R}^2, with UU the xx-axis and WW the yy-axis. Every point (a,b)(a,b) splits as (a,0)+(0,b)(a,0) + (0,b), and this is the only way to split it into a horizontal part plus a vertical part. That uniqueness is what a direct sum captures. Contrast this with UU the xx-axis and WW the line y=xy = x: the point (2,2)(2,2) can be written as (2,2)=(0,0)+(2,2)(2,2) = (0,0) + (2,2), or as (2,2)=(2,0)+(0,2)(2,2) = (2,0)+(0,2), or as (−3,0)+(5,5)⋅15(-3,0) + (5,5) \cdot \frac15-type combinations — infinitely many ways, since U∩W≠{0}U \cap W \ne \{0\} only in the axis-vs-axis case is false; here U∩W={0}U \cap W = \{0\} actually still holds since the xx-axis meets y=xy=x only at the origin, so this sum is direct. The genuinely bad case is U=WU = W: then (2,2)=u+w(2,2) = u + w can absorb any vector back and forth between the two copies, and uniqueness fails completely. The mental picture to keep is: a direct sum decomposition is a coordinate system. Each summand UiU_i is one "axis" (possibly high-dimensional), and a vector's decomposition is the tuple of its coordinates along each axis. Non-directness is exactly redundancy — some nonzero vector lies simultaneously in two of the summands (or, for three or more summands, in one summand and in the sum of the others), so a piece can be shifted between two representations without changing the total.

Figure
Direct sum R2=U⊕W\mathbb{R}^2 = U \oplus W versus a failed decomposition when U=WU=W
U (x-axis) W (y-axis) v=(2,2) u=(2,0) w=(0,2) Unique split: v = u + w, only one way U = W (same line) v=(180,0) v = (30,0)+(150,0) v = (100,0)+(80,0) v = (-40,0)+(220,0) ... Infinitely many splits — not direct
TheoremEquivalent Characterizations of a Direct Sum

Let VV be a vector space over F\mathbb{F} and let U1,…,UmU_1, \dots, U_m be subspaces of VV. The following are equivalent.

(a) U1+⋯+UmU_1 + \cdots + U_m is direct (every element has a unique decomposition).

(b) The only way to write 0=u1+⋯+um0 = u_1 + \cdots + u_m with ui∈Uiu_i \in U_i is u1=⋯=um=0u_1 = \cdots = u_m = 0.

(c) For each i∈{1,…,m}i \in \{1,\dots,m\},

Ui∩(U1+⋯+Ui−1+Ui+1+⋯+Um)={0}.U_i \cap \big(U_1 + \cdots + U_{i-1} + U_{i+1} + \cdots + U_m\big) = \{0\}.

Moreover, when m=2m = 2, condition (c) reduces to the single statement

U1∩U2={0}.U_1 \cap U_2 = \{0\}.
Proof

We prove (a) ⇒\Rightarrow (b) ⇒\Rightarrow (c) ⇒\Rightarrow (a), a cyclic chain of implications, which establishes the equivalence of all three statements. The proof technique is direct manipulation of the defining sum equations together with linear algebra of the difference of two representations.

(a) ⇒\Rightarrow (b). Assume U1+⋯+UmU_1 + \cdots + U_m is direct. The vector 0∈V0 \in V certainly lies in U1+⋯+UmU_1+\cdots+U_m, since 0=0+⋯+00 = 0 + \cdots + 0 with 0∈Ui0 \in U_i for every ii (each UiU_i is a subspace, hence contains 00). By hypothesis (a), 00 has a unique decomposition as a sum of elements of the UiU_i. Since 0=0+⋯+00 = 0 + \cdots + 0 is one such decomposition, uniqueness forces every decomposition of 00 to equal this one. Hence if 0=u1+⋯+um0 = u_1 + \cdots + u_m with ui∈Uiu_i \in U_i, then ui=0u_i = 0 for all ii. This is exactly (b).

(b) ⇒\Rightarrow (c). Assume (b). Fix ii, and suppose

x∈Ui∩(∑j≠iUj).x \in U_i \cap \Big(\sum_{j \ne i} U_j\Big).

Then x∈Uix \in U_i, and also x=∑j≠iujx = \sum_{j \ne i} u_j for some uj∈Uju_j \in U_j (j≠ij \ne i), since xx lies in the sum of the other subspaces. Set ui:=−x∈Uiu_i := -x \in U_i (this is in UiU_i because UiU_i is a subspace, hence closed under scalar multiplication by −1-1, and x∈Uix \in U_i). Then

0=ui+∑j≠iuj,0 = u_i + \sum_{j \ne i} u_j,

which is a decomposition of 00 as a sum of an element of each UkU_k (k=1,…,mk = 1,\dots,m). By hypothesis (b), every term in this decomposition of 00 must be 00; in particular ui=0u_i = 0, i.e. −x=0-x = 0, i.e. x=0x = 0. Since xx was an arbitrary element of Ui∩∑j≠iUjU_i \cap \sum_{j\ne i} U_j, we conclude this intersection is {0}\{0\}. As ii was arbitrary, (c) holds for every ii.

(c) ⇒\Rightarrow (a). Assume (c) holds for every ii. Let v∈U1+⋯+Umv \in U_1 + \cdots + U_m and suppose

v=u1+⋯+um=u1′+⋯+um′,ui,ui′∈Ui for all i.v = u_1 + \cdots + u_m = u_1' + \cdots + u_m', \qquad u_i, u_i' \in U_i \text{ for all } i.

Subtracting the two expressions (valid since VV is a vector space and subtraction is defined),

0=(u1−u1′)+(u2−u2′)+⋯+(um−um′).0 = (u_1 - u_1') + (u_2 - u_2') + \cdots + (u_m - u_m').

Fix an index ii. Rearranging,

ui−ui′=−∑j≠i(uj−uj′).u_i - u_i' = -\sum_{j \ne i} (u_j - u_j').

The left side lies in UiU_i (since UiU_i is a subspace and ui,ui′∈Uiu_i, u_i' \in U_i). The right side lies in ∑j≠iUj\sum_{j\ne i} U_j, because each uj−uj′∈Uju_j - u_j' \in U_j (again since each UjU_j is a subspace) and a sum of elements from the various UjU_j (j≠ij\ne i) lies in ∑j≠iUj\sum_{j \ne i} U_j by definition of a sum of subspaces. Hence

ui−ui′∈Ui∩∑j≠iUj={0}u_i - u_i' \in U_i \cap \sum_{j \ne i} U_j = \{0\}

by hypothesis (c). Therefore ui−ui′=0u_i - u_i' = 0, i.e., ui=ui′u_i = u_i'. Since ii was arbitrary, ui=ui′u_i = u_i' for all i=1,…,mi = 1,\dots,m, proving that the decomposition of vv is unique. As v∈U1+⋯+Umv \in U_1+\cdots+U_m was arbitrary, the sum is direct. This is (a).

The case m=2m=2. When m=2m = 2, condition (c) for i=1i=1 reads U1∩U2={0}U_1 \cap U_2 = \{0\}, and for i=2i=2 reads U2∩U1={0}U_2 \cap U_1 = \{0\} — the same condition stated twice (intersection is symmetric). So (c) collapses to the single equation U1∩U2={0}U_1 \cap U_2 = \{0\}, as claimed. ■\blacksquare

∎
CorollaryTrivial-Intersection Criterion for Two Subspaces

Let U,WU, W be subspaces of a vector space VV. Then

V=U⊕WV = U \oplus W

if and only if

V=U+WandU∩W={0}.V = U + W \quad \text{and} \quad U \cap W = \{0\}.
Proof

This is an immediate application of the equivalence (a) ⇔\Leftrightarrow (c) from Direct Sums of Subspaces with m=2m=2, combined with the requirement V=U+WV = U+W (so that every vector of VV, not merely of U+WU+W, is covered). If V=U⊕WV = U \oplus W then in particular V=U+WV = U + W and, by the theorem, U∩W={0}U \cap W = \{0\}. Conversely if V=U+WV = U+W and U∩W={0}U \cap W = \{0\}, the theorem shows the sum U+WU+W is direct, and since U+W=VU + W = V, we get V=U⊕WV = U \oplus W. ■\blacksquare

∎

Worked examples

Example 1 — Polynomials split by low-degree and a shifted complement. Let V=P3(R)V = \mathcal{P}_3(\mathbb{R}), the space of real polynomials of degree at most 33, so dim⁡V=4\dim V = 4 with basis 1,x,x2,x31, x, x^2, x^3. Let

U={a0+a1x:a0,a1∈R}=span⁡(1,x),U = \{a_0 + a_1 x : a_0, a_1 \in \mathbb{R}\} = \operatorname{span}(1, x),

the polynomials of degree ≤1\le 1. Let

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

Note WW is not simply "degree 22 and 33 terms"; it is deliberately tilted to make the example non-trivial. Claim: V=U⊕WV = U \oplus W. First, dim⁡U=2\dim U = 2 (basis 1,x1,x) and dim⁡W=2\dim W = 2, since x2−3xx^2 - 3x and x3+2xx^3+2x are linearly independent: no scalar multiple of x2−3xx^2-3x (degree 22) can equal a nonzero multiple of x3+2xx^3+2x (degree 33), and neither is a scalar multiple of the other by direct inspection of degrees.

Check U∩W={0}U \cap W = \{0\}. Suppose p∈U∩Wp \in U \cap W. Since p∈Up \in U, p=a0+a1xp = a_0 + a_1 x for some a0,a1a_0, a_1. Since p∈Wp \in W, p=s(x2−3x)+t(x3+2x)p = s(x^2 - 3x) + t(x^3+2x) for some s,t∈Rs,t \in \mathbb{R}, i.e.

p=tx3+sx2+(2t−3s)x.p = t x^3 + s x^2 + (2t - 3s) x.

Equating this with a0+a1xa_0 + a_1 x (matching coefficients of 1,x,x2,x31, x, x^2, x^3, which is valid since 1,x,x2,x31,x,x^2,x^3 is a basis of VV):

x3: t=0,x2: s=0,x: 2t−3s=a1,1: a0=0.x^3: \ t = 0, \qquad x^2: \ s = 0, \qquad x: \ 2t - 3s = a_1, \qquad 1: \ a_0 = 0.

From t=0,s=0t=0, s=0 we get a1=0a_1 = 0 as well, and a0=0a_0 = 0. Hence p=0p = 0. So U∩W={0}U \cap W = \{0\}.

Check U+W=VU + W = V. We show 1,x,x2−3x,x3+2x1, x, x^2-3x, x^3+2x span VV and, since dim⁡V=4\dim V = 4 and we have 44 vectors, it suffices to check they are linearly independent (in a finite-dimensional space, a spanning set of size dim⁡V\dim V is automatically a basis — this is a standard consequence of the dimension theorem for spanning/independent sets). Suppose

c1(1)+c2(x)+c3(x2−3x)+c4(x3+2x)=0.c_1(1) + c_2(x) + c_3(x^2 - 3x) + c_4(x^3+2x) = 0.

Collecting by degree:

c4x3+c3x2+(c2−3c3+2c4)x+c1=0.c_4 x^3 + c_3 x^2 + (c_2 - 3c_3 + 2c_4)x + c_1 = 0.

Matching coefficients against 1,x,x2,x31,x,x^2,x^3 (a basis, so all coefficients must vanish): c4=0c_4 = 0, c3=0c_3 = 0, then c2−3(0)+2(0)=c2=0c_2 - 3(0)+2(0) = c_2 = 0, and c1=0c_1 = 0. So all ci=0c_i = 0: the four vectors are linearly independent, hence a basis, hence U+W=span⁡(1,x,x2−3x,x3+2x)=VU + W = \operatorname{span}(1,x,x^2-3x,x^3+2x) = V. By the corollary, V=U⊕WV = U \oplus W. As an explicit instance, decompose p(x)=3+5x−2x2+7x3p(x) = 3 + 5x - 2x^2 + 7x^3. We want p=u+wp = u + w with u=a0+a1x∈Uu = a_0+a_1x \in U and w=s(x2−3x)+t(x3+2x)∈Ww = s(x^2-3x)+t(x^3+2x) \in W. Matching coefficients as above: t=7t = 7 (from x3x^3), s=−2s = -2 (from x2x^2), a0=3a_0 = 3 (from constant term), and from the xx-coefficient, a1+(2t−3s)=5a_1 + (2t - 3s) = 5, i.e., a1+(14+6)=5a_1 + (14 + 6) = 5, so a1=5−20=−15a_1 = 5 - 20 = -15. Thus

u=3−15x,w=−2(x2−3x)+7(x3+2x)=7x3−2x2+20x,u = 3 - 15x, \qquad w = -2(x^2-3x) + 7(x^3+2x) = 7x^3 - 2x^2 + 20x,

and one checks u+w=3−15x+7x3−2x2+20x=3+5x−2x2+7x3=p(x)u + w = 3 - 15x + 7x^3 - 2x^2 + 20x = 3 + 5x - 2x^2+7x^3 = p(x). ✓. This decomposition is unique by directness, matching the theorem's guarantee.

Example 2 — Three subspaces of R3\mathbb{R}^3: pairwise trivial intersection is not enough. This example simultaneously illustrates directness of three lines and sets up the counterexample below. In R3\mathbb{R}^3, let

U1=span⁡(1,0,0),U2=span⁡(0,1,0),U3=span⁡(1,1,1).U_1 = \operatorname{span}(1,0,0), \quad U_2 = \operatorname{span}(0,1,0), \quad U_3 = \operatorname{span}(1,1,1).

Each UiU_i is 11-dimensional. We test condition (c) of the theorem directly, for each ii. For i=1i=1: is U1∩(U2+U3)={0}U_1 \cap (U_2+U_3) = \{0\}? A general element of U2+U3U_2 + U_3 is b(0,1,0)+c(1,1,1)=(c,b+c,c)b(0,1,0) + c(1,1,1) = (c, b+c, c). For this to lie in U1=span⁡(1,0,0)U_1 = \operatorname{span}(1,0,0) we need the second and third coordinates to vanish: b+c=0b + c = 0 and c=0c = 0, forcing b=c=0b=c=0, giving the zero vector. So U1∩(U2+U3)={0}U_1 \cap (U_2+U_3) = \{0\}. For i=2i=2: is U2∩(U1+U3)={0}U_2 \cap (U_1+U_3) = \{0\}? Elements of U1+U3U_1+U_3: a(1,0,0)+c(1,1,1)=(a+c,c,c)a(1,0,0)+c(1,1,1) = (a+c, c, c). Lying in U2U_2 requires first and third coordinates zero: a+c=0a + c = 0, c=0c=0, so a=c=0a=c=0: zero vector again. Trivial intersection holds. For i=3i=3: is U3∩(U1+U2)={0}U_3 \cap (U_1+U_2) = \{0\}? Elements of U1+U2U_1+U_2 are (a,b,0)(a,b,0); elements of U3U_3 are (c,c,c)(c,c,c). Equality forces c=0c=0 (third coordinate), hence a=b=0a=b=0 too. Trivial intersection holds. All three conditions in (c) hold, so by the theorem U1+U2+U3U_1 + U_2 + U_3 is direct: U1⊕U2⊕U3U_1 \oplus U_2 \oplus U_3. Indeed dim⁡(U1+U2+U3)=1+1+1=3=dim⁡R3\dim(U_1+U_2+U_3) = 1+1+1=3 = \dim \mathbb{R}^3, consistent with the sum being all of R3\mathbb{R}^3 and direct.

CounterexamplePairwise trivial intersection does not imply a direct sum, for three or more subspaces

The theorem's condition (c) requires, for each ii, that UiU_i meet the sum of all the others trivially — not merely that the UiU_i meet each other pairwise trivially. Dropping this to the weaker pairwise condition breaks the equivalence. Let V=R2V = \mathbb{R}^2 and take three lines through the origin:

U1=span⁡(1,0),U2=span⁡(0,1),U3=span⁡(1,1).U_1 = \operatorname{span}(1,0), \qquad U_2 = \operatorname{span}(0,1), \qquad U_3 = \operatorname{span}(1,1).

Pairwise intersections are trivial. U1∩U2={0}U_1 \cap U_2 = \{0\} since a vector (a,0)=(0,b)(a,0) = (0,b) forces a=b=0a=b=0. U1∩U3U_1 \cap U_3: (a,0)=(c,c)(a,0) = (c,c) forces c=0c=0 hence a=0a=0: trivial. U2∩U3U_2 \cap U_3: (0,b)=(c,c)(0,b) = (c,c) forces c=0c=0, hence b=0b=0: trivial. So every pair among U1,U2,U3U_1,U_2,U_3 intersects only in {0}\{0\}.

But the sum U1+U2+U3U_1+U_2+U_3 is not direct. Consider the vector 0∈V0 \in V. We exhibit two genuinely different decompositions:

0=(1,0)+(0,1)+(−1,−1),where (1,0)∈U1, (0,1)∈U2, (−1,−1)∈U3,0 = (1,0) + (0,1) + (-1,-1), \qquad \text{where } (1,0)\in U_1,\ (0,1) \in U_2,\ (-1,-1) \in U_3,

and also the trivial decomposition

0=(0,0)+(0,0)+(0,0).0 = (0,0) + (0,0) + (0,0).

These are two distinct ways to write 00 as u1+u2+u3u_1+u_2+u_3 with ui∈Uiu_i \in U_i — since (1,0)≠(0,0)(1,0) \ne (0,0) — so condition (b) of the theorem fails, hence (by the equivalence) the sum is not direct. Concretely this happens because U3∩(U1+U2)=U3∩R2=U3≠{0}U_3 \cap (U_1+U_2) = U_3 \cap \mathbb{R}^2 = U_3 \ne \{0\}: the third line lies inside the sum of the first two (indeed U1+U2=R2U_1+U_2 = \mathbb{R}^2 already), even though U3U_3 meets U1U_1 and U2U_2 individually only at the origin. This shows precisely why condition (c) must involve UiU_i against the sum of all remaining subspaces, not merely pairwise intersections: pairwise disjointness (in the trivial-intersection sense) is a strictly weaker, insufficient condition once there are three or more summands.

TheoremExistence of Complements in Finite Dimensions

Let VV be a finite-dimensional vector space over F\mathbb{F}, and let UU be a subspace of VV. Then there exists a subspace W⊆VW \subseteq V such that

V=U⊕W.V = U \oplus W.
Proof

The proof technique is basis extension. Since VV is finite-dimensional, UU (as a subspace of a finite-dimensional space) is also finite-dimensional; let u1,…,uku_1, \dots, u_k be a basis of UU (if U={0}U = \{0\}, take k=0k=0 and an empty list, which is a valid — vacuous — basis). Since u1,…,uku_1, \dots, u_k is a linearly independent list in VV, it can be extended to a basis of VV; this is the standard basis-extension theorem for finite-dimensional vector spaces (every linearly independent list in a finite-dimensional space extends to a basis of the whole space). So there exist vectors w1,…,wm∈Vw_1, \dots, w_m \in V such that

u1,…,uk,w1,…,wmu_1, \dots, u_k, w_1, \dots, w_m

is a basis of VV. Define W=span⁡(w1,…,wm)W = \operatorname{span}(w_1, \dots, w_m). We show V=U⊕WV = U \oplus W using the trivial-intersection criterion (Direct Sums of Subspaces, corollary above), which requires proving V=U+WV = U+W and U∩W={0}U \cap W = \{0\}.

V=U+WV = U + W. Let v∈Vv \in V. Since u1,…,uk,w1,…,wmu_1,\dots,u_k,w_1,\dots,w_m is a basis of VV, we may write

v=∑i=1kaiui+∑j=1mbjwjv = \sum_{i=1}^k a_i u_i + \sum_{j=1}^m b_j w_j

for scalars ai,bj∈Fa_i, b_j \in \mathbb{F}. The first sum lies in UU (as U=span⁡(u1,…,uk)U = \operatorname{span}(u_1,\dots,u_k)) and the second in WW. Hence v∈U+Wv \in U + W. Since vv was arbitrary, V⊆U+WV \subseteq U+W; the reverse inclusion U+W⊆VU+W \subseteq V holds because U,W⊆VU, W \subseteq V and VV is closed under addition. So V=U+WV = U+W.

U∩W={0}U \cap W = \{0\}. Let x∈U∩Wx \in U \cap W. Since x∈Ux \in U, x=∑i=1kaiuix = \sum_{i=1}^k a_i u_i for some scalars aia_i. Since x∈Wx \in W, x=∑j=1mbjwjx = \sum_{j=1}^m b_j w_j for some scalars bjb_j. Subtracting,

∑i=1kaiui−∑j=1mbjwj=0.\sum_{i=1}^k a_i u_i - \sum_{j=1}^m b_j w_j = 0.

This is a linear dependence relation among u1,…,uk,w1,…,wmu_1,\dots,u_k,w_1,\dots,w_m. But this list is a basis of VV, hence linearly independent, so every coefficient in this relation must be zero: ai=0a_i = 0 for all ii and −bj=0-b_j = 0, i.e. bj=0b_j = 0, for all jj. Substituting back, x=∑aiui=∑0⋅ui=0x = \sum a_i u_i = \sum 0 \cdot u_i = 0. Hence U∩W={0}U \cap W = \{0\}. By the trivial-intersection criterion, V=U⊕WV = U \oplus W. ■\blacksquare

∎
CorollaryComplements Are Not Unique

If UU is a proper, nonzero subspace of a finite-dimensional space VV (i.e. {0}⊊U⊊V\{0\} \subsetneq U \subsetneq V), then UU has more than one complement in VV.

Proof

Take V=R2V = \mathbb{R}^2 and U=span⁡(1,0)U = \operatorname{span}(1,0) as a representative case to exhibit the phenomenon in general form (the same style of argument applies whenever 0<dim⁡U<dim⁡V0 < \dim U < \dim V). Let W1=span⁡(0,1)W_1 = \operatorname{span}(0,1) and W2=span⁡(1,1)W_2 = \operatorname{span}(1,1). For W1W_1: U∩W1={0}U \cap W_1 = \{0\} (shown in Example 2 style: (a,0)=(0,b)⇒a=b=0(a,0)=(0,b) \Rightarrow a=b=0) and U+W1=R2U + W_1 = \mathbb{R}^2 since (1,0),(0,1)(1,0),(0,1) span R2\mathbb{R}^2. By the trivial-intersection criterion, V=U⊕W1V = U \oplus W_1. For W2W_2: U∩W2={0}U \cap W_2 = \{0\} (shown in the counterexample block: (a,0)=(c,c)⇒c=0,a=0(a,0)=(c,c)\Rightarrow c=0,a=0) and U+W2=R2U+W_2 = \mathbb{R}^2 since (1,0),(1,1)(1,0),(1,1) are linearly independent, hence span the 22-dimensional space R2\mathbb{R}^2 (independent list of size 2=dim⁡R22 = \dim \mathbb{R}^2 is a basis). So V=U⊕W2V = U \oplus W_2 as well. Since W1=span⁡(0,1)≠span⁡(1,1)=W2W_1 = \operatorname{span}(0,1) \ne \operatorname{span}(1,1) = W_2 (they are different lines, as (0,1)(0,1) is not a scalar multiple of (1,1)(1,1)), UU has at least two distinct complements. This argument generalizes: whenever 0<dim⁡U<dim⁡V0 < \dim U < \dim V, one can choose at least two different extending bases in the proof of the existence theorem, yielding distinct complements. ■\blacksquare

∎

Scope, edge cases & common traps

SituationWhat holdsWhat fails / must be checked
Two subspaces U,WU,WU⊕W  ⟺  U∩W={0}U\oplus W \iff U\cap W = \{0\} and U+W=VU+W=VBoth conditions needed; intersection alone doesn't give =V=V
Three or more subspacesNeed Ui∩∑j≠iUj={0}U_i \cap \sum_{j\ne i}U_j = \{0\} for each iiPairwise trivial intersections are not sufficient (see counterexample)
U={0}U = \{0\}V={0}⊕VV = \{0\} \oplus V triviallyDegenerate but valid; unique decomposition is trivially unique
U=VU = VV=V⊕{0}V = V \oplus \{0\}Only complement is {0}\{0\}
Infinite-dimensional VVComplements still exist (needs Zorn's lemma / axiom of choice in general)Basis-extension argument above assumes finite dimension; the general case is subtler
Complement of a given UUAlways exists (finite dim.)Never unique unless U={0}U=\{0\} or U=VU=V

The mathematician behind it

Origins · 1 minHermann Günther Grassmann and how this was discovered
HG
Hermann Günther Grassmann
1809–1877 · Foundations of linear algebra, exterior algebra

Grassmann was a German polymath — schoolteacher, linguist, and mathematician — who developed a strikingly modern, axiomatic theory of vector spaces and their algebra decades before the notion was standard. His 1844 treatise Die lineale Ausdehnungslehre introduced what we now recognize as vector spaces of arbitrary dimension, linear independence, and the systematic combination of subspaces via sums and what amount to direct-sum decompositions, alongside the exterior product that bears his name. His work was so far ahead of contemporary notation and exposition that it was largely ignored during his lifetime; recognition of its depth came only later, after mathematicians such as Giuseppe Peano and others rebuilt vector space theory along axiomatic lines compatible with Grassmann's original vision.

History
- 1844: Grassmann publishes the Ausdehnungslehre, introducing extensive algebraic structures resembling modern vector spaces and subspace combinations.
- 1862: Grassmann issues a revised, clearer edition of the Ausdehnungslehre, still met with little contemporary uptake.
- 1888: Giuseppe Peano gives the first fully modern axiomatic definition of a vector space, crediting Grassmann's influence.
- Early 1900s: Direct sum and complement constructions become standard tools in the developing theory of linear operators and modules.
- Mid-20th century: Direct sums are formalized in the general algebraic setting (modules over rings), and the internal/external distinction becomes standard textbook language.
What is the difference between U+WU+W and U⊕WU \oplus W?

Both denote the set of all sums u+wu+w with u∈U,w∈Wu \in U, w \in W; as sets they can be identical. The difference is a claim about uniqueness of representation. Writing U⊕WU \oplus W asserts additionally that each vector in the sum has only one decomposition into a UU-part and a WW-part. So U⊕WU \oplus W is not a different set from U+WU+W when the sum happens to be direct — it is the same set, but the notation records the extra guarantee. If U∩W≠{0}U \cap W \ne \{0\}, the sum U+WU+W is still a perfectly good subspace, but it may not be written U⊕WU \oplus W, since decompositions are not unique there.

Does V=U⊕WV = U \oplus W imply dim⁡V=dim⁡U+dim⁡W\dim V = \dim U + \dim W?

Yes, in finite dimensions. If u1,…,uku_1,\dots,u_k is a basis of UU and w1,…,wmw_1,\dots,w_m is a basis of WW, one shows the concatenated list u1,…,uk,w1,…,wmu_1,\dots,u_k,w_1,\dots,w_m is a basis of VV: it spans VV because V=U+WV=U+W, and it is linearly independent because any dependence relation splits (via the trivial-intersection criterion) into separate relations within UU's basis and WW's basis, each forced to be trivial. Hence dim⁡V=k+m=dim⁡U+dim⁡W\dim V = k+m = \dim U + \dim W. This is the direct-sum special case of the general Dimension Formulas for Subspaces, which for a general (not necessarily direct) sum reads dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)\dim(U+W) = \dim U + \dim W - \dim(U\cap W).

Is the complement of a subspace unique?

No, except in the degenerate cases U={0}U=\{0\} (only complement is VV) or U=VU=V (only complement is {0}\{0\}). For any proper nonzero subspace, there are always at least two, and in fact infinitely many (over an infinite field), distinct complements — as shown explicitly for a line in R2\mathbb{R}^2. Geometrically, a line has infinitely many "transversal" lines through the origin that together with it span the plane; each such transversal is an equally valid complement, and none is distinguished without extra structure such as an inner product (which singles out the orthogonal complement).

Can a direct sum decomposition fail even though the whole space is spanned by the pieces?

Yes — spanning and directness are different requirements. U+W=VU+W = V only says every vector is some combination of UU- and WW-parts; directness says it is the only such combination. For instance in R2\mathbb{R}^2, if UU is the xx-axis and WW is the whole plane, then U+W=R2U + W = \mathbb{R}^2, but the decomposition of, say, (1,1)(1,1) is wildly non-unique: (1,1)=(0,0)+(1,1)=(1,0)+(0,1)=(5,0)+(−4,1)(1,1) = (0,0)+(1,1) = (1,0)+(0,1) = (5,0)+(-4,1), and so on, because U⊆WU \subseteq W forces U∩W=U≠{0}U \cap W = U \ne \{0\}.

How does the trivial-intersection criterion generalize to three or more subspaces?

It does not generalize naively to pairwise trivial intersections, as the counterexample with three concurrent lines in R2\mathbb{R}^2 demonstrates. The correct generalization, proved in the central theorem, requires that each UiU_i intersect the sum of all the remaining subspaces trivially: Ui∩∑j≠iUj={0}U_i \cap \sum_{j\ne i} U_j = \{0\} for every ii. This is strictly stronger than pairwise trivial intersection once there are three or more summands, because the sum of two "harmless" subspaces can already contain all of a third.

Why is uniqueness of the decomposition of 00 enough to guarantee uniqueness for every vector?

This is precisely condition (b) in the central theorem, and the reason is linearity: if a vector vv has two decompositions v=∑ui=∑ui′v = \sum u_i = \sum u_i', subtracting gives 0=∑(ui−ui′)0 = \sum (u_i - u_i'), a decomposition of 00 into pieces ui−ui′∈Uiu_i - u_i' \in U_i. If the only such decomposition of 00 is the all-zero one, then every ui−ui′=0u_i - u_i' = 0, forcing ui=ui′u_i = u_i'. So the seemingly weaker condition "00 decomposes uniquely" is in fact logically equivalent to "every vector decomposes uniquely," which is why it suffices as a practical test.

What role does the direct sum play in defining quotient spaces?

If V=U⊕WV = U \oplus W, then WW is naturally identified with the quotient space V/UV/U: the map sending w∈Ww \in W to its coset w+Uw+U is a linear isomorphism from WW onto V/UV/U, precisely because every coset v+Uv+U contains exactly one element of WW (the WW-part of vv's unique decomposition). This is the bridge from direct sums to Quotient Spaces: quotienting by UU can be thought of as "forgetting the UU-coordinate" of a direct-sum decomposition, and any complement WW gives a concrete model for the abstract quotient.

Before this

Where this leads