Can anyone please verify this proof:
Let there be two idempotent elements $f$ and $g$. Then $ff=f$ and $gg = g$. Then, by definition of the identity element of a group: $f$ is the identity and $g$ is also an identity But the identity in a group is unique, this implies $f = g = e$ Thus, there is only one idempotent element in the group and that is $e$.
Note: I've already proved that the identity is unique previously Also, the proofs for this theorem use the strategy $x*x = x$ and then go on to prove that $e = x$. If my aforementioned proof is incorrect, can you tell me why and why this proof might be better?
Thanks.
$$f^2=f$$ gives $$f^2f^{-1}=ff^{-1}$$ or $$f=e.$$