A matrix is not a transformation but a description of one, written in a particular basis, and choosing a better basis can make the same transformation far easier to read.
Two facts from earlier lessons are needed here. A basis gives every vector a unique list of coordinates, and the standard basis has been used silently everywhere so far. And the matrix of a transformation is the list of the images of the basis vectors, so it depends on which basis those are. This lesson makes the dependence explicit and turns it into a tool.
Coordinates in another basis
Take the basis and of , which is independent and therefore a basis, since neither vector is a multiple of the other. The arrow with standard coordinates has different coordinates here: solving gives and , so and . The same arrow is to one observer and to the other, and nothing about the arrow changed.
The translation between the two is a matrix. Let , whose columns are the new basis vectors written in standard coordinates. Then for any coordinate list in the new basis, is a combination of the new basis vectors with weights , which is exactly the standard-coordinate version of the same arrow. So
and is invertible precisely because its columns form a basis. It is worth pausing on the direction, which everyone gets backwards once: the matrix whose columns are the new basis vectors converts from new coordinates to standard ones.
Here , so by the two by two formula. Applying it to gives , matching the direct solution.
Example. Find the coordinates of in the basis , .
Apply : . Checking, .
Now you. Find the coordinates of in the same basis.
Answer
. Checking, . The arrow points straight up, and in a basis of two diagonal directions that takes equal amounts of each.
The matrix of a map in another basis
Now let be the matrix of a transformation in the standard basis, and ask for its matrix in the new one. The new matrix must do this: take new coordinates in, give new coordinates out.
There is no need to think geometrically about it. Break the job into three steps that are each already understood. Given new coordinates, first convert them to standard coordinates with . Then apply , which is the description that works in standard coordinates. Then convert the answer back to new coordinates with . Since matrices compose right to left,
Two matrices related this way are called similar, and the relation says they are the same transformation seen by two observers using different rulers. Every geometric fact about the transformation is shared between them, and only the numbers differ.
Take , whose action is not obvious by inspection: it sends to and to , tilting both basis vectors inward. Compute with the above. First , whose columns are applied to the columns of : , and . Then apply to each: , and . So
which is diagonal. In the new basis the transformation is trivial to describe: it triples everything along and leaves everything along alone. That statement is a complete description of a map that looked like four unrelated numbers a moment ago, and it is checkable directly: , three times , and , unchanged.
The basis was not chosen at random, and how to find such a basis is the subject of the next lesson. The point here is what a good basis buys.
Example. Find the matrix of the reflection , which swaps the axes, in the basis , .
has columns and . Applying : and . So , again diagonal. It says the reflection fixes the direction , which is the mirror line itself, and negates the direction , which is perpendicular to the mirror. That is what a reflection does, stated in one line.
Now you. What is the matrix, in the standard basis, of the map that triples every vector along and leaves every vector along alone?
Answer
That map is diagonal in the new basis, , so in standard coordinates it is , running the conversion the other way. Computing: , and multiplying by on the left gives columns and . So , which is where the section started.
Building a transformation the easy way
That last exercise is a method, and it is how awkward transformations are constructed in practice: describe the map in the basis where it is obvious, then conjugate back.
Find the matrix that reflects the plane in the line through . Doing this directly requires trigonometry. Doing it by change of basis requires none. Take along the mirror line and perpendicular to it, since . In that basis the reflection fixes the first direction and negates the second, so its matrix is .
Now convert. with , so . Then , negating the second component of each column, and multiplying on the left by gives columns and . So
Check it against the formula derived in the lesson on transformations, for a mirror at angle . Here , and the double angle identities give and . The two routes agree exactly. Direct verification is easier still: , the mirror line fixed, and , the perpendicular reversed.
Between two bases, neither of them standard
The standard basis has played the role of a hub so far: every conversion went through it. Nothing requires that, and the general case is a composition of two conversions already understood.
Let and be two bases, with and the matrices whose columns are their vectors in standard coordinates. To convert coordinates into coordinates, first go up to standard coordinates with , then down into coordinates with . So the conversion matrix is , and the same three-step reading gives the matrix of a transformation in from its matrix in , by conjugating with it.
Take and , both bases since neither pair is parallel. Then has determinant , so , and the conversion matrix has columns and .
Test it. The arrow with coordinates is in standard coordinates. Applying the conversion matrix to gives , and checking in : . The same arrow, described three ways.
Example. Using the conversion matrix above, what are the coordinates of the arrow whose coordinates are ?
Apply it: . Checking, the arrow is in standard coordinates, and .
Now you. Which matrix converts coordinates back into coordinates?
Answer
The inverse of the one above, which is by the same argument run the other way. Since , the inverse is . Applying it to gives , the coordinates it started from.
What survives a change of basis
Similar matrices describe the same map, so any quantity with a genuine geometric meaning must be the same for both. Two are easy to establish.
The determinant survives: , using the multiplication rule and . This had to happen, since the determinant is a ratio of areas and a ratio does not care what units the areas are measured in. Above, and .
The trace, the sum of the diagonal entries, also survives. It follows from the fact that for any two matrices, which is a short computation with the entry formula, since both sides sum over all and . Then . Above, and . Unlike the determinant, the trace has no obvious geometric reading yet; the next lesson supplies one.
Rank survives too, being the dimension of the image, and so does invertibility. What does not survive is anything to do with the entries themselves: whether a matrix is diagonal, whether it is symmetric, how large its entries are. Those are properties of a description.
Example. Are and similar?
Compare invariants. The traces are and , which already differ, so no similarity is possible. There is no need to search for a .
Now you. Are and similar? Both have trace and determinant .
Answer
No. The second is the identity, and for every invertible , so the only matrix similar to the identity is the identity itself. The first is a shear, which is not the identity. Matching invariants are necessary for similarity, not sufficient.
Honest limits
A change of basis requires to be invertible, so its columns must be a basis. Nothing else is required of them: they need not be perpendicular and need not have length one. When they are orthonormal, and the conversion is free, which is the practical reason orthonormal bases are worth building.
Numerically, a nearly dependent basis makes badly conditioned, and errors in the entries of are amplified by roughly the condition number of when is formed. Two matrices can therefore be similar in exact arithmetic and behave very differently in floating point, which is why numerical algorithms restrict themselves to orthogonal wherever they can.
The important limit is the one this lesson has been circling. Twice now a well-chosen basis turned a matrix diagonal, which reduced a transformation to a list of stretch factors along a list of directions. Nothing so far says which matrices allow this, how to find the directions, or whether they exist at all. Since a diagonal matrix in the new basis means each new basis vector is simply scaled by the map, the directions being sought are the ones the transformation leaves on their own line. Those are the eigenvectors, and finding them is the next lesson.