Maths › Practise › Questions › Diagonalisation and the Cayley-Hamilton theorem
Questions on diagonalisation and the Cayley-Hamilton theorem
A matrix is diagonalisable only when it has a full basis of independent eigenvectors. In that case M = PDP⁻¹, which simplifies powers. The Cayley-Hamilton theorem applies to every square matrix and can reduce high powers; it gives an inverse formula only when the matrix is non-singular.
15 original questions · 63 marks · the diagonalisation and the Cayley-Hamilton theorem notes · Further Pure 2
To print: the questions (PDF, 78 KB) · the worked answers (PDF, 97 KB)
These are original InkMaths questions. Write a complete answer before opening the worked solution and marking guidance.
The matrix M has rows (4, 1) and (2, 3), with eigenvalues 5 and 2 and corresponding eigenvectors (1, 1) and (1, −2). Write down matrices P and D such that M = PDP−1.
Worked solution and marking guidance
Put the eigenvectors in as the columns of P, so P has rows (1, 1) and (1, −2). Then D is diagonal with the matching eigenvalues in the same order, 5 then 2. B1 for P, B1 for D in the matching order. Swapping the columns of P works provided the entries of D are swapped with them.State the Cayley-Hamilton theorem, and verify it for the matrix M with rows (4, 1) and (2, 3).
Worked solution and marking guidance
Every square matrix satisfies its own characteristic equation. Here det(M − λI) = (4 − λ)(3 − λ) − 2 = λ² − 7λ + 10, so the claim is M² − 7M + 10I = 0.
M² has rows (18, 7) and (14, 11), 7M has rows (28, 7) and (14, 21), and 10I has 10 on the diagonal. Then M² − 7M + 10I has entries 18 − 28 + 10, 7 − 7, 14 − 14 and 11 − 21 + 10, all zero, as required. B1 for the statement of the theorem, M1 for forming M² − 7M + 10I, A1 for the zero matrix. Verifying means reaching the zero matrix; quoting the characteristic equation alone does not verify it.State the condition an n × n matrix must satisfy to be diagonalisable, and state what the columns of P and the entries of D are when it holds.
Worked solution and marking guidance
The matrix must have n linearly independent eigenvectors. B1 for that condition. The columns of P are those n eigenvectors and the diagonal entries of D are the matching eigenvalues, taken in the same order, so that P−1AP = D. B1 for the columns and the matching order. Independence is what makes P invertible, which is why it is the condition rather than the eigenvalues being distinct: distinct eigenvalues are sufficient but not necessary.A matrix A satisfies A = PDP−1, where D is the diagonal matrix with entries 2 and 5. Write down the eigenvalues of A, the eigenvalues of A3, and the value of det A.
Worked solution and marking guidance
The diagonal entries of D are the eigenvalues of A, so they are 2 and 5. Raising to a power raises each eigenvalue to that power, since A3 = PD3P−1, so the eigenvalues of A3 are 23 = 8 and 53 = 125. The determinant is the product of the eigenvalues, 2 × 5 = 10. B1 for 2 and 5, B1 for 8 and 125, B1 for 10.The matrix M with rows (4, 1) and (2, 3) has eigenvalues 5 and 2 with eigenvectors (1, 1) and (1, −2). Use a diagonalisation to find M5.
Worked solution and marking guidance
Take P with rows (1, 1) and (1, −2) and D diagonal with 5 and 2, so that M = PDP−1 and M5 = PD5P−1. D5 is diagonal with entries 3125 and 32; only the diagonal entries are ever raised to a power.
Since det P = −3, P−1 is (−1/3) times the matrix with rows (−2, −1) and (−1, 1).
Multiplying the three matrices in the order P, then D5, then P−1 gives M5 with rows (2094, 1031) and (2062, 1063). M1 for using M raised to a power as P times D to that power times P−1, A1 for 3125 and 32, M1 for P−1, M1 for the triple product, A1 for the four entries. Matrix multiplication does not commute, so reversing P and P−1 gives a different matrix.The matrix M has rows (4, 1) and (2, 3). Use the Cayley-Hamilton theorem to express M−1 in terms of M and I, and hence evaluate M−1.
Worked solution and marking guidance
The characteristic equation is λ² − 7λ + 10 = 0, so M² − 7M + 10I = 0. Multiply throughout by M−1: M − 7I + 10M−1 = 0, so M−1 = (7I − M)/10. That is one tenth of the matrix with rows (3, −1) and (−2, 4). M1 for multiplying the relation through by M−1, A1 for M−1 = (7I − M)/10, M1 for evaluating 7I − M, A1 for the entries. Checking, M times that matrix is 10I, so dividing by 10 gives the identity.Give a 2 by 2 matrix that cannot be diagonalised, and explain what goes wrong.
Worked solution and marking guidance
Take the matrix with rows (1, 1) and (0, 1). Its characteristic equation is (1 − λ)² = 0, so 1 is a repeated eigenvalue, but solving (M − I)v = 0 gives only multiples of (1, 0). With one independent eigenvector there is no invertible P of eigenvectors, so no diagonalisation exists. B1 for a suitable matrix, M1 for solving for the eigenvectors, A1 for only one independent eigenvector, so no invertible P. A repeated eigenvalue is a warning rather than a verdict, since some repeated cases still supply two independent eigenvectors.The matrix N has rows (5, −2) and (6, −2). Show that N2 = 3N − 2I, and hence express N4 in the form aN + bI, giving the entries of N4.
Worked solution and marking guidance
det(N − λI) = (5 − λ)(−2 − λ) + 12 = λ2 − 3λ + 2, so by the Cayley-Hamilton theorem N2 − 3N + 2I = 0, that is N2 = 3N − 2I. Squaring that, N4 = (3N − 2I)2 = 9N2 − 12N + 4I, and replacing N2 again gives 9(3N − 2I) − 12N + 4I = 15N − 14I. Then 15N has rows (75, −30) and (90, −30), and taking 14 off each diagonal entry leaves N4 with rows (61, −30) and (90, −44). M1 for the characteristic equation, A1 for N2 = 3N − 2I, M1 for squaring and reducing again, A1 for 15N − 14I with its entries.The symmetric matrix S has rows (5, 2) and (2, 2). Find an orthogonal matrix P and a diagonal matrix D such that PTSP = D.
Worked solution and marking guidance
The trace is 7 and the determinant is 10 − 4 = 6, so the characteristic equation is λ2 − 7λ + 6 = 0 and λ = 6 or λ = 1. For λ = 6 the first row gives −x + 2y = 0, so (2, 1) serves; for λ = 1 it gives 4x + 2y = 0, so (1, −2) serves. Their scalar product is 2 − 2 = 0, as a symmetric matrix with distinct eigenvalues guarantees, and each has length √5. So take P = (1/√5) times the matrix with rows (2, 1) and (1, −2), and D diagonal with 6 then 1. M1 for the characteristic equation, A1 for both eigenvalues, A1 for both eigenvectors, B1 for P normalised with D in the matching order.A 3 × 3 matrix A has characteristic equation λ3 − 2λ2 − λ + 2 = 0. Use the Cayley-Hamilton theorem to express A4 in the form aA2 + bA + cI.
Worked solution and marking guidance
Cayley-Hamilton gives A3 − 2A2 − A + 2I = 0, so A3 = 2A2 + A − 2I. Multiplying through by A gives A4 = 2A3 + A2 − 2A, and replacing A3 by the line above gives A4 = 2(2A2 + A − 2I) + A2 − 2A = 5A2 − 4I, so a = 5, b = 0 and c = −4. M1 for the Cayley-Hamilton relation, M1 for multiplying through by A, A1 for substituting for A3, A1 for 5A2 − 4I. A check costs one line: the equation factorises as (λ − 1)(λ + 1)(λ − 2) = 0, and each of λ = 1, −1 and 2 satisfies λ4 = 5λ2 − 4.The matrix M with rows (4, 1) and (2, 3) has eigenvalues 5 and 2. Show that for every positive integer n, Mn = anM + bnI where an = (5n − 2n)/3, and find bn. Hence evaluate M6.
Worked solution and marking guidance
Cayley-Hamilton gives M² = 7M − 10I, so every power collapses onto M and I, and Mn = anM + bnI for some numbers an and bn.
To find them, use the eigenvalues. If Mv = λv then Mnv = λnv, and applying the relation to that same eigenvector gives λn = anλ + bn. Both eigenvalues obey it, so 5an + bn = 5n and 2an + bn = 2n.
Subtracting, 3an = 5n − 2n, which is the given an, and back-substituting gives bn = (5·2n − 2·5n)/3.
At n = 6: a = (15625 − 64)/3 = 5187 and b = (320 − 31250)/3 = −10310, so M⁶ = 5187M − 10310I, with rows (10438, 5187) and (10374, 5251). B1 for M² = 7M − 10I, M1 for applying the relation to an eigenvector, A1 for the pair of simultaneous equations, A1 for bn, M1 for substituting n = 6, A1 for the entries of M⁶.
A check at n = 2 gives a = 7 and b = −10, which is the Cayley-Hamilton relation itself.The symmetric matrix S has rows (3, 1) and (1, 3), with eigenvalues 4 and 2 and eigenvectors (1, 1) and (1, −1). Find an orthogonal matrix P and a diagonal matrix D such that PTSP = D, and verify that PTP = I.
Worked solution and marking guidance
The eigenvectors are already perpendicular, as a symmetric matrix with distinct eigenvalues guarantees, so they only need normalising: each has length √2. Take P = (1/√2) times the matrix with rows (1, 1) and (1, −1), and D diagonal with 4 then 2, matching the column order. PTP has entries (1/2)(1 + 1), (1/2)(1 − 1) and their mirror images, which is I, so P is orthogonal and P−1 = PT with no inversion to do. Then PTSP = D. M1 for normalising the eigenvectors by √2, A1 for P, B1 for D with the entries in the matching order, M1 for computing PTP, A1 for reaching I and concluding P−1 = PT. The 1/√2 is required: the columns of an orthogonal matrix must be unit vectors, not merely perpendicular ones.Hence show that Sn is one half of the matrix with rows (4n + 2n, 4n − 2n) and (4n − 2n, 4n + 2n), and check the case n = 2 directly.
Worked solution and marking guidance
S = PDPT, so Sn = PDnPT, with Dn diagonal with entries 4n and 2n. The two factors of 1/√2 combine into 1/2. Multiplying out, PDn is (1/√2) times the matrix with rows (4n, 2n) and (4n, −2n), and applying PT gives Sn = (1/2) times the matrix with rows (4n + 2n, 4n − 2n) and (4n − 2n, 4n + 2n), as required. At n = 2 the formula gives (1/2) times rows (20, 12) and (12, 20), that is rows (10, 6) and (6, 10), and squaring S directly gives the same. M1 for Sn = PDnPT, A1 for Dn, M1 for the double product, A1 for the stated form, B1 for the n = 2 check both ways. As n grows the 4n term swamps the 2n term, so Sn approaches 4n/2 times the matrix of ones: the eigenvalue of largest modulus takes over.The matrix K has rows (2, 0, 1), (1, 1, 0) and (0, 1, 2). Show that its characteristic equation is λ³ − 5λ² + 8λ − 5 = 0, and use the Cayley-Hamilton theorem to find K−1.
Worked solution and marking guidance
Expanding det(K − λI) along the top row: (2 − λ)(1 − λ)(2 − λ) + 1 × 1 = (1 − λ)(2 − λ)² + 1 = −λ³ + 5λ² − 8λ + 5, so the characteristic equation is λ³ − 5λ² + 8λ − 5 = 0. Cayley-Hamilton applies to 3 by 3 matrices exactly as to 2 by 2, so K³ − 5K² + 8K − 5I = 0. Multiply through by K−1: K² − 5K + 8I − 5K−1 = 0, so K−1 = (K² − 5K + 8I)/5.
K² has rows (4, 1, 4), (3, 1, 1) and (1, 3, 4), so K² − 5K + 8I has rows (2, 1, −1), (−2, 4, 1) and (1, −2, 2), and K−1 is one fifth of that. Multiplying K by it returns I, which is the check. M1 for expanding det(K − λI), A1 for λ³ − 5λ² + 8λ − 5 = 0, B1 for K³ − 5K² + 8K − 5I = 0, M1 for multiplying through by K−1 and rearranging, A1 for K−1 = (K² − 5K + 8I)/5, M1 for computing K², A1 for the nine entries. The constant term −5 is det K up to sign, which is why it is safe to divide by it: a zero constant term would mean a singular matrix and no inverse at all.A colony of 500 birds is spread over two islands. Each year 20% of the birds on island X move to island Y and 30% of those on island Y move to island X, and none are lost. At the start all 500 are on island X. Taking M to be the matrix with rows (0.8, 0.3) and (0.2, 0.7), find how the colony is divided between the islands in the long run.
Worked solution and marking guidance
Writing xn and yn for the numbers on the two islands after n years, xn+1 = 0.8xn + 0.3yn and yn+1 = 0.2xn + 0.7yn, so the state vector satisfies vn+1 = Mvn and vn = Mnv0. B1 for setting the model up as repeated multiplication by M.
The trace is 1.5 and the determinant is 0.56 − 0.06 = 0.5, so the characteristic equation is λ2 − 1.5λ + 0.5 = 0 and λ = 1 or λ = 0.5. M1 for the characteristic equation, A1 for the two eigenvalues. For λ = 1 the first row gives −0.2x + 0.3y = 0, that is 2x = 3y, so (3, 2) serves; for λ = 0.5 it gives 0.3x + 0.3y = 0, so (1, −1) serves. A1 for both eigenvectors.
Now write the starting state in terms of them: a(3, 2) + b(1, −1) = (500, 0) gives 3a + b = 500 and 2a − b = 0, so a = 100 and b = 200. M1 for expressing v0 in the eigenvector basis. Then vn = 100(3, 2) + 200(0.5)n(1, −1), and 0.5n → 0, so the colony settles at 300 on island X and 200 on island Y. A1 for the limit.
The eigenvalue 1 is what makes a steady division exist at all, and its eigenvector fixes the ratio 3 : 2 whatever the starting split; the eigenvalue 0.5 measures how fast the memory of that split fades. After four years the model already reads 312.5 and 187.5.
All questions, worked solutions and marking guidance are original InkMaths material. They are not copied from awarding-body papers or mark schemes. The codes show how InkMaths allocates the stated total; an awarding body may credit a valid alternative method differently.
The same practice on paper: the printable workbook for this topic, with the questions and a worked answer book.
Practise diagonalisation and the Cayley-Hamilton theorem one question at a time
In the player, mark your own response after viewing the worked solution. Your score decides when the question is offered again.