Integration using substitution

Click For Summary

Homework Help Overview

The discussion revolves around the integration of the function $$\int \frac{1}{1+e^x}\,dx$$, focusing on the method of substitution and the challenges faced in arriving at the correct solution.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore different substitution methods, including setting $$u=1+e^x$$ and discussing the implications of this choice. There are attempts to clarify the integration process and the conditions under which certain logarithmic forms apply.

Discussion Status

Multiple approaches to the integration problem are being discussed, with some participants suggesting alternative methods and questioning the assumptions made in the original attempts. Guidance is being offered regarding the use of partial fraction decomposition and the implications of different substitution choices.

Contextual Notes

Some participants note that the original poster's approach may have overlooked certain factors in logarithmic integration, and there is an ongoing examination of the conditions under which $$\int \frac{dx}{f(x)}$$ can be simplified to a logarithmic form.

physics604
Messages
92
Reaction score
2
1. $$\int \frac{1}{1+e^x}\,dx$$

Homework Equations



Substitution

The Attempt at a Solution



$$u=1+e^x$$ $$du=e^xdx$$
$$\int \frac{1}{u}\frac{1}{e^x}\,du$$ $$\int \frac{1}{u}\frac{1}{u-1}\,du$$ $$\int \frac{1}{u(u-1)}\,du$$
$$= \ln {|u^2-u|} = \ln {|(1+e^x)-(1+e^x)|} = \ln {|1+2e^x+e^{2x}-1-e^x|} = \ln {|e^2|}$$

There is something obviously wrong with my answer but I don't know what. The answer key says $$x-\ln {(1+e^x)}+C$$ Any help is greatly appreciated!
 
Physics news on Phys.org
physics604 said:
$$u=1+e^x$$ $$du=e^xdx$$
$$\int \frac{1}{u}\frac{1}{e^x}\,du$$ $$\int \frac{1}{u}\frac{1}{u-1}\,du$$ $$\int \frac{1}{u(u-1)}\,du$$
$$= \ln {|u^2-u|} $$

The item in red is wrong .

Write 1/u(u-1) = 1/(u-1) - 1/u .
 
To expand on what Tanya Sharma said,
$$\int \frac{dx}{f(x)} \neq ln|f(x)| + C$$
unless f(x) just happens to be x.
 
Mark44 said:
unless f(x) just happens to be x.

or, to be more precise f(x) happens to be of the form ax+b ,where a and b are constants.
 
Last edited:
Yes subbing u = 1+e^x would work, but for this question you do not need to figure out du. So
∫1/(1+e^x) dx

so 1 = u-e^x

∫(u-e^x)/u dx

from here you can see how it would work.
You could also do it your way but you have to use partial fraction decomposition.
 
A better approach is to do this:
$$\int \frac{1}{1+e^{x}}\,dx=\int \frac{e^{-x}}{1+e^{-x}}\,dx$$
Use ##e^{-x}=u## to get:
$$\int \frac{-du}{1+u}\,du=-\ln|1+u|+C=-\ln|1+e^{-x}|+C$$
 
Last edited:
Or another: $$\int \frac{1}{1+e^x}\,\text{d}x = \int \frac{1+e^x}{1+e^x}\,\text{d}x - \int \frac{e^x}{1+e^x}\,\text{d}x$$The second integral on the right can be evaluated by a simple substitution.
 
Tanya Sharma said:
or, to be more precise f(x) happens to be of the form ax+b ,where a and b are constants.
No, that wouldn't work.
$$\int \frac{dx}{ax + b} = \frac 1 a ln|ax + b| + C$$
So ∫dx/f(x) ≠ ln|f(x)| + C. There's that pesky factor of 1/a.
 
Pranav-Arora said:
Use ##e^{-x}=u## to get:
$$\int \frac{-du}{1+u}\,du=-\ln|1+u|+C=-\ln|1+e^{-x}|+C$$

How was she able to ln the instead like that? I thought there was a factor of \frac{1}{a} to deal with?
 
  • #10
physics604 said:
How was she able to ln the ____ instead like that? I thought there was a factor of \frac{1}{a} to deal with?

... ln the WHAT instead ...


What part of Pranav-Arora's post don't you get?
 
  • #11
Mark44 said:
$$\int \frac{dx}{ax + b} = \frac 1 a ln|ax + b| + C$$
So ∫dx/f(x) ≠ ln|f(x)| + C. There's that pesky factor of 1/a.

I'm assuming they did something like this?

$$\int \frac{-du}{u+1} = -\frac{1}{1}\ln {|u+1|} +C$$
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
5
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
11K
  • · Replies 3 ·
Replies
3
Views
3K