# Integration and evaluation

I have to evaluate this integral here

$$\int_x^\infty \frac{1}{1+e^t} dt$$

I've tried with the substitution $e^t=k$, but at the end I get $\log|k|-\log|1+k|$, which evaluated between the extrema doesn't converge... I hope that somebody can help!

• Hint: $\frac{1}{1+e^t}=1-\frac{e^t}{1+e^t}$ Sep 13, 2015 at 13:51

Using the substitution $e^t=u$ we have: $$\int \dfrac{1}{1+e^t} dt=\int \dfrac{1}{u(1+u)} du$$ that, using partial fraction, become $$\int \left(\dfrac{1}{u}-\dfrac{1}{1+u} \right) du = \log u -\log(1+u) +c =$$ $$= \log \left( \dfrac{e^t}{1+e^t} \right) +c$$

Now taking the limit for $t\rightarrow \infty$ we have:

$$\lim_{t\rightarrow \infty}\left[ \log \left( \dfrac{e^t}{1+e^t} \right)\right]= \lim_{t\rightarrow \infty}\left[ \log \left( \dfrac{1}{1+1/e^t} \right) \right]=0$$

and substituting also the other limit of integration $t=x$ we find: $$\int_x^\infty \dfrac{1}{1+e^t} dt=f(x)=\log(e^x+1)-x$$

• Thanks a lot for your detailed answer. I've understood everything! Sep 13, 2015 at 14:50
• You are welcome :) Sep 13, 2015 at 14:52

Hint: $$\ln a-\ln b=\ln\frac ab.$$

• It doesn't seem to solve anything... Sep 13, 2015 at 13:37
• @ale42: Oh? What is the limit of $\frac{k}{1+k}$ as $k\to\infty$? And what is the logarithm of that? This shows that the evaluation between the extrema does converge. Sep 13, 2015 at 13:50
• It's only a hint, not a full solution. Sep 13, 2015 at 13:55
• @RoryDaulton yup now I got it! Sep 13, 2015 at 14:51

Hint: $$\frac { 1 }{ 1+{ e }^{ t } } =\frac { 1 }{ { e }^{ t }\left( 1+{ e }^{ -t } \right) } =\frac { { e }^{ -t } }{ 1+{ e }^{ -t } } \\ \int { \frac { dt }{ 1+{ e }^{ t } } } =-\int { \frac { d\left( 1+{ e }^{ -t } \right) }{ 1+{ e }^{ -t } } }$$

Notice, $$\int_{x}^{\infty}\frac{dt}{1+e^t}$$ $$=\int_{x}^{\infty}\frac{dt}{e^t(e^{-t}+1)}$$ $$=\int_{x}^{\infty}\frac{e^{-t} dt}{1+e^{-t}}$$ Let $1+e^{-t}=u\implies e^{-t}dt=-du$ $$=\int_{1+e^{-x}}^{1}\frac{(-du)}{u}$$ $$=-\int_{1+e^{-x}}^{1}\frac{du}{u}$$ $$=\int_{1}^{1+e^{-x}}\frac{du}{u}$$ $$=\left[\ln|u|\right]_{1}^{1+e^{-x}}$$ $$=\ln|1+e^{-x}|-\ln|1|$$ $$=\ln\left(1+e^{-x}\right)$$ $$=\ln\left(1+\frac{1}{e^{x}}\right)$$ $$=\ln\left(\frac{1+e^x}{e^{x}}\right)$$ $$=\ln\left(1+e^x\right)-\ln\left({e^{x}}\right)$$ $$=\color{red}{\ln(1+e^x)-x}$$

The indefinite integral after you undo your substitution is $\displaystyle \ln \frac{e^t}{1+e^t} + C$.

The lower bound is easy, the value of the integral here is simply $\displaystyle \ln \frac{e^x}{1+e^x}$.

The value of integral at the upper bound is:

$$\lim_{x \to \infty} \ln \frac{e^x}{1+e^x}$$

and that's the natural log of an indeterminate form ($\frac{\infty}{\infty}$)

If you let $f(x) = e^x$ and $g(x) = 1+e^x$, you can use L' Hopital's rule to find that:

$$\lim_{x \to \infty} \frac{f(x)}{g(x)} = \lim_{x \to \infty} \frac{f'(x)}{g'(x)} = \lim_{x \to \infty} \frac{e^x}{e^x} = 1$$

So the value of the integral at the upper bound is $\ln 1 = 0$.

And so the definite integral is: $\displaystyle 0 - \ln \frac{e^x}{1+e^x} = \ln(1 + e^{-x})$.