I'm reading Hatcher's Algebraic Topology and I have some questions about an argument on Page 42:
The abelianization of a free group is a free abelian group with basis the same set of generators, so since the rank of a free abelian group is well-defined, independent of the choice of basis, the same is true for the rank of a free group.
The first question is: why is the rank of a free non-abelian group not well-defined, independent of the choice of basis?
The second question is: why "the same is true"?
It is not a priori clear that for two free groups $F(S)$ and $F(T)$ on sets $S$ and $T$ we have that if $F(S)\cong F(T)$ is an isomorphism of groups, there is an isomorphism of the sets $S\cong T$. For example a priori it could be the case that there is an isomorphism from the free group on one generator to a free group on two generators.
Luckily a posteriori this is not the case. We know from linear algebra that the rank of a free abelian group is welldefined, ie. that $\Bbb Z[S]\cong\Bbb Z[T]$ as abelian groups implies $S\cong T$ as sets. Now there is a canonical isomorphism from the abelianization of the free group $(F(S))^{ab} := F(S)/[F(S),F(S)]$ to the free abelian group $\Bbb Z[S]$. So if we assume $F(S)\cong F(T)$ we also get that $\Bbb Z[S]\cong \Bbb Z[T]$ and hence (by the aforementioned result) $S\cong T$.