# $\int_{-1}^0 \frac{(e^{1/x})}{x^2}\ dx$ Improper integrals

I have a fairly good understanding of improper integrals, but this question has been bugging me for a while since I got it wrong on an exam. So here's the integral:

$$\int_{-1}^0 \frac{(e^{1/x})}{x^2}\ dx.$$

So the first thing to do is to recognise that it is improper. That must be because $e^{1/0}$ is not defined, correct?

So proceeding in a fashion like any other improper integral problem. Change the limit $0$ to a $b$ and taking the limit as $b$ approaches zero, like this:

$$\lim\limits_{b \to 0} \int_{-1}^b \frac{(e^{1/x})}{x^2}\ dx.$$

So now that it is proper, we can evaluate the integral, using a $u$-substitution of $u=1/x$. As $-du=1/{x^2} \, dx$ we find $$-\lim_{b \to 0} \int_{-1}^b e^{u}\ du.$$ which the integral will equal the same as the derivative

Plugging $u$ back in gives $$-\lim_{b \to 0} e^{{1/x}}\ \Big|_{-1}^{b}.$$ thus $$-\lim_{b \to 0} e^{{1/b}} + \lim_{b \to 0} e^{{1/(-1)}}.$$

But since you plug zero in for $b$ you get a division by zero error. Can anyone help?

• The substitution $u = 1/x$ changes the bounds: $$\int_{-1}^{b} \frac{e^{1/x}}{x^2} \, dx = -\int_{-1}^{1/b} e^u \, du = \int_{1/b}^{-1} e^u \, du = e^{-1} - e^{1/b}.$$ Since you are taking limit as $b \to 0^-$, the reciprocal $1/b$ diverges to $-\infty$ and you may be able to wrap up the computation from here. Apr 14, 2017 at 5:20
• Use the command \Big|_{-1}^{b} to get $\Big|_{-1}^{b}$. In general, \big, \bigg, \Big, and \Bigg are all slightly different sizing adjustments. Apr 14, 2017 at 5:24
• Can you explain why it changes the bounds? Apr 14, 2017 at 5:24
• Substitution changes the variable w.r.t. which the integral is performed. And since the new variable does not range over the same interval as the original variable does, bounds should be replaced accordingly to match this new range. Apr 14, 2017 at 5:42

You seem to understand roughly what is going behind the integral, but let me nitpick for a moment. First, bounds should change when you make the substitution:

$$\int_{-1}^{b} \frac{e^{1/x}}{x^2} \, dx = -\int_{-1}^{1/b} e^u \, du = \int_{1/b}^{-1} e^u \, du = e^{-1} - e^{1/b}.$$

A superficial explanation is as follows: The new variable in general does not range over the same interval as the original variable does. So the bounds should also be replaced accordingly to match this new range.

Now we want to take limit as $b \to 0^-$. I guess it is not hard to be convinced from the graph $y= 1/b$

$\hspace{10em}$

that $1/b \to -\infty$ as $b \to 0^-$. So we have

$$\lim_{b\to0^-} \int_{-1}^{b} \frac{e^{1/x}}{x^2} \, dx = \lim_{b\to0^-} \big( e^{-1} - e^{1/b} \big) = e^{-1} - 0 = \frac{1}{e}.$$

with $$t=1/x$$ we get $$dt=-\frac{1}{x^2}dx$$ and the undefinit integral will be $$-\int e^tdt=-e^t+C=-e^x+C$$ since $$\lim_{x \to 0}e^{1/x}=0$$ we get for the integral $$e^{-1}$$ as the searched result.