How can I integrate 1/(1+e^x) by substituting u = e^{-x} + 1?

  • Thread starter MaximumTaco
  • Start date
  • Tags
    Integrating
In summary, the conversation discusses the integration of 1/(1+e^x) and suggests using the substitution u = e^-x + 1. The final solution is found to be -ln(e^-x + 1) + C, which can also be expressed as x - ln(1+e^x) or ln(e^x/(1+e^x)).
  • #1
MaximumTaco
45
0
Integrating 1/(1+e^x):

I am currently substituting 1+e^x = u,

S (u*e^x)^-1 du since du/dx = e^x

S (u*(u-1))^-1 du (S represents the integral symbol)

But i looked up the answer and got Ln (e^x(1+e^x)) +c

i need to understand how this is done, thanks in advance everyone.
 
Mathematics news on Phys.org
  • #2
  • #3
After you have integral (u(u-1))^(-1) du= integral 1/(u(u-1)) du

you can use "partial fractions", rewriting

1/(u(u-1))= A/u+ B/(u-1) for proper A and B. Then integrate

integral (A/u)du+ integral B/(u-1) du.
 
  • #4
Guys this problem is a lot easier than it looks. From a quote from a PHD Student at Texas Tech Univ. Krishna Kaphle "Adding 0 or Multiplying By 1 is Free In Math".

What does this mean for this problem well let's rewrite our expression
1. [tex]\int{\frac{1+e^x-e^x}{1+e^x}dx}[/tex] [lets add 1 to our expression]

2. [tex]\int{\frac{[1+e^x]-e^x}{1+e^x}dx}[/tex] [now focus in on the numerator see what's in brackets matches the denominator]

3. [tex]\int{\frac{1+e^x}{1+e^x}dx}-\int{\frac{e^x}{1+e^x}dx}[/tex] [now let's split the fraction]

4. [tex]\int{1dx}-\int{\frac{e^x}{1+e^x}dx}[/tex] [now just use substiution method for right hand integral. [tex]u=1+e^x, du = e^xdx[/tex]]

5. [tex]\int{1dx}-\int{\frac{du}{u}}[/tex]

6. [tex]x-ln|{u}|+C[/tex]

7. [tex]x-ln|{1+e^x}|+C[/tex] [substitue u back]

If you don't believe this or too lazy to do its derivative use this tool:
http://library.wolfram.com/webMathematica/Education/WalkD.jsp
and enter this expression: x-ln[1+e^x]

kiko
 
  • #5
If the poster above can bump this thread, so can I. Besides, I think my solution is the nicest one between this thread and the thread referred to in post #2. :)

I make the substitution [tex]u = e^{-x} + 1[/tex]:
[tex]
\int \frac{1}{1 + e^x} \,dx
= \int \frac{e^{-x}}{e^{-x} + 1} \,dx
= \int -\frac{1}{u} \,du
= -\ln \lvert u \rvert + C
= -\ln(e^{-x} + 1) + C.
[/tex]

Note that
[tex]-\ln(e^{-x} + 1) = x - \ln(1 + e^x) = \ln \left( \frac{e^x}{1 + e^x} \right).[/tex]edit: Isn't this thread supposed to be locked, being archived?
 
Last edited:

1. What is the function 1/(1+e^x) used for?

The function 1/(1+e^x) is commonly used in statistics and machine learning as a sigmoid function. It is also known as the logistic function and is used to map any real-valued number into a range between 0 and 1.

2. How is the function 1/(1+e^x) integrated?

The function 1/(1+e^x) can be integrated using the substitution method, where u = 1+e^x. This will result in an integral of the form ∫1/u du, which can be easily solved using logarithmic functions.

3. What is the derivative of 1/(1+e^x)?

The derivative of 1/(1+e^x) is -e^x/(1+e^x)^2. This can be derived using the quotient rule and the chain rule.

4. What is the limit of 1/(1+e^x) as x approaches infinity?

The limit of 1/(1+e^x) as x approaches infinity is 0. This can be seen by considering that as x gets larger and larger, e^x also gets larger and the denominator becomes infinitely large, resulting in a value close to 0.

5. Can the function 1/(1+e^x) be used in other fields besides statistics?

Yes, the function 1/(1+e^x) can be used in various fields such as physics, economics, and biology. It is commonly used to model growth curves and logistic growth in these fields.

Similar threads

Replies
2
Views
908
  • General Math
Replies
13
Views
2K
  • Calculus
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
611
Replies
3
Views
763
Replies
0
Views
333
Replies
3
Views
1K
Replies
21
Views
792
Back
Top