Similar Matrices
Suppose a linear operator on a plane stretches space along one direction. It compresses space along another direction. In the standard basis, its matrix might look like a dense array of four numbers. This array shows no obvious pattern. But suppose we describe the same operator using a different basis. If that basis aligns with the stretching and compressing directions, the matrix suddenly becomes diagonal. This reveals exactly how the operator behaves. This is the central phenomenon this article addresses. The same linear operator can be represented by wildly different-looking matrices. The specific appearance depends on which basis we use to write down coordinates. The precise relationship between two matrices that represent the same operator in different bases is called similarity. Understanding similarity answers a question. The question is easy to state but consequential to resolve. Which properties of a matrix are genuine properties of the underlying linear operator? Which properties are merely artifacts of a particular choice of coordinates? Determinant, trace, rank, eigenvalues, characteristic polynomial, invertibility — all of these turn out to be shared by similar matrices. This happens precisely because they depend only on the operator. They do not depend on the coordinate system used to describe it. The big picture is this: a matrix is not an intrinsic object attached to a linear map. Instead, it is a representation of that map relative to a chosen basis. Changing the basis changes the matrix. It does not change the operator. Similarity is the equivalence relation on square matrices. It captures the idea of "represents the same operator, possibly in a different basis." This article builds on Change of Basis and the Change-of-Basis Matrix and Matrix Multiplication as Composition. Using these foundations, it derives the similarity relation rigorously. It also proves this relation is an equivalence relation. Finally, it establishes the invariants this relation preserves. What follows is a complete development. First comes the formal definition of similarity. Next comes an intuitive picture of change of basis. This picture treats change of basis as "translating" the description of a fixed geometric action. Then follows a fully proved central theorem. This theorem identifies similarity with same-operator-different-basis. The article also includes worked numerical examples with asymmetric matrices. It offers a counterexample showing why invertibility of is essential. Finally, it surveys where similarity appears across mathematics and its applications. This sets the stage for the deeper study of Invertible Matrices. It also prepares the ground for eventually understanding diagonalization.
- Two matrices are similar if for some invertible .
- Similar matrices represent the same linear operator , just relative to different bases of .
- Similarity is an equivalence relation: reflexive, symmetric, and transitive.
- Similar matrices share determinant, trace, rank, invertibility, characteristic polynomial, and eigenvalues — but generally not individual entries.
- The matrix is precisely the change-of-basis matrix converting coordinates from the new basis to the old one.
- Key idea: similarity strips away coordinate-dependent noise, isolating what is truly intrinsic to a linear operator.
Where this lives today
Similarity is the algebraic engine behind diagonalization: an operator is diagonalizable exactly when its matrix is similar to a diagonal matrix, and eigenvalue algorithms in numerical linear algebra (QR algorithm, Jacobi eigenvalue method) work by iteratively applying similarity transformations to drive a matrix toward a simpler (triangular or diagonal) similar form while provably preserving eigenvalues at every step. In differential equations and dynamical systems, similarity transformations diagonalize or block-diagonalize the coefficient matrix of a linear system , decoupling the system into independent scalar equations solvable in closed form — the qualitative long-term behavior (stability, oscillation) is read off from eigenvalues, which similarity guarantees are basis-independent. In quantum mechanics and physics, changing between position and momentum representations, or diagonalizing a Hamiltonian to find energy eigenstates, are similarity (or unitary conjugation, a refinement of similarity) changes of basis; energy levels are physical quantities and must be basis-independent, which is exactly why they correspond to eigenvalues, invariant under similarity. In computer graphics and robotics, coordinate frames attached to moving bodies are related by change-of-basis matrices, and the same rigid transformation expressed in different frames is a similarity transformation of the transformation matrix. In statistics, principal component analysis diagonalizes a covariance matrix via an orthogonal similarity transformation, exploiting the fact that a symmetric matrix's diagonalizing basis reveals uncorrelated directions of variance while total variance (the trace) remains invariant under the change of coordinates. In cryptography and coding theory, invariant polynomial and rank computations that must remain robust to a change of internal representation (e.g. of a linear feedback shift register's state matrix) rely on similarity invariance of characteristic polynomials to guarantee cycle-length and period properties are representation-independent.
Ask the tutor: How does the Jordan canonical form complete the classification of matrices up to similarity when the characteristic polynomial alone is not enough?
Let and be matrices over a field . We say is similar to , and write , if there exists an invertible matrix over such that
Equivalently, and are similar if there is an invertible with , i.e. .
Intuition
Think of a linear operator on a finite-dimensional vector space as a fixed geometric action — a rotation, a shear, a projection — that exists independently of any coordinate system. To compute with , we choose a basis of and represent by a matrix : the columns of this matrix record where each basis vector of is sent, expressed in coordinates relative to itself. If we instead choose a different basis , we obtain a possibly very different-looking matrix . Both matrices describe the same operator ; they are two photographs of the same object taken from different angles. The change-of-basis matrix (whose columns are the -coordinates of the -basis vectors, or vice versa depending on convention) is the dictionary translating between the two coordinate systems, and the relation between the two matrices is exactly . A good mental picture: imagine an ellipse-shaped trampoline being stretched by a linear map into another ellipse. In the standard basis, the matrix of this stretch might have off-diagonal entries mixing and . But if we choose a basis along the ellipse's own axes, the same stretch becomes a simple diagonal scaling. Nothing about the physical stretching changed — only our descriptive language did.
Central results
Let be a finite-dimensional vector space over a field with , and let be a linear operator. Let and be two ordered bases of , and let be the change-of-basis matrix satisfying
so that the -th column of is . Then is invertible and
Conversely, if and are similar matrices over , say , then there exist a vector space with , a linear operator , and ordered bases of , such that and . Moreover, similarity of matrices, as defined by for some invertible , is an equivalence relation on the set of matrices over .
We prove the theorem in four parts: (1) forward direction (same operator gives similar matrices), (2) is invertible, (3) converse (similar matrices come from the same operator), (4) similarity is an equivalence relation.
Part 1: Forward direction. Fix . By definition of the matrix of a linear operator relative to a basis, for any ordered basis of we have
This is the fundamental identity connecting operators, their matrix representations, and coordinate vectors (established when matrix representations of linear maps were introduced); we use it as a known fact, not as something to be reproven. We are given that satisfies for every . Apply this identity to the vector in place of :
Now compute two ways. On one hand, directly,
On the other hand, using and ,
Equating the two expressions,
Since is a basis, as ranges over , the coordinate vector ranges over all of . Two matrices that produce equal outputs on every vector in must be equal (apply both sides to each standard basis vector of to read off column of each matrix). Hence
Part 2: is invertible. Define to be the matrix whose -th column is , i.e. is the change-of-basis matrix satisfying for all (this is the analogous matrix built from expressing -vectors in -coordinates). Then for all ,
Taking for each , (the -th standard basis vector), so for every , which forces . Symmetrically, . Hence and is invertible. Combining with Part 1, multiply on the left by :
This proves the forward direction.
Part 3: Converse. Suppose are matrices over with for some invertible . Let and let be the standard ordered basis. Define by (matrix-vector multiplication), a linear map since matrix multiplication is linear in the vector argument. Then , because the -th column of is itself (coordinates relative to the standard basis are the entries of the vector), and is exactly the -th column of . Let be the columns of ; since is invertible, these columns form a basis of (an matrix is invertible iff its columns are linearly independent, hence a basis of ). The matrix whose -th column is is precisely , so is the change-of-basis matrix from -coordinates to -coordinates, exactly as in the hypothesis of Part 1. By Part 1 (already proven, applied to this concrete ),
Thus and for this operator and these two bases, as required.
Part 4: Similarity is an equivalence relation. We verify the three defining properties directly from the algebraic definition . Reflexivity. For any matrix , take , which is invertible with . Then , so . Symmetry. Suppose , so for some invertible . Then multiplying on the left by and on the right by ,
Since is invertible, so is (with inverse ), so setting we have , i.e. . Transitivity. Suppose and , so and for invertible . Substitute:
using the fact that (the standard identity for inverses of a product, verified since and similarly on the other side). Since are invertible, so is their product (product of invertible matrices is invertible, with inverse ). Hence exhibits . All three properties hold, so is an equivalence relation on the set of matrices over .
∎If (i.e. for invertible ), then: 1. . 2. . 3. . 4. is invertible if and only if is invertible. 5. and have the same characteristic polynomial, hence the same eigenvalues with the same algebraic multiplicities.
Let with invertible. (1) Determinant. By multiplicativity of the determinant, . Since (as ), we get , using commutativity of scalar multiplication in . (2) Trace. Recall the identity for any conformable matrices (immediate from the definition of trace as the sum of diagonal entries and expanding both products entrywise: ). Apply this with and :
(3) Rank. Multiplication by an invertible matrix does not change rank: if is invertible, for any conformable , because (and ) implement invertible linear maps that carry a basis of the column (resp. row) space to a basis of the same size. Applying this twice, . (4) Invertibility. is invertible iff iff (by part 3) iff is invertible. (5) Characteristic polynomial. For an indeterminate ,
where the last equality is part (1) applied to the similar matrices and (which are similar via the same , since ). Since the characteristic polynomials agree as polynomials in , their roots — the eigenvalues — agree, with the same multiplicities as roots of the same polynomial.
∎Worked examples
Example 1: Verifying similarity directly and confirming the invariants. Let
First check is invertible: . Its inverse (using the formula ) is
Compute in two steps. First :
Then :
So with . Note and do not share a single common entry, yet:
- and . Match.
- and . Match.
- Characteristic polynomial of : .
Characteristic polynomial of : . Match, as guaranteed by the corollary.
- Both are upper triangular with eigenvalues read off the diagonal — consistent, since similar matrices must have identical eigenvalue multisets, and here the eigenvalues literally appear as diagonal entries in each triangular representative.
Example 2: A basis-change interpretation with an explicit operator on . Let be the linear operator whose matrix relative to the standard basis is
Consider the new ordered basis with
These are linearly independent (the matrix with these columns is lower triangular with nonzero diagonal, hence invertible), so is indeed a basis. Let be the matrix whose columns are the -coordinates of — since is the standard basis, coordinates equal components, so
By the theorem, . Compute by solving for each , or by the standard upper-triangular inverse pattern:
(Check: , first row: ; ; — matches row 1 of . The remaining rows check similarly.) Now compute :
Let us redo this multiplication carefully entry by entry. Row 1 of is :
- column 1 of is : dot product .
- column 2 of is : dot product .
- column 3 of is : dot product .
Row 2 of is :
- vs column 1 : .
- vs column 2 : .
- vs column 3 : .
Row 3 of is :
- vs column 1: .
- vs column 2: .
- vs column 3: .
So
Now compute , with . Row 1 of is , dotted with columns of :
- column 1 : .
- column 2 : .
- column 3 : .
Row 2 of is :
- column 1: .
- column 2: .
- column 3: .
Row 3 of is :
- column 1: .
- column 2: .
- column 3: .
So
Check the invariants: . Both matrices are triangular, so , and both display the same eigenvalues on their diagonals — exactly as guaranteed, since and represent the identical operator , merely described in the bases and respectively.
Drop the hypothesis that is invertible and ask whether -type formulas (or more generally or for arbitrary, possibly singular, matrices) still preserve the invariants of the corollary. They do not. Let
so is singular (). Define (using in place of both and , since has no inverse to speak of, we simply conjugate formally with the same singular matrix on both sides):
Now compare invariants:
- , but . Trace is not preserved.
- , but . Determinant is not preserved; in particular is invertible while is not, so invertibility is not preserved either.
- Eigenvalues of are ; eigenvalues of are (since is diagonal). Eigenvalues change.
The entire proof of the equivalence-relation property and of the invariants relied on cancellation identities such as and , both of which require invertible. Without invertibility, the map is not even a well-defined "change of representation" of a fixed operator — it genuinely distorts the operator's algebraic invariants, because collapses part of the space (it has a nontrivial kernel), so no honest change of basis corresponds to it. This shows invertibility of is not a technical nicety but essential to every conclusion of the theorem.
Scope, edge cases & common traps
| Situation | What holds | What can fail / must be checked |
|---|---|---|
| , invertible | trace, det, rank, invertibility, char. poly., eigenvalues (with multiplicity) all match | individual entries of need not match at all |
| have the same eigenvalues | — | this does not imply in general (see below) |
| over vs. over | if can be chosen with real entries, similarity holds over | similarity depends on the field: real might be similar over but not over |
| Similarity vs. matrix equality | similarity is much weaker than equality | students sometimes wrongly assume ; similarity is an equivalence class, not a single matrix |
| Non-invertible | conjugation-like formulas can break every invariant | see the counterexample above |
A frequently made error: concluding merely because and have the same eigenvalues (even with multiplicity) and the same characteristic polynomial. This is necessary but not sufficient. For instance,
both have characteristic polynomial and the single eigenvalue with algebraic multiplicity . But is similar only to itself (since for any invertible ), while , so . The characteristic polynomial is an invariant of similarity, not a complete classifier of it; distinguishing matrices with equal characteristic polynomials up to similarity requires finer tools (such as the Jordan form), which lie beyond the present scope.
The mathematician behind it
Origins · 1 minArthur Cayley and how this was discovered
Arthur Cayley, working in mid-19th-century England alongside contemporaries such as James Joseph Sylvester, developed the algebra of matrices as objects in their own right, distinct from mere arrays used to solve linear systems. Cayley's 1858 memoir A Memoir on the Theory of Matrices introduced matrix addition, multiplication, and inversion as operations satisfying their own algebraic laws, and he proved foundational facts (including special cases of what is now the Cayley–Hamilton theorem) connecting a matrix to its characteristic polynomial. The notion of similarity — recognizing that different matrices could represent the same underlying linear transformation under a change of coordinates — crystallized out of this broader 19th-century program to treat linear substitutions of variables as algebraic objects with their own invariant theory, a project pursued by Cayley, Sylvester, and later Ferdinand Georg Frobenius, who gave a systematic treatment of canonical forms under similarity.
What exactly does it mean for two matrices to be similar?
Two matrices and over a field are similar if there is an invertible matrix with . Concretely, this means and describe the same underlying linear operator on some -dimensional vector space, just expressed relative to two different ordered bases. The matrix encodes the change of basis linking the two coordinate systems. Similarity is strictly weaker than matrix equality: similar matrices can look completely different entrywise, yet share every property that depends only on the operator itself rather than on the chosen coordinates, such as trace, determinant, rank, and eigenvalues.
Is similarity the same thing as row equivalence?
No, these are different and much weaker or stronger in different ways. Row equivalence (via elementary row operations, or equivalently for invertible ) does not require any relationship on the right side of , and it does not preserve eigenvalues, determinant, or trace in general — it corresponds to systems of equations having the same solution set, not to the same linear operator. Similarity requires a two-sided conjugation using the same on both sides, which is exactly what is needed to reinterpret coordinates consistently for both inputs and outputs of an operator. Similar matrices are always square and share spectral invariants; row-equivalent matrices need not.
Do similar matrices always have the same eigenvectors?
No — eigenvectors are coordinate-dependent objects, unlike eigenvalues. If and is an eigenvector of with eigenvalue (so ), then is an eigenvector of with the same eigenvalue , since . So eigenvectors transform via , while eigenvalues themselves stay fixed. This is exactly consistent with the operator picture: the eigenvector's coordinate representation changes when the basis changes, but the underlying eigenvector (as an abstract vector in ) and its eigenvalue do not.
Can two matrices with the same trace and determinant fail to be similar?
Yes, definitely, once the matrix size is at least with repeated eigenvalues. For example and both have trace , determinant , and characteristic polynomial , but they are not similar: since is a scalar matrix, for every invertible , so 's only similarity partner is itself, and . This shows trace, determinant, and even the full characteristic polynomial are necessary but not sufficient invariants for similarity; a complete invariant requires finer data such as the Jordan canonical form.
Does similarity depend on which field the entries come from?
Yes. Similarity requires the conjugating matrix , and all its entries, to lie in the same field as and . It is possible for two real matrices to be similar when we allow to have complex entries, yet fail to be similar via any real invertible . A standard source of this phenomenon is a real matrix with non-real complex eigenvalues, which can be similar over to a diagonal matrix of its complex eigenvalues, but over it is only similar to a real block form (a rotation-scaling block), never to an actual diagonal matrix.
How is similarity related to diagonalization?
A matrix is called diagonalizable precisely when it is similar to some diagonal matrix , i.e. for an invertible whose columns turn out to be eigenvectors of . Diagonalization is thus a special, especially convenient case of the general similarity relationship: it asks not merely for some simpler-looking similar matrix, but specifically for a diagonal one. Not every matrix is diagonalizable (the earlier example is a classic non-diagonalizable matrix), which is why the broader theory of similarity, and canonical forms such as the Jordan form, is needed to handle all cases.
Why should I care about similarity if I only care about solving ?
Solving individual linear systems is governed by row-reduction and invertibility, not similarity — those are separate concerns. Similarity matters whenever you care about a linear operator's own intrinsic behavior across repeated application, such as computing for large , solving linear recurrences or differential equations , or understanding long-term dynamics, stability, or oscillation. In all of these settings, finding a similar matrix in a simpler form (diagonal, or close to diagonal) makes the computation vastly easier while guaranteeing, via the invariants proved here, that the eigenvalues governing growth rates and oscillation frequencies are exactly the same as those of the original matrix.