I'm trying to show that the integral
$$I:=\int\limits_0^2x^{-1}e^{-x}\mathrm dx$$
diverges.
My attempt: We know that the problem is in the $x \to 0$ part so we have that $x \to 0$ implies $e^{-x} \to 1$ and $x^{-1} \to \infty$. We have that the function is not defined at zero so if we set this integral correctly we have that
$$I= \lim_{\xi \to 0}\int_\xi^2x^{-1}e^{-x}\mathrm dx $$
I think is not possible to interchange the series of $e^x$ with the integral because it is a divergent integral of a series. (Is this correct? Thinking in the answer given HERE).
We can use that $$E\mathrm i(-x) = \int x^{-1}e^{-x}\mathrm dx+\mathrm{Const.}$$
So $$I = E\mathrm i(-2) - \lim_{\xi \to 0}E\mathrm i(-\xi)$$
Can anyone set a hint for what can I do?