# Thread: logarithm question need a slight help

1. ## logarithm question need a slight help

this i tried to integrate by u substitution U=e^x+1 and then U-1/U after this i get U-lnU i dont know what do can anyone hint or help me solving it

2. ## Re: logarithm question need a slight help

Your substitution is good:

$\displaystyle u=e^x+1\,\therefore\,du=e^x\,dx$ giving us:

$\displaystyle \int_2^{e+1} \frac{1}{u}\,du$

Can you proceed from here?

Incidentally, the given answer is not quite correct.

By the way, I would post integration problems in the calculus forum.

3. ## Re: logarithm question need a slight help

not really u changed the question while i took it from a very reliable source

4. ## Re: logarithm question need a slight help

Originally Posted by abdulrehmanshah
not really u changed the question while i took it from a very reliable source
This is what you posted: $\displaystyle \int_0^1 {\frac{{e^x }}{{1 + e^x }}dx} = \mathop {\left. {\ln \left( {1 + e^x } \right)} \right|}\nolimits_{x = 0}^{x = 1}$

And the give answer is wrong.

5. ## Re: logarithm question need a slight help

Originally Posted by abdulrehmanshah
not really u changed the question while i took it from a very reliable source
$\displaystyle \int_0^1 \frac{e^x}{e^x+1} \, dx = \left[\ln(e^x+1)\right]_0^1 = \ln(e+1) - \ln(2) = \ln\left(\frac{e+1}{2}\right)$

I agree with MarkFL2. I'd check that "source" again if I were you ...

6. ## Re: logarithm question need a slight help

ok the answer can be wrong but how can u change the limits provided by question can anyone help solving

7. ## Re: logarithm question need a slight help

Originally Posted by abdulrehmanshah
ok the answer can be wrong but how can u change the limits provided by question can anyone help solving
when a substitution is done, one may "reset" the limits of integration from x-values to u-values ...

$\displaystyle u = 1 + e^x$

for $\displaystyle x = 0$ , $\displaystyle u = 1 + e^0 = 2$

for $\displaystyle x = 1$ , $\displaystyle u = e^1 + 1 = e + 1$

therefore ...

$\displaystyle \int_0^1 \frac{e^x}{1+e^x} \, dx = \int_2^{e+1} \frac{1}{u} \, du = \left[\ln{u}\right]_2^{e+1} = \ln(e+1) - \ln(2) = \ln\left(\frac{e+1}{2}\right)$

8. ## Re: logarithm question need a slight help

this is the correct answer and as stated by my book so what is that is wrong about this question

9. ## Re: logarithm question need a slight help

Originally Posted by abdulrehmanshah
this is the correct answer and as stated by my book so what is that is wrong about this question

10. ## Re: logarithm question need a slight help

where did the e^x in the numerator go i know that lnu= 1/u but where did e^x go?

11. ## Re: logarithm question need a slight help

ya i wrote it wrongly my bad the answer u got is the answer i have in the back of my note book can u please explain e^x part

12. ## Re: logarithm question need a slight help

Originally Posted by abdulrehmanshah
this is the correct answer and as stated by my book so what is that is wrong about this question
I don't know what your book gave but you posted the answer as $\displaystyle ln\left(\frac{1+ e^x}{2}\right)$. Since this is a definite integral there should be no "x" in the answer. The correct answer is, as skeeter said, $\displaystyle ln\left(\frac{1+ e}{2}\right)$

13. ## Re: logarithm question need a slight help

$\displaystyle \int_0^1 \frac{{\color{red}e^x}}{1+e^x} \, {\color{red}dx} = \int_2^{1+e} \frac{{\color{red}du}}{u}$

$\displaystyle u = 1 + e^x$

$\displaystyle {\color{red}du = e^x \, dx}$