We continue on defining dimension of vector spaces.
Dimension
We know that is -dimensional, but for other spaces it's harder to determine. The process is:
Find a basis for
Determine the number of vectors in the basis. That's the dimension.
As an example, consider is the vector space of matrices with entries from .
Further, let and denote the subspaces of upper and lower triangular matrices respectively, so these are subspaces. What is the dimension of our vector space? It is:
This is because you can make each basis vector be some matrix with a 1 in the position, and 0's everywhere else. This would construct a basis with vectors:
Recall that upper triangular allows numbers on the diagonal. Thus, we get:
comes from the triangular numbers. It's essentially the top row of entries plus the next entry of entries, and so on until 1.
Consequently, it's the same for the lower triangular subspace.
Now a good question is what is . It's just the entire space . But how could I show this? Clearly the LHS is a to the RHS (it's trivial), as these both are already subspaces. Now we need to show that any element from the RHS belongs in the LHS. Let is arbitrary:
Thus is the sum of two vectors from and , so then .
Notice that since the diagonals are included for each subspace, then this choice of vectors wasn't unique:
which shows that .
But this brings up an interesting point. What's the dimension of the sum of both spaces? We already know that:
But notice that this operation itself isn't linear:
so it appears that that the dimension of a vector space is the sum of the dimensions of the subspaces minus their dimension of the intersection. We'll prove this:
Dimensions of subspaces
If are subspaces of , then:
Proof
We won't really do the entire proof, but the main gist is as follows.
Obviously we require that are finite dimensional. Note that we don't require that be finite dimensional, as here isn't needed anywhere.
Let be a basis from . Let's call it , for basis of with vectors.
If you consider just , notice that is a subspace of , so then we can extend the vectors to make it a basis for . Let's say we add vectors, giving a new extended basis as .
In the exact same way, we do the same for , giving a basis as with more vectors.
We claim (and gloss over) that if we concatenate all vectors found above in and and you obtain a basis for . Thus, we get that:
and:
and:
and:
and thus if you plug into the theorem above, you get the expected result.
☐
As a corollary, if we have instead a direct sum then we get just the standard sum of the dimension:
Corollary
This is since .
Now, suppose that are subspaces of , where . The question is, is a direct sum? We know but adding the subspace dimensions makes 6, so then we can't have a direct sum:
we also have:
since we compare to the dimension of the , so then: