The matrix $\mathbf{A}$ is given by
$$
\mathbf{A}=\begin{pmatrix}k&0&2\\0&-1&-1\\1&1&-k\end{pmatrix},
$$
where $k$ is a real constant.
a. Show that $\mathbf{A}$ is non-singular. [3]
The matrices $\mathbf{B}$ and $\mathbf{C}$ are given by
$$
\mathbf{B}=\begin{pmatrix}0&-3\\-1&3\\0&0\end{pmatrix}
\quad\text{and}\quad
\mathbf{C}=\begin{pmatrix}-3&-1&1\\1&1&2\end{pmatrix}.
$$
It is given that $\mathbf{CAB}=\begin{pmatrix}-2&-\frac32\\-1&-\frac32\end{pmatrix}$.
b. Find the value of $k$. [3]
c. Find the equations of the invariant lines, through the origin, of the transformation in the $x$-$y$ plane represented by $\mathbf{CAB}$. [5]