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

  • Context: Undergrad 
  • Thread starter Thread starter niyati
  • Start date Start date
  • Tags Tags
    Dx Integrating
Click For Summary

Discussion Overview

The discussion revolves around the integral of (1/(1+e^x)) dx, exploring various methods for solving it, including substitution and partial fractions. Participants share their approaches, challenges, and corrections related to the integration process.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant expresses uncertainty about using u substitution for the integral.
  • Another suggests using the substitution u = 1 + e^x, leading to a discussion on the implications of this substitution.
  • Concerns are raised about balancing the differential when using the substitution, with some participants suggesting alternative methods to simplify the integral.
  • Multiple participants propose multiplying by e^-x or e^x to facilitate the substitution process, with varying opinions on the necessity of this step.
  • There is a contention over whether partial fractions are necessary, with some arguing that they are unavoidable while others claim they can be bypassed.
  • Disagreement arises regarding the correctness of certain integration results and the derivatives of logarithmic expressions, with participants challenging each other's calculations.
  • A participant provides a numerical approximation for the integral, which prompts further debate about the correctness of previous claims.
  • Humor is injected into the conversation as participants reflect on the collaborative nature of solving the integral problem.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for solving the integral, with multiple competing views and approaches remaining throughout the discussion.

Contextual Notes

Some participants express confusion regarding the application of logarithmic integration rules and the necessity of partial fractions, indicating potential misunderstandings or missing steps in their reasoning.

niyati
Messages
63
Reaction score
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
It should be solvable with substitution. Hint: u = 1+e^x
 
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.
 
Write x in terms of u, and then take the differential.
 
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.
 
Multiply by 1. (1=e-x/e-x)
 
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).
\int\frac{dx}{1+e^x}= \int\frac{du}{(u-1)(u)}
which can be done by partial fractions.
 
Last edited by a moderator:
Since I'm clumsy at partial fractions, I find multiplying by 1 to be a bit easier.
 
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:

\int\frac{e^{-x} dx}{e^{-x}+1}

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
\frac{e^{-x}dx}{1+ e^{-x}}
as PowerIso seems to think!
 
  • #17
no what PowerIso did was this I think:

\int\frac{dx}{1+e^x} * \frac{e^{-x}}{e^{-x}} = \int\frac{e^{-x} dx}{e^{-x}+1}

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

\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
 
  • #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:

\int\frac{dx}{1+e^x} * \frac{e^{-x}}{e^{-x}} = \int\frac{e^{-x} dx}{e^{-x}+1}

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

\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

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:

\int\frac{dx}{1+e^x} * \frac{e^{-x}}{e^{-x}} = \int\frac{e^{-x} dx}{e^{-x}+1}

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

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

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. \frac{d}{du}\ln\left(u^{2}-u\right) \neq \frac{1}{u^{2}-u}.
 
  • #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?
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
3K
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
5K