The matrix $\mathbf{M}$ is given by
$$
\mathbf{M}=\begin{pmatrix}\cos2\theta&-\sin2\theta\\\sin2\theta&\cos2\theta\end{pmatrix}\begin{pmatrix}1&k\\0&1\end{pmatrix},
$$
where $0<\theta<\pi$ and $k$ is a non-zero constant. The matrix $\mathbf{M}$ represents a sequence of two geometrical transformations, one of which is a shear.
a. Describe fully the other transformation and state the order in which the transformations are applied. [3]
b. Write $\mathbf{M}^{-1}$ as the product of two matrices, neither of which is $\mathbf{I}$. [2]
c. Find, in terms of $k$, the value of $\tan\theta$ for which $\mathbf{M}-\mathbf{I}$ is singular. [5]
d. Given that $k=2\sqrt3$ and $\theta=\frac13\pi$, show that the invariant points of the transformation represented by $\mathbf{M}$ lie on the line $3y+\sqrt3x=0$. [4]