Question
Question: Find the value of \[\int {\dfrac{{dx}}{{{e^x} + {e^{ - x}}}}} \]....
Find the value of ∫ex+e−xdx.
Solution
We can rewrite the given expression by substituting e−x=ex1. Simplifying the expression, we can use the substitution method for integration. We can substitute a new variable for ex. Expressing all in terms of t, we get a new function. Then we can apply the derivative of tan−1x. Substituting back for t we get the answer.
Useful formula:
For any variable x we have, dxdex=ex
For any variable t we have,
dtd(tan−1t)=1+t21
∫t2+1dt=tan−1t+C, where C is the constant of integration.
Complete step-by-step answer:
Consider ex+e−x1
We know, e−x=ex1.
So we can write the expression as,
ex+e−x1=ex+ex11
Simplifying the expression we get,
ex+e−x1=exe2x+11
⇒ex+e−x1=e2x+1ex
Integrating both sides with respect to x we get,
∫ex+e−xdx=∫e2x+1exdx
We can integrate this using substitution method.
Here we can observe that e2x=(ex)2
Now put ex=t
Differentiating both sides we get,
exdx=dt, since derivative of ex is ex itself.
Also e2x=(ex)2=t2
This gives e2x+1exdx=t2+1dt
So we have,
∫ex+e−xdx=∫t2+1dt
We have dtd(tan−1t)=1+t21
We know that the derivative of a constant is always 0. So if there is a constant term added to tan−1t, the derivative will remain 0.
This gives ∫t2+1dt=tan−1t+C, where C is the constant of integration.
⇒∫ex+e−xdx=tan−1t+C, where C is the constant of integration
Substituting for t we get,
⇒∫ex+e−xdx=tan−1(ex)+C, where C is the constant of integration
∴ The answer is tan−1(ex)+C, where C is the constant of integration.
Note: We need to rewrite the equation so that we can apply the method of substitution. In the method of substitution, we have to express every term in the function in terms of the new variable used. It is important to add the constant of integration since the integral is indefinite.