Skip to content

Similarity Transformation


Definition

Let AA and BB be real n×nn\times n matrices. BB is similar to AA, written A∼BA\sim B, if there is an invertible n×nn\times n matrix PP with

B=P−1AP.B=P^{-1}AP.

The map A↦P−1APA\mapsto P^{-1}AP is a similarity transformation. Some texts write PAP−1PAP^{-1} instead; this only replaces PP by P−1P^{-1}.


Interpretation

Similar matrices represent the same linear operator in different bases. If the columns of PP form a basis B\mathcal{B} and AA is the matrix in standard coordinates, then P−1APP^{-1}AP is the matrix in B\mathcal{B}-coordinates: convert to standard coordinates (PP), apply AA, convert back (P−1P^{-1}). Here PP is the transformation matrix of B\mathcal{B}, written FF on the change of basis page.

A commuting square shows A taking x to Ax in standard coordinates and B = P^{-1}AP = diag(5,2) taking P^{-1}x to P^{-1}Ax, joined by P upwards and P^{-1} downwards.

The square uses the diagonalization example below. Going up with PP, across with AA and down with P−1P^{-1} gives the same result as going across the bottom with BB; this is the identity B=P−1APB=P^{-1}AP. Both rows describe one operator, so its eigenvalues 55 and 22 appear in both: as the roots of the characteristic polynomial of AA and as the diagonal entries of BB.

Everything that describes the operator itself, rather than its coordinates, is therefore unchanged by similarity: eigenvalues, determinant, trace, rank. Eigenvectors are not invariant; they change coordinates along with everything else.

Two misconceptions. Equal invariants do not prove similarity (see the example below). And similarity is not row equivalence: EAEA for an invertible EE generally has different eigenvalues from AA.


Key Results

  • Similarity is an equivalence relation on n×nn\times n matrices.
  • Similar matrices have the same characteristic polynomial, hence the same eigenvalues with the same algebraic multiplicities; geometric multiplicities, determinant, trace and rank also agree.
  • If Av=λvA\boldsymbol{v}=\lambda\boldsymbol{v} and B=P−1APB=P^{-1}AP, then B(P−1v)=λ P−1vB(P^{-1}\boldsymbol{v})=\lambda\,P^{-1}\boldsymbol{v}.
  • Bk=P−1AkPB^k=P^{-1}A^kP for all k≥0k\ge0, and more generally p(B)=P−1p(A)Pp(B)=P^{-1}p(A)P for polynomials pp; likewise eBt=P−1eAtP\mathrm{e}^{Bt}=P^{-1}\mathrm{e}^{At}P for the matrix exponential.
  • AA is diagonalizable if and only if it is similar to a diagonal matrix. Over C\mathbb{C}, two matrices are similar if and only if they have the same Jordan normal form up to the order of the blocks.
  • A real symmetric matrix is orthogonally similar to a diagonal matrix: Q⊤AQ=ΛQ^{\top}AQ=\Lambda with Q⊤=Q−1Q^{\top}=Q^{-1}.

Examples

Diagonalizing. A=(4123)A=\begin{pmatrix}4&1\\2&3\end{pmatrix} has trace 77 and determinant 1010, so eigenvalues 55 and 22, with eigenvectors (1,1)⊤(1,1)^{\top} and (1,−2)⊤(1,-2)^{\top}. With

P=(111−2),P−1=13(211−1),AP=(525−4),P=\begin{pmatrix}1&1\\1&-2\end{pmatrix},\qquad P^{-1}=\tfrac{1}{3}\begin{pmatrix}2&1\\1&-1\end{pmatrix},\qquad AP=\begin{pmatrix}5&2\\5&-4\end{pmatrix},

P−1AP=13(15006)=diag⁡(5,2)P^{-1}AP=\tfrac{1}{3}\begin{pmatrix}15&0\\0&6\end{pmatrix}=\operatorname{diag}(5,2). This is a diagonalization of AA, and consequently Ak=Pdiag⁡(5k,2k)P−1A^k=P\operatorname{diag}(5^k,2^k)P^{-1}.

Same invariants, not similar. I2I_2 and J=(1101)J=\begin{pmatrix}1&1\\0&1\end{pmatrix} share characteristic polynomial (λ−1)2(\lambda-1)^2, trace 22 and determinant 11. But P−1I2P=I2≠JP^{-1}I_2P=I_2\neq J for every invertible PP, so they are not similar. An invariant that tells them apart is rank⁡(M−I2)\operatorname{rank}(M-I_2), which is 00 for M=I2M=I_2 and 11 for M=JM=J, because P−1MP−I2=P−1(M−I2)PP^{-1}MP-I_2=P^{-1}(M-I_2)P.


Prerequisites



Sources

Aliases: similar matrices, matrix similarity, conjugation by an invertible matrix, similarity transform Keywords: B = P^{-1} A P, similarity invariants, same characteristic polynomial, A^k = P D^k P^{-1}, orthogonal similarity Symbols: complex numbers, lambda

Last updated: 22 October 2026 19:04