The matrix $A$ is given by $$
A=\begin{pmatrix}
a&-6a&2a+2\\
0&1-a&0\\
0&2-a&-1
\end{pmatrix},
$$ where $a$ is a constant with $a\ne0$ and $a\ne1$.
(a) Show that the equation $$
A\begin{pmatrix}x\\y\\z\end{pmatrix}
=\begin{pmatrix}1\\2\\3\end{pmatrix}
$$ has a unique solution and interpret this situation geometrically. [3]
(b) Show that the eigenvalues of $A$ are $a$, $1-a$ and $-1$. [2]
(c) Find a matrix $P$ and a diagonal matrix $D$ such that $$A^4=PDP^{-1}.$$ [6]
(d) Use the characteristic equation of $A$ to find $A^4$ in terms of $A$ and $a$. [3]