# Differentiation under integration

I know there are other similar questions on this topic, but I am wondering if there is some sort of general method to pick where to place my parameters in the integral?

For instance, $$\int_{0}^{\infty} \frac{\sin(x)}{x} dx\;,$$ how does one know to add a parameter like $e^{-ax}$ to $$\int_{0}^{\infty}e^{-ax} \frac{\sin(x)}{x} dx\;?$$

Wikiapedia has a non-exhaustive list of problems like this: see link.

But I do not know how on earth they come up with those crazy methods.

-

One of the problems with $$\int_0^\infty \frac{\sin(x)}{x}\ dx$$ is that it only converges conditionally, which makes differentiation under the integral quite delicate. Thus you might have tried $$\int_0^\infty \frac{\sin(ax)}{x}\ dx$$ where again taking the derivative of the integrand with respect to the parameter gets rid of the $x$ in the denominator, but this is not good because $\int_0^\infty \sin(ax)\ dx$ diverges. You want to put in a factor that improves the convergence, and $e^{-ax}$ does that.