First eigenvalue of matrix A
Your 2x2 matrix is diagonalizable.
Next stepTo compute A^k for any positive integer k, replace each diagonal entry of D with its k-th power, then multiply P D^k P-1.