The matrix $A$ is given by $$
A=\begin{pmatrix}
6&-9&5\\
5&-8&5\\
1&-1&2
\end{pmatrix}.
$$
(a) Find the eigenvalues of $A$. [4]
(b) Use the characteristic equation of $A$ to show that $$A^{-1}=pA^2+qI,$$ where $p$ and $q$ are constants to be determined. [3]