$G$ is a group and $f:G \rightarrow G$ is a function defined as $f(a)=a^{-1}$ where $a^{-1}$ is the inverse of $a$ under the group operation. Prove that $f$ is an isomorphism if and only if $G$ is abelian.
I understand that I have to prove $f(ab)=(ab)^{-1}=b^{-1}a^{-1}$. How might I do that?
