← 2026 Paper 1
UPSC 2026 Maths Optional Paper 1 Q1b — Step-by-Step Solution
10 marks · Section A
Congruence and similarity of matrices · Linear Algebra · asked 3× in 14 yrs · Read the full method →
Question
If A and B are similar matrices, then show that A and B have the same rank, trace, characteristic polynomial and eigenvalues.
Technique
Work from the definition B=P−1AP with P invertible. Rank: an invertible factor changes neither the column space nor the null space. Trace: the commutation identity tr(XY)=tr(YX). Characteristic polynomial: multiplicativity of the determinant, det(P−1MP)=detM. Eigenvalues then follow as a corollary of the characteristic polynomial.
Solution
Setup. A,B are n×n matrices over a field F. By definition, A and B are similar if there exists an invertible P∈Mn(F) with
B=P−1AP.
(The relation is symmetric: putting Q=P−1 gives A=Q−1BQ, so “the same” statements below are two-sided.)
Step 1 — Same rank.
We prove two lemmas, each using only invertibility of P.
(i) rank(AP)=rank(A). Compare column spaces. Clearly C(AP)={APx:x∈Fn}⊆C(A). Conversely, for any Ay∈C(A) write y=P(P−1y), so Ay=(AP)(P−1y)∈C(AP). Hence C(AP)=C(A) and therefore
rank(AP)=dimC(AP)=dimC(A)=rank(A).
(ii) rank(P−1M)=rank(M) for any M. Compare null spaces. Since P−1 is invertible, P−1v=0⟺v=0. Hence
N(P−1M)={x:P−1Mx=0}={x:Mx=0}=N(M),
so the nullities agree, and by the rank–nullity theorem (rank+nullity=n) the ranks agree.
Applying (ii) with M=AP and then (i):
rank(B)=rank(P−1(AP))=rank(AP)=rank(A).■
Step 2 — Same trace.
First the commutation identity. For n×n matrices X=(xij), Y=(yij),
tr(XY)=i=1∑nj=1∑nxijyji=j=1∑ni=1∑nyjixij=tr(YX).
Now take X=P−1 and Y=AP:
tr(B)=tr(P−1(AP))=tr((AP)P−1)=tr(A(PP−1))=tr(AI)=tr(A).■
Step 3 — Same characteristic polynomial.
Write the characteristic polynomial of M as χM(λ)=det(λI−M). Since λI=P−1(λI)P,
λI−B=P−1(λI)P−P−1AP=P−1(λI−A)P.
Taking determinants and using multiplicativity det(XY)=detXdetY together with det(P−1)=detP1 (valid as detP=0):
χB(λ)=det(λI−B)=det(P−1)det(λI−A)det(P)=detP1⋅detP⋅det(λI−A),
χB(λ)=χA(λ)identically in λ.■
Step 4 — Same eigenvalues (corollary of Step 3).
The eigenvalues of a matrix are precisely the roots of its characteristic polynomial. Since χA≡χB as polynomials, A and B have exactly the same eigenvalues, with the same algebraic multiplicities.
Their geometric multiplicities also agree: for each scalar λ,
λI−B=P−1(λI−A)P,
so by Step 1 (applied to the matrix λI−A) rank(λI−B)=rank(λI−A), hence dimN(λI−B)=dimN(λI−A). ■
Remark. Steps 2 and 4 are consistent: tr is the sum of the eigenvalues (coefficient of λn−1 in χ, up to sign), so equality of characteristic polynomials already forces equality of traces — but the direct proof in Step 2 is the one that costs nothing and is expected.
Step 5 — What is not the same: the eigenvectors.
This is the standard trap and it is worth stating explicitly. Similar matrices share eigenvalues but in general do not share eigenvectors; the eigenvectors correspond under P−1:
Let Av=λv with v=0. Put w=P−1v. Then w=0 (as P−1 is invertible) and
Bw=(P−1AP)(P−1v)=P−1Av=P−1(λv)=λP−1v=λw.
Conversely, if Bw=λw then A(Pw)=λ(Pw). Hence
v is an eigenvector of A for λ⟺P−1v is an eigenvector of B for the same λ,
and the map v↦P−1v is an isomorphism of the eigenspace Eλ(A) onto Eλ(B). The eigenvectors coincide only in the special case Pv=cv.
Interpretation (why all of this is inevitable). A and B represent the same linear operator T on Fn with respect to two different bases, P being the change-of-basis matrix. Rank, trace, characteristic polynomial and eigenvalues are attributes of T itself, hence basis-free; the coordinate column of an eigenvector is not, which is exactly why it transforms by P−1.
Answer
B=P−1AP, P invertible ⟹ rankB=rankA, trB=trA, χB(λ)=χA(λ), σ(B)=σ(A) (with multiplicities); eigenvectors satisfy w=P−1v.