4 Linear algebra

4.13 Finding dimensions

The extension lemma has all sorts of consequences that are very useful for making arguments about the dimension of a vector space. In this section we’ll write down the most common ones.

4.13.1 Lower bound for the dimension of a vector space

As soon as you see k linearly independent elements in a vector space, you know its dimension is at least k.

Corollary 4.13.1.

Let V be a vector space and let 𝐯1,,𝐯k be linearly independent elements of V. Then dimVk.

Proof.

You can extend these elements to a basis of V having size at least k, and the size of that basis is the dimension of V. ∎

4.13.2 Any dimV+1 elements must be linearly dependent

Theorem 4.13.2.

Any sequence of at least n+1 elements in a vector space of dimension n is linearly dependent.

Proof.

If they were linearly independent, we could extend them to a basis of size larger than n using Proposition 4.12.2 contradicting that every basis has size n. ∎

For example, if you have 4 vectors in 3 you know they must be linearly dependent, no matter what they are.

4.13.3 Dimensions of subspaces

Proposition 4.13.3.

If UV then

  1. 1.

    dimUdimV, and

  2. 2.

    if dimU=dimV then U=V.

Proof.
  1. 1.

    A basis of U is a linearly independent sequence in V, so we can extend it to a basis of V. So its size is less than or equal to the size of a basis of V.

  2. 2.

    Let dimV=n and let 𝐮1,,𝐮n be a basis of U, so U=span(𝐮1,,𝐮n). Suppose for a contradiction that UV, and let 𝐯 be an element of V not in U. Then 𝐮1,,𝐮n,𝐯 is linearly independent (by the extension lemma, Lemma 4.12.1), which contradicts Theorem 4.13.2. ∎

As soon as you have n linearly independent elements in a vector space of dimension n, they must be a basis.

Corollary 4.13.4.

Let V be a vector space of dimension n. Any sequence of n linearly independent elements of V are a basis of V.

Proof.

Let U be the span of this sequence. This length n sequence spans U by definition, and it is linearly dependent, so it is a basis of U and dimU=n. The proposition tells us U=V, so in fact the sequence is a basis of V. ∎

4.13.4 Dimension of a sum of subspaces

Consider two sets X and Y. What’s the size of XY in terms of the size of X and the size of Y? It isn’t |X|+|Y|, in general, because elements belonging to X and Y get counted twice when you add the sizes like this. The correct answer is |X|+|Y||XY|. We would like a similar result for sums of subspaces.

Theorem 4.13.5.

Let V be a vector space and X,YV. Then

dim(X+Y)=dimX+dimYdimXY.
Proof.

Take a basis =𝐢1,,𝐢k of XY. Extend to a basis 𝒳=𝐢1,,𝐢k,𝐱1,,𝐱n of X, using 4.12.2. Extend to a basis 𝒴=𝐢1,,𝐢k,𝐲1,,𝐲m of Y. It’s now enough to prove that 𝒥=𝐢1,,𝐢k,𝐱1,,𝐱n,𝐲1,,𝐲m is a basis of X+Y, because if we do that then we will know the size of 𝒥, which is k+n+m, equals the size of a basis of (which is k+n) plus the size of a basis of Y (which is k+m) minus the size of a basis of XY (which is k).

To check something is a basis for X+Y, as always, we must check that it is a spanning sequence for X+Y and that is it linearly independent.

Spanning: let 𝐱+𝐲X+Y, where 𝐱X,𝐲Y. Then there are scalars such that

𝐱 =j=1kaj𝐢j+j=1ncj𝐱j
y =j=1kbj𝐢j+j=1mdj𝐲j

and so

𝐱+𝐲=j=1k(aj+bj)𝐢j+j=1ncj𝐱j+j=1mdj𝐲j

Linear independence: suppose

j=1kaj𝐢j+j=1ncj𝐱j+j=1mdj𝐲j=0.

Rearrange it:

j=1kaj𝐢j+j=1ncj𝐱j=j=1mdj𝐲j.

The left hand side is in X and the right hand side is in Y. So both sides are in XY, in particular, the right hand side is in XY. Since is a basis of XY, there are scalars ej such that

j=1kej𝐢j=j=1mdj𝐲j

This is a linear dependence on 𝒴 which is linearly independent, so all the dj are 0. Similarly all the cj are 0. So the aj are 0 too, and we have linear independence. ∎