Let denote one of the Jacobi Theta functions. Prove that
We have successively,
The sum is evaluated as follows. Consider the function
and integrate it around a square with vertices . The function has poles at every integer with residue as well as at with residues . We also note that as the contour integral of tends to . Thus,
and the exercise is complete.