Integrate 1/(1+e^x) dx: Solving the Problem

  • Thread starter Thread starter cloveryeah
  • Start date Start date
  • Tags Tags
    Integration
cloveryeah
Messages
25
Reaction score
0

Homework Statement


integrate 1/(1+e^x) dx

Homework Equations

The Attempt at a Solution


firstly i let t=1+e^x
and then i come to : integrate 1/(t^2-1)
and then i put t=secx
.
.
.
but then the final ans is -1/2 ln | 2/e^x +1 |

it should be 1 instead of 2, i hv checked for the steps for so many times, but found nothing wrong
 
on Phys.org
You have done the substitution wrong.

If [itex]t= 1+ e^x[/itex] then [itex]dt= e^xdx= (t- 1)dx[/itex] so that [itex]\frac{1}{t- 1}= dx[/itex].

[tex]\int \frac{1}{1+ e^x}dx= \int \frac{1}{t} \frac{dt}{t- 1}= \int \frac{1}{t(t- 1)} dt[/tex]

NOT [itex]\int \frac{1}{t^2- 1} dt[/itex]
 
Perhaps you should multiply the top and bottom of the expression by ##e^{-x}## and see what happens when you substitute ##u = e^{-x}##.
 
HallsofIvy said:
You have done the substitution wrong.

If [itex]t= 1+ e^x[/itex] then [itex]dt= e^xdx= (t- 1)dx[/itex] so that [itex]\frac{1}{t- 1}= dx[/itex].

[tex]\int \frac{1}{1+ e^x}dx= \int \frac{1}{t} \frac{dt}{t- 1}= \int \frac{1}{t(t- 1)} dt[/tex]

NOT [itex]\int \frac{1}{t^2- 1} dt[/itex]
then you can use partial fraction i.e. create (t)- (t-1) in the numerator
 

Similar threads

Replies
7
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
14K
  • · Replies 54 ·
2
Replies
54
Views
20K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
5
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K