The next result gives a formula for the dimension of the sum of two subspaces of a two-dimensional vector space.
This is analogous to a familiar counting formula: the number of elements in the union of two finite sets equals the number of elements in the first set, plus the number of elements in the second set, minus the elements in the intersection of the two sets:
Dimension of a sum
If and are subspaces of a finite-dimensional vector space, then
Proof.
Let be a basis of . Thus, . Because is a basis of , it is linearly independent in . Hence, this list can extend to a basis of (every linearly independent list extends to a basis). Thus, . Similarly, we can extend to a basis of . Thus, .
We will show that
is a basis of . This will complete the proof, because then we will have
The list is contained in , and thus is contained in . The span of this list contains and and hence is equal to . Thus, to show that the list is a basis of , we only need to show that it is linearly independent.
To prove that the list is linearly independent, suppose:
where all ‘s, ‘s, and ‘s are scalars. We need to prove that all the ‘s, ‘s and ‘s equal . The equation above can be rewritten as
which shows that . All the ‘s are in , so this implies that .
Because is a basis of , we have
for some scalars . But is linearly independent (we constructed it to be a basis), so the last equation implies that all the ‘s (and ‘s) equal .
Thus simply becomes
And, because the list is linearly independent, this equation implies that all the ‘s and ‘s are , completing the proof.