Maths WorkshopMaths problems with full solutions
Exercise 151Linear algebra › Linear mapsL1Added 3 Nov 2026

Invariants under similarity

#similarity#trace#determinant#rank#characteristic polynomial

Statement

Two n×nn\times n matrices AA and BB are similar if B=P−1APB=P^{-1}AP for some invertible PP. Show that similar matrices have the same rank, trace, determinant, and characteristic polynomial.

Hint

For the rank, use the invariance under multiplication by invertible matrices. For the trace, use tr⁡(XY)=tr⁡(YX)\operatorname{tr}(XY)=\operatorname{tr}(YX). For the determinant and characteristic polynomial, use multiplicativity of det⁡\det.

Show solutionHide solution

Solution

Rank. By the invariance of the rank under left and right multiplication by invertible matrices, rank⁡(P−1AP)=rank⁡(A)\operatorname{rank}(P^{-1}AP)=\operatorname{rank}(A).

Trace. For square matrices, tr⁡(XY)=∑i,jxijyji=tr⁡(YX)\operatorname{tr}(XY)=\sum_{i,j}x_{ij}y_{ji}=\operatorname{tr}(YX). With X=P−1X=P^{-1} and Y=APY=AP:
tr⁡(B)=tr⁡(P−1(AP))=tr⁡((AP)P−1)=tr⁡(A).\operatorname{tr}(B)=\operatorname{tr}\big(P^{-1}(AP)\big)=\operatorname{tr}\big((AP)P^{-1}\big)=\operatorname{tr}(A).

Determinant. det⁡B=det⁡(P−1)det⁡(A)det⁡(P)=det⁡(A)\det B=\det(P^{-1})\det(A)\det(P)=\det(A), since det⁡(P−1)det⁡(P)=det⁡(I)=1\det(P^{-1})\det(P)=\det(I)=1.

Characteristic polynomial. Since P−1(λI)P=λIP^{-1}(\lambda I)P=\lambda I,
det⁡(B−λI)=det⁡(P−1(A−λI)P)=det⁡(A−λI).\det(B-\lambda I)=\det\big(P^{-1}(A-\lambda I)P\big)=\det(A-\lambda I).

Conclusion. Rank, trace, determinant, and characteristic polynomial are invariants of the similarity class. In particular they are attributes of an endomorphism, independent of the chosen basis.