The structure theorem for finitely generated modules over a principal ideal domain applies in particular to a Euclidean domain : every finitely generated module has an isomorphism
with each nonzero and a nonunit. The rank of a free module and the invariant factors of a finitely generated module are unique up to multiplication by units; empty sums are allowed. This is the classification theorem being used, without a proof of that theorem.
The rational canonical form theorem states that for a linear operator on a finite-dimensional vector space over any field , there are unique monic nonconstant polynomials such that some basis gives
Here, for , the companion matrix has ones on its subdiagonal and last column . The empty matrix covers a zero-dimensional space. Two linear operators have matrix similarity exactly when they have the same invariant factors of a linear operator.
For the proof, make an -module by . It is a finitely generated module, since a vector-space basis also generates it as a module. It is a torsion module: the powers of have linear dependence in the finite-dimensional space , so some nonzero polynomial annihilates every vector. Because is a Euclidean domain, the classification theorem gives
There is no free summand, since a nonzero free module over is not a torsion module. Choose monic generators of the ideals. On , the classes of form an -basis by polynomial division. Multiplication by is exactly in that basis, proving existence. Uniqueness in the classification theorem proves uniqueness of the rational canonical form. Finally, an -module isomorphism is precisely an invertible -linear map intertwining the operators, establishing the assertion about matrix similarity. In particular the characteristic polynomial is and the minimal polynomial is for nonzero .
For any matrix and compatible invertible matrix , the linear map maps onto : a linear combination of rows of is sent to the same linear combination of rows of . Its inverse function is , so these row spaces have equal dimensions. Hence right matrix multiplication by also preserves row rank.
If , ii now gives
This proves the required matrix similarity invariant without needing to assume equality of row rank and column rank.
Matrix similarity transports commuting operators: with ,
By ii, all such matrices are therefore
For completeness, matrix multiplication gives
The parameterization is injective, since matrix multiplication by and recovers the parameter diagonal matrix. Thus there are infinitely many choices. Already the distinct scalar matrices , , give an infinite family.
For the given real matrix , direct matrix multiplication gives the eigenvectors
Put these eigenvectors into the columns of
Since , is an invertible matrix. The three column identities give , so
In particular, the matrix similarity is established by an explicit change-of-basis matrix.
The same matrix similarity preserves being a diagonalisable matrix. If is a diagonal matrix, then
Therefore is a diagonalisable matrix whenever is, and the converse follows by interchanging . Thus they are either both diagonalisable matrices or neither is. In fact the previous part shows that one invertible factor suffices.
The expression assumes is invertible. By the cyclic property of the trace,
For a real or complex antisymmetric matrix, forces every diagonal entry to satisfy , hence . Therefore
This also demonstrates invariance of the matrix trace under matrix similarity. Antisymmetry of itself is not needed.
For a positive integer , cancellation of gives . The trace is invariant under matrix similarity, since , and the determinant is multiplicative. Therefore
This includes zero eigenvalues without requiring to be invertible.
Let be the linearly independent eigenvectors, and form . This matrix is invertible and , where . Hence
which proves diagonalizability.
If , then are linearly independent eigenvectors of with the same eigenvalues. Explicitly, with ,
Thus matrix similarity preserves diagonalizability.
For the unitary matrix , . Therefore is a Hermitian matrix:
Every positive integer power remains a Hermitian matrix, since . Its eigenvalues are real by the finite-dimensional spectral theorem. Equivalently, matrix similarity gives
whose eigenvalues are , where the are the real eigenvalues of .
The anticommutator condition and invertibility give the matrix similarities
Since matrix trace is invariant under matrix similarity,
Hence . Taking determinants in the first matrix similarity also gives
Since is an invertible matrix, , and . In terms of eigenvalues, the same matrix similarity pairs each nonzero eigenvalue with , with the same algebraic multiplicity, so an odd number of them is impossible.
With , repeat the shifted QR algorithm:
The QR shift is chosen from , for example its bottom-right entry or an eigenvalue of a trailing two-by-two block. Explicitly using the orthogonality of gives
Thus each update is a matrix similarity preserving eigenvalues. Accumulate if eigenvectors or the full reduction are wanted. Once a subdiagonal entry is negligible, block deflation in the QR algorithm separates the corresponding blocks and iteration continues on the active block.
The induced matrix norm associated with the given energy norm is a supremum of length ratios. The invertible change of variables gives
The last expression is the Euclidean operator norm. This is the matrix norm induced by an energy norm: transforming to coordinates with Euclidean lengths transforms the operator by the corresponding matrix similarity.
Let and . Then
By matrix similarity, every eigenvalue of is for some . These are corresponding eigenvalues on the common eigenbasis, rather than every possible pairwise sum. This is eigenvalue addition in a common eigenbasis.
Let a real tridiagonal matrix have diagonal entries , positive upper entries , and positive lower entries . Set , and . Then is a symmetric matrix with diagonal and adjacent entries . Indeed its two adjacent entries are and , which are equal by construction. All other zeros are preserved. This matrix similarity implies real eigenvalues and diagonalizability, by the spectral theorem for real symmetric matrices. No sign assumption on is needed. In the weighted formulation of positive diagonal symmetrization of a matrix, the positive diagonal matrix is .
Consider the diagonal matrix and a Jordan block
Both have characteristic polynomial , trace , determinant , and eigenvalue with algebraic multiplicity two. But is the whole plane, whereas vanishes only when . Their eigenspaces have different dimensions, so eigenvectors under similarity rules out matrix similarity. There is an even shorter proof: for every invertible matrix .
The missing information is how the linear operator acts beyond its eigenvectors. Here , while but . Their minimal polynomials are respectively and . Over a field where the characteristic polynomial splits, the full sizes of the Jordan blocks, encoded by the Jordan normal form, determine the matrix similarity class.
For real matrices, orthogonal similarity is the special case with an orthogonal matrix. Then a symmetric matrix remains symmetric, because . The expression describes the reverse conversion and has the same property. An orthonormal basis retains the ordinary dot product formula for its coordinate vectors.
An arbitrary change of basis need not preserve entrywise symmetry. In the opening example, is a symmetric matrix but is not. The geometric inner product has not disappeared: in the new coordinates it is represented by the Gram matrix
For with new coordinate vector , the squared Euclidean norm is , agreeing with . The naive coordinate sum would use the wrong inner product.
If , direct multiplication gives
This is self-adjointness expressed in the new inner product, rather than entrywise symmetry relative to the identity matrix. For the example, both products equal . Thus arbitrary matrix similarity preserves the linear operator, while its geometric interpretation requires transforming the Gram matrix as well. Matrix congruence supplies the corresponding rule for a bilinear form and should be distinguished from matrix similarity.
Similarity transformation Created 2026-09-24 Updated 2026-10-14
A similarity transformation replaces a square matrix by a similar matrix. With the change-of-basis matrix convention , it sends to : reconstruct the input in old coordinates, apply , then extract the output's new coordinates. These three operations explain the order of the factors.
The equivalent formula uses as the conversion from old to new coordinates, reversing the role assigned to above. For the opening example's numerical , this opposite conversion gives . If the old basis is , the new basis vectors in that convention are the columns of , namely and . Both formulas are similarity transformations; the direction of the coordinate conversion decides which one describes a specified basis.
An especially useful form is the intertwining operator equation
It says that applying before reconstruction by gives the same physical output as reconstructing first and applying . Given an invertible matrix , multiplying this equation by proves matrix similarity. Without invertibility, the equation alone does not prove matrix similarity.
Figure 1.
Matrix similarity makes coordinate conversion commute with the action of a linear operator
. For the worked example, both routes give the old output coordinate vector . The bottom strip records matrix similarity invariants; the eigenvector tuple changes while reconstructing to the same vertical vector. Details.
Singular value decomposition Created 2026-09-24 Updated 2026-10-14
The singular value decomposition separates any matrix into input directions, stretching factors, and output directions. Every complex matrix admits
Here are unitary matrices, is the conjugate transpose, and is a rectangular diagonal matrix. Its diagonal entries are the singular values, ordered . We use the conventional letters: contains the right singular vectors , while contains the left singular vectors . Writing instead merely swaps these two matrix names; it requires swapping their roles consistently. For real matrices, choose orthogonal matrices and replace the conjugate transpose with the transpose.[ref]
Reading from right to left, expresses the input in an orthonormal basis, stretches or annihilates those coordinates, and assembles the output in another orthonormal basis. Unlike matrix similarity, the input and output bases can differ, and even have different sizes. A matrix has full factors of sizes , , and . If its matrix rank is , one can retain only the active columns, giving sizes , , and for ; the full additionally describes an unused output direction.
For a fully computed nonsymmetric example, take
Multiplication gives . The right singular vectors are and ; their images are and . Thus, parametrizing the unit circle by gives . Its image is the ellipse . The two singular values are its semiaxis lengths, and the left singular vectors point along its axes. The singular value decomposition finds precisely the perpendicular input directions whose images stay perpendicular.
Figure 1.
The unit circle becomes an ellipse: and
. Details.
For compression, write the matrix as a sum of outer products and retain the largest terms:
where is the matrix rank. Among all matrices of matrix rank at most , minimizes the Frobenius norm error; this is the Eckart-Young-Mirsky theorem. The operator norm error is for . These statements concern specified norms, rather than guaranteeing that discarded details are visually or scientifically unimportant.[ref]
Consider an brightness matrix , with
and , . The broad bright patch and alternating checkerboard have orthogonal row and column directions: . Their singular values are and . This low-rank approximation keeps the first outer product, giving , with Frobenius norm error and relative error . For example, becomes , and becomes : every entry changes by in magnitude. The discarded pattern is small but entirely lost.
Figure 2.
An matrix, its rank-one approximation, and the discarded checkerboard
. Details.
For this illustrative image compression, storing one normalized left singular vector, one normalized right singular vector, and one singular value requires scalars instead of . This counts scalars at equal precision, before storage overhead. In general, scalars beat only for sufficiently small , and small error requires a small discarded sum of squared singular values. The usefulness comes from measuring the tradeoff before throwing information away.[ref]
Unitary similarity Created 2026-10-25 Updated 2026-10-31