Let $G$ be a group and if $a,b \in G$ such that $a^4 =e$ and $a^2 b=ba$ then prove that $a=e$.
My attempt: I know from the generators and relation of the dihedral group of order $2n$ is $\langle r^n=s^2=1,rs=sr^{-1} \rangle$ so in the given problem if I take $r=a^2$ and $s=b$ then the problem is clear that $a^4=a$ but in the given problem it is not given that $b^2=e$ so how can I prove that $a=e$ in the given problem.
If you know enough about conjugacy, then this can be done without writing down lots of equations. The second relation, $a^2b=ba$ says that $a$ is conjugate to $a^2$. So $a^2$ is conjugate to $a^4$. But $a^4=e$ and $e$ is conjugate only to itself.
If you don't know that much about conjugacy, then there's the following proof, which I got by following the preceding paragraph. Using three times that $ba=aab$ and once that $aaaa=e$, we get $$ bba=baab=aabab=aaaabb=bb. $$ Cancelling $bb$, we get $a=e$.