a.
i. By writing $\cos \left(\frac{1}{12} \pi\right)$ as $\cos \left(\frac{1}{4} \pi-\frac{1}{6} \pi\right)$, show that $\cos \left(\frac{1}{12} \pi\right)=\frac{1}{4}(\sqrt{6}+\sqrt{2})$. [1]
ii. Show also that $\sin \left(\frac{1}{12} \pi\right)=\frac{1}{4}(\sqrt{6}-\sqrt{2})$. [1]
The matrix $\mathbf{M}$ is such that $\mathbf{M}=\frac{1}{4}\left(\begin{array}{ll}\sqrt{6}+\sqrt{2} & \sqrt{2}-\sqrt{6} \\ \sqrt{6}-\sqrt{2} & \sqrt{6}+\sqrt{2}\end{array}\right)\left(\begin{array}{cc}1 & 0 \\ 0 & -1\end{array}\right)$.
b. The matrix $\mathbf{M}$ represents a sequence of two geometrical transformations in the $x$-y plane.
Give full details of each transformation, and make clear the order in which they are applied. [4]
c. Write $\mathbf{M}^{-1}$ as the product of two matrices, neither of which is $\mathbf{I}$. [2]
d. Given that $y=m x$ is an invariant line of the transformation represented by $\mathbf{M}$, show that
$$
m^{2} \sin \left(\frac{1}{12} \pi\right)+2 m \cos \left(\frac{1}{12} \pi\right)-\sin \left(\frac{1}{12} \pi\right)=0
$$
and find the values of $m$ in the form $a \cot \left(\frac{1}{12} \pi\right)+b \operatorname{cosec}\left(\frac{1}{12} \pi\right)$, where $a$ and $b$ are integers to be determined. [6]