Change of Basis
Representations vary with the bases. For instance, with respect to the bases and
has these different representations.
The same holds for maps: with respect to the basis pairs and , the identity map has these representations.
This section shows how to translate among the representations. That is, we will compute how the representations vary as the bases vary.
Changing Representations of Vectors
In converting to the underlying vector doesn’t change. Thus, the translation between these two ways of expressing the vector is accomplished by the identity map on the space, described so that the domain space vectors are represented with respect to and the codomain space vectors are represented with respect to .
(This diagram is vertical to fit with the ones in the next subsection.)
Definition 1.1 The change of basis matrix for bases is the representation of the identity map with respect to those bases.
Remark 1.2 A better name would be ‘change of representation matrix’ but the above name is standard.
The next result supports the definition.
Lemma 1.3 To convert from the representation of a vector with respect to to its representation with respect to use the change of basis matrix.
Conversely, if left-multiplication by a matrix changes bases then is a change of basis matrix.
Proof The first sentence holds because matrix-vector multiplication represents a map application and so for each . For the second sentence, with respect to the matrix represents a linear map whose action is to map each vector to itself, and is therefore the identity map.
QED
Example 1.4 With these bases for ,
because
the change of basis matrix is this.
For instance, this is the representation of
and the matrix does the conversion.
Checking that vector on the right is is easy.
We finish this subsection by recognizing the change of basis matrices as a familiar set.
Lemma 1.5 A matrix changes bases if and only if it is nonsingular.
Proof For the ‘only if’ direction, if left-multiplication by a matrix changes bases then the matrix represents an invertible function, simply because we can invert the function by changing the bases back. Because it represents a function that is invertible, the matrix itself is invertible, and so is nonsingular.
For ‘if’ we will show that any nonsingular matrix performs a change of basis operation from any given starting basis (having vectors, where the matrix is ) to some ending basis.
If the matrix is the identity then the statement is obvious. Otherwise because the matrix is nonsingular Corollary IV.3.23 says there are elementary reduction matrices such that with . Elementary matrices are invertible and their inverses are also elementary so multiplying both sides of that equation from the left by , then by , etc., gives as a product of elementary matrices .
We will be done if we show that elementary matrices change a given basis to another basis, since then changes to some other basis and changes to some , etc. We will cover the three types of elementary matrices separately; recall the notation for the three.
Applying a row-multiplication matrix changes a representation with respect to to one with respect to .
The second one is a basis because the first is a basis and because of the restriction in the definition of a row-multiplication matrix. Similarly, left-multiplication by a row-swap matrix changes a representation with respect to the basis into one with respect to this basis .
And, a representation with respect to changes via left-multiplication by a row-combination matrix into a representation with respect to
(the definition of specifies that and ).
QED
Corollary 1.6 A matrix is nonsingular if and only if it represents the identity map with respect to some pair of bases.
Exercises
Exercise 1.7 Worked answer
Recommended. In , where
find the change of basis matrices from to and from to . Multiply the two.
Answer. For the matrix to change bases from to we need that and that . Of course, the representation of a vector in with respect to the standard basis is easy.
Concatenating those two together to make the columns of the change of basis matrix gives this.
For the change of basis matrix in the other direction we can calculate and (this job is routine) or we can take the inverse of the above matrix. Because of the formula for the inverse of a matrix, this is easy.
Exercise 1.8 Worked answer
Which of these matrices could be used to change bases?
Answer. If the matrix is nonsingular then it can be a change of basis matrix. For all of these matrices we can check that by eye.
This is nonsingular since the second row is not a multiple of the first.
This is nonsingular.
This matrix is singular, since to be nonsingular a matrix must be square.
This matrix is singular since twice the first row plus the second row equals the third row.
Nonsingular.
Exercise 1.10 Worked answer
Recommended. Find the change of basis matrix for each .
Answer. The vectors , , and make the change of basis matrix .
E.g., for the first column of the first matrix, .
Exercise 1.11 Worked answer
For the bases in Exercise 1.9, find the change of basis matrix in the other direction, from to .
Answer. One way to go is to find and , and then concatenate them into the columns of the desired change of basis matrix. Another way is to find the inverse of the matrices that answer Exercise 1.9.
Exercise 1.12 Worked answer
Recommended. Decide if each changes bases on . To what basis is changed?
Answer. A matrix changes bases if and only if it is nonsingular.
This matrix is nonsingular and so changes bases. Finding to what basis is changed means finding such that
and by the definition of how a matrix represents a linear map, we have this.
Where
we can either solve the system
or else just spot the answer (thinking of the proof of Lemma 1.5).
Yes, this matrix is nonsingular and so changes bases. To calculate , we proceed as above with
to solve
and get this.
No, this matrix does not change bases because it is singular.
Yes, this matrix changes bases because it is nonsingular. The calculation of the changed-to basis is as above.
Exercise 1.13 Worked answer
For each space find the matrix changing a vector representation with respect to to one with respect to .
, ,
, ,
, ,
Answer.
Start by computing the effect of the identity function on each element of the starting basis . Obviously this is the effect.
Now represent the three outputs with respect to the ending basis.
Concatenate them into a basis.
One way to find this is to take the inverse of the prior matrix, since it converts bases in the other direction. Alternatively, we can compute these three
and put them in a matrix.
Representing , , and with respect to the ending basis gives this.
Put them together.
Exercise 1.14 Worked answer
Find bases such that this matrix represents the identity map with respect to those bases.
Answer. This question has many different solutions. One way to proceed is to make up any basis for any space, and then compute the appropriate (necessarily for the same space, of course). Another, easier, way to proceed is to fix the codomain as and the codomain basis as . This way (recall that the representation of any vector with respect to the standard basis is just the vector itself), we have this.
Exercise 1.15 Worked answer
Consider the vector space of real-valued functions with basis . Show that is also a basis for this space. Find the change of basis matrix in each direction.
Answer. Checking that is a basis is routine. Call the natural basis . To compute the change of basis matrix we must find and , that is, we need such that these equations hold.
Obviously this is the answer.
For the change of basis matrix in the other direction we could look for and by solving these.
An easier method is to find the inverse of the matrix found above.
Exercise 1.16 Worked answer
Where does this matrix
send the standard basis for ? Any other bases? Hint. Consider the inverse.
Answer. We start by taking the inverse of the matrix, that is, by deciding what is the inverse to the map of interest.
This is more tractable than the representation the other way because this matrix is the concatenation of these two column vectors
and representations with respect to are transparent.
This pictures the action of the map that transforms to (it is, again, the inverse of the map that is the answer to this question). The line lies at an angle to the axis.
This map reflects vectors over that line. Since reflections are self-inverse, the answer to the question is: the original map reflects about the line through the origin with angle of elevation . (Of course, it does this to any basis.)
Exercise 1.17 Worked answer
Recommended. What is the change of basis matrix with respect to ?
Answer. The appropriately-sized identity matrix.
Exercise 1.18 Worked answer
Prove that a matrix changes bases if and only if it is invertible.
Answer. Each is true if and only if the matrix is nonsingular.
Exercise 1.19 Worked answer
Finish the proof of Lemma 1.5.
Answer. What remains is to show that left multiplication by a reduction matrix represents a change from another basis to .
Application of a row-multiplication matrix translates a representation with respect to the basis to one with respect to , as here.
Apply a row-swap matrix to translates a representation with respect to the basis to one with respect to . Finally, applying a row-combination matrix changes a representation with respect to to one with respect to .
(As in the part of the proof in the body of this subsection, the various conditions on the row operations, e.g., that the scalar is nonzero, assure that these are all bases.)
Exercise 1.20 Worked answer
Recommended. Let be an nonsingular matrix. What basis of does change to the standard basis?
Answer. Taking as a change of basis matrix , its columns are
and, because representations with respect to the standard basis are transparent, we have this.
That is, the basis is the one composed of the columns of .
Exercise 1.21 Worked answer
Recommended.
In with basis we have this representation.
Find a basis giving this different representation for the same polynomial.
State and prove that we can change any nonzero vector representation to any other.
Hint. The proof of Lemma 1.5 is constructive—it not only says the bases change, it shows how they change.
Answer.
We can change the starting vector representation to the ending one through a sequence of row operations. The proof tells us what how the bases change. We start by swapping the first and second rows of the representation with respect to to get a representation with respect to a new basis .
We next add times the third row of the vector representation to the fourth row.
(The third element of is the third element of minus times the fourth element of .) Now we can finish by doubling the third row.
Here are three different approaches to stating such a result. The first is the assertion: where is a vector space with basis and is nonzero, for any nonzero column vector (whose number of components equals the dimension of ) there is a change of basis matrix such that . The second possible statement: for any (-dimensional) vector space and any nonzero vector , where are nonzero, there are bases such that and . The third is: for any nonzero member of any vector space (of dimension ) and any nonzero column vector (with components) there is a basis such that is represented with respect to that basis by that column vector.
The first and second statements follow easily from the third. The first follows because the third statement gives a basis such that and then is the desired . The second follows from the third because it is just a doubled application of it.
A way to prove the third is as in the answer to the first part of this question. Here is a sketch. Represent with respect to any basis with a column vector . This column vector must have a nonzero component because is a nonzero vector. Use that component in a sequence of row operations to convert to . (We could fill out this sketch as an induction argument on the dimension of .)
Exercise 1.22 Worked answer
Let be vector spaces, and let be bases for and be bases for . Where is linear, find a formula relating to .
Answer. This is the topic of the next subsection.
Exercise 1.23 Worked answer
Recommended. Show that the columns of an change of basis matrix form a basis for . Do all bases appear in that way: can the vectors from any basis make the columns of a change of basis matrix?
Answer. A change of basis matrix is nonsingular and thus has rank equal to the number of its columns. Therefore its set of columns is a linearly independent subset of size in and it is thus a basis. The answer to the second half is also ‘yes’; all implications in the prior sentence reverse (that is, all of the ‘if …then …’ parts of the prior sentence convert to ‘if and only if’ parts).
Exercise 1.24 Worked answer
Recommended. Find a matrix having this effect.
That is, find a that left-multiplies the starting vector to yield the ending vector. Is there a matrix having these two effects?
Give a necessary and sufficient condition for there to be a matrix such that and .
Answer. In response to the first half of the question, there are infinitely many such matrices. One of them represents with respect to the transformation of with this action.
The problem of specifying two distinct input/output pairs is a bit trickier. The fact that matrices have a linear action precludes some possibilities.
Yes, there is such a matrix. These conditions
can be solved
to give this matrix.
No, because
no linear action can produce this effect.
A sufficient condition is that be linearly independent, but that’s not a necessary condition. A necessary and sufficient condition is that any linear dependences among the starting vectors appear also among the ending vectors. That is,
The proof of this condition is routine.
Changing Map Representations
The first subsection shows how to convert the representation of a vector with respect to one basis to the representation of that same vector with respect to another basis. We next convert the representation of a map with respect to one pair of bases to the representation with respect to a different pair—we convert from to . Here is the arrow diagram.
To move from the lower-left to the lower-right we can either go straight over, or else up to then over to and then down. So we can calculate either by directly using and , or else by first changing bases with then multiplying by and then changing bases with .
Theorem 2.1 To convert from the matrix representing a map with respect to to the matrix representing it with respect to use this formula.
Proof This is evident from the diagram.
QED
Example 2.2 The matrix
represents, with respect to , the transformation that rotates vectors through the counterclockwise angle of radians.
We can translate to a representation with respect to these
by using the arrow diagram above.
The picture illustrates that we can compute either directly by going along the square’s bottom, or as in formula () by going up on the left, then across the top, and then down on the right, with . (Note again that the matrix multiplication reads right to left, as the three functions are composed and function composition reads right to left.)
Find the matrix for the left-hand side, the matrix , in the usual way: find the effect of the identity matrix on the starting basis — which is no effect at all—and then represent those basis elements with respect to the ending basis .
This calculation is easy when the ending basis is the standard one.
There are two ways to compute the matrix for going down the square’s right side, . We could calculate it directly as we did for the other change of basis matrix. Or, we could instead calculate it as the inverse of the matrix for going up . That matrix is easy to find and we have a formula for the inverse, so that’s what is in the equation below.
The matrix is messier but the map that it represents is the same. For instance, to replicate the effect of in the picture, start with ,
apply ,
and check it against .
Example 2.3 Changing bases can make the matrix simpler. On the map
is represented with respect to the standard basis in this way.
Representing it with respect to
gives a matrix that is diagonal.
Naturally we usually prefer representations that are easier to understand. We say that a map or matrix has been diagonalized when we find a basis such that the representation is diagonal with respect to , that is, with respect to the same starting basis as ending basis. Chapter Five finds which maps and matrices are diagonalizable.
The rest of this subsection develops the easier case of finding two bases such that a representation is simple. Recall that the prior subsection shows that a matrix is a change of basis matrix if and only if it is nonsingular.
Definition 2.4 Same-sized matrices and are matrix equivalent if there are nonsingular matrices and such that .
Corollary 2.5 Matrix equivalent matrices represent the same map, with respect to appropriate pairs of bases.
Proof This is immediate from equation () above.
QED
Exercise 2.24 checks that matrix equivalence is an equivalence relation. Thus it partitions the set of matrices into matrix equivalence classes.
| All matrices: |
| matrix equivalent |
| to |
We can get insight into the classes by comparing matrix equivalence with row equivalence (remember that matrices are row equivalent when they can be reduced to each other by row operations). In , the matrices and are nonsingular and thus each is a product of elementary reduction matrices by Lemma IV.4.7. Left-multiplication by the reduction matrices making up performs row operations. Right-multiplication by the reduction matrices making up performs column operations. Hence, matrix equivalence is a generalization of row equivalence—two matrices are row equivalent if one can be converted to the other by a sequence of row reduction steps, while two matrices are matrix equivalent if one can be converted to the other by a sequence of row reduction steps followed by a sequence of column reduction steps.
Consequently, if matrices are row equivalent then they are also matrix equivalent since we can take to be the identity matrix. The converse, however, does not hold: two matrices can be matrix equivalent but not row equivalent.
Example 2.6 These two are matrix equivalent
because the second reduces to the first by the column operation of taking times the first column and adding to the second. They are not row equivalent because they have different reduced echelon forms (both are already in reduced form).
We close this section by giving a set of representatives for the matrix equivalence classes.
Theorem 2.7 Any matrix of rank is matrix equivalent to the matrix that is all zeros except that the first diagonal entries are ones.
This is a block partial-identity form.
Proof Gauss-Jordan reduce the given matrix and combine all the row reduction matrices to make . Then use the leading entries to do column reduction and finish by swapping the columns to put the leading ones on the diagonal. Combine the column reduction matrices into .
QED
Example 2.8 We illustrate the proof by finding and for this matrix.
First Gauss-Jordan row-reduce.
Then column-reduce, which involves right-multiplication.
Finish by swapping columns.
Finally, combine the left-multipliers together as and the right-multipliers together as to get .
Corollary 2.9 Matrix equivalence classes are characterized by rank: two same-sized matrices are matrix equivalent if and only if they have the same rank.
Proof Two same-sized matrices with the same rank are equivalent to the same block partial-identity matrix.
QED
Example 2.10 The matrices have only three possible ranks: zero, one, or two. Thus there are three matrix equivalence classes.
| All matrices: |
| Three equivalence |
| classes |
Each class consists of all of the matrices with the same rank. There is only one rank zero matrix. The other two classes have infinitely many members; we’ve shown only the canonical representative.
One nice thing about the representative in Theorem 2.7 is that we can completely understand the linear map when it is expressed in this way: where the bases are and then the map’s action is
where is the rank. Thus we can view any linear map as a projection.
Exercises
Exercise 2.11 Worked answer
Recommended. Decide if these are matrix equivalent.
,
,
,
Answer.
Yes, each has rank two.
Yes, they have the same rank.
No, they have different ranks.
Exercise 2.12 Worked answer
Which of these are matrix equivalent to each other?
Answer. Group the matrices into classes characterized by the condition that all matrices in the same class are the same size and the same rank.
, rank
, rank
, rank
, rank
, rank
Exercise 2.13 Worked answer
Recommended. Find the canonical representative of the matrix equivalence class of each matrix.
Exercise 2.14 Worked answer
Suppose that, with respect to
the transformation is represented by this matrix.
Use change of basis matrices to represent with respect to each pair.
,
,
Answer. Recall the diagram and the formula.
These two
show that
and similarly these two
give the other nonsingular matrix.
Then the answer is this.
Although not strictly necessary, a check is reassuring. Arbitrarily fixing
we have that
and so is this.
Doing the calculation with respect to starts with
and then checks that this is the same result.
These two
show that
and these two
show this.
With those, the conversion goes in this way.
As in the prior item, a check provides some confidence that we did this calculation without mistakes. We can for instance, fix the vector
(this is arbitrary, taken from thin air). Now we have
and so is this vector.
With respect to we first calculate
and, sure enough, that is the same result for .
Exercise 2.15 Worked answer
What sizes are and in the equation ?
Answer. Where and are , the matrix is while is .
Exercise 2.16 Worked answer
Recommended. Consider the spaces and , with these bases.
We will find and to convert the representation of a map with respect to to one with respect to
Draw the appropriate arrow diagram.
Compute and .
Answer.
This is the arrow diagram.
The diagram gives where and (remembering that the operation done first is written on the right).
We want and . For we do these calculations (done here by eye).
These calculations give .
This is the answer.
Exercise 2.17 Worked answer
Recommended. Find the change of basis matrices and that will convert the representation of a with respect to to one with respect to .
Answer. This is the arrow diagram.
Where and the equation is .
These are the calculations for (done by eye).
So we get this.
These calculations give .
Concatenate them to make the other matrix.
Exercise 2.18 Worked answer
Recommended. Find the and to express via as a block partial identity matrix.
Answer. Gauss’s Method gives this.
Column operations complete the job of reaching the canonical form for matrix equivalence.
Then these are the two matrices.
Exercise 2.19 Worked answer
Recommended. Use Theorem 2.7 to show that a square matrix is nonsingular if and only if it is equivalent to an identity matrix.
Answer. Any matrix is nonsingular if and only if it has rank , that is, by Theorem 2.7, if and only if it is matrix equivalent to the matrix whose diagonal is all ones.
Exercise 2.20 Worked answer
Show that, where is a nonsingular square matrix, if and are nonsingular square matrices such that then .
Answer. If then , so , and so .
Exercise 2.21 Worked answer
Why does Theorem 2.7 not show that every matrix is diagonalizable (see Example 2.3)?
Answer. By the definition following Example 2.3, a matrix is diagonalizable if it represents a transformation with the property that there is some basis such that is a diagonal matrix—the starting and ending bases must be equal. But Theorem 2.7 says only that there are and such that we can change to a representation and get a diagonal matrix. We have no reason to suspect that we could pick the two and so that they are equal.
Exercise 2.22 Worked answer
Must matrix equivalent matrices have matrix equivalent transposes?
Answer. Yes. Row rank equals column rank, so the rank of the transpose equals the rank of the matrix. Same-sized matrices with equal ranks are matrix equivalent.
Exercise 2.23 Worked answer
What happens in Theorem 2.7 if ?
Answer. Only a zero matrix has rank zero.
Exercise 2.24 Worked answer
Show that matrix equivalence is an equivalence relation.
Answer. For reflexivity, to show that any matrix is matrix equivalent to itself, take and to be identity matrices. For symmetry, if then (inverses exist because and are nonsingular). Finally, for transitivity, assume that and that . Then substitution gives . A product of nonsingular matrices is nonsingular (we’ve shown that the product of invertible matrices is invertible; in fact, we’ve shown how to calculate the inverse) and so is therefore matrix equivalent to .
Exercise 2.25 Worked answer
Recommended. Show that a zero matrix is alone in its matrix equivalence class. Are there other matrices like that?
Answer. By Theorem 2.7, a zero matrix is alone in its class because it is the only of rank zero. No other matrix is alone in its class; any nonzero scalar product of a matrix has the same rank as that matrix.
Exercise 2.26 Worked answer
What are the matrix equivalence classes of matrices of transformations on ? ?
Answer. There are two matrix equivalence classes of matrices—those of rank zero and those of rank one. The matrices fall into four matrix equivalence classes.
Exercise 2.27 Worked answer
How many matrix equivalence classes are there?
Answer. For matrices there are classes for each possible rank: where is the minimum of and there are classes for the matrices of rank , , …, . That’s classes. (Of course, totaling over all sizes of matrices we get infinitely many classes.)
Exercise 2.28 Worked answer
Are matrix equivalence classes closed under scalar multiplication? Addition?
Answer. They are closed under nonzero scalar multiplication since a nonzero scalar multiple of a matrix has the same rank as does the matrix. They are not closed under addition, for instance, has rank zero.
Exercise 2.29 Worked answer
Let represented by with respect to .
Find in this specific case.
Describe in the general case where .
Answer. Here is the picture.
There are two ways to move from the lower left to the lower right. The first is direct, using . The second moves up, then over, then down, using (remember that they get written right-to-left, so the “up” matrix is on the right, in order to have that when applied to a the matrix applied first is ). We write for ; of the two we choose this one because it is easier to calculate. So we have .
We have
and
and thus the answer is this.
As a quick check, we can take a vector at random
giving
while the calculation with respect to
yields the same result.
As in the first item of this question
so, writing for the matrix whose columns are the basis vectors, we have that .
Exercise 2.30 Worked answer
Let have bases and and suppose that has the basis . Where , find the formula that computes from .
Repeat the prior question with one basis for and two bases for .
Answer.
The adapted form of the arrow diagram is this.
Since there is no need to change bases in (or we can say that the change of basis matrix is the identity), we have where .
Here, this is the arrow diagram.
We have that where .
Exercise 2.31 Worked answer
If two matrices are matrix equivalent and invertible, must their inverses be matrix equivalent?
If two matrices have matrix equivalent inverses, must the two be matrix equivalent?
If two matrices are square and matrix equivalent, must their squares be matrix equivalent?
If two matrices are square and have matrix equivalent squares, must they be matrix equivalent?
Answer.
Here is the arrow diagram, and a version of that diagram for inverse functions.
Yes, the inverses of the matrices represent the inverses of the maps. That is, we can move from the lower right to the lower left by moving up, then left, then down. In other words, where (and invertible) and are invertible then .
Yes; this is the prior part repeated in different terms.
No, we need another assumption: if represents with respect to the same starting as ending bases , for some then represents . As a specific example, these two matrices are both rank one and so they are matrix equivalent
but the squares are not matrix equivalent—the square of the first has rank one while the square of the second has rank zero.
No. These two are not matrix equivalent but have matrix equivalent squares.
Exercise 2.32 Worked answer
Square matrices are similar if they represent the same transformation, but each with respect to the same ending as starting basis. That is, is similar to .
Give a definition of matrix similarity like that of Definition 2.4.
Prove that similar matrices are matrix equivalent.
Show that similarity is an equivalence relation.
Show that if is similar to then is similar to , the cubes are similar, etc.
Prove that there are matrix equivalent matrices that are not similar.
Answer.
The arrow diagram suggests the definition.
Call matrices similar if there is a nonsingular matrix such that .
Take to be and take to be .
This is as in Exercise 2.24. Reflexivity is obvious: . Symmetry is also easy: implies that (multiply the first equation from the right by and from the left by ). For transitivity, assume that and that . Then and we are finished on noting that is an invertible matrix with inverse .
Assume . For squares, . Higher powers follow by induction.
These two are matrix equivalent but their squares are not matrix equivalent.
By the prior item, matrix similarity and matrix equivalence are thus different.