Linear-Algebra-Done-Right ยท Unit 4 ยท Video 3 ยท Interactive Practice

The Dimension of a Sum of Two Subspaces

IKey Formulas

StatementNameRole
dimโก(V1+V2)=dimโกV1+dimโกV2โˆ’dimโก(V1โˆฉV2)\dim(V_1 + V_2) = \dim V_1 + \dim V_2 - \dim(V_1 \cap V_2)Dimension of a sumV1,V2V_1, V_2 subspaces of a finite-dimensional vector space
v1,โ€ฆ,vm,ย u1,โ€ฆ,uj,ย w1,โ€ฆ,wkv_1, \dots, v_m,\ u_1, \dots, u_j,\ w_1, \dots, w_k is a basis of V1+V2V_1 + V_2The combined listvv's: basis of V1โˆฉV2V_1 \cap V_2; add uu's for V1V_1, ww's for V2V_2
#(S1โˆชS2)=#S1+#S2โˆ’#(S1โˆฉS2)\#(S_1 \cup S_2) = \#S_1 + \#S_2 - \#(S_1 \cap S_2)Counting formula for finite sets#\# plays dimโก\dim; โˆช\cup plays ++
dimโก(V1+V2)=dimโกV1+dimโกV2โ€…โ€ŠโŸบโ€…โ€ŠV1โˆฉV2={0}\dim(V_1 + V_2) = \dim V_1 + \dim V_2 \iff V_1 \cap V_2 = \{0\}No overlapFor two subspaces: exactly when V1+V2V_1 + V_2 is direct

Key Insight: The combined list has length m+j+k=(m+j)+(m+k)โˆ’mm + j + k = (m + j) + (m + k) - m. Adding dimโกV1=m+j\dim V_1 = m + j and dimโกV2=m+k\dim V_2 = m + k counts the mm vectors v1,โ€ฆ,vmv_1, \dots, v_m of the intersection twice; subtracting dimโก(V1โˆฉV2)=m\dim(V_1 \cap V_2) = m removes one copy.

IITwo Subspaces of Rยณ, Counted

Two different planes in R3\mathbf{R}^3 have dimensions adding to 44, yet their sum is R3\mathbf{R}^3: the shared line counts twice.

IIIOne Basis of the Intersection, Extended Twice

Extending one basis of V1โˆฉV2V_1 \cap V_2 into V1V_1 and into V2V_2 yields a basis of V1+V2V_1 + V_2.

Step 1 ยท Basis of the intersection

V1={(x,y,z):x+y+z=0}V_1 = \{(x, y, z) : x + y + z = 0\} and V2={(x,x,y)}V_2 = \{(x, x, y)\}. A vector (x,x,y)(x, x, y) lies in V1V_1 exactly when 2x+y=02x + y = 0:

V1โˆฉV2={(x,x,โˆ’2x)}=spanโก(v1),V_1 \cap V_2 = \{(x, x, -2x)\} = \operatorname{span}(v_1),

with v1=(1,1,โˆ’2)v_1 = (1, 1, -2), so m=1m = 1.

IVThree or More Subspaces

Pairwise disjoint finite sets always have counts that add; lines meeting pairwise only in 00 need not have dimensions that add.

๐Ÿ’ก Challenge: exactly two of the ten triples of these lines fail to form a direct sum, although every pair of distinct lines meets only in 00. Find both.

VQuiz Questions

Problem 1 ยท Apply the Formula

Given: V1V_1 and V2V_2 are subspaces of F7\mathbf{F}^7 with dimโกV1=4\dim V_1 = 4, dimโกV2=5\dim V_2 = 5 and dimโก(V1โˆฉV2)=3\dim(V_1 \cap V_2) = 3. Find dimโก(V1+V2)\dim(V_1 + V_2).

โœ… Correct! dimโก(V1+V2)=4+5โˆ’3=6\dim(V_1 + V_2) = 4 + 5 - 3 = 6: the three basis vectors of V1โˆฉV2V_1 \cap V_2 are counted once, not twice.
โŒ The overlap is counted twice. 4+54 + 5 counts each of the 33 basis vectors of V1โˆฉV2V_1 \cap V_2 once in the basis of V1V_1 and again in the basis of V2V_2; subtract dimโก(V1โˆฉV2)=3\dim(V_1 \cap V_2) = 3 once. (Also, 9>7=dimโกF79 > 7 = \dim \mathbf{F}^7.)
โŒ Not quite. Since 4+5>74 + 5 > 7, the intersection cannot be {0}\{0\}, but that does not make V1+V2V_1 + V_2 all of F7\mathbf{F}^7. The formula gives 4+5โˆ’3=64 + 5 - 3 = 6.
โŒ Wrong sign. The dimension of the intersection is subtracted, not added. A subspace of F7\mathbf{F}^7 has dimension at most 77, so 1212 is impossible.
Show solution

By the dimension-of-a-sum formula,

dimโก(V1+V2)=dimโกV1+dimโกV2โˆ’dimโก(V1โˆฉV2)=4+5โˆ’3=6.\dim(V_1 + V_2) = \dim V_1 + \dim V_2 - \dim(V_1 \cap V_2) = 4 + 5 - 3 = 6.

In the proof's terms: a basis v1,v2,v3v_1, v_2, v_3 of V1โˆฉV2V_1 \cap V_2 (m=3m = 3) extends by j=1j = 1 vector to a basis of V1V_1 and by k=2k = 2 vectors to a basis of V2V_2. The combined list v1,v2,v3,u1,w1,w2v_1, v_2, v_3, u_1, w_1, w_2 is a basis of V1+V2V_1 + V_2 of length m+j+k=3+1+2=6m + j + k = 3 + 1 + 2 = 6.

Problem 2 ยท Two Subspaces That Must Meet

Given: V1V_1 and V2V_2 are subspaces of F5\mathbf{F}^5 with dimโกV1=dimโกV2=3\dim V_1 = \dim V_2 = 3. Which statement must be true?

โœ… Correct! dimโก(V1โˆฉV2)=6โˆ’dimโก(V1+V2)โ‰ฅ6โˆ’5=1\dim(V_1 \cap V_2) = 6 - \dim(V_1 + V_2) \geq 6 - 5 = 1, and a subspace of dimension at least 11 is not {0}\{0\}.
โŒ Not forced. If V1=V2V_1 = V_2, then V1+V2=V1V_1 + V_2 = V_1 has dimension 33, not 55.
โŒ Impossible here. If V1โˆฉV2={0}V_1 \cap V_2 = \{0\}, the dimensions would add: dimโก(V1+V2)=3+3=6\dim(V_1 + V_2) = 3 + 3 = 6. But V1+V2V_1 + V_2 is a subspace of F5\mathbf{F}^5, so its dimension is at most 55.
โŒ 11 is only the smallest possible value. With V1={(x1,x2,x3,0,0)}V_1 = \{(x_1, x_2, x_3, 0, 0)\} and V2={(0,x2,x3,x4,0)}V_2 = \{(0, x_2, x_3, x_4, 0)\} the intersection {(0,x2,x3,0,0)}\{(0, x_2, x_3, 0, 0)\} has dimension 22; with V1=V2V_1 = V_2 it has dimension 33.
Show solution

V1+V2V_1 + V_2 is a subspace of F5\mathbf{F}^5, so dimโก(V1+V2)โ‰ค5\dim(V_1 + V_2) \leq 5. Rearranging the formula,

dimโก(V1โˆฉV2)=dimโกV1+dimโกV2โˆ’dimโก(V1+V2)โ‰ฅ3+3โˆ’5=1.\dim(V_1 \cap V_2) = \dim V_1 + \dim V_2 - \dim(V_1 + V_2) \geq 3 + 3 - 5 = 1.

The only subspace of dimension 00 is {0}\{0\}, so V1โˆฉV2V_1 \cap V_2 contains a nonzero vector. All three values 1,2,31, 2, 3 occur:

  • V1={(x1,x2,x3,0,0)}V_1 = \{(x_1, x_2, x_3, 0, 0)\}, V2={(0,0,x3,x4,x5)}V_2 = \{(0, 0, x_3, x_4, x_5)\}: intersection {(0,0,x3,0,0)}\{(0, 0, x_3, 0, 0)\}, dimension 11, and V1+V2=F5V_1 + V_2 = \mathbf{F}^5.
  • V1={(x1,x2,x3,0,0)}V_1 = \{(x_1, x_2, x_3, 0, 0)\}, V2={(0,x2,x3,x4,0)}V_2 = \{(0, x_2, x_3, x_4, 0)\}: dimension 22.
  • V1=V2V_1 = V_2: dimension 33.

So (a) and (c) can fail, and (b) never holds.

Problem 3 ยท Two Subspaces of Fโด

Given: in F4\mathbf{F}^4, let V1={(a,b,c,d):a+b=0}V_1 = \{(a, b, c, d) : a + b = 0\} and V2={(0,b,c,c):b,cโˆˆF}V_2 = \{(0, b, c, c) : b, c \in \mathbf{F}\}. Find dimโก(V1โˆฉV2)\dim(V_1 \cap V_2) and dimโก(V1+V2)\dim(V_1 + V_2).

Dimension of the intersection

Dimension of the sum

โœ… Correct! V1โˆฉV2={(0,0,c,c)}V_1 \cap V_2 = \{(0, 0, c, c)\} has dimension 11, so dimโก(V1+V2)=3+2โˆ’1=4\dim(V_1 + V_2) = 3 + 2 - 1 = 4 and V1+V2=F4V_1 + V_2 = \mathbf{F}^4.
โŒ Not quite. (0,0,1,1)(0, 0, 1, 1) lies in both: it has the form (0,b,c,c)(0, b, c, c), and 0+0=00 + 0 = 0 puts it in V1V_1. So V1โˆฉV2โ‰ {0}V_1 \cap V_2 \neq \{0\}.
โŒ Too big. A vector (0,b,c,c)(0, b, c, c) of V2V_2 lies in V1V_1 only when 0+b=00 + b = 0. That leaves the single free scalar cc: V1โˆฉV2={(0,0,c,c)}V_1 \cap V_2 = \{(0, 0, c, c)\}.
โŒ Too big. V1โˆฉV2V_1 \cap V_2 is a subspace of V2V_2, and dimโกV2=2\dim V_2 = 2 (basis (0,1,0,0),(0,0,1,1)(0, 1, 0, 0), (0, 0, 1, 1)), so the intersection has dimension at most 22.
โŒ The overlap is counted twice. 3+2=53 + 2 = 5 forgets to subtract dimโก(V1โˆฉV2)=1\dim(V_1 \cap V_2) = 1; and no subspace of F4\mathbf{F}^4 has dimension 55.
โŒ Not quite. dimโก(V1+V2)=3=dimโกV1\dim(V_1 + V_2) = 3 = \dim V_1 would force V1+V2=V1V_1 + V_2 = V_1, so V2โІV1V_2 \subseteq V_1. But (0,1,0,0)โˆˆV2(0, 1, 0, 0) \in V_2 has 0+1โ‰ 00 + 1 \neq 0. The formula gives 3+2โˆ’1=43 + 2 - 1 = 4.
โŒ Too small. V1+V2V_1 + V_2 contains V1V_1, so its dimension is at least dimโกV1=3\dim V_1 = 3. The formula gives 3+2โˆ’1=43 + 2 - 1 = 4.
Show solution

Dimensions of the pieces. A vector of V1V_1 has b=โˆ’ab = -a: (a,โˆ’a,c,d)=a(1,โˆ’1,0,0)+c(0,0,1,0)+d(0,0,0,1)(a, -a, c, d) = a(1, -1, 0, 0) + c(0, 0, 1, 0) + d(0, 0, 0, 1), and these three vectors are linearly independent, so dimโกV1=3\dim V_1 = 3. Similarly (0,b,c,c)=b(0,1,0,0)+c(0,0,1,1)(0, b, c, c) = b(0, 1, 0, 0) + c(0, 0, 1, 1) gives dimโกV2=2\dim V_2 = 2.

Intersection. (0,b,c,c)โˆˆV1โ€…โ€ŠโŸบโ€…โ€Š0+b=0(0, b, c, c) \in V_1 \iff 0 + b = 0, so

V1โˆฉV2={(0,0,c,c)}=spanโก(v1),v1=(0,0,1,1),m=1.V_1 \cap V_2 = \{(0, 0, c, c)\} = \operatorname{span}(v_1), \quad v_1 = (0, 0, 1, 1), \quad m = 1.

Follow the proof. Extend v1v_1 into V1V_1 with u1=(1,โˆ’1,0,0)u_1 = (1, -1, 0, 0), u2=(0,0,1,0)u_2 = (0, 0, 1, 0) (an independent list of length 3=dimโกV13 = \dim V_1, so a basis), and into V2V_2 with w1=(0,1,0,0)w_1 = (0, 1, 0, 0). The combined list v1,u1,u2,w1v_1, u_1, u_2, w_1 is a basis of V1+V2V_1 + V_2, so

dimโก(V1+V2)=m+j+k=1+2+1=4=3+2โˆ’1.\dim(V_1 + V_2) = m + j + k = 1 + 2 + 1 = 4 = 3 + 2 - 1.

A subspace of F4\mathbf{F}^4 of dimension 44 is F4\mathbf{F}^4 itself, so V1+V2=F4V_1 + V_2 = \mathbf{F}^4.

Problem 4 ยท Where the Analogy Breaks

Given: each statement below is the vector-space translation of a true fact about finite sets (โˆชโ†ฆ+\cup \mapsto +, #โ†ฆdimโก\# \mapsto \dim, โˆ…โ†ฆ{0}\emptyset \mapsto \{0\}), for subspaces V1,V2,V3V_1, V_2, V_3 of a finite-dimensional VV. Which translation is false?

โœ… Correct! In R2\mathbf{R}^2 the lines spanโก((1,0))\operatorname{span}((1, 0)), spanโก((0,1))\operatorname{span}((0, 1)), spanโก((1,1))\operatorname{span}((1, 1)) meet pairwise only in 00, yet 1+1+1=3>2=dimโกR21 + 1 + 1 = 3 > 2 = \dim \mathbf{R}^2.
โŒ This one is true. It is the unit 2 result that a sum of subspaces is the smallest subspace containing them, the analogue of S1โˆชS2S_1 \cup S_2 being the smallest subset containing S1S_1 and S2S_2.
โŒ This one is true. It is the theorem of this video, the analogue of #(S1โˆชS2)=#S1+#S2โˆ’#(S1โˆฉS2)\#(S_1 \cup S_2) = \#S_1 + \#S_2 - \#(S_1 \cap S_2).
โŒ This one is true. By the formula, the dimensions add exactly when dimโก(V1โˆฉV2)=0\dim(V_1 \cap V_2) = 0, and the only subspace of dimension 00 is {0}\{0\}.
Show solution

Statements (a), (c) and (d) hold: (a) is the unit 2 result on sums, (c) is the dimension formula, and (d) follows from (c) because a subspace has dimension 00 exactly when it is {0}\{0\}.

Statement (b) fails. Take V1=spanโก((1,0))V_1 = \operatorname{span}((1, 0)), V2=spanโก((0,1))V_2 = \operatorname{span}((0, 1)), V3=spanโก((1,1))V_3 = \operatorname{span}((1, 1)) in R2\mathbf{R}^2. Two distinct lines through the origin meet only in 00, so all three pairwise intersections are {0}\{0\}. But V1+V2+V3โІR2V_1 + V_2 + V_3 \subseteq \mathbf{R}^2, so

dimโก(V1+V2+V3)โ‰ค2<3=dimโกV1+dimโกV2+dimโกV3.\dim(V_1 + V_2 + V_3) \leq 2 < 3 = \dim V_1 + \dim V_2 + \dim V_3.

The sum is not direct either: (1,0)+(0,1)+(โˆ’1,โˆ’1)=0(1, 0) + (0, 1) + (-1, -1) = 0 writes 00 with nonzero pieces. For sets, pairwise disjoint pieces always have counts that add; for three or more subspaces, pairwise intersections {0}\{0\} are not enough. The right analogue, stated in the video: a sum V1+โ‹ฏ+VmV_1 + \cdots + V_m is direct exactly when the dimensions add, a result proved later.

Solved: 0 / 4