Let $f$ be an automorphism of the finite group $G$ such that $f\circ f=id$ and $f(x)=x\implies x=e$
Prove that $f(x)=x^{-1}~\forall x\in G$
If we can prove that $f(x)$ and $x$ commute for any given $x\in G$ then we're done with the proof because it would imply
$$xf(x)=f(x)x$$
$$f(f(x))f(x)=f(x)x$$
Because $f\circ f=id$. And since $f$ is a homomorphism: $$f(f(x)x)=f(x)x\implies f(x)x=e\implies f(x)=x^{-1}$$
I don't know how to proceed
The fact that $G$ is abelian can be deduced once we have $f(x)=x^{-1}$ because that function is a homomorphism if and only if $G$ is abelian