Find $A^8$ using Cayley Hamilton Therorem, when $$A = \begin{pmatrix} 0 & 0 & 0 & -1 \\ 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 1 & 0 \end{pmatrix}$$
I found that $P(t) =t^4-2x^2+1 = (t-1)^2(t+1)^2$.
But how can I use Cayley-Hamilton to find $A^8$?