Show that $$\int_0^\infty \frac{\sin x}{e^x-1}\,dx=\sum_{n=1}^\infty \frac{1}{n^2+1}.$$
Thoughts: I think I have to use the dominated convergence theorem, but I don't see how.. I tried expanding $\frac{1}{1-e^x}=1+e^x+e^{2x}+\ldots$ but then realised this works only $|e^x|<1$.