A sequence of elements of a vector space is a basis for if and only if
it is linearly independent, and
it is a spanning sequence for .
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.
The most important example is the standard basis of (no matter which field is). Let be the column vector in with a 1 in position and 0s elsewhere. When , for example, we have
Then is a basis of , called the standard basis. To check this, we must verify the two parts of the definition of basis.
(Linear independence). Suppose . To verify linear independence we have to prove all the are zero. Using the definition of the we get . So for all as required.
(Spanning) We have to show that any element of is a linear combination of . Let . Then , so is a linear combination of the as required.
consists of all polynomials of degree at most 3 in the variable . It has a basis , because
(linear independence) if is the zero polynomial, that is if it is zero for every value of , then . This is because a polynomial of degree has at most roots.
(spanning) every polynomial of degree at most 3 has the form for some , and so is a linear combination of .
Let be the -vector space of all matrices. Let be the matrix which as a 1 in position and zeroes elsewhere. Then
is a basis for . This can be proved in exactly the same way as we proved that the standard basis of really was a basis.
If is a basis of , every can be written uniquely as for some scalars .
Every can be written this way because the are a basis and hence a spanning sequence for . The problem is to prove that every can be written like this in only one way.
Suppose that
Then subtracting one side from the other,
Linear independence of the tells us for all , so for all . We have proved that there is only one expression for as a linear combination of the elements of the basis . ∎
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 , there is a one-one correspondence between the elements of 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 is a basis of a vector space and that
Then the uniqueness result Lemma 4.8.1 tells us we can compare coefficients to get that , , and so on.
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 is different to but clearly still a basis of . But it is also true in a more interesting way. Take , for example: we know is a basis, but so also is
Let’s check this. Suppose . Then , so from which it follows and is linearly independent. To show spans , let . We must show there exist such that . The condition and must satisfy is . It is always possible to find such and : solving the equations you get , so spans .
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 . The smallest possible example is a 2-pixel image which we could represent as an element in , 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 . Any image can be re-written in terms of the new basis:
So the new basis is giving us a different description of the image. It tells us how bright the image is overall (the coefficient of 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 of is a measure of how different the brightnesses and of the two pixels are).