In Aluffi's Algebra: Chapter 0 the author introduces the subgroup generated by a subset as follows (paraphrased):
Let $G$ be a group, and $A \subset G$ any subset. By the universal property of free groups there is a unique group homomorphism $$\varphi: F(A) \to G$$ extending this inclusion. The image of this homomorphism is a subgroup of $G$, the subgroup generated by $A$ in $G$, often denoted $\langle A \rangle$.
He then states the following:
Of course, if $G$ is abelian, then $\varphi$ factors through $F^{ab}(A)$, so we may replace $F(A)$ by $F^{ab}(A)$ in this case.
While this seems plausible enough, I would like to verify it rigorously, and this is where I am a bit stuck at the moment. I would prefer to do it without invoking any concrete construction of free groups. The following is my attempt so far.
Let $j: A \to F(A)$ and $k: A \to F^{ab}(A)$ be the set-functions associated with the universal properties of $F(A)$ and $F^{ab}(A)$, respectively, and let $i: A \to G$ be the inclusion map. Then $\varphi$ is the unique homomorphism such that $\varphi \circ j = i$. There is also a unique homomorphism $\psi: F^{ab}(A) \to G$ such that $\psi \circ k = i$, and a unique homomorphism $\chi: F(A) \to F^{ab}(A)$ such that $\chi \circ j = k$. This all follows from universal properties.
To verify the authors statement, we must show that $\varphi$ and $\psi$ have the same image. It follows from the above that $i = \psi \circ \chi \circ j$, and hence that $\psi \circ \chi = \varphi$ (by the uniqueness property of $\varphi$). Thus $$\varphi(F(A)) \subset \psi(F^{ab}(A)).$$
But how do I show the reverse inclusion? I suppose showing that $\chi$ is surjective would do the trick, but I have not been able to.