Finding a 2x2 Matrix raised to the power of 1000

Check that you get $A=PBP^{-1}$ with $B$ a diagonal matrix with entries $-2$ and $5$, and $P$ an invertible matrix. Then note that $A^2=(PBP^{-1})(PBP^{-1})=PB^2P^{-1}$, and in general you get $$A^n=PB^nP^{-1}$$

The right hand side is easy to deal with since the power of a diagonal matrix is very easy to see :)


You should diagonalize it, if possible.

This means to find the eigenvalues and eigenvectors.

  1. The eigenvalues are roots of the characteristic polynomial of $A$, which is $$\det\pmatrix{1-x&4\\3&2-x}=(1-x)(2-x)-12=x^2-3x-10\,.$$
  2. If you find its roots, (which together sum up to $3$ and multiply to $-10$), then find an eigenvector for both ($v_1$ and $v_2$), [e.g. $v_2:=\pmatrix{1\\1}$ will be an eigenvector].
  3. Then build the matrix $P$ with columns $(v_1|v_2)$, and calculate its inverse.
  4. Finally, $D:=P^{-1}AP$ will be the diagonal containing the eigenvalues, because $$AP=A\,(v_1|v_2)=(\lambda_1 v_1\,|\,\lambda_2 v_2) = P\,\pmatrix{\lambda_1&0\\ 0&\lambda_2}$$

And after all these, you can easily raise $A$ to any power: $$A^{1000}=PD^{1000}P^{-1}\,.$$


The well-known strategy is to diagonalize since this matrix is diagonalizable. For a change, here is a slightly different approach which is convenient for small matrices. If you have time, try to perform both methods until the end without computer help. This is fairly equivalent. Although you have two linear systems to solve for eigenvectors, and only one here for the constants $c,d$ below.

We will compute $A^n$.

Let $p_A(X)=X^2-3X-10$ be the characteristic polynomial of the matrix $A$. By Cayley-Hamilton, $p_A(A)=0$. So it suffices to determine the degree $\leq 1$ remainder in the Euclidean divison of $X^{n}$ by $p_A(X)$ to compute $A^{n}$.

For every $n\geq 1$, denote

$$ X^n=q_n(X)p_A(X)+a_nX+b_n $$

the Euclidean division of $X^n$ by $p_A(X)$. Since $X^2\equiv 3X+10$ modulo $p_A(X)$, multiplication of the latter by $X$ yields $$ \cases{a_{n=1}=3a_n+b_n \\b_{n+1}=10a_n}\iff\cases{a_{n+1}=3a_n+10a_{n-1}\\b_{n+1}=10a_n} $$ Solving for $a_n$ is straightforward given the theory of recurrent linear homogeneous sequences. Given that the roots of the characteristic equation (which is of course $p_A(X)=0$) are $-2$ and $5$, we have $a_n=c (-2)^n+d 5^n$. Considering the initial cases $n=0,1$, we find $c$ and $d$ whence

$$a_n=\frac{5^n-(-2)^{n}}{7}\quad\mbox{whence} \quad b_n=\frac{2\cdot 5^{n}+5(-2)^{n}}{7}$$

Therefore $$ A^n=q_n(A)p_A(A)+a_nA+b_nI_2=a_nA+b_nI_2=\pmatrix{a_n+b_n&4a_n\\3a_n& 2a_n+b_n} $$ hence $A^n$ is equal to

$$A^n=\pmatrix{\frac{3\cdot 5^{n}+ (-2)^{n+2}}{7} & \frac{4\cdot 5^{n}- (-2)^{n+2}}{7} \\ \frac{3\cdot 5^{n}-3\cdot (-2)^{n}}{7} & \frac{4\cdot 5^{n}+3\cdot (-2)^{n}}{7}}$$