Let $a = \begin{pmatrix}0 & 1 \\ 1 & 0\end{pmatrix}$ and $b = \begin{pmatrix}0 & 1 \\ -1 & -1\end{pmatrix}$ be elements of $\mathrm{GL}_2\left(\mathbb{Q}\right)$.
Prove that the subgroup $\langle a, b \rangle$ has order 6.
I can show that $\left|a\right| = 2$, $\left|b\right| = 3$, and $\left|ab\right| = 2$. By LaGrange's theorem it follows that the order of $\langle a, b \rangle$ must be a multiple of 6.
But how can I prove that $\left|\langle a,b \rangle\right|=6$?
My best idea so far is to enumerate all possible products (i.e., $e, a, b, aa, ab, ba, bb, \ldots$) up to redundancy and show that they generate only 6 elements.
Is there a more clever way to show this?
Hints preferred, please!
The dihedral group of degree 3 (order 6) is characterized as follows: $$D_3\ =\ \langle \rho,\sigma \mid \rho^3=\sigma^2=e,\,\sigma\rho=\rho^{-1}\sigma \rangle$$ You have shown that $b^3=a^2=I$. It remains to show that $ab=b^{-1}a$. This will mean that the mapping $a\mapsto\sigma,\,b\mapsto\rho$ is an isomorphism from $\langle a,b\rangle$ to $D_3$.