# Math Help - Integrals involving exponential

1. ## Integrals involving exponential

Question:
$\int \frac{dx}{1+e^x}$

How to solve this ..?

2. Originally Posted by mj.alawami
Question:
$\int \frac{dx}{1+e^x}$

How to solve this ..?

$u = 1+e^x$

$du = e^x dx$

$dx = (u-1)\, du$

$\int \frac{(u-1)}{u} \, du = \int 1\,du - \int \frac{1}{u}\, du$

3. ## Try this...

Let $e^x$=t

x=ln(t)

dx=(1/t)*dt

I= $\int 1/(1+e^x) dx = \int [(1/(t+1)*(1/t)] dt$

I= $\int$ {(1/t)-[1/(t+1)]} dt

$I=ln(t)-ln(t+1)=ln( e^x)-ln( e^x+1)$

I=ln[ex/( ex+1)]+C

I found this proof on the web but verified it in calculation. Seems right to me, hope this helps.

4. Originally Posted by e^(i*pi)
$u = 1+e^x$

$du = e^x dx$

$dx = (u-1)\, du$

$\int \frac{(u-1)}{u} \, du = \int 1\,du - \int \frac{1}{u}\, du$

I still didnt understad , Sorry

5. Originally Posted by mj.alawami
I still didnt understad , Sorry
I used integration by substituion.

Let $u = 1+e^x$ - this was chosen to make the denominator easier

When we differentiate u wrt x we get $du = e^x \, dx$ which is obtained through normal rules.

To be able to substitute our du term into the equation we need to isolate dx: $dx = \frac{du}{e^x}$. However that isn't very helpful so to get that e^x out the way rearrange the original substitution

$e^x = u-1$

$dx = \frac{du}{u-1}$

(that was a mistake I made in my previous post. It should read the above)

Putting this back into the integral for dx:

$\int \frac{du}{u(u-1)} = \int \frac{du}{u^2-u}$