IB

View all Questions

Question

Mathematics

How can diagonalisation make a high power of a matrix manageable?

Answer

Mathematics

Expert Answer

Diagonalisation replaces repeated multiplication of a matrix with powers of individual numbers. An invertible matrix PP has an inverse, and a diagonal matrix DD has zeros everywhere off the main diagonal. If they satisfy

B=PDP−1B=PDP^{-1}

then, for a non-negative integer nn,

Bn=PDnP−1\boxed{B^n=PD^nP^{-1}}

Only the diagonal entries need to be raised to the power nn. The two surrounding matrices remain the same.

Why does this work?

In the product for B2B^2, the adjacent factors P−1PP^{-1}P cancel.

B2=(PDP−1)(PDP−1)=PD2P−1B^2=(PDP^{-1})(PDP^{-1})=PD^2P^{-1}

Repeating this cancellation leaves PDnP−1PD^nP^{-1}. Matrix multiplication is associative, so we can regroup these factors. We have not changed their order.

There is also a useful interpretation. The columns of PP are eigenvectors: directions that BB stretches without moving them to a different line. Multiplication by P−1P^{-1} expresses a vector in those directions, DnD^n applies the repeated stretches, and PP converts back to the original coordinates.

Three steps: change to eigenvector coordinates, raise the diagonal entries to n, then change back.

Follow the arrows from left to right; in the matrix product, the rightmost factor acts first.

Work through a matrix

Take

B=(6237)B=\begin{pmatrix}6&2\\3&7\end{pmatrix}

To find its eigenvalues, solve the characteristic equation

det⁡(B−λI)=λ2−13λ+36=(λ−9)(λ−4)=0\det(B-\lambda I)=\lambda^2-13\lambda+36=(\lambda-9)(\lambda-4)=0

For eigenvalue 9, the equation −3x+2y=0-3x+2y=0 allows the eigenvector (2,3)(2,3). For eigenvalue 4, 2x+2y=02x+2y=0 allows (−1,1)(-1,1). Put these vectors into columns, keeping their eigenvalues in the same order:

P=(2−131),D=(9004)P=\begin{pmatrix}2&-1\\3&1\end{pmatrix},\qquad D=\begin{pmatrix}9&0\\0&4\end{pmatrix}

Since det⁡P=5\det P=5, the inverse exists:

P−1=15(11−32)P^{-1}=\frac15\begin{pmatrix}1&1\\-3&2\end{pmatrix}

Now replace DD by

Dn=(9n004n)D^n=\begin{pmatrix}9^n&0\\0&4^n\end{pmatrix}

Multiplying the three factors gives

Bn=15(2⋅9n+3⋅4n2⋅9n−2⋅4n3⋅9n−3⋅4n3⋅9n+2⋅4n)B^n=\frac15\begin{pmatrix} 2\cdot9^n+3\cdot4^n&2\cdot9^n-2\cdot4^n\\ 3\cdot9^n-3\cdot4^n&3\cdot9^n+2\cdot4^n \end{pmatrix}

Even for n=100n=100, this requires two powers of numbers rather than 99 successive matrix multiplications.

Check the result before using a large power

Setting n=0n=0 must give II, and n=1n=1 must reproduce BB. A further check is

B2=(42263955)B^2=\begin{pmatrix}42&26\\39&55\end{pmatrix}

which agrees with direct multiplication. These checks often expose a reversed eigenvector order or an incorrect inverse.

Can every matrix be diagonalised?

No. A two-by-two matrix needs two linearly independent eigenvectors, meaning they are not multiples of each other, to form an invertible PP. Distinct eigenvalues guarantee this, but a repeated eigenvalue needs further checking. For example, (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix} has only one independent eigenvector and cannot use this diagonal-power method.

For negative integer powers, BB must also be invertible, so its eigenvalues cannot include zero.

Practise the method

Try working through the diagonalisation question in the AI HL Number and Algebra Questionbank without looking back at the worked example. As you set up PP and DD, check that each eigenvector is paired with the correct eigenvalue before calculating the power.

Answered by Revision Village IB Expert

Interested in diving deeper into this concept?

Explore More IB Mathematics Resources

Over 80% of IB students globally are experiencing the power of Revision Village