$(xy)^2=xy$ for all $x,y$ in a group implies the group is Abelian
Proof:
$(xy)^2=xy \implies (xy)^{-1}(xy)^2 = (xy)^{-1}(xy) \implies xy = e$ where $e$ is the identity of the group. Since $x,y$ is arbitrary, it is also true that $yx=e$. Hence $yx=xy$. $\square$
Is this proof correct? Thanks
Edit:
This question is from chapter 3 problem 52 of Abstract Algebra Theory and Applications by Judson
