UNIHIVE

Study Hub UNIPORT MTH 210

MTH 210 · Linear Algebra

Diagonalisation

When a matrix can be written as PDP⁻¹, how to find P and D, and using it to compute powers of a matrix.

Our notes

2 min read

The idea

A square matrix A is diagonalisable if there is an invertible P and a diagonal D with
P⁻¹AP = D, equivalently A = PDP⁻¹.
The columns of P are eigenvectors of A; the diagonal of D holds the matching eigenvalues. In the basis of eigenvectors, the map just stretches each axis.

When it works

An n × n matrix is diagonalisable if and only if it has n linearly independent eigenvectors, i.e. for every eigenvalue the geometric multiplicity equals the algebraic multiplicity.

  • n distinct eigenvalues ⟹ diagonalisable (sufficient, not necessary).
  • Real symmetric matrices are always diagonalisable, even with an orthogonal P (P⁻¹ = Pᵀ).
  • [2 1; 0 2] is not diagonalisable: λ = 2 twice, but only one independent eigenvector.

Steps

  1. Find eigenvalues.
  2. Find a basis of each eigenspace.
  3. If there are n independent eigenvectors, put them as the columns of P, in any order.
  4. D = diag(λ₁, ..., λₙ) in the same order.
  5. Check AP = PD (easier than computing P⁻¹AP).

Worked example. A = [4 1; 2 3] (eigenvalues 5 and 2 with eigenvectors (1, 1) and (1, −2)).
P = [1 1; 1 −2], D = [5 0; 0 2].
Check AP: A(1, 1) = (5, 5), A(1, −2) = (2, −4), so AP = [5 2; 5 −4]. PD = [1·5 1·2; 1·5 −2·2] = [5 2; 5 −4]. ✓

Powers of a matrix

Aᵏ = PDᵏP⁻¹, and Dᵏ just raises each diagonal entry to the k.
Worked example. Find A³ for A = [4 1; 2 3].
P⁻¹ = (1/(−3))[−2 −1; −1 1] = (1/3)[2 1; 1 −1].
D³ = [125 0; 0 8].
PD³ = [125 8; 125 −16].
A³ = (1/3)[125 8; 125 −16][2 1; 1 −1] = (1/3)[258 117; 234 141] = [86 39; 78 47].
Check directly: A² = [4 1; 2 3][4 1; 2 3] = [18 7; 14 11]; A³ = A²A = [18·4 + 7·2, 18 + 21; 14·4 + 11·2, 14 + 33] = [86 39; 78 47]. ✓

Uses

  • Powers and limits of matrices (Markov chains: long-run shares of customers between two networks).
  • Solving systems of linear differential equations x′ = Ax (each eigen-direction grows like e^(λt)).
  • Functions of matrices (e^A).
  • Quadratic forms: an orthogonal diagonalisation removes the cross terms (next topics).

Exams usually ask: show a matrix is or is not diagonalisable; find P and D; compute a high power such as A¹⁰ using PDP⁻¹; orthogonally diagonalise a symmetric matrix.

Common mistake: putting the eigenvalues in D in a different order from the eigenvector columns in P. The k-th column of P must go with the k-th diagonal entry of D.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 210 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.