← 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 AA and BB are similar matrices, then show that AA and BB have the same rank, trace, characteristic polynomial and eigenvalues.

Technique

Work from the definition B=P−1APB=P^{-1}AP with PP invertible. Rank: an invertible factor changes neither the column space nor the null space. Trace: the commutation identity tr⁡(XY)=tr⁡(YX)\operatorname{tr}(XY)=\operatorname{tr}(YX). Characteristic polynomial: multiplicativity of the determinant, det⁡(P−1MP)=det⁡M\det(P^{-1}MP)=\det M. Eigenvalues then follow as a corollary of the characteristic polynomial.

Solution

Setup. A,BA,B are n×nn\times n matrices over a field FF. By definition, AA and BB are similar if there exists an invertible P∈Mn(F)P\in M_n(F) with

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

(The relation is symmetric: putting Q=P−1Q=P^{-1} gives A=Q−1BQA=Q^{-1}BQ, so “the same” statements below are two-sided.)


Step 1 — Same rank.

We prove two lemmas, each using only invertibility of PP.

(i) rank⁡(AP)=rank⁡(A)\operatorname{rank}(AP)=\operatorname{rank}(A). Compare column spaces. Clearly C(AP)={APx:x∈Fn}⊆C(A)C(AP)=\{AP\mathbf x:\mathbf x\in F^n\}\subseteq C(A). Conversely, for any Ay∈C(A)A\mathbf y\in C(A) write y=P(P−1y)\mathbf y = P(P^{-1}\mathbf y), so Ay=(AP)(P−1y)∈C(AP)A\mathbf y = (AP)(P^{-1}\mathbf y)\in C(AP). Hence C(AP)=C(A)C(AP)=C(A) and therefore

rank⁡(AP)=dim⁡C(AP)=dim⁡C(A)=rank⁡(A).\operatorname{rank}(AP)=\dim C(AP)=\dim C(A)=\operatorname{rank}(A).

(ii) rank⁡(P−1M)=rank⁡(M)\operatorname{rank}(P^{-1}M)=\operatorname{rank}(M) for any MM. Compare null spaces. Since P−1P^{-1} is invertible, P−1v=0  ⟺  v=0P^{-1}\mathbf v=\mathbf 0 \iff \mathbf v=\mathbf 0. Hence

N(P−1M)={x:P−1Mx=0}={x:Mx=0}=N(M),N(P^{-1}M)=\{\mathbf x: P^{-1}M\mathbf x=\mathbf 0\}=\{\mathbf x: M\mathbf x=\mathbf 0\}=N(M),

so the nullities agree, and by the rank–nullity theorem (rank⁡+nullity⁡=n\operatorname{rank}+\operatorname{nullity}=n) the ranks agree.

Applying (ii) with M=APM=AP and then (i):

rank⁡(B)=rank⁡(P−1(AP))=rank⁡(AP)=rank⁡(A).■\operatorname{rank}(B)=\operatorname{rank}\big(P^{-1}(AP)\big)=\operatorname{rank}(AP)=\operatorname{rank}(A).\qquad\blacksquare

Step 2 — Same trace.

First the commutation identity. For n×nn\times n matrices X=(xij)X=(x_{ij}), Y=(yij)Y=(y_{ij}),

tr⁡(XY)=∑i=1n∑j=1nxijyji=∑j=1n∑i=1nyjixij=tr⁡(YX).\operatorname{tr}(XY)=\sum_{i=1}^{n}\sum_{j=1}^{n}x_{ij}y_{ji}=\sum_{j=1}^{n}\sum_{i=1}^{n}y_{ji}x_{ij}=\operatorname{tr}(YX).

Now take X=P−1X=P^{-1} and Y=APY=AP:

tr⁡(B)=tr⁡(P−1(AP))=tr⁡((AP)P−1)=tr⁡(A(PP−1))=tr⁡(AI)=tr⁡(A).■\operatorname{tr}(B)=\operatorname{tr}\big(P^{-1}(AP)\big)=\operatorname{tr}\big((AP)P^{-1}\big)=\operatorname{tr}\big(A(PP^{-1})\big)=\operatorname{tr}(AI)=\operatorname{tr}(A).\qquad\blacksquare

Step 3 — Same characteristic polynomial.

Write the characteristic polynomial of MM as χM(λ)=det⁡(λI−M)\chi_M(\lambda)=\det(\lambda I - M). Since λI=P−1(λI)P\lambda I = P^{-1}(\lambda I)P,

λI−B=P−1(λI)P−P−1AP=P−1(λI−A)P.\lambda I - B = P^{-1}(\lambda I)P - P^{-1}AP = P^{-1}(\lambda I - A)P.

Taking determinants and using multiplicativity det⁡(XY)=det⁡Xdet⁡Y\det(XY)=\det X\det Y together with det⁡(P−1)=1det⁡P\det(P^{-1})=\dfrac{1}{\det P} (valid as det⁡P≠0\det P\neq0):

χB(λ)=det⁡(λI−B)=det⁡(P−1) det⁡(λI−A) det⁡(P)=1det⁡P⋅det⁡P⋅det⁡(λI−A),\chi_B(\lambda)=\det(\lambda I - B)=\det(P^{-1})\,\det(\lambda I - A)\,\det(P)=\frac{1}{\det P}\cdot\det P\cdot\det(\lambda I-A), χB(λ)=χA(λ)identically in λ.■\chi_B(\lambda)=\chi_A(\lambda)\qquad\text{identically in }\lambda.\qquad\blacksquare

Step 4 — Same eigenvalues (corollary of Step 3).

The eigenvalues of a matrix are precisely the roots of its characteristic polynomial. Since χA≡χB\chi_A\equiv\chi_B as polynomials, AA and BB have exactly the same eigenvalues, with the same algebraic multiplicities.

Their geometric multiplicities also agree: for each scalar λ\lambda,

λI−B=P−1(λI−A)P,\lambda I - B = P^{-1}(\lambda I - A)P,

so by Step 1 (applied to the matrix λI−A\lambda I-A) rank⁡(λI−B)=rank⁡(λI−A)\operatorname{rank}(\lambda I-B)=\operatorname{rank}(\lambda I-A), hence dim⁡N(λI−B)=dim⁡N(λI−A)\dim N(\lambda I-B)=\dim N(\lambda I-A). ■\blacksquare

Remark. Steps 2 and 4 are consistent: tr⁡\operatorname{tr} is the sum of the eigenvalues (coefficient of λn−1\lambda^{n-1} in χ\chi, 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−1P^{-1}:

Let Av=λvA\mathbf v=\lambda\mathbf v with v≠0\mathbf v\neq\mathbf 0. Put w=P−1v\mathbf w = P^{-1}\mathbf v. Then w≠0\mathbf w \neq \mathbf 0 (as P−1P^{-1} is invertible) and

Bw=(P−1AP)(P−1v)=P−1Av=P−1(λv)=λ P−1v=λw.B\mathbf w = (P^{-1}AP)(P^{-1}\mathbf v) = P^{-1}A\mathbf v = P^{-1}(\lambda \mathbf v) = \lambda\,P^{-1}\mathbf v = \lambda\mathbf w.

Conversely, if Bw=λwB\mathbf w=\lambda\mathbf w then A(Pw)=λ(Pw)A(P\mathbf w)=\lambda(P\mathbf w). Hence

v is an eigenvector of A for λ  ⟺  P−1v is an eigenvector of B for the same λ,\mathbf v \text{ is an eigenvector of } A \text{ for } \lambda \iff P^{-1}\mathbf v \text{ is an eigenvector of } B \text{ for the same } \lambda,

and the map v↦P−1v\mathbf v \mapsto P^{-1}\mathbf v is an isomorphism of the eigenspace Eλ(A)E_\lambda(A) onto Eλ(B)E_\lambda(B). The eigenvectors coincide only in the special case Pv=c vP\mathbf v = c\,\mathbf v.

Interpretation (why all of this is inevitable). AA and BB represent the same linear operator TT on FnF^n with respect to two different bases, PP being the change-of-basis matrix. Rank, trace, characteristic polynomial and eigenvalues are attributes of TT itself, hence basis-free; the coordinate column of an eigenvector is not, which is exactly why it transforms by P−1P^{-1}.

Answer

  B=P−1AP, P invertible ⟹ rank⁡B=rank⁡A,  tr⁡B=tr⁡A,  χB(λ)=χA(λ),  σ(B)=σ(A) (with multiplicities); eigenvectors satisfy w=P−1v.  \boxed{\;B=P^{-1}AP,\ P\ \text{invertible}\ \Longrightarrow\ \operatorname{rank}B=\operatorname{rank}A,\ \ \operatorname{tr}B=\operatorname{tr}A,\ \ \chi_B(\lambda)=\chi_A(\lambda),\ \ \sigma(B)=\sigma(A)\ \text{(with multiplicities)};\ \text{eigenvectors satisfy } \mathbf w=P^{-1}\mathbf v.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 14 years, mapped. Get the take-away PDF free.