Let $\langle G; \star, \hat, e\rangle$ be a group. Show that if for all $a\in G$, we have $a\star a=e$, then G is abelian.
What I did:
Assume G is abelian, then we have $a\star b = b\star a \quad \forall a,b\in G$
We also know that $ a = \hat a$, so:
$a\star b = b \star a$
$\Leftrightarrow a\star a \star b = a \star b \star a$
$\Leftrightarrow b = a \star b \star a$
$\Leftrightarrow b \star b = (b \star a ) \star (b \star a)$
$\Leftrightarrow e = e$
and since $e\in G$ we are finished.
I'm very unsure about this proof. I know that there's a way better proof using $\widehat{a\star b} = \hat b \star \hat a$
Does what I did actually work?