Let $G$ be a group and $a,b\in G$. Prove that $|a|=|a^{-1}|$ and that $|ab|=|ba|$.
I said that $|a|=n$ where $n$ is the smallest integer such that $a^n=e$ and $|a^{-1}|=m$ where $m$ is the smallest integer such that $(a^{-1})^{m}=a^{-m}=e$ but I don't know how to continue. Any suggest are appreciated.