Diagonalisation Explained with Worked Examples

If a matrix has enough independent eigenvectors it can be written , where the columns of are eigenvectors and is the diagonal matrix of eigenvalues. Then .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Diagonalisation means

Diagonal matrices are easy to raise to powers: just raise each diagonal entry to the power. So once you have and , the power of the original matrix follows. This is the main use of diagonalisation.

First find the eigenvalues from the characteristic equation, then the eigenvectors from the eigenvector equation. Build from the eigenvectors and from the eigenvalues in the same order, and find with the 2 × 2 inverse formula.

Not every matrix can be diagonalised. A repeated eigenvalue with too few eigenvectors leads to the Jordan normal form. Symmetric matrices can always be diagonalised with an orthogonal matrix. The related matrix exponential uses the same idea.

What is it used for?

Diagonalising a matrix rewrites it in the basis of its eigenvectors, where it becomes a simple diagonal matrix. That makes powers easy.

How to use diagonalisation

  1. Find the eigenvalues and eigenvectors.
  2. Put the eigenvectors in the columns of and the eigenvalues on the diagonal of in the same order.
  3. Find .
  4. Use .

Graph

Powers of the eigenvalues grow at different rates (3ⁿ and 1ⁿ)00.511.522.533.544.55020406080100120Powers of the eigenvalues grow at different rates (3ⁿ and 1ⁿ)neigenvalue to the power n3ⁿ1ⁿGraph with x from 0 to 5 and y from 0 to 130. Shows the curve 3ⁿ; the curve 1ⁿ.

In Aⁿ = PDⁿP⁻¹ the large eigenvalue 3 dominates quickly, which is why the entries of Aⁿ grow like 3ⁿ.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: a symmetric matrix

Diagonalise .

Worked example
Answer
A=PDP−1A=PDP^{-1}
  1. Eigenvalues 3 and 1 with eigenvectors (1,1), (1,−1)
  2. P⁻¹

Example 2: powers of the same matrix

Find for .

Worked example
Answer
(122121121122)\begin{pmatrix}122&121\\121&122\end{pmatrix}
  1. A⁵ = P D⁵ P⁻¹ with D⁵ = diag(243, 1)
  2. Multiply

Example 3: a non-symmetric matrix

Verify the diagonalisation of with , .

Worked example
Answer
A=PDP−1A=PDP^{-1}
  1. P⁻¹
  2. PD
  3. PDP⁻¹

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

A = (2 1; 1 2), D = diag(3, 1)

A³ entry (1,1) = (3³ + 1)/2

14.

same

A³ entry (1,2) = (3³ − 1)/2

13.

same

A⁵ entry (1,1)

122.

same

det A = 3 × 1

3.

Word problems

A = PDP⁻¹ with eigenvectors in P and eigenvalues in D; then Aⁿ = PDⁿP⁻¹, so only the diagonal is raised to a power.

A³

A = (2 1; 1 2): (1,1) entry.

  1. (27 + 1)/2
  2. Check: ✓14

A³ off-diagonal

(27 − 1)/2.

  1. 13
  2. Check: ✓13

A⁵ Higher

(243 + 1)/2.

  1. 122
  2. Check: ✓122

Determinant Higher

Product of eigenvalues.

  1. 3 × 1
  2. Check: ✓3

Common mistakes

Aⁿ = PⁿDPⁿ

wrong ✗

PDⁿP⁻¹ ✓

Only D is powered.

Always diagonalisable

always ✗

need n independent eigenvectors ✓

Defective matrices.

P⁻¹ on the wrong side

wrong ✗

A = PDP⁻¹ ✓

Order.

Entries of D are eigenvectors

vectors ✗

eigenvalues ✓

Roles.

Exam tips

  1. P = eigenvectors, D = eigenvalues.
  2. A = PDP⁻¹.
  3. Aⁿ = PDⁿP⁻¹.
  4. Order of columns must match.
  5. Needs n independent eigenvectors.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. A² (1,1) for A = (2 1; 1 2) Foundation

5

2. A⁴ (1,2) for A = (2 1; 1 2) Foundation

40

3. Dⁿ entry: 2⁶ Foundation

64

4. A⁴ (1,1) for A = (2 1; 1 2) Higher

41

5. A² (1,2) for A = (2 1; 1 2) Higher

4

6. det A⁵ for det A = 3 Higher

243

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Diagonalisation
A = PDP⁻¹.
Eigenvector matrix (P)
Columns are eigenvectors.
Diagonal matrix (D)
Eigenvalues.
Matrix power
Aⁿ.
Defective
Not diagonalisable.
Similarity
P⁻¹AP = D.

Frequently asked questions

What is diagonalisation?

Writing A = PDP⁻¹ with D diagonal.

What are P and D?

P has eigenvectors as columns; D has the eigenvalues.

How do I find Aⁿ?

PDⁿP⁻¹.

Is every matrix diagonalisable?

No, only with enough independent eigenvectors.

Which page covers eigenvectors?

eigenvector equation.

Which page covers the matrix exponential?

matrix exponential.

More in Vectors and matrices and the formula sheets.