Matrix similarity is a relation in linear algebra between two square matrices that represent the same linear operator in possibly different coordinate systems. Matrices , over a field , are similar if an invertible matrix exists such that
The operation is called a similarity transformation. It changes the matrix representation, rather than the underlying operator. (pressbooks.cuny.edu)
Definition and change of basis
Let act on a finite-dimensional vector space, and let and be ordered bases. Suppose represents in , and the columns of are the coordinates of the -basis vectors in . Then
Applying and converting its output back gives
Thus represents in . Conversely, any invertible defines such a basis change. (pressbooks.cuny.edu)
Similarity is an equivalence relation: it is reflexive, symmetric, and transitive. Reflexivity uses the identity matrix; symmetry uses the inverse of the transforming matrix. If and , then
Consequently, square matrices of a fixed size over a fixed field divide into similarity classes. (pressbooks.cuny.edu)
Preserved properties
Similar matrices have the same characteristic polynomial, because
and therefore
They consequently have the same eigenvalues, including algebraic multiplicities, as well as the same determinant and trace. Their rank is also identical, since multiplication by invertible matrices preserves rank. (ocw.mit.edu)
More generally, for every polynomial ,
It follows that exactly when , so similar matrices have the same minimal polynomial: the monic polynomial of least degree annihilating the matrix. (math.uci.edu)
Eigenvectors themselves need not have identical coordinates. From , one obtains
The corresponding eigenspaces therefore have equal dimensions. The same calculation applies to , preserving the dimensions of its null spaces and hence the generalized-eigenvector structure associated with each eigenvalue. (ocw.mit.edu)
Examples and limits of spectral tests
For a simple example, take
Direct multiplication gives
The matrices look different, but the calculation exhibits their similarity explicitly. This illustrates why off-diagonal entries are not similarity invariants. (sites.wcsu.edu)
Conversely, identical eigenvalues do not establish similarity. Consider
Both have characteristic polynomial , determinant , trace , and rank . Nevertheless, they are not similar: for every invertible . Their minimal polynomials also differ, being and , respectively. Thus these commonly used invariants are necessary tests, not a complete classification. (ocw.mit.edu)
Diagonalization and canonical forms
Diagonalization is a special case of similarity. A matrix is diagonalizable over precisely when it has a basis of eigenvectors with coordinates in . If those vectors form the columns of , then is diagonal. Two diagonalizable matrices over the same field are similar exactly when their eigenvalues agree with multiplicities. (ocw.mit.edu)
When the characteristic polynomial splits into linear factors—for example, over the complex numbers—every square matrix is similar to a Jordan normal form. Its blocks record eigenvalues and generalized-eigenvector chains. Two such matrices are similar exactly when their Jordan blocks agree, apart from block order. Diagonalizability corresponds to all blocks having size one. (pmelvin.blogs.brynmawr.edu)
Over an arbitrary field, rational canonical form provides a complete classification without requiring the eigenvalues to belong to that field. Its invariant-factor polynomials determine a unique canonical representative, and two matrices are similar exactly when these representatives coincide. (pmelvin.blogs.brynmawr.edu)
Testing similarity and numerical computation
The defining equation can be rewritten as
For fixed and , this is a homogeneous system of linear equations in the entries of . Similarity holds precisely when its solution space contains an invertible matrix. A nonzero solution alone is insufficient, since it may be singular. Canonical forms offer an alternative exact test. (sites.wcsu.edu)
In numerical linear algebra, Schur decomposition uses restricted similarity transformations. A complex matrix has a representation , with a unitary matrix and upper triangular; denotes the conjugate transpose. For real matrices, can be an orthogonal matrix, while is block upper triangular with diagonal blocks of size one or two. These forms support practical eigenvalue computation while retaining the original eigenvalues. (netlib.org)