Chapter 2. Matrices and vector coordinates
2.1 Matrix multiplication
In § 1.2, a basis described a vector by its coefficients. A matrix uses such coefficients to form a new linear combination of its columns. This interpretation will explain both matrix multiplication and the representation of linear maps.
A matrix with rows and columns has size . Write for the space of -by- matrices with entries in . More generally, denotes the -by- arrays with entries in a vector space . The notation also denotes scalar-valued matrices of this size when the field is understood.
Multiplication by columns
Let . For a column , multiplication by is defined by the linear combination of its columns
If , define its product with column by column,
Thus the number of columns of must equal the number of rows of . We write for the identity matrix and for a zero matrix of the required size.
Reading a transformation from its columns
Consider the shear from Subsection* 1.2. In standard coordinates its matrix and its action are
The first column is the image of , and the second is the image of . In particular, , so the first basis vector is fixed. For a general input, the first output coordinate is , while the second is . Multiplication by takes copies of the first image and copies of the second. This is precisely the rule
Thus the matrix records the action on the basis, and the product recovers the action on every vector. The grid in Figure 1.4 visualizes this same calculation at many input points at once.
The identity matrix provides the corresponding unchanged grid. Its columns are , so . The distinction between applying a matrix to move a vector and using a matrix to change the coordinates of a fixed vector is developed in § 2.2.
Exercises on matrix multiplication
Exercise 2.1.1
Given a matrix , let denote the entry in the -th row and -th column of . Let and . Show that the definition of matrix multiplication is the same as
Exercise 2.1.2
Let be scalar-valued matrices such that and are well defined. Use the formula for matrix multiplication in Exercise 2.1.1 to prove associativity, i.e., .
Exercise 2.1.3
For , let be given by
-
(a) Compute .
-
(b) Given , find a matrix such that .
Exercise 2.1.4
-
(a) Fix . Prove that if satisfies for every , then .
-
(b) Show by example that, for every , for a single nonzero does not imply . What happens when ?
Exercise 2.1.5
Recall that matrix multiplication is not necessarily commutative.
-
(a) For and , determine exactly when and are both defined.
-
(b) Determine when and have the same size.
-
(c) Given , find matrices such that .
-
(d) Let be the matrix whose entry in row and column is and all of whose other entries are . Prove that is a basis of and that
where if and otherwise.
-
(e) Prove that if satisfies for every , then for some .
-
(f) Determine all that commute with every , . Conclude that, for , commuting with every diagonal matrix is a strictly weaker condition than the one in (e).
Hint. Compare the entries of and .
Exercise 2.1.6
There are nonzero matrices and such that .
-
(a) Find all with .
-
(b) Find with and .
Exercise 2.1.7
Prove that the set of upper triangular matrices
is a subspace of , compute its dimension, and prove that it is closed under matrix multiplication.
Exercise 2.1.8
Let or , and let
-
(a) Compute .
-
(b) Show that satisfies if and only if for some .
-
(c) Show that is the only with .
-
(d) Show that .
-
(e) Use this to write in the form .
-
(f) Use this to find such that .
2.2 Change of basis formula for vectors
The coordinates introduced by a basis describe a vector relative to that basis. A second basis gives a second description of the same vector. The matrix in this section translates between those descriptions. When a linear transformation is applied, it produces an output vector, as in the shear of Figure 1.4. Both calculations use matrices because both reconstruct vectors from linear combinations.
Let and be two ordered bases of . Each vector has coordinates in the basis , so there is a matrix whose -th column contains those coordinates. In matrix notation,
Because is also a basis, there is a matrix with . Substituting these expressions into one another gives and . Uniqueness of coefficients in each basis gives and . Thus . The change-of-basis matrix is invertible, and it converts coordinates in either direction.
If has coordinate columns in basis and in basis , then . Using ,
Thus converts -coordinates to -coordinates, and converts -coordinates to -coordinates.
The vector stays fixed while its coordinate column changes. Figure 2.1 shows the two decompositions in the real plane.