A friend of mine asked me to help him evaluate the series
$$\mathcal{S} = \sum_{n=1}^{\infty} \frac{\sin (n \pi y) \sin \left ( n \pi x \right )}{n^2 \pi^2} \quad , \quad x , y \in (0, 1)$$
It does not ring any bells as to what it could be behind. The only thing I see is Fourier series and probably a dilogarithm function. But this is as far as I can see.. I cannot see to collect the pieces together.
I would like to help him and I am asking your help. Is there any closed form in terms of special function for this series?
This sum can be evaluated explicitly using Parseval's theorem: given
$$A(w) = \sum_{n=-\infty}^{\infty} a_n \, e^{i n w} $$ $$B(w) = \sum_{n=-\infty}^{\infty} b_n \, e^{i n w} $$
Then
$$\sum_{n=-\infty}^{\infty} a_n \bar{b}_n = \frac1{2 \pi} \int_{-\pi}^{\pi} dw \, A(w) \bar{B}(w) $$
To illustrate, I prove here that
$$\sum_{n=-\infty}^{\infty} \frac{\sin{n \pi x}}{n \pi} e^{i n w} = \begin{cases}1 & |w| \lt \pi x \\ 0 & |w| \gt \pi x \end{cases}$$
when $x \in [0,1)$. Accordingly,
$$\sum_{n=-\infty}^{\infty} \frac{\sin{n \pi x}}{n \pi} \frac{\sin{n \pi y}}{n \pi} = \frac1{2 \pi} \operatorname{min}{(2\pi x,2\pi y)} = \operatorname{min}{(x,y)}$$
Thus,