5. Let $A = \begin{bmatrix} 0 & 0 & -2 \\ 1 & 2 & 1 \\ 1 & 0 & 3 \end{bmatrix}$, please express $A^3$ as $PDP^{-1}$ with D a diagonal matrix and P an invertible matrix.
5. Let $A = \begin{bmatrix} 0 & 0 & -2 \\ 1 & 2 & 1 \\ 1 & 0 & 3 \end{bmatrix}$, please express $A^3$ as $PDP^{-1}$ with D a diagonal matrix and P an invertible matrix.