A basis of has three vectors, and a first course uses that count freely. But why could no cleverly chosen basis of have four vectors, and how would you count directions in the polynomial space , where there are no axes to look at? The answer is an argument about spanning lists and independent lists, not a picture. This lesson proves that any two bases of a finite-dimensional space have the same length, which makes dimension well defined, and then shows how to shrink a spanning list or grow an independent list into a basis.
Key terms
Exchange lemma
Definition Let be a vector space over , where is or , and let all lists be finite. The lemma rests on a replacement step. If span and with , then replacing by gives a list that still spans , because
The exchange lemma says that if are linearly independent in and span , then . Moreover, after the are renumbered, the list spans .
To prove it, insert one at a time. Suppose have replaced of the and the current list still spans . Write as a combination of the current list. Some coefficient on a remaining must be nonzero, since otherwise would be a combination of , which contradicts independence. Replacing that by keeps the list spanning. If were larger than , then after steps no would remain, and the same reasoning would make a combination of , which is impossible. So .
In plain words Each independent vector can take the seat of some spanning vector without losing anything that was reachable. There are only seats, so an independent list can never be longer than a spanning list.
Example In take the standard basis as the spanning list, and insert and , which are independent because neither is a multiple of the other. First , and the coefficient of is not zero, so spans , with
Next , and the coefficient of the remaining vector is not zero, so spans . Solving gives and then .
Invariance of basis size
Definition Let be a vector space over that is spanned by some finite list. Then every linearly independent list in has at most as many vectors as that spanning list, and any two bases of have the same number of vectors. For the proof, let and be bases of . The first list is independent and the second spans, so by the exchange lemma. Exchanging the roles gives , so . The scalar field stays fixed throughout, and bases of the same set over and over may have different lengths.
In plain words However a basis is chosen, it has the same number of vectors. That count belongs to the space and its field, not to any particular basis.
Example The standard basis of spans and is independent. So no independent list in has four vectors, and no list of two vectors spans , since otherwise the independent list would be longer than a spanning list. Every basis of therefore has exactly three vectors. Over different fields the count can differ. The space has bases of length over and of length over , and there is no conflict, because these are bases for different scalar fields.
Dimension
Definition A vector space over is finite-dimensional if some finite list spans it. Such a space has a basis, by the extraction result below, and its dimension , written when the field needs saying, is the number of vectors in any basis. The zero space has the empty list as a basis and dimension . If , then
- every list of more than vectors in is linearly dependent,
- no list of fewer than vectors spans ,
- a list of exactly vectors that is independent also spans, so it is a basis,
- a list of exactly vectors that spans is also independent, so it is a basis.
The first two facts are the exchange lemma applied with a basis of . For the third, if an independent list of vectors did not span , appending a vector outside its span would give an independent list of vectors, as shown under extension below, which the first fact rules out. For the fourth, a dependent spanning list of vectors could lose one vector and still span, which the second fact rules out.
In plain words Dimension is the largest number of independent vectors, and also the smallest number of vectors that can span. In a space of known dimension , a list of vectors needs only one of the two checks, but it does need one.
Example The standard dimensions are , and . The three vectors , and do not form a basis of , even though there are three of them. They are dependent, and their span is only the plane . The count alone proves nothing without independence or spanning.
Extracting a basis from a spanning list
Definition Every finite list that spans a vector space over contains a basis of . To find one, as long as the list is linearly dependent, remove a vector that is a linear combination of the others. A dependent list always has such a vector, since a relation with can be solved for . Removing it does not change the span, and the length drops each time, so the process stops, and it can stop only at a list that is independent and still spans . In particular, every finite-dimensional space has a basis.
In plain words A spanning list may carry passengers that add nothing new. Remove them one at a time and what remains is a basis.
Example In the real space the list spans, since every element has the form . It is dependent, because , so remove . The remaining list still spans, and it is independent because is the zero polynomial only when . So is a basis. The list is not a basis, even though it also has three vectors. It is dependent, and no combination of it produces .
Extending an independent list to a basis
Definition In a finite-dimensional vector space over , every linearly independent list can be extended to a basis of . The key fact is that if is independent and , then is independent. Indeed, in a relation , a nonzero would put in the span, so , and then independence gives . To extend, take a spanning list of and go through it in order, appending whenever it is not in the span of the current list. Each step keeps the list independent, and at the end every lies in its span, so the list spans .
In plain words An independent list may leave directions uncovered. Add vectors from outside the current span, one at a time, until nothing is left outside.
Example In the independent list , spans the plane , and is not on that plane. So is independent. It also spans, because
and a target is reached by exactly one choice, , and . For instance, . The extension is not unique. Running the procedure with the spanning list appends first, since is not on the plane either, and produces the basis .
Dimension of a subspace
Definition Let be a finite-dimensional vector space over and let be a subspace of . Then is finite-dimensional and . Moreover, only when . For the proof, start with the empty list and, as long as the current list does not span , append a vector of outside its span. Each list is independent, so by the exchange lemma, with a basis of as the spanning list, at most vectors can be appended. The process therefore stops at a basis of with at most vectors. If , that basis is an independent list of vectors in , so it spans , and .
In plain words A subspace cannot hold more independent directions than the whole space, and a subspace with as many independent directions as the whole space is the whole space.
Example In the real space , which has dimension , let . The constant polynomial is not in , so and therefore . The polynomials , and lie in , and they are independent, because the combination
has coefficients , and on , and , so it is the zero polynomial only when . So , hence , and these three polynomials form a basis of with no separate spanning argument.
Check yourself
- Explain without computing why the vectors , , and in are linearly dependent. Then find a dependence relation.
Show the answer
The three standard basis vectors span , so by the exchange lemma an independent list in has at most three vectors. A list of four must be dependent. For a relation, the first three vectors add up to , which is twice the fourth, so
- In the real space , extend the independent list , to a basis by running through the spanning list .
Show the answer
A combination equals only if , and , which is impossible. So is outside the span, and appending it gives the independent list , , . This list has independent vectors, so it is already a basis, and and are not appended. As a check, and .
- Let be a vector space of dimension over . Which statements are true? (a) Every list of five vectors in is linearly dependent. (b) Every list of four vectors in is a basis. (c) No list of three vectors spans . (d) Every linearly independent list of four vectors spans .
Show the answer
Statement (a) is true, by the exchange lemma with a basis of four vectors as the spanning list. Statement (b) is false. If is a basis, the list has four vectors but is dependent, since the coefficients give . Counting is not enough without checking independence or spanning. Statement (c) is true, because a spanning list of three vectors would be shorter than the independent list given by a basis. Statement (d) is true, because an independent list whose length equals the dimension is a basis.