I stumbled upon this complicated looking integral while trying to solve an assignment for extra credit in Calculus.
$$\int^\infty_0 \frac{e^{-5x}- \cos x}{x} dx$$
I tried breaking it into two parts in order to deal with each separately. I tried the only substitution that made sense to me, but got nothing. Integrating by parts still yielded no significant progress. I thought about using Gamma and Beta functions, but I can't see how to build them up in this particular case
Last thing I tried before coming here for help was Taylor series, I thought that might help me get something more familiar...
Any ideas?
Let us recall the Mellin transform and its general form:
$$F(s) = \int^\infty_0 x^{s-1}f(x) dx$$
We might use this fact in this particular case, by trying to match our integral with $F(s)$. Hence, we might write:
$$\int^\infty_0 \frac{e^{-5x}- \cos x}{x} dx = \int^\infty_0 \frac{e^{-5x}}{x} dx - \int^\infty_0 \frac{\cos x}{x} dx = \int^\infty_0 x^{-1}e^{-5x} dx - \int^\infty_0 x^{-1}\cos x\ dx.$$
You see now how the general form of the Mellin transform now encapsulates our particular case, where $s \rightarrow0$. Therefore:
$$\int^\infty_0 x^{-1}e^{-5x} dx - \int^\infty_0 x^{-1}\cos x\ dx= \underset{s \to 0}{\lim} \{ \mathcal{Me^{-5x}}\ \}(s) - \{ \mathcal{M\cos x}\ \}(s) $$
This further yields our final answer:
For more reading on the Mellin transform, check this out.