4.12 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.12.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.12.1.

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

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.12.2 Any dimV+1 elements must be linearly dependent

Theorem 4.12.2.

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

Proof.

The vector space has a basis of size n, which is in particular a spanning sequence of size n. By Theorem 4.9.1 (Steinitz Exchange), any linearly independent sequence has size at most n. ∎

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

4.12.3 Dimensions of subspaces

Proposition 4.12.3.

If U⩽V then

  1. 1.

    dimU⩽dimV, and

  2. 2.

    if dimU=dimV then U=V.

Proof.
  1. 1.

    A basis of U is a linearly independent sequence in V and a basis of V is (in particular) a spanning sequence for V, so by Theorem 4.9.1 the size of a basis of U 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 U≠V, and let 𝐯 be an element of V not in U. Then 𝐮1,…,𝐮n,𝐯 is linearly independent (by the extension lemma, Lemma 4.11.1), which contradicts Theorem 4.12.2. ∎

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

Corollary 4.12.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 independent, so it is a basis of U and dimU=n. The previous proposition tells us U=V, so in fact the sequence is a basis of V. ∎

4.12.4 Dimension of a sum of subspaces

Consider two sets X and Y. What’s the size of X∪Y 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|−|X∩Y|. We would like a similar result for sums of subspaces.

Theorem 4.12.5.

Let V be a vector space and X,Y⩽V. Then

dim(X+Y)=dimX+dimY−dimX∩Y.
Proof.

Take a basis ℐ=𝐢1,…,𝐢k of X∩Y. Extend ℐ to a basis 𝒳=𝐢1,…,𝐢k,𝐱1,…,𝐱n of X, using Proposition 4.11.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 X∩Y (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 X∩Y, in particular, the right hand side is in X∩Y. Since ℐ is a basis of X∩Y, 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. ∎