Basis and dimension
Independent spanning sets, the common size of bases and counting tests.
A basis is a set that both spans and is independent, so every vector has exactly one representation in it. This page proves that all bases of a space have the same size, defines that size as the dimension and uses dimension to recognise bases by counting.
Bases give unique representations
Span
For a subset (possibly infinite) in a vector space over , the span of is the set of all finite linear combinations of vectors in :
For a finite set , this is the same as allowing one coefficient for each listed vector. When , the sum is the empty sum .
Linear independence
Let be a subset of a vector space over . The set is linearly independent if every finite list of distinct vectors has the property that, for scalars ,
implies
Basis
A set in a vector space is a basis for if it is linearly independent and spans .
Spanning gives a representation for every vector in and independence makes it unique, as shown in linear independence. A basis is therefore a generating set with no redundant direction: removing any basis vector destroys spanning.
For an infinite set, span still uses finite linear combinations and independence means that every finite subset is independent. The calculations below use finite bases.
Representation in a basis
If is a basis for , then every vector has a unique representation
- [1]:Basis
- [2]:Independence and uniqueness
- [3]:Proof
Because spans , at least one representation of exists. If
then subtracting the two expressions gives
Independence of forces every to be zero, so the representation is unique.
A basis of
Consider
The matrix with these vectors as columns row reduces to , so its columns are linearly independent and span . Thus is a basis for .
[routine]
- [1]:Basis
- [2]:The homogeneous-system test
A basis for a generated subspace
Let
The first two columns are leading columns when the matrix formed from is row reduced. They are independent and the remaining vectors are redundant, so
is a basis for .
[routine]
- [1]:Basis
- [2]:The homogeneous-system test
- [3]:Span
A basis of
For , write
Equating coefficients gives
The coefficient matrix has determinant , so this system has a unique solution for every . Therefore spans and is linearly independent, so it is a basis.
[routine]
- [1]:Basis
- [2]:Span
- [3]:Linear independence
Why dimension is well defined
A spanning set can never be smaller than an independent set in the same space. This single comparison shows that all bases have the same size.
Spanning sets count against independent sets
Let and be finite subsets of a vector space . If and is linearly independent, then
- [1]:Span
- [2]:Linear independence
- [3]:Proof
- [4]:All bases have the same size
Because spans , each vector of is a linear combination of the vectors in . Suppose . The coefficient matrix then has more columns than rows, so has a non-zero solution . This relation lifts to , that is,
which contradicts the linear independence of . Hence .
All bases have the same size
Any two finite bases of a vector space contain the same number of vectors.
- [1]:Basis
- [2]:Spanning sets count against independent sets
- [3]:Proof
- [4]:Dimension
If and are bases, the counting theorem gives by taking as the spanning set and as the independent set. Reversing their roles gives , so the cardinalities are equal.
This result covers every basis of a space with a finite basis , because no basis of such a space can be infinite. An infinite basis would contain a finite subset with more than vectors. That subset is independent, while spans , which contradicts the counting theorem.
Dimension
If a vector space has a finite basis, then is finite-dimensional and its dimension, denoted , is the common number of vectors in all bases of .
The zero vector space has the empty basis, so . If has no finite basis, it is called infinite-dimensional. For example, is infinite-dimensional: no finite list of polynomials can span polynomials of arbitrarily high degree.
Using dimension to recognise a basis
Once the dimension is known, a set with the right number of vectors needs only one of the two basis checks.
Counting with dimension
Let be finite-dimensional.
- If a set of vectors spans , then . If , then is a basis.
- If a set of vectors is linearly independent in , then . If , then is a basis.
Compare with a basis of in the preceding counting theorem. When spans, taking as the spanning set and as the independent set gives . If equality holds but is dependent, one vector can be removed without changing its span. That would give a spanning set with fewer than vectors, a contradiction.
When is independent, take as the spanning set and as the independent set to get . If equality holds but does not span, adjoining a vector outside its span gives an independent set with more than vectors, again a contradiction.
Two properties and the dimension are enough
For a set of vectors in a finite-dimensional vector space , any two of the following imply that is a basis for :
- is linearly independent;
- spans ;
- .
- [1]:Basis
- [2]:Counting with dimension
Standard bases and dimensions
The standard basis of is
The standard polynomial basis is for . For , the standard matrix basis is
More generally, the standard bases give
Each count is the number of free coefficients: a polynomial in has coefficients and an matrix has one for each of its entries.
[routine]
- [1]:Dimension
Counting prevents spanning
Two polynomials cannot span , because
Likewise, three polynomials in must be linearly dependent, since
[routine]
Coordinates and bases constructs bases from data and records the unique coefficients.