Calculer les puissances d'une matrice \(A\) (comme \(A^{10}\)) par multiplication répétée est fastidieux. Cependant, si l'on diagonalise d'abord la matrice, le processus devient beaucoup plus simple.
Si \(A\) est diagonalisable, on peut écrire$$ A = PDP^{-1}, $$où \(D\) est diagonale. Pour calculer \(A^n\) :$$\begin{aligned}A^n &= \underbrace{AA\dots A}_{n \text{ fois}}\\
&= \underbrace{(PDP^{-1}) (PDP^{-1}) \dots (PDP^{-1})}_{n \text{ fois}} && \text{(on remplace } A = PDP^{-1})\\
&= PD(P^{-1}P)D (P^{-1}P)\dots DP^{-1} && \text{(on regroupe les termes)}\\
&= PDIDI\dots DP^{-1} && \text{(car } P^{-1}P = I)\\
&= P(DD\dots D)P^{-1}\\
&= PD^nP^{-1}.\end{aligned}$$Il est facile d'élever une matrice diagonale à une puissance. Si$$D = \begin{pmatrix} \lambda_1 & 0 \\
0 & \lambda_2 \end{pmatrix},$$alors$$\begin{aligned}D^2 &=\begin{pmatrix} \lambda_1 & 0 \\
0 & \lambda_2 \end{pmatrix}\begin{pmatrix} \lambda_1 & 0 \\
0 & \lambda_2 \end{pmatrix}= \begin{pmatrix} \lambda_1^2 & 0 \\
0 & \lambda_2^2 \end{pmatrix},\\
D^3 &= D^2D= \begin{pmatrix} \lambda_1^2 & 0 \\
0 & \lambda_2^2 \end{pmatrix} \begin{pmatrix} \lambda_1 & 0 \\
0 & \lambda_2 \end{pmatrix}= \begin{pmatrix} \lambda_1^3 & 0 \\
0 & \lambda_2^3 \end{pmatrix},\\
&\vdots\\
D^n &= \begin{pmatrix} \lambda_1^n & 0 \\
0 & \lambda_2^n \end{pmatrix}.\end{aligned}$$