Dimension of a Sum of Subspaces Explained with Worked Examples
For subspaces U and W of a vector space, dim(U+W)=dimU+dimW−dim(U∩W). It is the same inclusion–exclusion idea as counting the elements of two overlapping sets.
Adding the dimensions counts the overlap twice, so you subtract the dimension of the intersection once. Two planes through the origin in 3D that are different meet in a line, so 2+2−1=3, and together they span the whole space.
The formula follows from the rank–nullity theorem applied to the map that adds a vector of U to a vector of W. Describing a subspace by a basis makes the dimensions easy to count.
The same pattern appears in counting with the inclusion–exclusion principle for two sets, and in geometry: the lines and planes in plane equations are subspaces (or translated subspaces).
What is it used for?
The dimension of the sum of two subspaces counts how many independent directions they give together, without counting shared directions twice.
Working out whether two planes in 3D span the whole space.
Finding the dimension of an intersection.
Counting independent conditions in linear problems.
How to use dimension of a sum of subspaces
Find the dimensions of U and W.
Find the dimension of their intersection.
Compute dimU+dimW−dim(U∩W).
Check that the result is not more than the dimension of the whole space.
Graph
Dimensions 2 and 2 with an overlap of 1 give 2 + 2 − 1 = 3.
Worked examples
These examples are worked by hand, step by step, so you can compare your own working.
Example 1: two planes in 3D
Two different planes through the origin in R3 have dimension 2 each. Find the dimension of their intersection.
Worked example
Answer
1(a line)
Their sum is the whole space
dim(U+W)=3
Rearrange
2+2−3
Example 2: axes planes
Let U=span{(1,0,0),(0,1,0)} and W=span{(0,1,0),(0,0,1)}. Find dim(U+W).
Worked example
Answer
3
Intersection is the span of (0, 1, 0)
dim(U∩W)=1
Formula
2+2−1
Example 3: two 3D subspaces in 4D
Two subspaces of R4 each have dimension 3 and together span the space. Find the dimension of the intersection.
Worked example
Answer
2
Rearrange
3+3−4
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
dim U = 3, dim W = 3, dim(U ∩ W) = 2
dim(U + W)
4.
dim U = 2, dim W = 2, U ∩ W = {0}
dim(U + W)
4.
two planes in ℝ³ meeting in a line
dim(U + W)
3.
dim(U + W) = 5, dim U = 3, dim W = 3
dim(U ∩ W)
1.
Word problems
dim(U + W) = dim U + dim W − dim(U ∩ W), like inclusion–exclusion for sets.
Overlapping
3 + 3 − 2.
4
Check: ✓4
Independent
Intersection is {0}.
2 + 2 − 0
Check: ✓4
Two planes Higher
Meet in a line (dimension 1).
2 + 2 − 1
Check: all of ℝ³ ✓3
Intersection Higher
Rearrange.
3 + 3 − 5
Check: ✓1
Common mistakes
dim(U + W) = dim U + dim W always
always ✗
subtract the intersection ✓
Overlap.
Intersection dimension subtracted twice
twice ✗
once ✓
Inclusion–exclusion.
Sum is a union
union ✗
span of both ✓
Subspace.
dim larger than the ambient space
possible ✗
bounded by the space ✓
Check.
Exam tips
dim(U + W) = dimU + dimW − dim(U ∩ W).
Intersection {0}: direct sum.
Bounded by the ambient dimension.
Rearrange to find the intersection.
Draw lines and planes.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. dim(U + W): 4, 3, intersection 1 Foundation
6
2. dim(U ∩ W): dims 3, 3, sum 4 Foundation
2
3. dim(U + W): 2, 1, intersection 0 Foundation
3
4. dim(U + W): 5, 5, intersection 3 Higher
7
5. dim(U ∩ W): dims 4, 4, sum 6 Higher
2
6. dim(U + W): 1, 1, intersection 1 Higher
1
Practice generator
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.