Integrating (1/(1+e^x)) dx: Challenges and Solutions

In summary, PowerIso suggests multiplying both the numerator and the denominator by ex, or making a substitution, in order to solve this integral.
  • #1
niyati
63
0
I need to find the integral of (1/(1+e^x)) dx.

...I don't think I can use u substitution, but well, I'm basically open to suggestions.
 
Physics news on Phys.org
  • #2
It should be solvable with substitution. Hint: u = 1+e^x
 
  • #3
but, then wouldn't du = e^x dx? That would require a (1/e^x) outside the integral to balance it out, but my Cal I teacher (I'm now in Cal II with a different teacher) told me that I couldn't do this.
 
  • #4
Write x in terms of u, and then take the differential.
 
  • #5
let u = 1 + e^x
then we know du = (e^x)dx
and e^x = u -1

is there something we can multiply both the numerator and the denominator by to make this substitution work? Hint: this will turn it into a partial fraction decomposition problem.
 
  • #6
Multiply by 1. (1=e-x/e-x)
 
  • #7
That multiplication isn't really necessary. JonF's first point was sufficient: if u= 1+ ex, then ex= u- 1. du= exdx= (u-1)dx so dx= du/(u-1).
[tex]\int\frac{dx}{1+e^x}= \int\frac{du}{(u-1)(u)}[/tex]
which can be done by partial fractions.
 
Last edited by a moderator:
  • #8
Since I'm clumsy at partial fractions, I find multiplying by 1 to be a bit easier.
 
  • #9
Edit: woops sorry just saw d_leet mentioned this method already. But if you have a fraction with some e^x or e^-x then if you can't do u substitution, multiply by (e^-x)/(e^-x) or (e^x)/(e^x) and then do a nice u substitution.

another method:

multiply the top and bottom by e^-x to get:

[tex]\int\frac{e^{-x} dx}{e^{-x}+1}[/tex]

which you can use the substitution u=e^-x +1 then you have du = e^-x dx at the top which reduces the problem down to a simple integral
 
Last edited:
  • #10
PowerIso said:
Since I'm clumsy at partial fractions, I find multiplying by 1 to be a bit easier.

Multiplying both numerator, and denominator by ex, or, making a substitution, is pretty much the same. After that, you have to do Partial Fraction it. You cannot avoid it. :)
 
  • #11
VietDao29 said:
After that, you have to do Partial Fraction it. You cannot avoid it. :)

I could waste time by going the trig-way. :wink:
 
  • #12
VietDao29 said:
Multiplying both numerator, and denominator by ex, or, making a substitution, is pretty much the same. After that, you have to do Partial Fraction it. You cannot avoid it. :)

Really? I ended up with du/u which doesn't seem like I need to do partial fractions.
 
  • #13
PowerIso said:
Really? I ended up with du/u which doesn't seem like I need to do partial fractions.
Then I’m pretty sure you did something wrong, what substitution did you use?
 
  • #14
I used e^-x + 1 for u then du= -e^-x dx so since that is on the top already with just a different constant you can get -du/u.
 
  • #15
It’s the integral of: (1/(1+e^x)), not (1/(1+e^-x)). That "-" makes a huge difference. If you use that substitution you can’t substitute the bottom.
 
  • #16
Nor was the integrand
[tex]\frac{e^{-x}dx}{1+ e^{-x}}[/tex]
as PowerIso seems to think!
 
  • #17
no what PowerIso did was this I think:

[tex]\int\frac{dx}{1+e^x} * \frac{e^{-x}}{e^{-x}} = \int\frac{e^{-x} dx}{e^{-x}+1}[/tex]

which doing the substitution u=e^(-x)+1 gives you -du/u.
 
  • #18
I don't even think partial fractions are necessary. u(u-1)=u^2-u

so

[tex]\int\frac{dx}{1+e^x}= \int\frac{du}{(u-1)(u)} = \int{1 \over u^2-u}du = ln(u^2-u) + C = ln(e^{2x} + e^x) + C[/tex]
 
  • #19
Well, here is what I did. I multiplied by e^-x/e^-x and I got e^-x/(e^-x + 1) , so I'm still fairly certain it works.
 
  • #20
bob1182006 said:
no what PowerIso did was this I think:

[tex]\int\frac{dx}{1+e^x} * \frac{e^{-x}}{e^{-x}} = \int\frac{e^{-x} dx}{e^{-x}+1}[/tex]

which doing the substitution u=e^(-x)+1 gives you -du/u.

Yes that is what I did :).
 
  • #21
How on Earth do you do partial fractions on exponential functions?
 
  • #22
you don't do it directly you substitute to get some polynomials.

@ camilus: that integration is wrong you don't have the derivative of (u^2-u) on the top which is needed in order to get ln(u^2-1) + C as the answer so you would have to do partial fractions.
 
  • #23
camilus said:
I don't even think partial fractions are necessary. u(u-1)=u^2-u

so

[tex]\int\frac{dx}{1+e^x}= \int\frac{du}{(u-1)(u)} = \int{1 \over u^2-u}du = ln(u^2-u) + C = ln(e^{2x} + e^x) + C[/tex]

Nope, doesn't work out...

The logorithmic integration rules do not work that way. The integral of "1/(x+x^2)" =/= ln(x+x^2)

You'd have to start doing trigonometric sub/partial fractions after this point.
 
  • #24
bob1182006 said:
no what PowerIso did was this I think:

[tex]\int\frac{dx}{1+e^x} * \frac{e^{-x}}{e^{-x}} = \int\frac{e^{-x} dx}{e^{-x}+1}[/tex]

which doing the substitution u=e^(-x)+1 gives you -du/u.
slick ;)
 
  • #25
[tex]\int \limits_0^1 \frac{dx}{1+e^x} \approx 0.379885493[/tex]

[tex]\int \limits_2^{e+1} {1 \over u^2-u}du \approx 0.379885493[/tex]

most of yall need to retake calc 1, apparently everyone disagrees with the correct answer...
 
  • #26
you're missing some calculus there, the derivative of ln(u^2-u) is not your integral.
 
Last edited:
  • #27
not ln(u^2+u), ln(u^2-u)...
 
  • #28
yea I meant that >_> sorry
 
  • #29
And it's still not true. [itex] \frac{d}{du}\ln\left(u^{2}-u\right) \neq \frac{1}{u^{2}-u} [/itex].
 
  • #30
Hmm d/dxln(u^2-u) is (1/u^2 - u) * 2u

I'm pretty sure I did the derivative right, so camulis where did I error?
 
  • #31
Are you differentiating [itex] \ln(u^2 -u) [/itex] wrt "x" or to "u" ?
 
  • #32
opps I meant to type d/du
 
  • #33
camilus said:
[tex]\int{1 \over u^2-u}du = ln(u^2-u) + C[/tex]
Why would you think that?



p.s. have you looked at your private messages?
 
Last edited:
  • #35
Lol jesus how many mathematicians does it take to solve an exponential integral problem?

I'm not calling anyone stupid, but just found it funny ya'll are being cooperative to solve this
 

Similar threads

Replies
2
Views
1K
  • Calculus
Replies
6
Views
1K
Replies
3
Views
1K
Replies
31
Views
1K
  • Calculus
Replies
3
Views
2K
Replies
8
Views
1K
Replies
14
Views
851
Replies
19
Views
3K
Back
Top