Let $a$ and $b$ elements of order $2$ in a group $G$. Suppose $\mathrm{ord} (a,b) = 4$. Show that the subgroup generated by $a$ and $b$ is $D_4$.
Problem is from Bhattacharya's book.
I have a question about this question since I think there is a mistake in the order of elements. It seems to me $\mathrm{ord}(a)=4$ and $\mathrm{ord}(b)=2$ otherwise how can we conclude that this subgroup generates $D_4$.
We know
$$D_4=\langle a,b:a^4=b^2=e, ab=ba^3 \rangle.$$
If the order of $a$ is $2$ then there must be a contradiction? Any other explanation? Thanks in advance!