Ihave this exercise that I found in past midterms archives. It goes like this:
Show that the function $f(x,y)=e^{-y}sin(2xy)$ is integrable on $[0,1]×[0,\infty)$. Then deduce the value of $\int^{\infty}_{0}\frac{e^{-y}sin^2(y)}{y}dy$
Showing that $f$ is integrable wasn't difficult, mainly I only needed to show that $e^{-y}$ is integrable on $[0,\infty)$. But I don't see how the first function can help to solve the integral.
Fubini's theorem applies:
$$ \int_{0}^{+\infty}\frac{e^{-y}\sin^2 y}{y}\,dy = \int_{0}^{+\infty}\int_{0}^{1}e^{-y}\sin(2xy)\,dx\, dy = \int_{0}^{1}\frac{2x}{1+4x^2}\,dx = \left[\frac{1}{4}\log(1+4x^2)\right]_{0}^{1}=\color{red}{\frac{\log 5}{4}}.$$