A contour integration approach to infinite series
We will evaluate the trigonometric series \(\sum_{n=0}^\infty \frac{\cot\left(\frac{2n+1}{2}\pi\sqrt{2} \right)}{(2n+1)^3}\) by integrating a meromorphic function around a sequence of expanding squares. The residues encode the desired sum, while equidistribution helps us choose a useful subsequence of contours. Define the meromorphic function
where the parameter \(\theta\) is a positive irrational number. Let \(C_N\) denote the positively oriented square with vertices \((N+1)(1+i),\; (N+1)(-1+i),\; (N+1)(-1-i)\) and \((N+1)(1-i)\). The irrationality of \(\theta\) ensures that no pole on the real axis lies on the boundary of this square.
Estimating the contour integral
Put \(m=N+1\). We will estimate the horizontal and vertical sides separately. We use the elementary identities
and, whenever \(\tan u\) is finite,
The first identity, including its limiting cases when \(\cos u=0\), shows that for \(v\neq0\),
and, if \(u\) is fixed while \(v\) varies,
For the second bound, put \(a=\tan^2u\) and \(s=\tanh^2v\). Then the square of the modulus is \((a+s)/(1+as)\), which lies between \(a\) and \(1\) as \(s\) ranges from \(0\) to \(1\). This proves the claimed estimate.
On either horizontal side, write \(z=x\pm im\) with \(-m\leq x\leq m\). Since \(|z|\geq m\), we have
The combined length of the two horizontal sides is \(4m\). Therefore,
On either vertical side, write \(z=\pm m+iy\) with \(-m\leq y\leq m\). Because \(m\) is an integer,
Set
The second consequence of the tangent identity gives
Again \(|z|\geq m\), and the two vertical sides have combined length \(4m\), so
Combining the four sides yields the explicit estimate
Choosing the contours by equidistribution
It remains to keep \(T_m\) away from the poles of the tangent. By Weyl's equidistribution theorem, the fractional parts \(\{m\theta\}\) are equidistributed in \([0,1)\). In particular,
Thus there are infinitely many integers \(m\) for which \(\{m\theta\}\in[0,1/4]\). Enumerate them as an increasing sequence \(m_1<m_2<\cdots\). Since tangent has period \(\pi\),
Let \(N_k=m_k-1\). Substituting this bound into the contour estimate gives
Because \(m_k\to\infty\) and both hyperbolic cotangents tend to \(1\), the expression on the right is asymptotic to \(8\pi/m_k^2\). Hence
On the other hand, the residue theorem gives
A simple calculation gives the following residues:
The nonzero poles occur in pairs \(z\) and \(-z\), and the two residues in each pair are equal. Letting \(k\to\infty\) in the residue identity therefore gives the following relation, provided the two series converge:
Equidistribution was used only to choose contours on which the boundary integral is small; by itself it does not guarantee convergence of the two series. For the value needed here, \(\theta=\sqrt2+1\), convergence presents no problem. A quadratic irrational is badly approximable, so there is a constant \(c>0\) such that
for all integers \(p\) and positive integers \(q\). The same is true of \(1/\theta=\sqrt2-1\). Consequently, the tangent factors in the two series are \(O(2n+1)\), even when their arguments approach a pole. After division by \((2n+1)^3\), the summands are \(O((2n+1)^{-2})\), and both series converge absolutely.
Finally, substitute \(\theta=\sqrt2+1\). Since \(2n+1\) is odd and \(1/\theta=\sqrt2-1\), periodicity gives
Moreover,
The relation above therefore reduces to