The integral
$I = \int\limits_0^\infty \mathrm{d}x \, x \sin(x)$
does not converge. In physics we often use the principle of a convergence generating factor, in this example
$I = \lim\limits_{\epsilon \to 0} \int\limits_0^\infty \mathrm{d}x \, x \sin(x) \exp(-\epsilon x) = \lim\limits_{\epsilon \to 0} \frac{2\epsilon}{(1+\epsilon^2)^2} = 0$
I obviously now have 2 different solutions, one is that it does not converge, one is that it is 0. My question is of course, which one is correct?
As a physicist I always use such techniques without the proper knowledge if I am allowed to use it (here, I did not check if all requirements are fulfilled to flip the limes and the integral). I am searching for an explanation for this discrepancy in the solutions. From the given solution I know that the integral should indeed deliver a 0.