Jaysen Tsao
Linear Algebra

Basis and Dimension

Bases for Vector Spaces

Definition 19: Basis Set

Let be a subset of a vector space 𝑉. is a basis for 𝑉 iff the following conditions hold:

  1. Linear independence. is a linearly independent set.
  2. Spanning set. is a spanning set for 𝑉, i.e. span()=𝑉.

The elements of are called the basis vectors of 𝑉 under .

Example: Show that {(1,2),(3,4)}2 is a basis for 2.

Let ={𝐛1,𝐛2}, where 𝐛1=(1,2)2 and 𝐛2=(3,4)2. We must show that is a linearly independent set and a spanning set for 2.

  1. Linear independence. Suppose that 𝑐1,𝑐2 are scalars such that 𝑐1𝐛1+𝑐2𝐛2=𝟎. Then we have:

    𝑐1(1,2)+𝑐2(3,4)=(0,0)(𝑐1+3𝑐2,2𝑐1+4𝑐2)=(0,0).

    This gives us the system of equations:

    𝑐1+3𝑐2=02𝑐1+4𝑐2=0.

    Using elementary algebra, we can solve for 𝑐1 and 𝑐2 to find that 𝑐1=0 and 𝑐2=0 is the only solution. By Theorem 16, is a linearly independent set.

  2. Spanning set. Let 𝐯=(𝑥,𝑦) be an arbitrary vector in 2. We will show that there exist scalars 𝑐1,𝑐2 such that 𝐯=𝑐1𝐛1+𝑐2𝐛2, that is:

    (𝑥,𝑦)=𝑐1(1,2)+𝑐2(3,4)(𝑥,𝑦)=(𝑐1+3𝑐2,2𝑐1+4𝑐2).

    This gives us the system of equations:

    𝑐1+3𝑐2=𝑥2𝑐1+4𝑐2=𝑦.

    Using elementary algebra, we find that 𝑐1=3𝑦/22𝑥 and 𝑐2=𝑥𝑦/2. Thus, by choosing 𝑐1 and 𝑐2 as such, we have 𝐯=𝑐1𝐛1+𝑐2𝐛2. Since 𝐯 was an arbitrary vector in 2, we have shown that every vector in 2 can be expressed as a linear combination of the vectors in , so is a spanning set for 2.

Since is a linearly independent set and a spanning set for 2, is a basis for 2. ∎

Nonexample.
The set {(1,2),(2,4)}2 is not a basis for 2 since it is not linearly independent.
Nonexample.
The set {(1,2)}2 is not a basis for 2 since it is not a spanning set for 2.

Terminology: Finite-Dimensional and Infinite-Dimensional Vector Spaces

A vector space 𝑉 is finite-dimensional iff there exists a basis for 𝑉 that is a finite set (called a finite basis). Otherwise, 𝑉 is infinite-dimensional and has an infinite basis.

Combining the two criteria from Definition 19, we can deduce the following:

Theorem 20: Unique Representation Theorem

A set of vectors {𝐛1,𝐛2,,𝐛𝑛} is a finite basis for a vector space 𝑉 over 𝐹 if and only if for any 𝐯𝑉, there is exactly one solution 𝑐1,𝑐2,,𝑐𝑛𝐹 for the equation:

𝐯=𝑐1𝐛1+𝑐2𝐛2++𝑐𝑛𝐛𝑛.

This theorem states that a basis for a vector space 𝑉 is a set of vectors from 𝑉 such that every vector in 𝑉 can be uniquely expressed as a linear combination of the vectors in .

This is a statement of uniqueness and existence:

  • Uniqueness. Every vector in 𝑉 can be expressed as a linear combination of the vectors in in at most one way.
  • Existence. Every vector in 𝑉 can be expressed as a linear combination of the vectors in in at least one way.
Proof: Unique Representation Theorem.

Suppose that ={𝐛1,𝐛2,,𝐛𝑛} is a basis for 𝑉 over 𝐹. By the definition of a basis, is a linearly independent set and a spanning set for 𝑉. Particularly, spans 𝑉, so for any 𝐯𝑉, there exists at least one solution 𝑐1,𝑐2,,𝑐𝑛𝐹 for the equation:

𝐯=𝑐1𝐛1+𝑐2𝐛2++𝑐𝑛𝐛𝑛.

Suppose 𝑑1,𝑑2,,𝑑𝑛 is another solution to this equation. That is, suppose that:

𝐯=𝑑1𝐛1+𝑑2𝐛2++𝑑𝑛𝐛𝑛.

By the definition of linear independence, we must have 𝑐1=𝑑1,𝑐2=𝑑2,,𝑐𝑛=𝑑𝑛. Thus, for any 𝐯𝑉, there is exactly one solution 𝑐1,𝑐2,,𝑐𝑛𝐹 for the equation

𝐯=𝑐1𝐛1+𝑐2𝐛2++𝑐𝑛𝐛𝑛.

The converse is trivial. ∎

Note

A common pattern for uniqueness and existence in proofs is that by showing uniqueness and existence, we can conclude that there is exactly one of something.

Theorem 21: Spanning Sets can be Reduced to a Basis

Let 𝑉 be a vector space, and let 𝑆 be a finite spanning set for 𝑉. Then there exists an improper subset of 𝑆 that is a basis for 𝑉.

Proof: Theorem 21.
Let 𝑉 be a vector space, and let 𝑆 be a finite spanning set for 𝑉. By the Spanning Set Theorem,

Theorem 22: Linearly Independent Sets can be Extended to a Basis

Let 𝑉 be a vector space, and let 𝑆 be a finite linearly independent set of vectors from 𝑉. Then there exists an improper superset of 𝑆 that is a basis for 𝑉.

Proof: Theorem 22.

Let 𝑉 be a vector space, and let 𝑆 be a finite linearly independent set of vectors from 𝑉. By the Characterization of Linearly Independent Sets,

Dimension of Vector Spaces

Theorem 23: Unique Size Theorem

Let 𝑉 be a finite-dimensional vector space. If and are two bases for 𝑉, then ||=||. That is, all bases for 𝑉 have the same number of vectors.

Proof: Unique Size Theorem.
TODO

As a result of this theorem, we can define the dimension of a finite-dimensional vector space as the number of vectors in any basis for the vector space:

Definition 20: Dimension of a Vector Space

Let 𝑉 be a finite-dimensional vector space. The dimension of 𝑉, denoted dim(𝑉), is the number of vectors (the cardinality) in any basis for 𝑉. To say that V is 𝑛-dimensional means that dim(𝑉)=𝑛.

Combining Theorem 23 and Definition 20 together, we see that although a finite-dimensional vector space 𝑉 can have many different bases, they all have the same number of vectors, namely dim(𝑉) number of vectors.

Corollary 9

A vector space 𝑉 is finite-dimensional if and only if dim(𝑉) is well-defined.

Important

The dimension of the trivial vector space {𝟎} is 0. That is, dim{𝟎}=0. It would then follow that the empty set is the only basis for {𝟎}.

Notation

An infinite-dimensional vector space may be said to have infinite dimension, and dim(𝑉)= may be used to denote that 𝑉 is infinite-dimensional. This is an abuse of notation since dim(𝑉) is not well-defined for infinite-dimensional vector spaces.

Theorem 24: Basis Theorem

Let 𝑉 be a finite-dimensional vector space with dimension 𝑛.

  1. If is a linearly independent set of 𝑛 vectors from 𝑉, then is a basis for 𝑉.
  2. If is a spanning set of 𝑛 vectors from 𝑉, then is a basis for 𝑉.

That is, if we know the dimension 𝑛 of a vector space and we have a set of exactly 𝑛 vectors from that vector space, then we only need to check one of the two criteria from Definition 19 to determine if that set is a basis for the vector space.

If the set of 𝑛 vectors is linearly independent, it is a basis, so we get spanning for free. If the set of 𝑛 vectors is a spanning set, it is a basis, so we automatically get linear independence for free.

Proof: Basis Theorem.

Suppose 𝑉 is a finite-dimensional vector space with dimension 𝑛.

  1. Suppose ={𝐛1,𝐛2,,𝐛𝑛}𝑉 is a linearly independent set of 𝑛 vectors. For the sake of contradiction, assume that is not a basis for 𝑉. Then is not a spanning set for 𝑉 ( is already linearly independent, so the other condition of a basis cannot be true.) That is, there exists some vector 𝐯𝑉 such that 𝐯span(). By Corollary 8, then, the set {𝐛1,𝐛2,,𝐛𝑛,𝐯} is linearly independent.

Proposition 6: Relative Dimensions of Subspaces

Let 𝐻 be a subspace of a finite-dimensional vector space 𝑉. Then dim(𝐻)dim(𝑉). Furthermore, dim(𝐻)=dim(𝑉) if and only if 𝐻=𝑉.

Proof: Proposition 6.

Let 𝐻 be a subspace of a finite-dimensional vector space 𝑉. Let dim(𝐻)=𝑚 and dim(𝑉)=𝑛. Let 𝐻 be a basis for 𝐻, and let 𝑉 be a basis for 𝑉.

By Theorem 22, there exists an improper superset of 𝐻 that is a basis for 𝑉. Since 𝑉 is a basis for 𝑉, it must have the same number of vectors as any other basis for 𝑉, including the improper superset of 𝐻. Thus, the number of vectors in the improper superset of 𝐻 is equal to the number of vectors in 𝑉, which is 𝑛. Since the improper superset of 𝐻 contains all the vectors in 𝐻, the number of vectors in the improper superset of 𝐻 is greater than or equal to the number of vectors in 𝐻, which is 𝑚. Therefore, we have:

𝑛𝑚𝑚𝑛dim(𝐻)dim(𝑉).

Furthermore, if 𝑚=𝑛, then the improper superset of 𝐻 that is a basis for 𝑉 has the same number of vectors as 𝐻, so 𝐻 must be the same set as the improper superset of 𝐻, which is a basis for 𝑉. Thus, 𝐻 is a basis for 𝑉, so 𝐻=𝑉. ∎

Theorem 25: Dimension Formula

Let 𝑋 and 𝑌 be subspaces of a finite-dimensional vector space 𝑉. Then:

dim(𝑋+𝑌)=dim(𝑋)+dim(𝑌)dim(𝑋𝑌).
Proof: Dimension Formula.
TODO

If 𝑋+𝑌 is a direct sum, then 𝑋𝑌={𝟎} which has dimension 0, so:

Corollary 10

If 𝑉=𝑋𝑌 is a finite-dimensional vector space, then dim(𝑋𝑌)=dim(𝑋)+dim(𝑌). By extension, if 𝑉=𝐻1𝐻2𝐻𝑛 is finite-dimensional, then dim(𝑉)=dim(𝐻1)+dim(𝐻2)++dim(𝐻𝑛).

Basis Coordinates and the Standard Basis

Definition 21: Strictly Ordered Sets

A set 𝑆 is strictly partially ordered if there exists a binary predicate on 𝑆 such that:

  • Irreflexivity. 𝑥𝑆,𝑥𝑥.
  • Asymmetry. 𝑥,𝑦𝑆, if 𝑥𝑦, then 𝑦𝑥.
  • Transitivity. 𝑥,𝑦,𝑧𝑆, if 𝑥𝑦 and 𝑦𝑧, then 𝑥𝑧.

A strictly partially ordered set 𝑆 is strictly totally ordered if in addition to the above conditions, 𝑆 additionally satisfies:

  • Totality. 𝑥,𝑦𝑆, if 𝑥𝑦, then either 𝑥𝑦 or 𝑦𝑥.

Definition 22: Ordered Basis

An ordered basis for 𝑉 is a basis for 𝑉 that is a strictly totally ordered set.

In other words, an ordered basis is a basis which defines precisely which basis vector is “first,” which is “second,” and so on.

Notation

In the context of a basis, a basis set written in the form ={𝐛1,𝐛2,,𝐛𝑛} induces a strict total ordering on the vectors in in the order in which they are written. That is, a strict ordering is induced on such that 𝐛1𝐛2𝐛𝑛.

Notation

An ordered finite basis ={𝐛1,𝐛2,,𝐛𝑛} may be denoted as a list 𝐛1,𝐛2,,𝐛𝑛 or tuple (𝐛1,𝐛2,,𝐛𝑛) instead of a set.

Recall that by the Unique Representation Theorem, every vector in a vector space 𝑉 can be represented as a unique linear combination of vectors from a basis . With ordered, the weights of that linear combination can be properly defined:

Definition 23: Basis Coordinates

Let =𝐛1,𝐛2,,𝐛𝑛 be an ordered, finite basis for a vector space 𝑉 over 𝐹, and let 𝐯 be a vector in 𝑉. The coordinates of 𝐯 with respect to the basis are the unique weights 𝑐1,𝑐2,,𝑐𝑛𝐹 such that:

𝐯=𝑐1𝐛1+𝑐2𝐛2++𝑐𝑛𝐛𝑛.

That is, the coordinates of 𝐯 with respect to are the weights of the unique linear combination of the vectors 𝐛1,𝐛2,,𝐛𝑛 that represents 𝐯.

A basis for 𝑉 over a field 𝐹 has dim(𝑉) number of vectors, so there would be dim(𝑉) number of coordinates for each vector in 𝑉 with respect to that basis. Thus, we can represent each vector in 𝑉 as an 𝑛-tuple of coordinates in 𝐹, where 𝑛=dim(𝑉). An 𝑛-tuple of coordinates in 𝐹 is an element of 𝐹𝑛, so we can represent each vector in 𝑉 as a vector from 𝐹𝑛. Specifically:

Definition 24: Basis Coordinate Vector

If 𝑐1,𝑐2,,𝑐𝑛𝐹 are the coordinates of 𝐯 with respect to an ordered, finite basis for a vector space 𝑉 over 𝐹, then the basis coordinate vector of 𝐯 with respect to , denoted [𝐯], is the vector in 𝐹𝑛 given by:

[𝐯]=(𝑐1,𝑐2,,𝑐𝑛)𝐹𝑛.

This naturally leads to the fact that the vector space 𝐹𝑛 should have dimension 𝑛, since it takes 𝑛 coordinates to represent each vector in 𝐹𝑛:

Corollary 11

The vector space 𝐹𝑛 is 𝑛-dimensional, i.e., dim(𝐹𝑛)=𝑛.

Since 𝐹𝑛 is a vector space, it has a basis. In particular, the basis that self-describes the coordinates of vectors in 𝐹𝑛 is called the standard basis for 𝐹𝑛:

Definition 25: Standard Basis

The standard basis for the vector space 𝐹𝑛 is the ordered basis =𝐞1,𝐞2,,𝐞𝑛, where 𝐞𝑖 is the vector in 𝐹𝑛 with the 𝑖th coordinate set to 1 and all other coordinates set to 0:

=𝐞1,𝐞2,,𝐞𝑛 where 𝐞1=(1,0,0,,0)𝐞2=(0,1,0,,0)𝐞𝑛=(0,0,0,,1).
Example.
The vector (1,2,3)3 has coordinates (1,2,3) under the standard basis , since 1𝐞1+2𝐞2+𝐞3=1(1,0,0)+2(0,1,0)+3(0,0,1)=(1,2,3).

Corollary 12

For any 𝐯𝐹𝑛, [𝐯]=𝐯.

Notation

The standard basis for 𝐹𝑛 may be denoted 𝑛 or even 𝑛(𝐹) to indicate that it is the standard basis for 𝐹𝑛.

Exercises

Exercise 35.
Describe the set of all vector spaces with exactly one basis.
Exercise 36.
Show that if 𝑆 is a set of 𝑛 vectors from an (𝑛+1)-dimensional vector space 𝑉, then 𝑆 cannot span 𝑉.
Exercise 37: Extension of Theorem 13.
Suppose 𝑉 is a finite-dimensional vector space with dimension 𝑛, and 𝐻 is a subspace of 𝑉. Show that there exists a set of at most 𝑛 vectors from 𝑉 that spans 𝐻.
Exercise 38.
Show that if {𝐯1,𝐯2,𝐯3,𝐯4} is a basis for a vector space 𝑉, then {𝐯1+𝐯2,𝐯2+𝐯3,𝐯3+𝐯4,𝐯4} is also a basis for 𝑉.
Exercise 39.
Let 2() be the vector space of all polynomials with real coefficients of degree at most 2. Define two bases for 2(): ={1,𝑥,𝑥2} and 𝒞={1,1+𝑥,1+𝑥+𝑥2}. Find [3+2𝑥+𝑥2] and [3+2𝑥+𝑥2]𝒞.
Exercise 40.

Suppose 𝑉 is a vector space and is a basis for 𝑉. Show that for any 𝐯,𝐰𝑉,

[𝐯+𝐰]=[𝐯]+[𝐰].
Exercise 41.
Suppose 𝑉 is a vector space and 𝐯1,𝐯2,𝐯3𝑉 are linearly independent. Show that dim(span{𝐯1+𝐯2,𝐯1𝐯3,𝐯2+𝐯3})=2.
Exercise 42.

Suppose {𝐯1,𝐯2,,𝐯𝑝} is a linearly independent set in 𝑉, and 𝐰𝑉. Show that:

dim(span{𝐯1+𝐰,𝐯2+𝐰,,𝐯𝑝+𝐰})𝑝1.
Exercise 43.

For any three subspaces 𝑋, 𝑌, and 𝑍 of a finite-dimensional vector space 𝑉, show that:

dim(𝑋+𝑌+𝑍)=dim(𝑋)+dim(𝑌)+dim(𝑍)dim(𝑋𝑌)dim(𝑋𝑍)dim(𝑌𝑍)+dim(𝑋𝑌𝑍).
Exercise 44.

For any three subspaces 𝑋, 𝑌, and 𝑍 of a finite-dimensional vector space 𝑉, show that:

dim(𝑋+𝑌+𝑍)=dim(𝑋)+dim(𝑌)+dim(𝑍)13(dim(𝑋𝑌)+dim(𝑋𝑍)+dim(𝑌𝑍))13(dim((𝑋+𝑌)𝑍)+dim((𝑋+𝑍)𝑌)+dim((𝑌+𝑍)𝑋)).
Exercise 45.
Suppose 𝑉 is finite-dimensional, and 𝑋 and 𝑌 are subspaces of 𝑉 such that 𝑉=𝑋+𝑌. Show that there exists a basis for 𝑉 such that 𝑋𝑌.
Exercise 46.
Suppose 𝑉 is a finite-dimensional vector space, and 𝑈 and 𝑊 are subspaces of 𝑉 such that dim(𝑈)+dim(𝑊)>dim(𝑉). Show that 𝑈𝑊 contains a nonzero vector.
Exercise 47.
Let 𝑋 and 𝑌 be subspaces of a vector space 𝑉 such that 𝑉=𝑋𝑌. Let {𝐱1,𝐱2,,𝐱𝑚} be a basis for 𝑋 and {𝐲1,𝐲2,,𝐲𝑛} be a basis for 𝑌. Show that {𝐱1,𝐱2,,𝐱𝑚,𝐲1,𝐲2,,𝐲𝑛} is a basis for 𝑉. (This is an extension of Theorem 15.)
Exercise 48.
Suppose 𝑉 is a finite-dimensional vector space, and 𝑋 is a subspace of 𝑉. Show that there exists a subspace 𝑌 of 𝑉 such that 𝑉=𝑋𝑌.
Exercise 49.
Recall from Exercise that is a vector space over . Show that in particular, is an infinite-dimensional vector space over .
Exercise 50.
Show that the vector space 𝐶[0,1](), the set of all real-valued functions that are continuous on the closed interval [0,1], is infinite-dimensional.