Lecture 12 - Dimension

Review from last time our proof for Lecture 11 - Starting Infinite Dimensional Spaces!#^54e316. We proved that for any subspace U of V, you can find subspace W such that:

UW=V

We continue on defining dimension of vector spaces.

Dimension

We know that Rn is n-dimensional, but for other spaces it's harder to determine. The process is:

As an example, consider Fn,n is the vector space of n×n matrices with entries from F.
Further, let Un and Ln denote the subspaces of upper and lower triangular matrices respectively, so these are subspaces. What is the dimension of our vector space? It is:

dim(Fn,n)=nn=n2

This is because you can make each basis vector be some matrix with a 1 in the i,j position, and 0's everywhere else. This would construct a basis with n2 vectors:

{[100000000],[010000000],,[000000001],}n×n vectors

Recall that upper triangular allows numbers on the diagonal. Thus, we get:

dim(Un)=n(n+1)2

comes from the triangular numbers. It's essentially the top row of n entries plus the next entry of n1 entries, and so on until 1.

Consequently, it's the same for the lower triangular subspace.

dim(Ln)=n(n+1)2

Now a good question is what is Un+Ln. It's just the entire space Fn,n. 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 xFn,n is arbitrary:

x=[a11a12a1na21a22a2nan1an2ann]=[a11a12a1n0a22a2n00ann]+[000a2100an1an20]

Thus x is the sum of two vectors from Un and Ln, so then Fn,n=Un+Ln.

Notice that since the diagonals are included for each subspace, then this choice of vectors wasn't unique:

x=[a11a12a1na21a22a2nan1an2ann]=[0a12a1n00a2n000]+[a1100a21a220an1an2ann]

which shows that Fn,nUnLn.

But this brings up an interesting point. What's the dimension of the sum of both spaces? We already know that:

dim(Fn,n)=n2=dim(Un+Ln)

But notice that this operation itself isn't linear:

dim(Un)+dim(Ln)=n2+ndim(Fn,n)

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 U,W are subspaces of V, then:

dim(U+W)=dim(U)+dim(W)dim(UW)

Proof
We won't really do the entire proof, but the main gist is as follows.

Obviously we require that U,W are finite dimensional. Note that we don't require that V be finite dimensional, as here dim(V) isn't needed anywhere.

Let v1,...,vk be a basis from UW. Let's call it B, for basis of UW with k vectors.

If you consider just U, notice that UW is a subspace of U, so then we can extend the vectors v1,...,vk to make it a basis for U. Let's say we add j vectors, giving a new extended basis B as v1,...,vk,u1,...,uj.

In the exact same way, we do the same for W, giving a basis B2 as v1,...,vk,w1,...,wi with i more vectors.

We claim (and gloss over) that if we concatenate all vectors found above in B and B2 and you obtain a basis for U+W. Thus, we get that:

dim(U+W)=k+j+i

and:

dim(U)=k+j

and:

dim(W)=k+i

and:

dim(UW)=k

and thus if you plug into the theorem above, you get the expected result.

As a corollary, if we have instead a direct sum UW then we get just the standard sum of the dimension:

Corollary

dim(UW)=dim(U)+dim(W)

This is since dim({0})=0.

Now, suppose that U1,U2 are subspaces of P4(R), where dim(U1)=dim(U2)=3. The question is, is U1+U2 a direct sum? We know dim(P4(R))=5 but adding the subspace dimensions makes 6, so then we can't have a direct sum:

dim(U1+U2)=6dim(U1U2)

we also have:

dim(U1+U2)5

since we compare to the dimension of the V, so then:

dim(U1U2)1

so then U1U2{0}, so it can't be a direct sum.