Question. Let $G$ be abelian; and define an action of $\pi$ of $G$ on $G$ by $$\pi_g(x)=g^2x.$$
Prove that $\pi$ really is an action.
Attempt. Let $g$ be the identity element; then $\pi_1(x)=x$ so the identity condition for an action holds.
Now, for $f,g\in G$ we have $$\pi_{fg}(x)=(fg)^2x=fgfgx=ffggx=f^2g^2x=\pi_f(x)\pi_g(x),$$ so $\pi$ really is an action as desired.
The only problem I have with this is $$\pi_f(x)=f^2x,\quad \pi_g(x)=g^2x,$$ so is it true that $\pi_f(x)\pi_g(x)=f^2xg^2x$? Then in that case, I guess my attempt is wrong since I don't have that extra $x$; so where have I gone wrong?
Thanks in advance.
You have (almost) correctly proved $\pi$ is an action. Where you write $$ f^2g^2x=\pi_f(x)\pi_g(x) $$ you should write $$ f^2g^2x=\pi_f(\pi_g(x)) . $$ What your second observation about the "extra $x$" shows is that $\pi$ is not a group automorphism. But there's no reason why it should be.