TITLE: Why is the direct product of a finite number of nilpotent groups nilpotent?
QUESTION [11 upvotes]: I read that a direct product of a finite number of nilpotent groups is nilpotent. Here the definition of a nilpotent group is one that has a central series. A comment in my book following this claim says 

If $G_{ij}$ is the $i^{th}$ term of a central series of the $j^{th}$ factor $H_j$, with $G_{ij}=G$ if the series has already terminated at $G$, then $\prod_j G_{ij}$ will be the $i^{th}$ term of a central series for $\prod_j H_j$. 

My guess is that the central series for $\prod_j H_j$ is something like
$$
1\unlhd \prod_j G_{1j}\unlhd\prod_j G_{2j}\unlhd\cdots\unlhd\prod_j G_{rj}=\prod_j H_j
$$ 
and additionally
$$
\prod_j G_{i+1,j}/\prod_j G_{ij}\subseteq Z(\prod_j H_j/\prod_j G_{ij}).
$$
I'm struggling to understand why the containment above is true. I think I need to show
$$
\begin{align*}
\prod_j g_{i+1,j}\prod_j G_{ij}\cdot\prod_j h_j\prod_j G_{ij} &= \prod_j g_{i+1,j}\prod_j h_j\prod_j G_{ij} \\
&= \prod_j h_j\prod_j g_{i+1,j}\prod_j G_{ij} \\
&= \prod_j h_j\prod_j G_{ij}\cdot\prod_j g_{i+1,j}\prod_j G_{ij}
\end{align*}
$$
but I just don't see why the second equality would be true. I'm sure there's a nice simple explanation, and I'd be glad to see it. Thanks.

REPLY [7 votes]: The class of all nilpotent groups of nilpotency class at most $c$ is exactly the collection of all groups for which the group word
$$[x_1,x_2,x_3,\ldots,x_{c+1}]$$
evaluates to $1$ for all possible choices of $x_1,\ldots,x_{c+1}$ in the group (here, commutators are $[a,b]=a^{-1}b^{-1}ab$, and we write them left-normed, so that $[a,b,c] = [[a,b],c]$).
Since a collection of groups that is defined by group words forms a variety, and is closed under quotients, subgroups and arbitrary direct products, it follows that an arbitrary direct product of nilpotent groups of class at most $c$ is always nilpotent of class at most $c$.
If you have a finite collection $G_1,\ldots,G_n$ of nilpotent groups, then letting $c_i$ be the class of $G_i$, we can let $c=\max\{c_1,\ldots,c_n\}$; then each $G_i$ is nilpotent of class at most $c$, and thus the product is nilpotent of class at most $c$.
More generally any family of groups with bounded nilpotency class will have a product which is nilpotent (of class at most the common bound for the class).
On the other hand, taking a product of groups of unbounded nilpotency class will yield a  group that is not nilpotent.
(The same idea works to show that any family of groups of bounded solvability class is solvable, and in particular that any finite family of solvable groups has solvable product).