Coordinates and bases
Constructing bases and reading coefficients as coordinate vectors.
This page builds bases from given vectors and then uses a basis to turn each vector into a column of coordinates. Coordinates let calculations in any finite-dimensional space be done with columns in .
Constructing a basis from data
Basis
A set in a vector space is a basis for if it is linearly independent and spans .
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 .
A basis can be built from given vectors in two directions, both using pivot columns. A spanning set is cut down to a maximal independent subset and an independent set is extended by standard basis vectors until it spans.
If is a finite non-empty subset of a vector space, then contains a subset which is a basis for . In particular, a non-zero vector space spanned by a finite set has a basis.
Reduce a spanning set to a basis
For a finite set :
- Form the matrix .
- Row reduce to echelon form.
- Keep the original vectors whose columns correspond to pivot columns of the echelon form.
The remaining original vectors form a basis for .
Row operations identify which columns are redundant, but the basis must use the corresponding columns of the original matrix. Removing the redundant vectors preserves the span.
- [1]:Basis
- [2]:Span
- [3]:The homogeneous-system test
- [4]:Eight vectors in
Eight vectors in
Suppose the row-reduced matrix has columns corresponding to eight original vectors:
The leading columns are . Retaining the four original vectors in those positions gives a basis for the span of the eight vectors, so that span has dimension .
[routine]
If is spanned by a finite set and is an independent subset of , then there exists a basis for containing . In other words, every independent subset can be extended to a basis. To build it, keep adjoining a vector outside the current span until the set spans . Each addition preserves independence and the dimension of bounds the size of any independent set, so the process stops after finitely many steps.
Extend an independent set to a basis
For an independent set :
- Form the matrix with columns
where are the standard basis vectors. 2. Row reduce this matrix to echelon form. 3. Keep the original columns corresponding to all pivot columns.
The resulting vectors form a basis for containing .
The standard basis supplies candidate vectors outside the current span. The pivot columns keep the given independent vectors and add only the candidates needed to reach dimension . As before, take the columns from the original matrix: row reduction changes the vectors but not the pivot positions.
Extending a set in
Let
Writing for these vectors, the first two are independent and
so is a basis for . Following the construction, adjoin the standard basis columns:
The leading columns are . Keeping the corresponding original columns gives the basis
for .
[routine]
Coordinates record the unique coefficients
Once an ordered basis is fixed, the unique coefficients of a vector form a column of scalars.
Coordinate vector
Let be an ordered basis for a vector space . If
then the coordinate vector of with respect to is the column
The order of fixes the order of the entries. Changing the order of the basis changes the coordinate vector even though it does not change .
Compute a coordinate vector
To find for an ordered basis :
- Solve
for the coefficients. 2. Place the coefficients in the order determined by :
Step 1 is a span membership problem and its solution is unique because is independent.
Coordinates in the standard polynomial basis
For the ordered basis
of over the chosen scalar field , the polynomial
has coordinate vector
[routine]
Coordinates in a non-standard polynomial basis
Let
First check that these polynomials form a basis. If , equating the constant, linear and quadratic coefficients gives
These equations force all three coefficients to be zero. Thus is an independent set of three vectors in the three-dimensional space , so it is a basis. To find the coordinates of , solve
Equating coefficients gives
Thus
and
[routine]
Orthonormal coordinates
When the basis vectors in are orthonormal, dot products give the coordinates directly, with no system to solve.
Orthonormal set
A set in is orthonormal if
Orthonormal sets are independent
Every orthonormal set is linearly independent.
If , take the dot product with . Orthonormality leaves . This holds for every .
Orthonormal basis
An orthonormal basis of a subspace of is a basis that is also an orthonormal set.
Coordinates in an orthonormal basis
If is an ordered orthonormal basis of a subspace and , then
Each dot product extracts one coefficient because the other basis vectors are perpendicular to it.
- [1]:Orthonormal basis
- [2]:Coordinate vector
- [3]:Proof
- [4]:An orthonormal basis of
Write . Taking the dot product with gives
These are exactly the entries of .
An orthonormal basis of
The set
is orthonormal, hence independent. It has three vectors in , so it is a basis. For
the orthonormal formula gives
[routine]
Coordinate arithmetic and matrix tests
Coordinates preserve vector-space operations
If is an ordered basis for , and , then
These identities follow by adding or scaling the coefficients in the unique representations.
- [1]:Coordinate vector
- [2]:Basis
Square-matrix basis criteria
For a square matrix with columns , the following are equivalent:
- the columns are linearly independent;
- the columns span ;
- the columns form a basis for .
For a square matrix, these basis criteria are equivalent to the familiar tests for invertibility.
Data fitting uses coordinates in to express interpolation conditions. Later, coordinates in the domain and codomain turn a linear transformation into a matrix.