Linear maps are abstractly defined things. We’d like to make them concrete. We do this by making the following observation: once you know what a linear transformation does on a basis, you know what it does everywhere.
Here’s what that means exactly. Let be linear. Let be a basis of V. Then we can write any as for some scalars , and so by linearity
This means that if we want to describe a linear map, we can just say what it does on a basis . You can then work out for any just by knowing the .
We can record what does to each by giving the coefficients needed to write the in terms of some fixed basis of . Putting all this together, to completely describe a linear map we only need to give a basis of , a basis of , and the coefficients needed to express in terms of the . These coefficients naturally fit into an matrix which will be called the matrix of with respect to initial basis and final basis .
Let be linear, and let
be a basis of
be a basis of .
Define scalars by . Then the matrix of with respect to initial basis and final basis , written , is the matrix .
Another way to think of this definition is that the th column of records the image of the th basis element from under , in the sense that the entries are the coefficients used in expressing as a linear combination of .
When we have a linear map from a vector space to itself, we sometimes use a slightly different terminology. If and is a basis of V, the matrix of with respect to means .
Notice that the order of the basis matters in this definition. If you order the basis elements differently, you change the order of the columns or rows in the matrix. That’s why our bases are sequences, not sets.
Let be defined by . This is linear. Let’s find the matrix of with respect to
initial basis , the standard basis for , and
final basis , the standard basis for .
We have
so the matrix is .
Let
be the vector space of all polynomials with real coefficients of degree in one variable
be the differentiation map
be the basis of .
is a linear map, so let’s find the matrix of with respect to . We have
and so
Let be the identity map . Let be any basis for . We’re going to work out . For any ,
This means the th column of is all 0s, except a 1 in position . In other words, , the identity matrix.
This shows that the matrix of the identity map is the identity matrix, so long as the initial basis and the final basis are the same.
On the other hand, if is a different basis of then will not be the identity matrix. To figure out what goes in the th column of this matrix we have to work out , which is just of course, as a linear combination of the s. The coefficients we have to use, whatever they are, make up this column of the matrix.
Consider two bases for
Both and will be the identity matrix . Let’s work out . To do that, we have to express as a linear combination of the for :
and so .
Let be an m by n matrix, and be the linear map . Then the matrix of with respect to the standard bases of and is .