I need to prove that $G$ is abelian if and only if the function
$f : G \to G$
defined by $f(a)=a^{-1}$ is a homomorphism.
Assuming that $∀a ∈ G, (a^{-1})^{-1} = a.$
I don't quite understand how to do or approach the proof. The only thing I understand is it's called an abelian when $∀a,b ∈ G, a * b = b * a.$ Any help would be appreciated, thanks!