I'm looking for a "polite" way to calculate this integral using Laplace transform:
$$ \int_0^{+\infty} \frac{e^{-ax} - e^{-bx} }{x} dx. $$
Now the impolite way is to invoke a famous theorem from basic differential equations: $$ \mathcal{L}( f(x)/x) = \int_s^\infty F(t) dt,$$
Where $ F$ is the LT of $f$. Setting $f(x)/x= 1/x$ in this theorem (and recalling the definition of LT) gives $$ \int_0^\infty \frac{e^{-ax}}{x} = \infty - \ln(a).$$ Similarly $$ \int_0^\infty \frac{e^{-bx}}{x} = \infty - \ln(b).$$
Putting the results together and cancelling infinity gives the final result $\ln \frac{b}{a}$ which I know for a fact is the true value of the integral. But I also know too well that cancelling infinity is not allowed. So what is the trick?