By definition, the commutator is the subgroup generated by all commutators, that is $$G' = \langle\{aba^{-1}b^{-1}\mid a,b \in G\}\rangle$$ I'd like to prove that also
$$X = \{a_1a_2\cdots a_na_1^{-1}a_2^{-1}\cdots a_n^{-1} | a_i\in G, n\ge2\}$$
is the commutator subgroup. That is $X = G'$.
I already got one contention, as for $x \in G'$
$$ x = (a_1a_2a_1^{-1}a_2^{-1})\cdots(a_{2n-1}a_{2n}a_{2n-1}^{-1}a_{2n}^{-1})$$
as it is a finite product of commutators. Clearly, that's the same as
$$ x = (a_1a_2a_1^{-1}a_2^{-1})\cdots(a_{2n-1}a_{2n}a_{2n-1}^{-1}a_{2n}^{-1})(a_1^{-1}a_1\cdots a_{2n}^{-1}a_{2n})$$
By associativity,
$$x = (a_1(a_2a_1^{-1})a_2^{-1} \cdots a_{2n-1}(a_{2n}a_{2n-1}^{-1})a_{2n}^{-1})(a_1^{-1}(a_1a_2^{-1})a_2\cdots a_{2n-1}^{-1}(a_{2n-1}a_{2n}^{-1})a_{2n})$$
Then $x \in X$ and $G' \subseteq X$.
Now I'm stuck with the other contention. It seemed easier at first, but now I'm not that sure.
This is a question in Rotman's Group Theory:
Here is an elementary proof by induction. $$a_1\cdots a_{n-1} a_n a_1^{-1}\cdots a_{n-1}^{-1}a_n^{-1}=(a_1\cdots a_{n-1})a_n (a_{n-1}\cdots a_1)^{-1} a_n^{-1}.$$ We insert the term $(a_{n-1}\cdots a_1)^{-1}(a_{n-1}\cdots a_1)$ before $a_n$ in the RHS of above the equation, and get that the RHS is equal to $$(a_1\cdots a_{n-1})(a_{n-1}\cdots a_1)^{-1}(a_{n-1}\cdots a_1)a_n (a_{n-1}\cdots a_1)^{-1} a_n^{-1}.$$ We are almost done: the last four terms form a commutator, whereas the first two terms form a long commutator with $n-1$ symbols, which by induction, should be in $G'$. Thus, $X\subseteq G'$ (Derek Holt concludes this by a simpler argument in comment after question). Obviously $X$ contains $G'$.