The math optional, made finite. Daily Practice

Congruence and similarity of matrices

At a Glance

Why This Chapter Matters

Both UPSC questions on this atom ask for the same proof: similar matrices share their characteristic polynomial (hence the same eigenvalues). The algebraic core is a single factorisation — BλI=P1(AλI)PB-\lambda I=P^{-1}(A-\lambda I)P — followed by multiplicativity of the determinant. The proof takes four lines and earns 10–12 marks. The 2017 version asks about the characteristic polynomial; the 2018 version focuses on the eigenvalues — both reduce to the same argument. Prepare this atom in under 15 minutes and it becomes a guaranteed mark-earner.

Minimum Theory

Similarity. Matrices AA and BB are similar if there exists an invertible matrix PP with B=P1APB=P^{-1}AP. Similarity is an equivalence relation. Geometrically, AA and BB represent the same linear transformation in different bases.

Characteristic polynomial. For an n×nn\times n matrix MM, χM(λ)=det(MλI)\chi_M(\lambda)=\det(M-\lambda I) is a monic polynomial of degree nn in λ\lambda. Its roots (with multiplicity) are the eigenvalues of MM.

The key factorisation. If B=P1APB=P^{-1}AP, then: BλI=P1APλP1IP=P1(AλI)P.B-\lambda I = P^{-1}AP - \lambda P^{-1}IP = P^{-1}(A-\lambda I)P. (The step λI=P1(λI)P\lambda I=P^{-1}(\lambda I)P is the crucial move — regroup before applying the determinant.)

Consequence. Using det(XY)=det(X)det(Y)\det(XY)=\det(X)\det(Y) and det(P1)det(P)=1\det(P^{-1})\det(P)=1: χB(λ)=det(P1)det(AλI)det(P)=χA(λ).\chi_B(\lambda)=\det(P^{-1})\,\det(A-\lambda I)\,\det(P)=\chi_A(\lambda).

Congruence. Matrices AA and BB are congruent if B=PTAPB=P^TAP for some invertible PP. Congruence preserves the signature (index of positivity) of a bilinear form, but not necessarily the eigenvalues or the characteristic polynomial. UPSC has not directly tested congruence; both corpus questions test similarity.

Question Archetypes

ArchetypeYou are seeing this when…
similarity-invariance”Show similar matrices have the same characteristic polynomial / eigenvalues”

similarity-invariance (2 question(s); 2017, 2018)

Recognition Cues

Solution Template

  1. Set up. Let B=P1APB=P^{-1}AP for some invertible PP. Write χB(λ)=det(BλI)\chi_B(\lambda)=\det(B-\lambda I).
  2. Key step. Write λI=P1(λI)P\lambda I=P^{-1}(\lambda I)P so that BλI=P1(AλI)PB-\lambda I=P^{-1}(A-\lambda I)P.
  3. Apply det\det. χB(λ)=det(P1)det(AλI)det(P)=χA(λ)\chi_B(\lambda)=\det(P^{-1})\det(A-\lambda I)\det(P)=\chi_A(\lambda).
  4. Conclusion. Same characteristic polynomial \Rightarrow same roots \Rightarrow same eigenvalues (with multiplicities).

Worked Example(s)

2017 Paper 1, 2017-P1-Q1b (10 marks)

Show that similar matrices have the same characteristic polynomial.

Let A,BA,B be n×nn\times n matrices with B=P1APB=P^{-1}AP for some invertible PP.

Step 1 — Setup. χB(λ)=det(BλI)\chi_B(\lambda)=\det(B-\lambda I).

Step 2 — Key factorisation. BλI=P1APλI=P1APλP1IP=P1(AλI)P.B-\lambda I=P^{-1}AP-\lambda I=P^{-1}AP-\lambda P^{-1}IP=P^{-1}(A-\lambda I)P.

Step 3 — Determinant. χB(λ)=det ⁣(P1(AλI)P)=det(P1)det(AλI)det(P).\chi_B(\lambda)=\det\!\bigl(P^{-1}(A-\lambda I)P\bigr)=\det(P^{-1})\,\det(A-\lambda I)\,\det(P). Since det(P1)det(P)=det(P1P)=det(I)=1\det(P^{-1})\det(P)=\det(P^{-1}P)=\det(I)=1: χB(λ)=det(AλI)=χA(λ).\chi_B(\lambda)=\det(A-\lambda I)=\chi_A(\lambda).

Conclusion.   B=P1AP    χB(λ)=χA(λ)   for all λ.  \boxed{\;B=P^{-1}AP\;\Longrightarrow\;\chi_B(\lambda)=\chi_A(\lambda)\;\text{ for all }\lambda.\;}\qquad\blacksquare

In particular, similar matrices have the same trace and the same determinant.


2018 Paper 1, 2018-P1-Q2a (12 marks)

Show that if AA and BB are similar n×nn\times n matrices, then they have the same eigenvalues.

Same proof as above. After showing χB(λ)=χA(λ)\chi_B(\lambda)=\chi_A(\lambda), add the eigenvalue conclusion:

Step 4 — Eigenvalues. The eigenvalues of a matrix are the roots of its characteristic polynomial. Since χA\chi_A and χB\chi_B are identical polynomials, they have the same roots with the same algebraic multiplicities. Hence AA and BB have the same eigenvalues.

Remark (eigenvectors). If Av=λvAv=\lambda v (v0v\neq0), then B(P1v)=P1APP1v=P1Av=λ(P1v)B(P^{-1}v)=P^{-1}AP\cdot P^{-1}v=P^{-1}Av=\lambda(P^{-1}v). So P1vP^{-1}v is an eigenvector of BB for the same eigenvalue λ\lambda — an independent confirmation.

  B=P1AP    A and B share all eigenvalues with the same algebraic multiplicities.  \boxed{\;B=P^{-1}AP\;\Longrightarrow\;A\text{ and }B\text{ share all eigenvalues with the same algebraic multiplicities.}\;}\qquad\blacksquare

Common Traps


Marks-Aware Writing

10-mark question (characteristic polynomial): The proof has three active mathematical steps (setup, factorisation, determinant) and a conclusion. Write each step on its own line. The factorisation BλI=P1(AλI)PB-\lambda I=P^{-1}(A-\lambda I)P is the pivotal display equation; box it or put it on a line by itself. Total length: about 8–10 lines.

12-mark question (eigenvalues): Same proof, plus an explicit eigenvalue conclusion step. After showing χA=χB\chi_A=\chi_B, add “eigenvalues are roots of the characteristic polynomial; since χA=χB\chi_A=\chi_B, the roots coincide with the same multiplicities.” Include the eigenvector remark as a secondary confirmation for the extra 2 marks.

Practice Set

(No additional practice questions in the corpus for this exact atom; the two worked examples above cover both variants.)

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.