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
 
Physics news on Phys.org
You have done the substitution wrong.

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

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

NOT \int \frac{1}{t^2- 1} dt
 
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 t= 1+ e^x then dt= e^xdx= (t- 1)dx so that \frac{1}{t- 1}= dx.

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

NOT \int \frac{1}{t^2- 1} dt
then you can use partial fraction i.e. create (t)- (t-1) in the numerator
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top