I had proved the statement as the following,
Suppose $a,b \in G$ and $a^{-1} = a$ thus $b^{-1} = b$.
Consider $a^{-1}b^{-1}$.
Let $e$ be an identity element in $G$ this will get $baa^{-1}b^{-1} = beb^{-1} = bb^{-1} = e$ .
Thus $a^{-1}b^{-1} = (\, ba )\, ^{-1}$
Since $(\, ba )\, ^{-1} = ba$, $ab = a^{-1}b^{-1} = (\, ba )\, ^{-1} = ba$
$\therefore G$ is an abelian group. Quod Erat Demonstrandum
Can you check the errors for me please?
Note that the assumption $x=x^{-1}$ for all $x\in G$ yields that $ba=(ba)^{-1}$. This is the fundamental observation that you need in order to prove this statement.
– Mathematician 42 Aug 04 '20 at 07:36