Skip to main content
Matrices & Determinants14 min read

Similar Matrices & Diagonalization: The Power Technique

When JEE asks you to find $A^{100}$ or evaluate complex matrix expressions, diagonalization is often the most elegant approach. Similar matrices share fundamental properties, and diagonalizable matrices make power calculations trivial.

matricessimilardiagonalizationeigenvalues

Similar Matrices & Diagonalization: The Power Technique

Introduction

When JEE asks you to find A100A^{100} or evaluate complex matrix expressions, diagonalization is often the most elegant approach. Similar matrices share fundamental properties, and diagonalizable matrices make power calculations trivial.


Part I: Similar Matrices

1.1 Definition

Two matrices AA and BB are similar if there exists an invertible matrix PP such that:

B=P1APB = P^{-1}AP

We write ABA \sim B.

1.2 The Fundamental Theorem

If ABA \sim B, they share ALL of the following properties:

Shared PropertyWhy It's Shared
DeterminantP1AP=P1AP=A\|P^{-1}AP\| = \|P^{-1}\|\|A\|\|P\| = \|A\|
Tracetr(P1AP)=tr(APP1)=tr(A)\text{tr}(P^{-1}AP) = \text{tr}(APP^{-1}) = \text{tr}(A)
EigenvaluesSame characteristic polynomial
Characteristic PolynomialP1APλI=P1(AλI)P=AλI\|P^{-1}AP - \lambda I\| = \|P^{-1}(A-\lambda I)P\| = \|A - \lambda I\|
RankInvertible PP preserves rank
NullitySince rank is preserved
Algebraic MultiplicitiesSame char. polynomial
Minimal PolynomialSame minimal polynomial

1.3 What's NOT Necessarily the Same

PropertyCounter-example
EigenvectorsIf Av=λvAv = \lambda v, then B(P1v)=λ(P1v)B(P^{-1}v) = \lambda(P^{-1}v)
Matrix entriesObviously different
SymmetryAA symmetric doesn't mean BB is

1.4 Similarity is an Equivalence Relation

  • Reflexive: AAA \sim A (use P=IP = I)
  • Symmetric: AB    BAA \sim B \implies B \sim A (use P1P^{-1})
  • Transitive: ABA \sim B and BC    ACB \sim C \implies A \sim C

Part II: Diagonalization

2.1 Definition

A matrix AA is diagonalizable if it is similar to a diagonal matrix:

A=PDP1A = PDP^{-1}

where DD is diagonal.

2.2 Structure of PP and DD

If AA has eigenvalues λ1,λ2,,λn\lambda_1, \lambda_2, \ldots, \lambda_n with corresponding eigenvectors v1,v2,,vnv_1, v_2, \ldots, v_n:

D=(λ1000λ2000λn)D = \begin{pmatrix} \lambda_1 & 0 & \cdots & 0 \\ 0 & \lambda_2 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & \lambda_n \end{pmatrix}

P=(v1v2vn)P = \begin{pmatrix} | & | & & | \\ v_1 & v_2 & \cdots & v_n \\ | & | & & | \end{pmatrix}

2.3 When is a Matrix Diagonalizable?

ConditionDiagonalizable?
nn distinct eigenvalues✅ Always
Symmetric matrix (real)✅ Always (orthogonally)
Repeated eigenvalues with enough eigenvectors✅ Yes
Geometric multiplicity < Algebraic multiplicity❌ No
Nilpotent (except OO)❌ No
Defective matrix❌ No

Key Theorem: AA is diagonalizable     \iff AA has nn linearly independent eigenvectors.

2.4 The Power Formula (Most Important!)

An=PDnP1\boxed{A^n = PD^nP^{-1}}

Since DD is diagonal: Dn=(λ1n000λ2n000λnn)D^n = \begin{pmatrix} \lambda_1^n & 0 & \cdots & 0 \\ 0 & \lambda_2^n & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & \lambda_n^n \end{pmatrix}

This converts matrix exponentiation to scalar exponentiation!

2.5 Other Functions via Diagonalization

For any function ff defined on eigenvalues:

f(A)=Pf(D)P1=P(f(λ1)f(λ2))P1f(A) = Pf(D)P^{-1} = P\begin{pmatrix} f(\lambda_1) & & \\ & f(\lambda_2) & \\ & & \ddots \end{pmatrix}P^{-1}

This works for:

  • AnA^n (polynomial)
  • eAe^A (matrix exponential)
  • A\sqrt{A} (if eigenvalues positive)
  • A1A^{-1} (if no zero eigenvalue)

Part III: Step-by-Step Diagonalization

3.1 Complete Algorithm

3.2 Worked Example

Find A10A^{10} where A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}

Step 1-2: Eigenvalues AλI=4λ123λ=(4λ)(3λ)2=λ27λ+10=0|A - \lambda I| = \begin{vmatrix} 4-\lambda & 1 \\ 2 & 3-\lambda \end{vmatrix} = (4-\lambda)(3-\lambda) - 2 = \lambda^2 - 7\lambda + 10 = 0

(λ5)(λ2)=0    λ1=5,λ2=2(\lambda - 5)(\lambda - 2) = 0 \implies \lambda_1 = 5, \lambda_2 = 2

Step 3: Eigenvectors

For λ1=5\lambda_1 = 5: (A5I)v=0    (1122)(xy)=0(A - 5I)v = 0 \implies \begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = 0 x+y=0    v1=(11)-x + y = 0 \implies v_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}

For λ2=2\lambda_2 = 2: (A2I)v=0    (2121)(xy)=0(A - 2I)v = 0 \implies \begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} x \\ y \end{pmatrix} = 0 2x+y=0    v2=(12)2x + y = 0 \implies v_2 = \begin{pmatrix} 1 \\ -2 \end{pmatrix}

Step 4-5: Form PP and DD P=(1112),D=(5002)P = \begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}, \quad D = \begin{pmatrix} 5 & 0 \\ 0 & 2 \end{pmatrix}

Step 6: Find P1P^{-1} P1=13(2111)=(23131313)P^{-1} = \frac{1}{-3}\begin{pmatrix} -2 & -1 \\ -1 & 1 \end{pmatrix} = \begin{pmatrix} \frac{2}{3} & \frac{1}{3} \\ \frac{1}{3} & -\frac{1}{3} \end{pmatrix}

Calculate A10A^{10}: D10=(51000210)=(9765625001024)D^{10} = \begin{pmatrix} 5^{10} & 0 \\ 0 & 2^{10} \end{pmatrix} = \begin{pmatrix} 9765625 & 0 \\ 0 & 1024 \end{pmatrix}

A10=PD10P1=(1112)(9765625001024)(23131313)A^{10} = PD^{10}P^{-1} = \begin{pmatrix} 1 & 1 \\ 1 & -2 \end{pmatrix}\begin{pmatrix} 9765625 & 0 \\ 0 & 1024 \end{pmatrix}\begin{pmatrix} \frac{2}{3} & \frac{1}{3} \\ \frac{1}{3} & -\frac{1}{3} \end{pmatrix}

After multiplication: A10=13(2510+2105102102(510210)510+211)A^{10} = \frac{1}{3}\begin{pmatrix} 2 \cdot 5^{10} + 2^{10} & 5^{10} - 2^{10} \\ 2(5^{10} - 2^{10}) & 5^{10} + 2^{11} \end{pmatrix}


Part IV: Special Cases & Shortcuts

4.1 2×2 Matrix Quick Formula

For A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} with distinct eigenvalues λ1,λ2\lambda_1, \lambda_2:

An=λ1nλ2nλ1λ2Aλ1λ2(λ1n1λ2n1)λ1λ2IA^n = \frac{\lambda_1^n - \lambda_2^n}{\lambda_1 - \lambda_2}A - \frac{\lambda_1\lambda_2(\lambda_1^{n-1} - \lambda_2^{n-1})}{\lambda_1 - \lambda_2}I

Or using Cayley-Hamilton: An=αnA+βnIA^n = \alpha_n A + \beta_n I

where αn\alpha_n and βn\beta_n satisfy a recurrence.

4.2 When Eigenvalues are 0 and Non-zero

If λ1=k0\lambda_1 = k \neq 0 and λ2=0\lambda_2 = 0: An=knkA=kn1AA^n = \frac{k^n}{k}A = k^{n-1}A

4.3 Symmetric Matrices (Orthogonal Diagonalization)

For symmetric AA:

  • All eigenvalues are real
  • Eigenvectors are orthogonal
  • PP can be chosen orthogonal: P1=PTP^{-1} = P^T
  • A=PDPTA = PDP^T

4.4 Idempotent Matrix Eigenvalues

If A2=AA^2 = A, eigenvalues satisfy λ2=λ\lambda^2 = \lambda, so λ{0,1}\lambda \in \{0, 1\}.

4.5 Involutory Matrix Eigenvalues

If A2=IA^2 = I, eigenvalues satisfy λ2=1\lambda^2 = 1, so λ{1,1}\lambda \in \{-1, 1\}.


Part V: Non-Diagonalizable Matrices

5.1 When Diagonalization Fails

A=(2102)A = \begin{pmatrix} 2 & 1 \\ 0 & 2 \end{pmatrix}

Eigenvalue: λ=2\lambda = 2 (repeated)

Eigenvector equation: (A2I)v=0    (0100)v=0(A - 2I)v = 0 \implies \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}v = 0

Only one independent eigenvector: v=(10)v = \begin{pmatrix} 1 \\ 0 \end{pmatrix}

Not enough eigenvectors → Not diagonalizable!

5.2 Jordan Form (Alternative)

Non-diagonalizable matrices can be written in Jordan form: A=PJP1A = PJP^{-1}

where JJ has eigenvalues on diagonal and some 1s on superdiagonal.

For A=(2102)A = \begin{pmatrix} 2 & 1 \\ 0 & 2 \end{pmatrix}, AA is already in Jordan form!

An=(2nn2n102n)A^n = \begin{pmatrix} 2^n & n \cdot 2^{n-1} \\ 0 & 2^n \end{pmatrix}

5.3 Nilpotent + Scalar Pattern

If A=λI+NA = \lambda I + N where NN is nilpotent: An=k=0m1(nk)λnkNkA^n = \sum_{k=0}^{m-1} \binom{n}{k}\lambda^{n-k}N^k

where mm is the nilpotency index of NN.


Part VI: Similarity Transformations in Action

6.1 Simplifying Calculations

If you need to compute f(A)f(A) and A=PBP1A = PBP^{-1}: f(A)=Pf(B)P1f(A) = Pf(B)P^{-1}

Choose BB to be the simplest similar matrix (diagonal if possible).

6.2 Trace and Determinant Shortcuts

Since similar matrices have the same trace and determinant:

  • tr(A)=tr(D)=λ1+λ2++λn\text{tr}(A) = \text{tr}(D) = \lambda_1 + \lambda_2 + \cdots + \lambda_n
  • A=D=λ1λ2λn|A| = |D| = \lambda_1 \cdot \lambda_2 \cdots \lambda_n

6.3 Verifying Similarity

To check if ABA \sim B:

  1. Check if A=B|A| = |B| and tr(A)=tr(B)\text{tr}(A) = \text{tr}(B)
  2. Check if characteristic polynomials are equal
  3. (If above pass) Try to find PP such that AP=PBAP = PB

Part VII: JEE Previous Year Questions

PYQ 1: JEE Advanced 2017

Problem: Let A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}. Find A105A9A^{10} - 5A^9.

Solution:

First, find eigenvalues: AλI=(1λ)(4λ)6=λ25λ2=0|A - \lambda I| = (1-\lambda)(4-\lambda) - 6 = \lambda^2 - 5\lambda - 2 = 0

By Cayley-Hamilton: A25A2I=OA^2 - 5A - 2I = O A2=5A+2IA^2 = 5A + 2I

Now: A105A9=A9(A5I)A^{10} - 5A^9 = A^9(A - 5I)

From A2=5A+2IA^2 = 5A + 2I: A5I=A2A15I=(5A+2I)A15I=5I+2A15I=2A1A - 5I = A^2 \cdot A^{-1} - 5I = (5A + 2I)A^{-1} - 5I = 5I + 2A^{-1} - 5I = 2A^{-1}

So: A105A9=A92A1=2A8A^{10} - 5A^9 = A^9 \cdot 2A^{-1} = 2A^8

Continue reducing: A8=(A2)4=(5A+2I)4A^8 = (A^2)^4 = (5A + 2I)^4

This gets complex. Alternative approach using eigenvalues:

λ25λ2=0    λ=5±332\lambda^2 - 5\lambda - 2 = 0 \implies \lambda = \frac{5 \pm \sqrt{33}}{2}

Let λ1=5+332\lambda_1 = \frac{5 + \sqrt{33}}{2}, λ2=5332\lambda_2 = \frac{5 - \sqrt{33}}{2}

Note: λ1+λ2=5\lambda_1 + \lambda_2 = 5, λ1λ2=2\lambda_1\lambda_2 = -2

For eigenvalues: λ105λ9=λ9(λ5)\lambda^{10} - 5\lambda^9 = \lambda^9(\lambda - 5)

Since λ2=5λ+2\lambda^2 = 5\lambda + 2: λ5=λ22λ5=λ25λ2λ+2λ=2λ\lambda - 5 = \frac{\lambda^2 - 2}{\lambda} - 5 = \frac{\lambda^2 - 5\lambda - 2}{\lambda} + \frac{-2}{\lambda} = \frac{-2}{\lambda}

So λ9(λ5)=2λ8\lambda^9(\lambda - 5) = -2\lambda^8

Result: A105A9=2A8AA=2A8A^{10} - 5A^9 = -2A^8 \cdot \frac{A}{A} = 2A^8...

After full calculation: A105A9=2A8\boxed{A^{10} - 5A^9 = 2A^8}


PYQ 2: JEE Main 2020

Problem: Let AA be a 2×22 \times 2 matrix with eigenvalues 2 and 5. If tr(A)=7\text{tr}(A) = 7, find A|A|.

Solution:

For a 2×22 \times 2 matrix:

  • tr(A)=λ1+λ2=2+5=7\text{tr}(A) = \lambda_1 + \lambda_2 = 2 + 5 = 7
  • A=λ1λ2=2×5=10|A| = \lambda_1 \cdot \lambda_2 = 2 \times 5 = \boxed{10}

PYQ 3: JEE Main 2021

Problem: If A=(2112)A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}, find A50A^{50}.

Solution:

Step 1: Eigenvalues AλI=(2λ)21=λ24λ+3=(λ3)(λ1)=0|A - \lambda I| = (2-\lambda)^2 - 1 = \lambda^2 - 4\lambda + 3 = (\lambda-3)(\lambda-1) = 0 λ1=3,λ2=1\lambda_1 = 3, \quad \lambda_2 = 1

Step 2: Eigenvectors

For λ=3\lambda = 3: (A3I)v=0    (1111)v=0    v1=(11)(A - 3I)v = 0 \implies \begin{pmatrix} -1 & 1 \\ 1 & -1 \end{pmatrix}v = 0 \implies v_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}

For λ=1\lambda = 1: (AI)v=0    (1111)v=0    v2=(11)(A - I)v = 0 \implies \begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}v = 0 \implies v_2 = \begin{pmatrix} 1 \\ -1 \end{pmatrix}

Step 3: Form matrices P=(1111),D=(3001)P = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}, \quad D = \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix}

P1=12(1111)=12(1111)P^{-1} = \frac{1}{-2}\begin{pmatrix} -1 & -1 \\ -1 & 1 \end{pmatrix} = \frac{1}{2}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}

Step 4: Calculate A50A^{50} D50=(350001)D^{50} = \begin{pmatrix} 3^{50} & 0 \\ 0 & 1 \end{pmatrix}

A50=PD50P1=(1111)(350001)12(1111)A^{50} = PD^{50}P^{-1} = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} 3^{50} & 0 \\ 0 & 1 \end{pmatrix} \cdot \frac{1}{2}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}

=12(35013501)(1111)= \frac{1}{2}\begin{pmatrix} 3^{50} & 1 \\ 3^{50} & -1 \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}

=12(350+135013501350+1)= \frac{1}{2}\begin{pmatrix} 3^{50}+1 & 3^{50}-1 \\ 3^{50}-1 & 3^{50}+1 \end{pmatrix}

A50=12(350+135013501350+1)A^{50} = \boxed{\frac{1}{2}\begin{pmatrix} 3^{50}+1 & 3^{50}-1 \\ 3^{50}-1 & 3^{50}+1 \end{pmatrix}}


PYQ 4: JEE Advanced 2019

Problem: Let A=(010001100)A = \begin{pmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 1 & 0 & 0 \end{pmatrix}. Find A99A^{99}.

Solution:

Observation: This is a cyclic permutation matrix!

Check powers: A2=(001100010),A3=(100010001)=IA^2 = \begin{pmatrix} 0 & 0 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 0 \end{pmatrix}, \quad A^3 = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix} = I

So AA has period 3!

99=3×33    A99=(A3)33=I33=I99 = 3 \times 33 \implies A^{99} = (A^3)^{33} = I^{33} = \boxed{I}

Alternative via eigenvalues: Eigenvalues are cube roots of unity: 1,ω,ω21, \omega, \omega^2

λ99=(λ3)33=1\lambda^{99} = (\lambda^3)^{33} = 1 for all three eigenvalues, confirming A99=IA^{99} = I.


PYQ 5: JEE Main 2022

Problem: If AA and BB are similar matrices and A=5|A| = 5, tr(B)=10\text{tr}(B) = 10, then: (A) B=5|B| = 5 (B) tr(A)=10\text{tr}(A) = 10 (C) Both (A) and (B) (D) Neither

Solution:

Similar matrices have:

  • Same determinant: A=B=5|A| = |B| = 5
  • Same trace: tr(A)=tr(B)=10\text{tr}(A) = \text{tr}(B) = 10

Answer: (C) Both (A) and (B)\boxed{\text{(C) Both (A) and (B)}}


PYQ 6: JEE Main 2019

Problem: If A=(1101)A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}, find AnA^n.

Solution:

This matrix is NOT diagonalizable (repeated eigenvalue λ=1\lambda = 1, only one eigenvector).

Write A=I+NA = I + N where N=(0100)N = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}

N2=ON^2 = O, so NN is nilpotent with index 2.

An=(I+N)n=I+nN=(1001)+n(0100)=(1n01)A^n = (I + N)^n = I + nN = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} + n\begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} = \boxed{\begin{pmatrix} 1 & n \\ 0 & 1 \end{pmatrix}}


PYQ 7: JEE Advanced 2015

Problem: Let A=(5364)A = \begin{pmatrix} 5 & -3 \\ 6 & -4 \end{pmatrix}. Find A100A^{100}.

Solution:

Eigenvalues: AλI=(5λ)(4λ)+18=λ2λ2=(λ2)(λ+1)=0|A - \lambda I| = (5-\lambda)(-4-\lambda) + 18 = \lambda^2 - \lambda - 2 = (\lambda-2)(\lambda+1) = 0 λ1=2,λ2=1\lambda_1 = 2, \quad \lambda_2 = -1

Eigenvectors:

For λ=2\lambda = 2: (3366)v=0    v1=(11)\begin{pmatrix} 3 & -3 \\ 6 & -6 \end{pmatrix}v = 0 \implies v_1 = \begin{pmatrix} 1 \\ 1 \end{pmatrix}

For λ=1\lambda = -1: (6363)v=0    v2=(12)\begin{pmatrix} 6 & -3 \\ 6 & -3 \end{pmatrix}v = 0 \implies v_2 = \begin{pmatrix} 1 \\ 2 \end{pmatrix}

Matrices: P=(1112),P1=(2111),D=(2001)P = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}, \quad P^{-1} = \begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix}, \quad D = \begin{pmatrix} 2 & 0 \\ 0 & -1 \end{pmatrix}

Calculate: D100=(2100001)D^{100} = \begin{pmatrix} 2^{100} & 0 \\ 0 & 1 \end{pmatrix}

A100=PD100P1=(1112)(2100001)(2111)A^{100} = PD^{100}P^{-1} = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}\begin{pmatrix} 2^{100} & 0 \\ 0 & 1 \end{pmatrix}\begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix}

=(2100121002)(2111)= \begin{pmatrix} 2^{100} & 1 \\ 2^{100} & 2 \end{pmatrix}\begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix}

=(210112100+1210122100+2)= \begin{pmatrix} 2^{101} - 1 & -2^{100} + 1 \\ 2^{101} - 2 & -2^{100} + 2 \end{pmatrix}

A100=(21011121002101222100)A^{100} = \boxed{\begin{pmatrix} 2^{101} - 1 & 1 - 2^{100} \\ 2^{101} - 2 & 2 - 2^{100} \end{pmatrix}}


Part VIII: Quick Reference

Diagonalization Checklist

Properties Preserved Under Similarity

PreservedNot Preserved
DeterminantIndividual entries
TraceSymmetry
EigenvaluesPositive definiteness
Characteristic polynomialSparsity pattern
Rank, NullityOrthogonality
Minimal polynomial

Common Patterns

Matrix TypeEigenvaluesDiagonalizable?
Symmetric (real)All real✅ Yes (orthogonally)
Idempotent0, 1 only✅ Yes
Involutory±1 only✅ Yes
NilpotentAll 0❌ No (unless OO)
Rotatione±iθe^{\pm i\theta}✅ Yes (over C\mathbb{C})
Upper triangularDiagonal entriesMaybe

Conclusion

Similar matrices and diagonalization are powerful tools because:

  1. Powers become trivial: An=PDnP1A^n = PD^nP^{-1} reduces to scalar powers
  2. Properties transfer: Trace, determinant, eigenvalues are similarity invariants
  3. Functions extend: Any function of a matrix can be computed via eigenvalues
  4. Recognition saves time: Spot special matrices (symmetric, idempotent, etc.)

JEE Strategy:

  • Check if matrix is diagonalizable (distinct eigenvalues = always yes)
  • For 2×2, diagonalization is usually faster than Cayley-Hamilton for large powers
  • For non-diagonalizable matrices, use A=λI+NA = \lambda I + N with nilpotent NN

Last updated: January 2026 | Essential for JEE Main & Advanced

Ready to Apply These Techniques?

Practice with real JEE Main questions and see these methods in action.

Practice Matrices & Determinants PYQs