| 1 | Diagonalize A. Follow diagonalizing a matrix. | P=(411−1), D=diag(6,1), P−1=51(111−4) |
| 2 | Raise the diagonal entries to the power. Only D is powered entry by entry, never A. | D3=diag(216,1) |
| 3 | Multiply PDkP−1. Do PDk first: it just scales the columns of P. | PD3=(8642161−1); A3=51(865215860220)=(1734317244) |
| 4 | Check. Set k=1 in a general formula to get A back, or compare with a direct product. | A2=(297288), A2A=(1734317244) ✓ |