I am working through a Linear Algebra practice test and got stuck on the following question:
Let A = \begin{matrix}5, -1\\-1, 5\end{matrix} Compute a formula for A^k where k is a positive integer. Your answer should be a single matrix.
I calculated A^2 and got \begin{matrix}26, -10\\-10, 26\end{matrix} but figured repeated multiplication was not the way to go, so I calculated A's eigenvalues/eigenvectors to diagonalize it, yielding \begin{matrix}4, 0\\0, 6\end{matrix} and the change of basis matrix \begin{matrix}1, -1\\1, 1\end{matrix} Then I inverted the change of basis matrix to \begin{matrix}1/2, 1/2\\-1/2, 1/2\end{matrix}
I multiplied \begin{matrix}4^k, 0\\0, 6^k\end{matrix} by this inverse on the left to get the putative solution \begin{matrix}(4^k)/2, (6^k)/2\\-(4^k)/2, (6^k)/2\end{matrix} but this does not produce the above result I initially got by computing A^2. Where does my mistake lie?
As qbert wrote in his comment, you’ve gotten the change-of basis matrix and its inverse in the wrong order. I often made the same mistake until I memorized the “bulk” matrix version of the eigenvector equation $AP=P\Lambda$. In this case, you’re going from the diagonal matrix $\Lambda^k$ to $A^k$, so the $P$ on the left-hand side of the equation has to move to the right: $A^k=P\Lambda^kP^{-1}$.