Home page for accesible maths 2 Vector spaces

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

2.D Dimension and bases

You should be familiar with writing any vector in ℝn as a linear combination of the standard basis vectors, defined in Exercise 2.22(ii). For example, we can write the vector (2,5)=2⁢e1→+5⁢e2→ in ℝ2. Since there is exactly one way to write every vector in ℝn as a linear combination of the sequence (e1→,⋯,en→), this sequence forms a basis.

Definition 2.24:

Let ℬ:=(v1→,⋯,vn→) be a finite sequence of vectors vi→∈V in a vector space over a field F. We say ℬ forms a basis (plural: bases) when ℬ spans V and ℬ is linearly independent.

Exercise 2.25:
  1. i.

    Find 3 different bases of ℝ2.

  2. ii.

    Find a basis of ℝ4 such that all coordinates of all the vectors are non-zero.

[End of Exercise]

Theorem 2.26.

A sequence B:=(v1→,⋯,vn→) of vectors in V forms a basis if and only if every vector v→∈V can be written uniquely as a linear combination of the vectors in B.

Example 2.27.

In Example 2.21(i), we proved that

(v1→,v2→,v3→)=((1,0,1),(2,1,0),(0,-1,1))

are three linearly independent vectors in R3, and so they form a basis (see Theorem 2.38). Therefore we should be able to write any vector, such as (1,1,1)∈R3, as a linear combination of these vectors in a unique way. Assume

(1,1,1)=a⁢v1→+b⁢v2→+c⁢v3→

for some a,b,c∈R. Then we obtain a system of equations:

  1. a+2⁢b=1

  2. b-c=1

  3. a+c=1

Solving these produces the unique solution a=3, b=-1, and c=-2. Therefore

(1,1,1)=3⁢v1→-v2→-2⁢v3→.
Exercise 2.28:

How many ways (if any) can you express (2,-1,6)∈ℝ3 as a linear combination of the three vectors (1,1,2),(0,1,2), and (1,0,-1)?

Exercise 2.29:

Prove Theorem 2.26.

[End of Exercise]

Example 2.30.
  1. i.

    The complex numbers ℂ={a+b⁢i|a,b∈ℝ} form a vector space over ℝ. A basis of this vector space is given by v1→=1 and v2→=i. This is because 1 and i span the complex numbers (we can always write complex numbers as a⁢v1→+b⁢v2→), and they are linearly independent, because if a+b⁢i=0 for a,b∈ℝ, then a=b=0.

  2. ii.

    When ℂ is considered as a vector space over the field ℂ, the vectors 1 and i are linearly dependent (so they don’t form a basis). This is because a⋅1+b⋅i=0 has non-trivial solutions for a,b∈ℂ. For example, a=i and b=-1.

Exercise 2.31:
  1. i.

    Prove that 1+i and 1-i together form a basis of ℂ, viewed as a vector space over ℝ.

  2. ii.

    Find all complex numbers z→ such that 1+i and z→ together form a basis of ℂ, viewed as a vector space over ℝ.

  3. iii.

    Prove that the polynomials 1,x,x2,x3,⋯,xn form a basis of 𝒫n⁢(ℝ).

[End of Exercise]

Definition 2.32:

If a vector space V over F has a basis ℬ=(v1→,⋯,vn→) with n elements, then we say V has dimension n. We also write dim⁡V=n (or even dimF⁡(V), if we want to emphasize the field). We will say that the zero vector space V={0→} has dimension zero.

We need to use some caution here, because one might ask: Can a vector space have two different bases, with different numbers of elements? Because if so, then the above definition doesn’t make any sense. Fortunately we have the following theorem (which, logically, should go before the above definition).

Theorem 2.33.

If V has two bases (v1→,⋯,vn→) and (w1→,⋯,wm→), then n=m.

The argument of the following proof actually demonstrates something stronger: if a set of size m spans a vector space, then any linearly independent set has at most m elements. If a vector space has a basis with a finite number of elements, then we say it is finite-dimensional. Otherwise, it is infinite-dimensional.

Proof.

Assume we have two such bases. Then we can write each of the elements wi→ as a linear combination of the vj→ basis:

wi→=βi⁢1⁢v1→+βi⁢2⁢v2→+⋯+βi⁢n⁢vn→=∑j=1nβi⁢j⁢vj→

for each i=1,⋯,m.

Since we have assumed linear independence of the sequence wi→, there are no non-trivial solutions α1,⋯,αm∈F which satisfy the following equations:

0→=α1⁢w1→+⋯+αm⁢wm→=∑i=1mαi⁢wi→=∑i=1mαi⁢(∑j=1nβi⁢j⁢vj→).

By V9 (and V8) this is equal to

∑i=1m(∑j=1nαi⁢βi⁢j⁢vj→),

which by V3 is equal to

∑j=1n(∑i=1mαi⁢βi⁢j⁢vj→),

which by V10 is equal to

∑j=1n(∑i=1mαi⁢βi⁢j)⁢vj→.

Since the sequence of vj→’s are linearly independent, this equation implies ∑i=1mαi⁢βi⁢j=0 for each j=1,⋯,n. Since the numbers βi⁢j are fixed, this is a system of n (linear homogeneous) equations in the m unknowns αi. The only way such a system can have no non-trivial solutions is to have m≤n. This is because if there are more variables than equations, one can always set one of the variables as a parameter, and still find a solution. This was seen in MATH105.

The same argument with the roles of vi→ and wi→ reversed proves n≤m. Therefore n≤m≤n, and hence n=m. ∎

Example 2.34.
  1. i.

    Subspaces in ℝ2 either have dimension 0 (the zero subspace), dimension 1 (a straight line through 0→), or dimension 2 (all of ℝ2).

  2. ii.

    Subspaces in ℝ3 either have dimension 0,1,2, or 3. Dimension 2 subspaces are always planes through 0→.

  3. iii.

    ℂ is a 2-dimensional real vector space; it has a basis 1,i over the field ℝ.

Exercise 2.35:

Find a basis for each of the following vector spaces.

  1. i.

    V=M2⁡(ℝ) as a vector space over the field F=ℝ.

  2. ii.

    V=Mn⁡(ℂ) as a vector space over the field F=ℂ.

  3. iii.

    V=Mn⁡(ℂ) as a vector space over the field F=ℝ.

  4. iv.

    V=𝒫n⁢(ℂ) as a vector space over the field F=ℂ.

  5. v.

    V=𝒫n⁢(ℂ) as a vector space over the field F=ℝ.

  6. vi.

    If V is a complex vector space, make a guess about how dimℝ⁡(V) compares to dimℂ⁡(V).

[End of Exercise]

Theorem 2.36.

Let V be a finite-dimensional vector space over a field F, and assume S is a set of vectors that spans V. Then there is a sequence of vectors in S that forms a basis of V.

Proof.

Let’s construct a sequence as follows:

Step 1: Choose any non-zero vector v1→∈S, and add it to the sequence.

Step 2: If the span of the sequence so far is all of V, then the algorithm ends; otherwise proceed to Step 3.

Step 3: Choose a vector vi→∈S which is not in the span of the sequence so far. Add it to the sequence; the resulting sequence is still linearly independent. Return to Step 2.

Since V is finite-dimensional, this algorithm must terminate. The resulting sequence v1→,v2→,⋯,vr→ is linearly independent and spans V. ∎

[Technical aside: This argument doesn’t work for infinite-dimensional vector spaces. One way of generalizing the term “basis” to infinite-dimensional vector spaces, is an infinite set of linearly independent elements, whose set of (finite) linear combinations is the entire vector space. Then the proof that every infinite-dimensional vector space has a basis requires the Axiom of Choice, which is accepted by most mathematicians. A different way of generalizing the term “basis” is used in MATH317. ]

The following is a consequence of the algorithm used in the proof of Theorem 2.36.

Corollary 2.37.

If v1→,⋯,vr→ is a linearly independent sequence in a finite-dimensional vector space V, then it can be extended to a basis of V. In other words, we can find vectors vr+1→,⋯,vn→ such that v1→,⋯,vn→ is a basis of V.

Combining the above facts, we obtain the following theorem, which gives a convenient condition for a sequence of vectors to be a basis.

Theorem 2.38.

Let v1→,⋯,vn→ be n vectors in an n-dimensional vector space V.

  1. i.

    If v1→,⋯,vn→ is a linearly independent sequence, then it is a basis of V.

  2. ii.

    If v1→,⋯,vn→ spans V, then they form a basis of V.

Proof.

Assume v1→,⋯,vn→ is a linearly independent sequence. By Corollary 2.37, we can find vectors vn+1→,⋯,vm→ in V such that v1→,⋯,vm→ is a basis of V.

But the statement of the Theorem assumes the dimension of V is equal to n, and so every basis has n elements (Theorem 2.33). In particular, m=n. This means that the original sequence v1→,⋯,vn→ was a basis to begin with, which is what we wanted to prove.

For a proof of part (ii), see Exercise 2.63. ∎

Example 2.39.

Let S={v1→=(1,2,3),v2→=(1,0,-1),v3→=(0,1,2),v4→=(0,1,0)}. Is there a basis of R3 consisting of some subset of these vectors?

Solution: Applying the algorithm of Theorem 2.36, take v1→ into the sequence. Next, since v2→ is not a linear combination of v1→, add it as well. Next, is v3→∈span⁡{v1→,v2→}? If it is, then v3→=a⁢v1→+b⁢v2→ for some a,b∈R. When we expand this expression, we obtain a system of equations. Solving that system gives a=12 and b=-12. Hence v3→=12⁢v1→-12⁢v2→. So discard v3→.

Finally, is v4→∈span⁡{v1→,v2→}? Assume x,y∈R are such that

(0,1,0)=x⁢(1,2,3)+y⁢(1,0,-1).

We get the following equations: x+y=0, and 2⁢x=1, and 3⁢x-y=0. By solving that system of equations we see there are no solutions, and therefore (v1→,v2→,v4→) is linearly independent, and by Theorem 2.38, it must form a basis of R3.

Exercise 2.40:

Prove that the polynomials 1, 1+x, 1+x+x2, ⋯, 1+x+⋯+xn form a basis of 𝒫n⁢(ℝ).

Exercise 2.41:

Extend each of the following linearly independent sequences to a basis of the vector space by adding vectors to the sequence.

  1. i.

    (1,1) in ℝ2.

  2. ii.

    (1,1,1),(1,2,3)∈ℝ3.

  3. iii.

    The polynomials 4+2⁢x+x2,x+3⁢x2, and 1+x3 in 𝒫4⁢(ℝ).

[End of Exercise]