4 Linear algebra

4.8 Bases

4.8.1 Basis definition

Definition 4.8.1.

A sequence 𝐯1,,𝐯n of elements of a vector space V is a basis for V if and only if

  1. 1.

    it is linearly independent, and

  2. 2.

    it is a spanning sequence for V.

Importantly, bases are sequences not sets. This is because the order of a basis matters to some of the definitions we will make later, like the matrix of a linear map.

4.8.2 The standard basis for 𝔽n

The most important example is the standard basis of 𝔽n (no matter which field 𝔽 is). Let 𝐞i be the column vector in 𝔽n with a 1 in position i and 0s elsewhere. When n=3, for example, we have

𝐞1=(100),𝐞2=(010),𝐞3=(001).

Then 𝐞1,,𝐞n is a basis of 𝔽n, called the standard basis. To check this, we must verify the two parts of the definition of basis.

  1. 1.

    (Linear independence). Suppose i=1nλi𝐞i=𝟎. To verify linear independence we have to prove all the λi are zero. Using the definition of the 𝐞i we get (λ1λn)=(00). So λi=0 for all i as required.

  2. 2.

    (Spanning) We have to show that any element of 𝔽n is a linear combination of 𝐞1,,𝐞n. Let 𝐯=(v1vn)𝔽n. Then 𝐯=i=1n𝐯i𝐞i, so 𝐯 is a linear combination of the 𝐞i as required.

4.8.3 More basis examples

Example 4.8.1.

3[x] consists of all polynomials of degree at most 3 in the variable x. It has a basis 1,x,x2,x3, because

  • (linear independence) if a+bx+cx2+dx3 is the zero polynomial, that is if it is zero for every value of x, then a=b=c=d=0. This is because a polynomial of degree m has at most m roots.

  • (spanning) every polynomial of degree at most 3 has the form a+bx+cx2+dx3 for some a,b,c,d, and so is a linear combination of 1,x,x2,x3.

Example 4.8.2.

Let V=Mm×n(𝔽) be the 𝔽-vector space of all m×n matrices. Let Eij be the matrix which as a 1 in position i,j and zeroes elsewhere. Then

E11,E21,,En1,E12,E22,Emn

is a basis for V. This can be proved in exactly the same way as we proved that the standard basis of 𝔽n really was a basis.

4.8.4 What is a basis good for?

Lemma 4.8.1.

If 𝐯1,,𝐯n is a basis of V, every 𝐯V can be written uniquely as i=1nλi𝐯i for some scalars λi.

Proof.

Every 𝐯V can be written this way because the 𝐯i are a basis and hence a spanning sequence for V. The problem is to prove that every 𝐯V can be written like this in only one way.

Suppose that

i=1nλi𝐯i=i=1nμi𝐯i.

Then subtracting one side from the other,

i=1n(λiμi)𝐯i=𝟎V.

Linear independence of the 𝐯i tells us λiμi=0 for all i, so λi=μi for all i. We have proved that there is only one expression for 𝐯 as a linear combination of the elements of the basis 𝐯1,,𝐯n. ∎

This means that a basis gives a way of giving coordinates to an arbitrary vector space, no matter what the elements look like. Once we fix a basis of V, there is a one-one correspondence between the elements of V and the coefficients needed to express them in terms of that basis — you could call these the coordinates of the vector in terms of this basis.

A basis also allows us to compare coefficients. Suppose 𝐯1,,𝐯n is a basis of a vector space V and that

λ1v1++λnvn=μ1v1++μnvn.

Then the uniqueness result Lemma 4.8.1 tells us we can compare coefficients to get that λ1=μ1, λ2=μ2, and so on.

4.8.5 Multiple bases for the same vector space

A given vector space can have many different bases. This is true in a trivial sense: as we saw before, basis are sequences, the order matters, so (01),(10) is different to (10),(01) but clearly still a basis of 2. But it is also true in a more interesting way. Take 2, for example: we know 𝐞1,𝐞2 is a basis, but so also is

𝐮=(11),𝐯=(11).

Let’s check this. Suppose a𝐮+b𝐯=0. Then (a+bab)=(00), so a+b=0=ab from which it follows a=b=0 and 𝐮,𝐯 is linearly independent. To show 𝐮,𝐯 spans 2, let (xy)2. We must show there exist a,b such that a𝐮+b𝐯=(xy). The condition a and b must satisfy is a+b=x,ab=y. It is always possible to find such a and b: solving the equations you get a=(x+y)/2,b=(xy)/2, so 𝐮,𝐯 spans 2.

Here’s why a vector space having several different bases is useful. The expression of an element 𝐯 in terms of different bases can tell us different things about 𝐯. In other words, different bases give different ways of looking at the elements of the vector space.

Say for example you are representing an image as an element of n. The smallest possible example is a 2-pixel image which we could represent as an element (ab)=a𝐞1+b𝐞2 in 2, where the first coordinate tells me how bright the first pixel is and the second tells me how bright the second is.

Now consider the alternative basis 𝐞1+𝐞2,𝐞1𝐞2. Any image a𝐞1+b𝐞2 can be re-written in terms of the new basis:

a𝐞1+b𝐞2=a+b2(𝐞1+𝐞2)+ab2(𝐞1𝐞2).

So the new basis is giving us a different description of the image. It tells us how bright the image is overall (the coefficient (a+b)/2 of 𝐞1+𝐞2 is the average brightness of the two pixels, so it measures the overall image brightness) and how different in brightness the two pixels are (the coefficient (ab)/2 of 𝐞1𝐞2 is a measure of how different the brightnesses a and b of the two pixels are).