Let $A$ be an $n*n$ matrix such that $A^3=A^2+A-I$.
- Show that $A$ is invertible
- Suppose in $A$ is diagonalizable. Show that $A=A^{-1}$
For the first part I managed to do it by a rearrangement, $$I=A^{2}+A-A^{3}=A(A+I-A^2)$$
Thus $A+I-A^2$ is the right inverse and simillarly we have $A+I-A^2$as the left inverse. Hence $A$ is invertible.
But for part 2. What I was able to do is:
$A^{-1}=A+I-A^2=A+(PDP^{-1})(PDP^{-1})^{-1}-PD^{2}P^{-1}$.
But here after I don't see how should I proceed.
Hint If $\lambda$ is an eigenvalue, then $$\lambda^3-\lambda^2-\lambda+1=0 \Rightarrow (\lambda-1)^2(\lambda+1)=0 \Rightarrow \lambda=\pm 1$$
What is then $D^2$?
Therefore $$A^2=PD^2P^{-1}=??$$