Show that if (ab)^2=(a^2)(b^2) for all elements a , b of a group G,then G is abelian
I know how to prove that it is associative, but have no idea how to prove if it has identity and inverse elements.
and I know a group G with the property that a ◦ b = b ◦ a for all a, b ∈ G is called abelian.
how to achieve a ◦ b = b ◦ a ??
Thanks