Diagonalising a Matrix and Finding Powers with PDⁿP⁻¹ | Applications and Interpretation IB Maths notes

Free preview: Diagonalising a Matrix and Finding Powers with PDⁿP⁻¹

Writing M as PDP⁻¹

Applications and interpretation: HL only (AHL 1.15), the tool behind Markov chains (AHL 4.19)

Here's a challenge: find M20 for M=(4123). Multiplying M by itself twenty times is slow and error-prone. But there are matrices whose powers are trivial to write down. The trick of this note is to rewrite M in terms of one of those.

Let's start with the easiest matrices of all. A diagonal matrix has zeros everywhere except the leading diagonal, like D=(5002).

  • Diagonal matrices are easy to power: Dn=(5n002n). Just power each diagonal entry.
  • Most matrices aren't diagonal. But if we look at them along their eigenvectors, they act just like a diagonal matrix: they only stretch.
  • Diagonalising M means writing it as M=PDP−1, with D diagonal.

P is the usual IB letter for the matrix of eigenvectors (some books call it U). Use whichever letter the question uses. In the AI course M is always 2×2 with two different real eigenvalues.

Building P and D

  1. Find the eigenvalues λ1,λ2 and eigenvectors 𝐯1,𝐯2 (from your matrices work, AHL 1.15).
  2. Make P by putting the eigenvectors in as columns: P=(𝐯1  𝐯2).
  3. Make D by putting the eigenvalues on the diagonal, in the same order: D=(λ100λ2).
  4. Find P−1 and check that UDU−1=M.

Why it works

  • M times a column of P is M𝐯1=λ1𝐯1. So MP=(λ1𝐯1  λ2𝐯2).
  • And PD=(𝐯1  𝐯2)(λ100λ2)=(λ1𝐯1  λ2𝐯2) too.
  • So MP=UD. If P has an inverse, multiply on the right by P−1:

M=PDP−1⟺P−1MU=D

💡 In plain words

  • P: eigenvectors as columns. D: matching eigenvalues on the diagonal.
  • M is "change to eigenvector directions, stretch, change back".
  • Why must P have an inverse? The last step multiplies by P−1. That only works if detP≠0, which means the eigenvector columns point in genuinely different directions.

👀 Watch me do it: diagonalise M=(4123)

What I writeWhy I do it
λ = 5 with (11); λ = 2 with (1−2)Step 1: from the previous note.
P=(111−2), D=(5002)Steps 2 and 3: the eigenvector for 5 goes first, so 5 goes first in D.
detP=−2−1=−3ad − bc.
P−1=−13(−2−1−11)=13(211−1)Swap a and d, negate b and c, divide by the determinant.
UD=(525−4)Step 4: each column of P times its eigenvalue.
UDU−1=13(12369)=(4123)It works.

✏️ YOUR TURN 1

Try this first:

The matrix M=(1232) has eigenvalue 4 with eigenvector (23) and eigenvalue −1 with eigenvector (1−1). Find P, D and P−1, and check that UDU−1=M.

Answer:

  • P=(213−1), D=(400−1). The eigenvector for 4 is the first column, so 4 is first in D.
  • detP=−2−3=−5, so P−1=−15(−1−1−32)=15(113−2).
  • Check: PD=(8−1121) and UDU−1=15(5101510)=(1232).

Powers of M

👀 Watch me do it: show that Mn=UDnU−1

What I writeWhy I do it
M2=(UDU−1)(UDU−1)Write M twice.
=UD(P−1P)DU−1Matrix multiplication is associative, so regroup the middle.
=UD2P−1The P−1P in the middle is I, so it disappears.
Mn=UDnU−1Every extra factor of M does the same.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in HL: Markov chains (AHL 4.19, with AHL 1.15)

  1. Diagonalising a Matrix and Finding Powers with PDⁿP⁻¹
  2. Markov Chains: Transition Matrices and State Vectors
  3. Steady States and Long-Term Behaviour of Markov Chains

What's inside for this topic

3 teacher notes, 57 practice questions, 28 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Next note: Markov Chains: Transition Matrices and State Vectors

All Applications and Interpretation IB Maths topics · IB Maths