A recent question mentioned an integral identity involving Dedekind $\eta$ function and a special value for the complete elliptic integral of the first kind. I refrained from providing a complete answer, I rather tried to guide the OP through some hints, but we apparently reached a dead spot, concerning the following simplified version of the original problem: $$\boxed{ \int_{0}^{+\infty}\left[\sum_{n\geq 1}(-1)^n e^{-n^2 x}\right]^2\,dx = \frac{\pi^2-3\pi\log 2}{12}.} \tag{A}$$ My solution goes as follows:
- The LHS of $(A)$ can be written in terms of $\sum_{m,n\geq 1}\frac{(-1)^{m+n}}{m^2+n^2}$, to be dealt with care since it is not absolutely convergent;
- We have $\frac{(-1)^{m+n}}{m^2+n^2}=\int_{0}^{+\infty}\frac{(-1)^n\sin(nx)}{n}(-1)^m e^{-mx}\,dx$, where $\sum_{m\geq 1}(-1)^m e^{-mx}$ is a simple geometric series and $\sum_{n\geq 1}\frac{(-1)^n \sin(nx)}{n}=-\arctan\tan\frac{x}{2}$ almost everywhere;
- The problem boils down to integrating over $\mathbb{R}^+$ the product between a sawtooth wave and the function $\frac{1}{e^x+1}$. Through the dilogarithms machinery or the residue theorem, to reach the RHS of $(A)$ is not difficult.
I would use this question for collecting alternative/shorter/slicker proofs.