Mathwords logoMathwords

Sum of Subspaces — Definition, Formula & Example

The sum of subspaces is the set you get by adding every vector from one subspace to every vector from another. It is the smallest subspace that contains both of the original subspaces.

Let W1W_1 and W2W_2 be subspaces of a vector space VV over a field FF. Their sum is W1+W2={w1+w2:w1∈W1, w2∈W2}W_1 + W_2 = \{\mathbf{w}_1 + \mathbf{w}_2 : \mathbf{w}_1 \in W_1,\ \mathbf{w}_2 \in W_2\}. It is a subspace of VV, and it equals span⁡(W1∪W2)\operatorname{span}(W_1 \cup W_2). When VV is finite-dimensional, its dimension satisfies the formula below. The sum is called direct exactly when W1∩W2={0}W_1 \cap W_2 = \{\mathbf{0}\}.

Key Formula

dim⁡(W1+W2)=dim⁡W1+dim⁡W2−dim⁡(W1∩W2)\dim(W_1 + W_2) = \dim W_1 + \dim W_2 - \dim(W_1 \cap W_2)
Where:
  • W1,W2W_1, W_2 = Finite-dimensional subspaces of the same vector space
  • W1+W2W_1 + W_2 = The sum: all vectors of the form w₁ + w₂
  • W1∩W2W_1 \cap W_2 = The intersection: vectors that lie in both subspaces

Worked Example

Problem: In ℝ³, let W₁ be the xy-plane, W₁ = {(a, b, 0)}, and let W₂ be the yz-plane, W₂ = {(0, c, d)}. Find W₁ + W₂ and its dimension. Is the sum direct?
Step 1: Write any vector (x, y, z) as a sum of a vector from each plane. One choice works for every vector in ℝ³, so W₁ + W₂ = ℝ³.
(x,y,z)=(x,y,0)+(0,0,z)(x, y, z) = (x, y, 0) + (0, 0, z)
Step 2: Find the intersection. A vector in both planes has first and third coordinates equal to 0, so the intersection is the y-axis, which has dimension 1. Check the dimension formula.
dim⁡(W1+W2)=2+2−1=3\dim(W_1 + W_2) = 2 + 2 - 1 = 3
Step 3: Because the intersection is not just the zero vector, decompositions are not unique. For example, (3, 5, 7) splits in two different ways.
(3,5,7)=(3,5,0)+(0,0,7)=(3,0,0)+(0,5,7)(3,5,7) = (3,5,0) + (0,0,7) = (3,0,0) + (0,5,7)
Answer: W₁ + W₂ = ℝ³, which has dimension 3. The sum is not direct, because the two planes share the y-axis and vectors decompose in more than one way.

Why It Matters

In a first linear algebra course, the dimension formula lets you find the dimension of a span without row-reducing, provided you already know the dimension of the intersection. Sums of subspaces also set up direct sums and eigenspace decompositions, which you use to diagonalize matrices.

Common Mistakes

Mistake: Treating the sum W₁ + W₂ as the union W₁ ∪ W₂.
Correction: The union of two subspaces is usually not a subspace. The x-axis and y-axis in ℝ² contain (1, 0) and (0, 1), but their union does not contain (1, 1). The sum includes all such combinations, so it is the whole plane ℝ².

Related Terms

  • Direct Sum — Special case where the subspaces intersect only at zero
  • Column of a Matrix — Column space equals the sum of each column's span
  • Subspace — The type of vector space being added together
  • Intersection — Companion operation to the sum; dimension formula links both