The commutator subgroup of $G$ is the subgroup generated by the set $C$ of elements of the form $[x,y]=xyx^{-1}y^{-1}$.
Suppose you have a subset $S$ with the property that, for every $g\in G$ and every $x\in S$, $gxg^{-1}\in S$. Then the subgroup $H$ generated by $S$ is normal in $G$.
Indeed, an element of the subgroup $H$ is of the form
$$
x=x_1^{a_1}x_2^{a_2}\dots x_n^{a_n}
$$
where $a_i=\pm1$ and $x_i\in S$, for $i=1,2,\dots n$. Then, if $g\in G$, we clearly have
$$
gxg^{-1}=(gx_1g^{-1})^{a_1}(gx_2g^{-1})^{a_2}\dots(gx_ng^{-1})^{a_n}
$$
so $gxg^{-1}\in H$, because $gx_ig^{-1}\in S$, for $i=1,2,\dots,n$.
In the case of the commutator subgroup,
$$
g[x,y]g^{-1}=[gxg^{-1},gyg^{-1}]\in C
$$
so, by the remark above, $G'=\langle C\rangle$ is normal in $G$.