Similar Matrices and Change of Basis
Learning objectives
- Define matrix similarity as the same linear map in a new basis
- Identify similarity invariants: determinant, trace, rank, eigenvalues, characteristic polynomial
- Recognise when two matrices CANNOT be similar by comparing invariants
- Connect similarity to diagonalisation as the simplest similarity class
Two matrices are similar exactly when they describe the same linear transformation in different coordinate systems. This is the right notion of equivalence for square matrices: the matrix changes when you change the basis, but the underlying transformation does not. Whatever the linear map "really does" geometrically, how much it rotates, stretches, projects, survives the change of basis. The numerical features that survive are the similarity invariants, and they are exactly the features worth computing.
The definition
Two matrices and are similar if there exists an invertible matrix with . The matrix is the change-of-basis matrix: its columns are the new basis vectors expressed in the old coordinates. If you apply to a vector and then re-express the result in a new basis, you get the same answer as if you had first re-expressed the input in the new basis, applied , and stayed there.
Similarity invariants
The following quantities are preserved by similarity:
- Determinant: .
- Trace: , using the cyclic property of trace.
- Rank: , because multiplication by invertibles preserves rank.
- Eigenvalues and characteristic polynomial: .
- Minimal polynomial and Jordan form (covered in advanced courses).
Diagonalisation
A matrix is diagonalisable if it is similar to a diagonal matrix, that is, for some diagonal and invertible . In this case the columns of are eigenvectors of and the diagonal entries of are the corresponding eigenvalues. Diagonalisation is the cleanest similarity class: it makes powers easy () and reveals the geometry of the transformation directly. Not every matrix is diagonalisable; the failure cases are captured by Jordan Normal Form.
The matrix widget above can illustrate similarity: set up a matrix with non-trivial geometry, then apply a coordinate change. The new matrix has different entries but performs the same overall transformation, you can verify by checking that the determinant and trace remain unchanged.
- Markov chain stationary distributions: A transition matrix is often diagonalised to compute for large , revealing the long-run stationary distribution as the eigenvector with eigenvalue 1. Without diagonalisation, computing by hand is hopeless.
- Differential equations: The system has solution . If , then and is just exponentials on the diagonal, a closed-form solution.
- Quantum mechanics: Diagonalising the Hamiltonian operator in the energy basis reduces time evolution to multiplication by phase factors . Every physics undergraduate course relies on this similarity trick.
Pause and think: Suppose and are matrices with and . Must they be similar? (Hint: they have the same characteristic polynomial. Does that suffice? Consider \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} vs \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}.)
Try it
- Predict whether A = \begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} and B = \begin{pmatrix} 3 & 0 \\ 0 & 2 \end{pmatrix} are similar. Justify by comparing eigenvalues, trace, and determinant. Then construct the explicit .
- If and , predict . Justify with one line.
- Predict whether A = \begin{pmatrix} 2 & 1 \\ 0 & 2 \end{pmatrix} is diagonalisable. (Hint: count the independent eigenvectors for the repeated eigenvalue.)
- If is diagonalisable with eigenvalues , predict the diagonal form and compute if .
- Predict whether A = \begin{pmatrix} 1 & 0 \\ 0 & 2 \end{pmatrix} and C = \begin{pmatrix} 1 & 0 \\ 0 & 3 \end{pmatrix} can be similar. (Compare eigenvalues.)
A trap to watch for
Sharing all of trace, determinant, and characteristic polynomial does not guarantee that two matrices are similar. The matrices I_2 = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} and J = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} both have trace , determinant , and characteristic polynomial . Yet they are NOT similar: is diagonal, while is a Jordan block (not diagonalisable). The full classification of similarity classes requires Jordan Normal Form, the eigenvalues alone are not enough when multiplicities are involved. Always check eigenspace dimensions before declaring similarity.
What you now know
You can recognise when two matrices are similar (or definitively not similar), compute the invariants, and use diagonalisation to make hard matrix operations tractable. The next section (§1.8) goes deeper: how to actually find eigenvalues and eigenvectors, the building blocks of every diagonalisation.
Mark section complete →
References
- Garrity, T. (2002). All the Mathematics You Missed. Cambridge University Press, ch. 1, §1.7.
- Axler, S. (2015). Linear Algebra Done Right (3rd ed.). Springer, ch. 5 (eigenvalues and similarity).
- Hoffman, K., Kunze, R. (1971). Linear Algebra (2nd ed.). Prentice-Hall, ch. 6 (similarity).
- Horn, R. A., Johnson, C. R. (2012). Matrix Analysis (2nd ed.). Cambridge University Press, ch. 1.
- Strang, G. (2016). Introduction to Linear Algebra (5th ed.). Wellesley-Cambridge, ch. 6 (eigenvalues, diagonalisation).