## A Group is Abelian if and only if Squaring is a Group Homomorphism

## Problem 325

Let $G$ be a group and define a map $f:G\to G$ by $f(a)=a^2$ for each $a\in G$.

Then prove that $G$ is an abelian group if and only if the map $f$ is a group homomorphism.