Integration using substitution

In summary, Pranav-Arora substituted u = 1+e^x for u in the equation for the derivative and got an incorrect answer.
  • #1
physics604
92
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
  • #2
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 .
 
  • #3
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.
 
  • #4
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:
  • #5
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.
 
  • #6
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:
  • #7
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.
 
  • #8
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.
 
  • #9
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 [itex]\frac{1}{a}[/itex] to deal with?
 
  • #10
physics604 said:
How was she able to ln the ____ instead like that? I thought there was a factor of [itex]\frac{1}{a}[/itex] 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$$
 

Related to Integration using substitution

1. What is integration using substitution?

Integration using substitution is a technique used in calculus to solve integrals by substituting a variable with a new variable in order to simplify the integrand.

2. Why is integration using substitution useful?

Integration using substitution is useful because it allows us to solve integrals that would be difficult or impossible to solve using other integration techniques.

3. How do you choose the substitution variable?

The substitution variable is typically chosen based on the integrand, with the goal of making the new integrand simpler or easier to integrate. Common substitution variables include u, x, and t.

4. What are the steps for integration using substitution?

The steps for integration using substitution are: 1) Identify a suitable substitution variable, 2) Rewrite the integrand in terms of the new variable, 3) Find the differential of the new variable, 4) Substitute the new variable and its differential into the integral, 5) Evaluate the integral using basic integration rules, and 6) Substitute the original variable back into the solution.

5. Are there any common mistakes to avoid when using integration using substitution?

Some common mistakes to avoid when using integration using substitution include: 1) Choosing an incorrect substitution variable, 2) Not properly rewriting the integrand in terms of the new variable, and 3) Forgetting to substitute the original variable back into the solution at the end.

Similar threads

  • Calculus and Beyond Homework Help
Replies
4
Views
767
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
650
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
398
  • Calculus and Beyond Homework Help
Replies
14
Views
308
  • Calculus and Beyond Homework Help
Replies
1
Views
745
  • Calculus and Beyond Homework Help
Replies
3
Views
611
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
782
Back
Top