Unit 1, lesson 6

Sums and Intersections of Subspaces

How to add and intersect subspaces, why their sum usually differs from their union, the dimension formula for a sum proved from a basis of the intersection, and the product of two vector spaces.

  • Video 6
  • Sums, Direct Sums and Projections

In R3\mathbb{R}^3 the plane z=0z = 0 and the plane y=0y = 0 each have dimension two, and adding vectors from the two planes reaches every vector of the space. Yet the result has dimension three, not four. The missing dimension is the line the planes share, which is counted once in each plane. This lesson defines sums and intersections of subspaces, proves the formula that corrects the double count, and gives a second proof through the product of two spaces.

Key terms

Sum of subspaces

Definition Let UU and WW be subspaces of a vector space VV over F\mathbb{F}, where F\mathbb{F} is R\mathbb{R} or C\mathbb{C}. Their sum is

U+W={u+w:u∈U, w∈W}.U + W = \{u + w : u \in U,\ w \in W\}.

It is a subspace of VV. It contains 0=0+00 = 0 + 0, and a linear combination of two of its vectors regroups as

a(u1+w1)+b(u2+w2)=(au1+bu2)+(aw1+bw2),\begin{aligned} &a(u_1 + w_1) + b(u_2 + w_2) \\[0.4em] &\quad = (au_1 + bu_2) + (aw_1 + bw_2), \end{aligned}

a vector of UU plus a vector of WW. The sum is the smallest subspace of VV that contains both UU and WW. If UU and WW are spanned by two lists, then U+WU + W is spanned by the two lists together. When UU and WW share a nonzero vector cc, every vector of U+WU + W has more than one decomposition, since u+w=(u+c)+(w−c)u + w = (u + c) + (w - c).

In plain words The sum collects every vector you can build by taking one piece from each subspace and adding the pieces. It combines directions, so it is usually larger than either subspace alone.

Example In R3\mathbb{R}^3 let U={(x,y,z):z=0}U = \{(x, y, z) : z = 0\} and W={(x,y,z):y=0}W = \{(x, y, z) : y = 0\}. Every vector splits as

(x,y,z)=(x,y,0)+(0,0,z),(x, y, z) = (x, y, 0) + (0, 0, z),

so U+W=R3U + W = \mathbb{R}^3. For instance (0,1,1)=(0,1,0)+(0,0,1)(0, 1, 1) = (0, 1, 0) + (0, 0, 1) lies in the sum but in neither plane. The split is not unique, since (x+s,y,0)+(−s,0,z)(x + s, y, 0) + (-s, 0, z) gives the same vector for every real ss.

Intersection of subspaces

Definition For subspaces UU and WW of a vector space VV over F\mathbb{F}, the intersection U∩WU \cap W is the set of vectors that lie in both UU and WW. It is a subspace of VV. It contains 00, and if xx and yy lie in both subspaces, then so does every combination ax+byax + by, because each subspace is closed under linear combinations. It is the largest subspace contained in both UU and WW. When the subspaces are described by equations, the intersection is found by imposing all the equations at once.

In plain words The intersection is the overlap, the directions the two subspaces have in common.

Example For the planes U={z=0}U = \{z = 0\} and W={y=0}W = \{y = 0\} in R3\mathbb{R}^3, a common vector has y=0y = 0 and z=0z = 0, so U∩WU \cap W is the xx-axis, spanned by (1,0,0)(1, 0, 0), with dimension 11. This shared line is what lets the split above slide, since the parameter ss moves the vector (s,0,0)(s, 0, 0) from one summand to the other.

Dimension formula for a sum

Definition Let UU and WW be finite-dimensional subspaces of a vector space VV over F\mathbb{F}. Then U+WU + W is finite-dimensional and

dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W).\begin{aligned} \dim(U + W) &= \dim U + \dim W \\[0.4em] &\quad - \dim(U \cap W). \end{aligned}

For the proof, choose a basis c1,…,crc_1, \dots, c_r of U∩WU \cap W. Extend it to a basis c1,…,cr,u1,…,upc_1, \dots, c_r, u_1, \dots, u_p of UU, and separately to a basis c1,…,cr,w1,…,wqc_1, \dots, c_r, w_1, \dots, w_q of WW. The combined list of the cic_i, the uku_k and the wjw_j spans U+WU + W, since any u+wu + w expands in it. To show independence, suppose

∑iαici+∑kβkuk+∑jγjwj=0.\begin{aligned} &\sum_{i} \alpha_i c_i + \sum_{k} \beta_k u_k \\[0.4em] &\quad + \sum_{j} \gamma_j w_j = 0. \end{aligned}

The vector −∑jγjwj-\sum_j \gamma_j w_j lies in WW and equals ∑iαici+∑kβkuk\sum_i \alpha_i c_i + \sum_k \beta_k u_k, which lies in UU. So it lies in U∩WU \cap W and equals ∑iδici\sum_i \delta_i c_i for some scalars δi\delta_i. Then ∑iδici+∑jγjwj=0\sum_i \delta_i c_i + \sum_j \gamma_j w_j = 0, and independence of the basis of WW gives every γj=0\gamma_j = 0. The original relation now involves only the basis of UU, so every αi\alpha_i and βk\beta_k is 00 too. Counting gives r+p+q=(r+p)+(r+q)−rr + p + q = (r + p) + (r + q) - r. The argument uses no angles or perpendicularity, so it holds over R\mathbb{R} and C\mathbb{C} and for spaces of functions or matrices alike.

In plain words Adding the two dimensions counts every shared direction twice, once in each subspace. Subtracting the dimension of the overlap corrects the count. Starting from a basis of the overlap is what makes the proof work, because two unrelated bases joined together hide the overlap inside a dependence.

Example Let U={(x,y,z):x+y+z=0}U = \{(x, y, z) : x + y + z = 0\} and W={(x,y,z):z=0}W = \{(x, y, z) : z = 0\} in R3\mathbb{R}^3. Imposing both equations gives z=0z = 0 and y=−xy = -x, so U∩W=span⁡{(1,−1,0)}U \cap W = \operatorname{span}\{(1, -1, 0)\}. Extend this to the basis (1,−1,0),(1,0,−1)(1, -1, 0), (1, 0, -1) of UU and to the basis (1,−1,0),(0,1,0)(1, -1, 0), (0, 1, 0) of WW. The combination

a(1,−1,0)+b(1,0,−1)+d(0,1,0)=(a+b,−a+d,−b)\begin{aligned} &a(1, -1, 0) + b(1, 0, -1) + d(0, 1, 0) \\[0.4em] &\quad = (a + b, -a + d, -b) \end{aligned}

is zero only when b=0b = 0, then a=0a = 0, then d=0d = 0. So the three vectors form a basis of U+W=R3U + W = \mathbb{R}^3, and 3=2+2−13 = 2 + 2 - 1.

Union of subspaces

Definition The union U∪WU \cup W of two subspaces of a vector space VV over F\mathbb{F} is the set of vectors that lie in at least one of them. It is a subspace exactly when one of the subspaces contains the other. If U⊆WU \subseteq W, the union is WW. If neither contains the other, pick u∈Uu \in U outside WW and w∈Ww \in W outside UU. Were u+wu + w in UU, then w=(u+w)−uw = (u + w) - u would be in UU, and were it in WW, then u=(u+w)−wu = (u + w) - w would be in WW. Both are false, so u+wu + w lies outside U∪WU \cup W and the union is not closed under addition. The sum U+WU + W is the span of U∪WU \cup W, the smallest subspace containing it.

In plain words The union only collects vectors that are already in one subspace or the other. It never adds them, so unless one subspace contains the other, some sums of its members escape it.

Example With U={x+y+z=0}U = \{x + y + z = 0\} and W={z=0}W = \{z = 0\} as above, the vector (1,0,−1)(1, 0, -1) lies in UU but not in WW, and (0,1,0)(0, 1, 0) lies in WW but not in UU. Their sum (1,1,−1)(1, 1, -1) has coordinate sum 11 and third coordinate −1-1, so it lies in neither plane. The union is not a subspace, although the sum U+W=R3U + W = \mathbb{R}^3 is.

Product of vector spaces

Definition Let UU and WW be vector spaces over the same field F\mathbb{F}. Their product U×WU \times W, also called their external product, is the set of ordered pairs (u,w)(u, w) with u∈Uu \in U and w∈Ww \in W, with the componentwise operations

(u1,w1)+(u2,w2)=(u1+u2,w1+w2),λ(u,w)=(λu,λw).\begin{aligned} &(u_1, w_1) + (u_2, w_2) \\[0.4em] &\quad = (u_1 + u_2, w_1 + w_2), \\[0.4em] &\lambda (u, w) = (\lambda u, \lambda w). \end{aligned}

It is a vector space over F\mathbb{F} with zero vector (0,0)(0, 0). If UU and WW are finite-dimensional with bases u1,…,upu_1, \dots, u_p and w1,…,wqw_1, \dots, w_q, the pairs (u1,0),…,(up,0),(0,w1),…,(0,wq)(u_1, 0), \dots, (u_p, 0), (0, w_1), \dots, (0, w_q) form a basis. They span because each component expands in its own basis, and a zero combination forces both lists of coefficients to vanish. So

dim⁡(U×W)=dim⁡U+dim⁡W,\dim(U \times W) = \dim U + \dim W,

even when UU and WW are overlapping subspaces of one space. For finite-dimensional subspaces UU and WW of VV, the addition map σ(u,w)=u+w\sigma(u, w) = u + w from U×WU \times W onto U+WU + W is linear and surjective. If u+w=0u + w = 0, then u=−wu = -w lies in both subspaces, so the kernel of σ\sigma is {(c,−c):c∈U∩W}\{(c, -c) : c \in U \cap W\}, and c↦(c,−c)c \mapsto (c, -c) is an isomorphism from U∩WU \cap W onto it. Rank-nullity for σ\sigma then gives the dimension formula a second time.

In plain words A pair remembers which subspace supplied each piece, while a sum forgets it. Along the overlap a piece can move from one slot to the other without changing the sum, and that freedom is the dimension the formula subtracts.

Example Take the planes U={z=0}U = \{z = 0\} and W={y=0}W = \{y = 0\} in R3\mathbb{R}^3. The product U×WU \times W has dimension 2+2=42 + 2 = 4, even though both planes sit inside R3\mathbb{R}^3. The addition map onto U+W=R3U + W = \mathbb{R}^3 has as kernel the pairs ((s,0,0),(−s,0,0))((s, 0, 0), (-s, 0, 0)) with s∈Rs \in \mathbb{R}, a space of dimension 11, and rank-nullity gives dim⁡(U+W)=4−1=3\dim(U + W) = 4 - 1 = 3.

Check yourself

  1. Two subspaces UU and WW of R5\mathbb{R}^5 both have dimension 33. Can their intersection be {0}\{0\}?
Show the answer

No. The sum U+WU + W is a subspace of R5\mathbb{R}^5, so its dimension is at most 55, and the dimension formula gives

dim⁡(U∩W)=3+3−dim⁡(U+W)≥6−5=1.\begin{aligned} \dim(U \cap W) &= 3 + 3 - \dim(U + W) \\[0.4em] &\ge 6 - 5 = 1. \end{aligned}

The bound is attained. For the standard basis e1,…,e5e_1, \dots, e_5 of R5\mathbb{R}^5, the subspaces span⁡(e1,e2,e3)\operatorname{span}(e_1, e_2, e_3) and span⁡(e3,e4,e5)\operatorname{span}(e_3, e_4, e_5) meet in the line spanned by e3e_3.

  1. Over R\mathbb{R}, let U={p∈P2:p(1)=0}U = \{p \in \mathcal{P}_2 : p(1) = 0\} and W={p∈P2:p(−1)=0}W = \{p \in \mathcal{P}_2 : p(-1) = 0\}, where P2\mathcal{P}_2 is the space of polynomials of degree at most two, including the zero polynomial. Find U∩WU \cap W and dim⁡(U+W)\dim(U + W). Is U∪WU \cup W a subspace?
Show the answer

Evaluation at 11 is a surjective linear map from P2\mathcal{P}_2 to R\mathbb{R} with kernel UU, so rank-nullity gives dim⁡U=3−1=2\dim U = 3 - 1 = 2, and likewise dim⁡W=2\dim W = 2. A polynomial of degree at most two that vanishes at both 11 and −1-1 is a multiple of (t−1)(t+1)=t2−1(t - 1)(t + 1) = t^2 - 1, so U∩W=span⁡(t2−1)U \cap W = \operatorname{span}(t^2 - 1) has dimension 11. The formula gives dim⁡(U+W)=2+2−1=3\dim(U + W) = 2 + 2 - 1 = 3, so U+W=P2U + W = \mathcal{P}_2.

The union is not a subspace. The polynomial t−1t - 1 lies in UU but not in WW, and t+1t + 1 lies in WW but not in UU. Their sum 2t2t takes the value 22 at 11 and −2-2 at −1-1, so it lies in neither.

  1. Let LL be the line in R2\mathbb{R}^2 spanned by (1,2)(1, 2). Find dim⁡(L×L)\dim(L \times L), dim⁡(L+L)\dim(L + L) and the kernel of the addition map from L×LL \times L onto L+LL + L.
Show the answer

The product has dimension 1+1=21 + 1 = 2, with basis ((1,2),0)((1, 2), 0) and (0,(1,2))(0, (1, 2)). The sum L+LL + L is LL itself, of dimension 11, because LL is closed under addition. The addition map sends (u,w)(u, w) to u+wu + w, so its kernel is {(c,−c):c∈L}\{(c, -c) : c \in L\}, the line spanned by ((1,2),(−1,−2))((1, 2), (-1, -2)), of dimension 11. Rank-nullity checks out as 2=1+12 = 1 + 1, matching dim⁡L+dim⁡L−dim⁡(L∩L)=1\dim L + \dim L - \dim(L \cap L) = 1. The product is not the sum. The pairs ((2,4),0)((2, 4), 0) and ((1,2),(1,2))((1, 2), (1, 2)) are different elements of L×LL \times L with the same sum (2,4)(2, 4).

How this lesson connects