Now we will see that every linear map , with and finite-dimensional vector spaces, can be encoded by a matrix, and, vice versa, every matrix defines such a linear map.
Let and be finite-dimensional vector spaces, and let be a linear map. Suppose that is a basis of and that is a basis for . We have seen in Theorem 6.1.3 that is uniquely determined by specifying the vectors . Since is a basis of , there exist unique scalars such that
We can arrange these scalars in an matrix as follows:
Often, this is also written as . As in Section A.1.1, the set of all matrices with entries in is denoted by .
Remark 6.6.1. It is important to remember that not only depends on the linear map but also on the choice of the basis for and the choice of basis for . The column of contains the coefficients of the basis vector when expanded in terms of the basis , as in Equation 6.6.1.
Example 6.6.2. Let be the linear map given by for some . Then, with respect to the canonical basis of given by , the corresponding matrix is
since gives the first column and gives the second column.
More generally, suppose that and , and denote the standard basis for by and the standard basis for by . Here, (resp. ) is the -tuple (resp. -tuple) with a one in position and zeroes everywhere else. Then the matrix is given by
where denotes the component of the vector .
Example 6.6.3. Let be the linear map defined by . Then, with respect to the standard basis, we have and so that
However, if alternatively we take the bases for and
for , then and so that
Example 6.6.4. Let be the linear map . With respect to the basis for , we have
and so
Given vector spaces and of dimensions and , respectively, and given a fixed choice of bases, note that there is a one-to-one correspondence between linear maps in and matrices in . If we start with the linear map , then the matrix is defined via Equation 6.6.1. Conversely, given the matrix , we can define a linear map by setting
Recall that the set of linear maps is a vector space. Since we have a one-to-one correspondence between linear maps and matrices, we can also make the set of matrices into a vector space. Given two matrices and in and given a scalar , we define the matrix addition and scalar multiplication component-wise:
Next, we show that the composition of linear maps imposes a product on matrices, also called matrix multiplication. Suppose are vector spaces over with bases , and , respectively. Let and be linear maps. Then the product is a linear map .
Each linear map has its corresponding matrix and . The question is whether is determined by and . We have, for each , that
Hence, the matrix is given by
Equation 6.6.2 can be used to define the matrix as the product of a matrix and a matrix , i.e.,
Our derivation implies that the correspondence between linear maps and matrices respects the product structure.
Proposition 6.6.5. Let and be linear maps. Then
Example 6.6.6. With notation as in Examples 6.6.3 and 6.6.4, you should be able to verify that
Given a vector , we can also associate a matrix to as follows. Let be a basis of . Then there are unique scalars such that
The matrix of is then defined to be the matrix
Example 6.6.7 The matrix of a vector in the standard basis is the column vector or matrix
since .
The next result shows how the notion of a matrix of a linear map and the matrix of a vector fit together.
Proposition 6.6.8. Let be a linear map. Then, for every ,
Proof.
Let be a basis of and be a basis for . Suppose that, with respect to these bases, the matrix of is . This means that, for all ,
The vector can be written uniquely as a linear combination of the basis vectors as
Hence,
This shows that is the matrix
It is not hard to check, using the formula for matrix multiplication, that gives the same result.
Example 6.6.9. Take the linear map from Example 6.6.4 with basis of . To determine the action on the vector , note that . Hence,
This means that
which is indeed true.
Contributors
Both hardbound and softbound versions of this textbook are available online at WorldScientific.com.