Skip to main content
SingaporeFurther MathsSyllabus dot point

How do we diagonalise a matrix, and why does diagonalisation make computing powers of a matrix easy?

Diagonalise a matrix using its eigenvalues and eigenvectors and use the diagonal form to compute powers of the matrix

A focused answer to the H2 Further Mathematics outcome on diagonalisation. Writing A = PDP inverse, the conditions for diagonalisability, computing high powers via A^n = PD^nP inverse, and applications to recurrences and systems.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to diagonalise a matrix by writing it as A=PDP1\mathbf{A} = \mathbf{P}\mathbf{D}\mathbf{P}^{-1}, where D\mathbf{D} is diagonal, and to use this form to compute high powers An\mathbf{A}^n efficiently. You must also know when a matrix can be diagonalised and how the construction uses eigenvalues and eigenvectors.

The answer

The diagonalisation factorisation

If a square matrix A\mathbf{A} has enough linearly independent eigenvectors, it can be written as

A=PDP1,\mathbf{A} = \mathbf{P}\mathbf{D}\mathbf{P}^{-1},

where the columns of P\mathbf{P} are the eigenvectors and D\mathbf{D} is the diagonal matrix of the corresponding eigenvalues, listed in the same order as the eigenvector columns. Equivalently P1AP=D\mathbf{P}^{-1}\mathbf{A}\mathbf{P} = \mathbf{D}.

When a matrix is diagonalisable

An n×nn\times n matrix is diagonalisable if and only if it has nn linearly independent eigenvectors. Two sufficient guarantees:

  • nn distinct eigenvalues always give nn independent eigenvectors (so distinct eigenvalues imply diagonalisable);
  • a symmetric real matrix is always diagonalisable.

A defective matrix, with a repeated eigenvalue whose eigenspace is too small, cannot be diagonalised.

Why diagonal form computes powers

Because P1P=I\mathbf{P}^{-1}\mathbf{P} = \mathbf{I} cancels in the middle of repeated products,

An=PDnP1,\mathbf{A}^n = \mathbf{P}\mathbf{D}^{\,n}\mathbf{P}^{-1},

and a diagonal matrix is trivial to raise to a power: Dn\mathbf{D}^{\,n} just raises each diagonal entry to the nnth power. This turns an otherwise messy repeated multiplication into one easy step plus two matrix products.

The procedure

  1. Find the eigenvalues and eigenvectors of A\mathbf{A}.
  2. Form P\mathbf{P} from the eigenvectors (as columns) and D\mathbf{D} from the matching eigenvalues.
  3. Compute P1\mathbf{P}^{-1}.
  4. For a power, evaluate Dn\mathbf{D}^{\,n} and multiply PDnP1\mathbf{P}\mathbf{D}^{\,n}\mathbf{P}^{-1}.

Examples in context

Example 1. Closed form of a coupled recurrence. A pair of sequences updated by a matrix each step, xn=Axn1\mathbf{x}_{n} = \mathbf{A}\mathbf{x}_{n-1}, has the explicit solution xn=Anx0=PDnP1x0\mathbf{x}_n = \mathbf{A}^n\mathbf{x}_0 = \mathbf{P}\mathbf{D}^n\mathbf{P}^{-1}\mathbf{x}_0. Diagonalisation delivers the closed form directly, linking back to the characteristic-equation method for recurrences.

Example 2. Population growth models. In a stage-structured population model the transition matrix is diagonalised so that the dominant eigenvalue gives the long-term growth rate and its eigenvector the stable stage distribution, the standard tool of mathematical ecology.

Try this

Q1. State the diagonalisation factorisation and what P\mathbf{P} and D\mathbf{D} contain. [2 marks]

  • Cue. A=PDP1\mathbf{A} = \mathbf{P}\mathbf{D}\mathbf{P}^{-1}, where P\mathbf{P} has the eigenvectors as columns and D\mathbf{D} the eigenvalues on its diagonal.

Q2. Write An\mathbf{A}^n in terms of P\mathbf{P} and D\mathbf{D}. [1 mark]

  • Cue. An=PDnP1\mathbf{A}^n = \mathbf{P}\mathbf{D}^{\,n}\mathbf{P}^{-1}.

Q3. Why does having two distinct eigenvalues guarantee a 2×22\times2 matrix is diagonalisable? [2 marks]

  • Cue. Distinct eigenvalues have linearly independent eigenvectors, so P\mathbf{P} is invertible and A=PDP1\mathbf{A} = \mathbf{P}\mathbf{D}\mathbf{P}^{-1} exists.

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original7 marksThe matrix A=(4213)\mathbf{A} = \begin{pmatrix} 4 & 2 \\ 1 & 3 \end{pmatrix} has eigenvalues 22 and 55 with eigenvectors (11)\begin{pmatrix} 1 \\ -1 \end{pmatrix} and (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}. Write down a matrix P\mathbf{P} and diagonal matrix D\mathbf{D} with A=PDP1\mathbf{A} = \mathbf{PDP}^{-1}, and hence find An\mathbf{A}^n in terms of nn as a single matrix.
Show worked answer →

Take P=(1211)\mathbf{P} = \begin{pmatrix} 1 & 2 \\ -1 & 1 \end{pmatrix} (eigenvectors as columns) and D=(2005)\mathbf{D} = \begin{pmatrix} 2 & 0 \\ 0 & 5 \end{pmatrix} (matching eigenvalues on the diagonal in the same order).

Then An=PDnP1\mathbf{A}^n = \mathbf{P}\mathbf{D}^n\mathbf{P}^{-1} with Dn=(2n005n)\mathbf{D}^n = \begin{pmatrix} 2^n & 0 \\ 0 & 5^n \end{pmatrix}.

Compute P1\mathbf{P}^{-1}: detP=(1)(1)(2)(1)=3\det\mathbf{P} = (1)(1) - (2)(-1) = 3, so P1=13(1211)\mathbf{P}^{-1} = \tfrac{1}{3}\begin{pmatrix} 1 & -2 \\ 1 & 1 \end{pmatrix}.

An=(1211)(2n005n)13(1211)=13(2n+25n22n+25n2n+5n22n+5n).\mathbf{A}^n = \begin{pmatrix} 1 & 2 \\ -1 & 1 \end{pmatrix}\begin{pmatrix} 2^n & 0 \\ 0 & 5^n \end{pmatrix}\cdot\tfrac{1}{3}\begin{pmatrix} 1 & -2 \\ 1 & 1 \end{pmatrix} = \tfrac{1}{3}\begin{pmatrix} 2^n + 2\cdot 5^n & -2\cdot 2^n + 2\cdot 5^n \\ -2^n + 5^n & 2\cdot 2^n + 5^n \end{pmatrix}.

Markers reward P\mathbf{P} from the eigenvectors and D\mathbf{D} from the matching eigenvalues, the formula An=PDnP1\mathbf{A}^n = \mathbf{P}\mathbf{D}^n\mathbf{P}^{-1}, a correct P1\mathbf{P}^{-1}, and the simplified product.

Original4 marksExplain why a 2×22\times2 matrix with two distinct real eigenvalues is always diagonalisable, and state one situation in which a matrix fails to be diagonalisable.
Show worked answer →

Distinct eigenvalues have linearly independent eigenvectors. With two independent eigenvectors in two dimensions, the matrix P\mathbf{P} formed from them as columns is invertible (its columns span the plane), so P1\mathbf{P}^{-1} exists and A=PDP1\mathbf{A} = \mathbf{PDP}^{-1} can be formed. Hence the matrix is diagonalisable.

A matrix fails to be diagonalisable when it does not have enough linearly independent eigenvectors, which can happen for a repeated eigenvalue whose eigenspace has dimension smaller than the multiplicity (a defective or "deficient" matrix). For example (2102)\begin{pmatrix} 2 & 1 \\ 0 & 2 \end{pmatrix} has the single eigenvalue 22 but only a one-dimensional eigenspace, so it cannot be diagonalised.

Markers reward linking distinct eigenvalues to independent eigenvectors and hence an invertible P\mathbf{P}, and a correct example of a non-diagonalisable (defective) matrix.

Related dot points