I want to determine the value of $s$ for which a particular equation gives the smallest integral with respect to $a$ over the interval $[0,1]$. The three main terms in the equation each involve infinite sums, so the summations are (at least initially) inside the integral of interest.
Fortunately, the summations satisfy the conditions of the dominated convergence theorem so, with the first two terms (not shown here), I'm reasonably confident about being able to bring the integral inside the summation before proceeding to the next stage. However, the last of the three main terms in the equation involves the square of an infinite sum, requiring me to determine $$ \int_0^1\left(\sum_{j=1}^{\infty} \frac{(-1)^j}{j} {\exp ( -j^2 s^2}) \sin (2 j a) \right)^2 \mathrm{d}a $$
Is there anything I can do to make it easier to evaluate this.
Note: the tag is the only one I could think of that was relevant, but please add tag(s) if appropriate