A basis must generate the whole space without redundant vectors. If a subspace is described by equations, finding such a list is not immediate. If some independent vectors have already been chosen, the basis must also retain them.
Throughout, scalars are real and . Selecting vectors outside the current span produces a basis; replacing suitable vectors in an existing basis makes it possible to retain a prescribed independent list. Once two ordered bases are available, their unique coefficients determine how coordinates convert between them.
Why existence is not automatic
For familiar spaces such as , it is easy to write down the standard basis. For an arbitrary subspace , a basis is less obvious. The subspace might be given by equations, by a span, or by a condition such as .
Theorem 3.7.1
(Existence of a basis for subspaces of )
Every nonzero subspace of has a basis. More precisely, there are vectors
such that , the list is linearly independent, and
The proof is a controlled selection process.
Start with any nonzero vector . If every vector in is already a multiple of , then is a basis. If not, choose that is not a multiple of . Then are linearly independent.
Continue in the same way. At step , if the current list does not span , choose a new vector outside the current span. The new list stays linearly independent because the new vector was chosen not to be a linear combination of the old ones.
To justify preservation of independence, suppose a relation involving the new vector has a nonzero coefficient on it. Solving for that vector would put it in the old span, contrary to its selection. Its coefficient must therefore be zero; independence of the old list forces all remaining coefficients to vanish.
This process cannot go on forever: no more than vectors in can be linearly independent. Therefore it must stop, and when it stops the chosen vectors span . They are independent by construction, so they form a basis.
The bound used here follows directly from homogeneous systems and does not require equality of basis sizes. A matrix of vectors in has unknowns but at most pivots. A free unknown supplies a nonzero solution of the homogeneous system, hence a dependence relation. Thus selection cannot produce independent vectors. The bound controls termination; it is the stopping condition, namely that no vector of lies outside the current span, that proves spanning.
The zero subspace is the boundary case: its basis is the empty list. The empty linear combination is zero, so this list spans and has no nontrivial relation. The list containing the zero vector is dependent and is not a basis. Thus the dimension is zero, and no selection step is needed.
Worked example 3.7.2
(A basis produced by the selection idea)
Let
Choose
This one vector does not span all of , because
is not a scalar multiple of . Therefore are linearly independent.
Now every vector in can be written as
or, using our chosen list,
because . Hence span and form a basis. This also gives .
The replacement idea
The basis-existence proof grows an independent list. The replacement theorem explains the complementary operation: insert new independent vectors into an old basis while deleting the correct old vectors.
Theorem 3.7.3
(Replacement theorem)
Let be a subspace of . Suppose
is a basis for , and suppose
are linearly independent. Then:
- ;
- the vectors , together with some of the old basis vectors , form another basis for .
The proof begins with the one-vector case. Suppose is a basis and
At least one coefficient is nonzero. If , then
So the list
spans the same space as the old basis: all new vectors lie in , and the displayed expression recovers the only deleted old vector. Independence needs its own argument. Suppose
Substituting the expression for gives
Independence of the old basis implies and for every . Since , first , then every . This proves both basis conditions without appealing to an unproved counting rule. Any nonzero coefficient allows the corresponding old vector to be replaced; relabelling only simplifies notation.
The nonzero coefficient also identifies exactly which deletions are permitted. If , then already lies in the span of the old vectors other than . Deleting leaves a list unable to recover it, since the old basis is independent. Thus a nonzero new vector does not permit an arbitrary deletion. When , the argument simply says that a nonzero multiple of the single basis vector is another basis.
Why repeated replacement keeps every inserted vector
Suppose we have already constructed a basis consisting of and remaining old vectors, denoted . Expand the next vector in this current basis:
At least one coefficient on a remaining old vector is nonzero. Otherwise would belong to the span of , giving a nontrivial relation among the assumed independent new vectors. Apply the one-vector proof at that nonzero coefficient. It deletes , retains every previously inserted , and produces another basis of the same size. This is the invariant that permits the next step; merely knowing that some coefficient is nonzero would not protect the earlier insertions.
Counterexample mode
Dependent new vectors stall the replacement
Claim: any vectors of can be inserted one at a time. In with basis , take and . After replaces , we get : no remaining old vector has a nonzero coefficient, so cannot enter.
We have not assumed to establish the count. If , perform the first insertions. The list then spans , so is a combination of that list. This contradicts independence. Hence , and after exactly steps the surviving old vectors complete the requested basis. When , none remain. If , keep the original basis; if , then and an independent list in it must also be empty.
Worked example 3.7.4
(Two replacements that preserve the first insertion)
In , start with the standard basis and prescribe
These vectors are independent: the second and third entries of give . First replace by , since . The current basis is . To insert the second vector, express it in this current basis, rather than reusing its original standard coordinates:
The coefficient on the remaining old vector is , so replace and retain . The result is . Replacing instead would discard the first prescribed vector and fail our extension objective, even though a different valid basis could result.
Verify the final basis directly. For any ,
The three entries on the right are respectively , proving spanning. A relation gives ; its second, first, and third entries successively force . Thus the calculation verifies independence as well as recording which old vector survives.
Dimension consequences
The replacement theorem gives another proof of the equal-size result established in 3.5 Basis and dimension, with the additional construction of a basis containing any prescribed independent list.
Theorem 3.7.5
(All bases of the same finite-dimensional subspace have the same size)
If and are both bases for the same subspace , then and contain the same number of vectors.
Indeed, apply the replacement theorem twice. If has vectors and has vectors, then the independence of inside a space with basis gives . Reversing the roles gives . Therefore .
Several useful statements follow immediately.
Theorem 3.7.6
(Counting rules inside a -dimensional subspace)
Let .
- Any linearly independent list in has at most vectors.
- Any list of more than vectors in is linearly dependent.
- A linearly independent list in can be extended to a basis of .
- A spanning list for can be reduced to a basis of by deleting redundant vectors.
For extension, the replacement construction supplies the missing old basis vectors explicitly. For reduction, start with a finite spanning list. Whenever it is dependent, solve a nontrivial relation for a vector with nonzero coefficient and delete that vector. The span stays unchanged, and the list gets shorter, so the process ends with an independent spanning list. These procedures preserve different data: extension retains the given independent vectors, while reduction selects from the given generators.
Ordered bases and coordinate vectors
A basis as a set tells us which vectors are available. An ordered basis also fixes their order. Order matters for coordinates.
If
is an ordered basis for , then every has a unique expression
The coordinate vector of relative to is
Spanning gives existence of this expression. If two coefficient columns represented the same vector, subtracting the expressions would give a zero combination of the basis vectors. Independence forces the coefficient difference to be , proving uniqueness. Notice that has ambient entries, while has entries. They are different kinds of columns even when their lengths happen to agree.
Changing the order of the basis changes the coordinate vector, even if the underlying basis vectors are the same.
Change-of-basis theorem
Now suppose the same nonzero -dimensional subspace has two ordered bases:
Write the basis matrices
Theorem 3.7.7
(Change-of-basis theorem)
There is a unique invertible matrix such that
The columns of are the coordinate vectors of the 's in the ordered basis . If
then the coordinate vectors satisfy
Proof
(Independence replaces cancellation by a matrix inverse)
The two basis matrices have size ; neither needs to be square. The proof uses uniqueness of coefficients each time a basis matrix must be cancelled.
Construct the columns. For each , spanning by supplies a column with . Independence makes this column unique. Assemble ; the column rule for multiplication gives .
Construct the reverse matrix. Similarly, let and . Then , so
For each standard coordinate column , the first equality implies
Independence of the columns of forces . This holds for every column, hence . The second equality and independence of the columns of likewise give . Thus . No inverse of a rectangular basis matrix was used.
Prove uniqueness and the conversion rule. If also , then each column of satisfies . Independence forces , hence , even without assuming the competing matrix invertible. Finally,
The same independence argument gives , which is the desired coordinate formula. Spanning supplied the conversion columns; independence supplied uniqueness, invertibility, and the rule for every vector.
The matrix converts the coordinate column from basis to basis while leaving the ambient vector fixed:
Because is invertible, the reverse conversion is
If , then and are square invertible matrices, and the formula becomes especially concrete:
For a proper subspace , its dimension is less than . The basis matrix is therefore not square; find each column of by solving
Worked example: changing coordinates in a plane
Worked example 3.7.8
(One plane, two coordinate columns)
Let
Let . In a relation , the first entry gives and the second then gives . Thus is a basis of . Similarly has second and third entries , so is independent. To check that these independent lists span the same plane, use both directions:
These put the in , and the following equalities put the in the span of the . Mutual inclusion of the spans proves that is also a basis of .
The vector equalities
combine into the matrix equality
Therefore
is the change-of-basis matrix from the ordered basis to the ordered basis .
For example, if
then
So
Compute the ambient vector independently in both descriptions:
The reverse equalities above give
Multiplying the displayed matrices in either order gives , checking the inverse directly. The actual vector has three entries and stays fixed; the two coordinate columns each have two entries because the plane has dimension two. This also checks the direction of conversion without relying on a memorized matrix formula.
What changes when we change coordinates?
In the plane example, the column becomes , but the vector does not change. To understand that statement, keep the job of each column visible. A coordinate column is a list of instructions for combining a particular ordered basis; its entries alone do not identify the ambient vector.
Write and . Each map takes coefficients and reconstructs a vector in . Spanning makes it onto , and independence makes it one-to-one. Its inverse means “take coordinates in this basis”, as a map from to . It does not mean that the possibly rectangular matrix or has a square-matrix inverse.
Concept lensStructural
One numerical matrix, two different jobs
For a coordinate change, the input and output bases differ:
The vector in stays fixed. In fact, is a matrix of the identity map on , using for input coordinates and for output coordinates. There is no reason for this matrix to be : the two coordinate conventions differ.
We can instead use the same numerical array to define a linear map by requiring
Now both sides use -coordinates. This defines a map because coordinates exist uniquely. Taking coordinates is linear: reconstructing gives , so uniqueness makes this column equal to . Matrix multiplication and reconstruction are linear too, so is linear. For the vector in our example, it gives
The arithmetic is the same in both uses. Reconstructing the output in gives ; reconstructing it in gives . Thus “multiply by ” is incomplete until we specify what the input and output coordinates mean.
A coordinate change is itself a linear map between coordinate spaces. The point is not to deny its linearity, but to distinguish that map from an operation that changes the vector in . Later, diagonalization and similarity will use this distinction to describe one fixed linear action in two bases.
Coordinates and geometric length
The distinction also matters when measuring length. For this paragraph use the ordinary dot product in and its norm , developed further in inner products, norms and angles. If and , then
The matrix is the Gram matrix of the ordered basis: its entry is . It records the lengths of the basis vectors and their mutual dot products. In particular,
This is positive whenever , because independence implies . For an orthonormal basis, , and the formula reduces to the familiar sum of squared coefficients. An arbitrary basis does not justify that simplification.
Proof X-ray
The Gram matrix changes so that the length does not
The basis relation determines both the coordinate rule and the metric rule. Define . Taking a transpose and multiplying gives
If , it follows that
The two expressions measure the same ambient vector. The left and right coordinate columns need not have equal ordinary squared norms and : each must be paired with its own basis's Gram matrix. This rule uses a transpose on the left, rather than the inverse that appears when changing the matrix of a linear operator.
If both bases are orthonormal, then , so . In that case is an orthogonal matrix and does preserve the ordinary coordinate norm. Orthonormality is sufficient for that conclusion; a general coordinate change has no such guarantee.
Worked example 3.7.9
(The same squared length appears as 62 in both bases)
For the two bases of our plane,
For instance, , whereas . The first basis is orthogonal but its vectors are not unit vectors; the second is not even orthogonal. Direct multiplication verifies .
Using gives
Using gives
Both agree with . The ordinary coefficient squared norms are instead and . Their difference is not a change in the length of ; it shows why nonorthonormal coordinates require the Gram matrix.
How to compute a change-of-basis matrix
To convert coordinates from to :
- Decide the direction of conversion. If you want from , you need .
- For each , solve .
- Put the solution columns together:
If is square and invertible, this is just
If is not square, solve the systems directly. The solution exists and is unique because the 's form a basis for the same subspace.
The hypotheses are useful computational checks. An inconsistent column system means the proposed source vector is outside the target span. Multiple solutions mean the target columns are dependent. For two actual bases of the same subspace, neither outcome can occur, even when there are more equations than coefficient unknowns.
Common mistakes
Common mistake
(Using the inverse direction by accident)
If , then sends -coordinates to -coordinates: . The inverse sends -coordinates back to -coordinates.
Common mistake
(Forgetting that the bases are ordered)
The ordered basis and the ordered basis give different coordinate vectors. A change-of-basis matrix compares ordered bases, not just unordered sets.
Common mistake
(Trying to invert a non-square basis matrix for a proper subspace)
If is a plane inside , a basis matrix has size , so it is not invertible as a square matrix. Solve column by column instead.
Quick checks
Quick check
(If , can five vectors in be linearly independent?)
Use the replacement-theorem counting rule.
Solution · Answer
No. In a 4-dimensional space, every linearly independent list has at most four vectors. Any five vectors in are linearly dependent.
Quick check
(If , which coordinate vector is equal to?)
Track the equality .
Solution · Answer
It is . Since , uniqueness of coordinates in the -basis gives .
Exercises
Quick check
(In the plane example, let . Find , , and . Do the two coordinate columns have the same ordinary squared norm?)
Use the second column of for , then check the geometric length with the appropriate Gram matrix.
Solution · Guided solution
We have and . The ambient vector is , so . In -coordinates the metric gives ; in -coordinates it gives .
The ordinary coordinate squared norms are and , respectively. Both columns describe the same vector. An orthonormal basis makes the coordinate sum-of-squares rule valid for every vector. Agreement for one particular vector, as happens in the -basis here, does not show that the basis is orthonormal.
Quick check
(Let be a basis for , and let . Which old vector can be replaced immediately by ?)
Look for a nonzero coefficient in the expression of using the old basis.
Solution · Guided solution
The coefficient of is , which is nonzero. Therefore
So spans the same space as . It is also independent, so can replace . The nonzero coefficients of and would also allow replacement after relabelling.
Quick check
(Use the example matrix to convert into .)
Multiply .
Solution · Guided solution
Compute
Thus .
Prerequisites
This note depends on 3.5 Basis and dimension and 3.4 Linear dependence and independence.
Prerequisite proof routes
The following sections record, for each prerequisite result used above, where its proof is given.
Proof of the finite real matrix product laws
The associative, distributive and scalar laws for compatible finite real matrices are proved in 2.1 Matrix multiplication, with the size and scalar hypotheses stated there.
Finite basis existence and extension, without a counting assumption
Exchange for finite real spanning lists, basis existence and basis extension are proved in 3.5 Basis and dimension.
Further study
The explorer below works with two ordered bases of : the standard basis and with , . Find the coefficients that reach the target in each basis. They are the coordinate vectors and , unique because each basis is independent. In the notation of the change-of-basis theorem with , the basis matrix is , so and indeed .
Build one vector from a span
Change the coefficients and watch where lands. Try to reach the target .
Coefficients ,
= = = target
- , so the span is all of
- Target reachable?
- Yes, with
Target not reached yet
; the target is still away.
NoticeEvery output vector is built from the horizontal and vertical directions.
Proof X-ray
Two independence hypotheses with two different jobs
In the argument that repeated replacement keeps every inserted vector, independence of the current basis is what proves each new list independent: it turns one vector relation into separate coefficient equations. Independence of the inserted vectors is used only to guarantee a nonzero coefficient on a remaining old vector, so that no earlier insertion is ever deleted. The bound is a by-product rather than an assumption: an insertion beyond the th would find nothing left to replace.