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

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

Discussion Overview

The discussion revolves around the integration of the function 1/(1+e^x) using various substitution methods. Participants explore different approaches to solve the integral, including the substitution u = e^{-x} + 1 and other algebraic manipulations.

Discussion Character

  • Homework-related
  • Mathematical reasoning
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests substituting 1 + e^x = u and expresses confusion about the resulting integral and its solution.
  • Another participant proposes using partial fractions to rewrite the integral 1/(u(u-1)) and suggests integrating the resulting terms.
  • A different participant argues that the problem can be simplified by rewriting the expression and splitting the fraction, leading to a more straightforward integration process.
  • One participant presents their solution using the substitution u = e^{-x} + 1, leading to a logarithmic result and provides a transformation of the final expression.
  • Another participant expresses a preference for their solution over those presented in the thread and questions the status of the thread regarding its archiving.

Areas of Agreement / Disagreement

Participants present multiple competing views and methods for solving the integral, with no consensus on a single approach being favored or established as correct.

Contextual Notes

Some participants' methods depend on specific algebraic manipulations and assumptions about the integrals involved, which may not be universally accepted or straightforward.

MaximumTaco
Messages
44
Reaction score
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.
 
Physics news on Phys.org
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.
 
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
 
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<br /> = \int \frac{e^{-x}}{e^{-x} + 1} \,dx<br /> = \int -\frac{1}{u} \,du<br /> = -\ln \lvert u \rvert + C<br /> = -\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:

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 19 ·
Replies
19
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K