Let $G$ be a group and $\varphi:G\rightarrow G $ ,$\varphi(a)=a^{-1}$
I need to find if $\varphi$ is homomorphism, and if so to find $ker(\varphi)$ and to tell if $\varphi$ is one-to-one and\or onto.
My Attemept:
$\varphi(aa^{-1})=\varphi(e)$ because $aa^{-1}=e$
$\varphi(a)\varphi(a^{-1})=a^{-1}a$ by defenition $=e$ so it is homomorphism (I think so)
Is $\varphi$ a homomorphism?: $\varphi(ab) = (ab)^{-1} = b^{-1}a^{-1} = \varphi(b)\varphi(a)$. Here you see that the image of $\varphi$ needs to be Abelian for $\varphi$ to be a homomorphism. So what is the image of $\varphi$? Well, since every element in $G$ has an inverse, then $\varphi(G) = G$.
In all you need $G$ to be Abelian for $\varphi$ to be a homomorphism. As @Tobias mentions above, this is actually an if and only if.