If $f$ is a non-trivial group morphism and if for all $g_1,g_2$, we have $f(g_1)f(g_2) = f(g_2)f(g_1) $ i.e. image is abelian. Does that imply $g_1g_2 = g_2g_1$ i.e. the domain is abelian?
I have been unable to prove this statement, so I thought I would construct a counter-example. However, to do that would require that my domain be a non-abelian group (for example, some $S_n$ or dihedral group) - however, I don't have much proof-related experience in constructing group morphisms yet, so I was unable to do that. Any ideas?
Take any two groups A and B, with A non-abelian and B abelian and non-trivial, and consider the projections $A\times B\to B$.