Question
Question: How do you find \[\int{\dfrac{{{e}^{-x}}}{{{e}^{x}}+1}dx}=\]?...
How do you find ∫ex+1e−xdx=?
Solution
This type of question is based on the concept of integration. First we have to simplify the given function by multiplying e−x in both the numerator and denominator. Then, use the power rule anam=an+m. Add and subtract e−xin the numerator of the function. Take e−x common from the first two terms of the numerator. Then, using the property ca+b=ca+cb, spilt the function into two parts and cancel the common terms. Integrate the functions separately and find the required answer.
Complete step by step solution:
According to the question, we are asked to find ∫ex+1e−xdx.
We have been given the function is ex+1e−x. --------(1)
Let us first multiply e−x in both the numerator and denominator.
⇒ex+1e−x=(ex+1)e−xe−x×e−x
Using distributive property (a+b)c=ac+bc in the numerator, we get
ex+1e−x=ex×e−x+e−xe−x×e−x
We know that anam=an+m. Let us use this property in the numerator and denominator.
⇒ex+1e−x=ex−x+e−xe−x−x
On further simplification, we get
ex+1e−x=e0+e−xe−2x
We know that any term power 0 is 1.
⇒ex+1e−x=1+e−xe−2x
Now, let is add and subtract e−x in the numerator. We get
⇒ex+1e−x=1+e−xe−2x+e−x−e−x
Take e−x from the first two terms of the numerator. We get
ex+1e−x=1+e−xe−x(e−x+1)−e−x
Let us now use the property ca+b=ca+cb to split the function into two parts.
Therefore, we get
ex+1e−x=1+e−xe−x(e−x+1)−1+e−xe−x
⇒ex+1e−x=1+e−xe−x(1+e−x)−1+e−xe−x
We find that 1+e−x is common in the first part of the RHS. On cancelling 1+e−x, we get
⇒ex+1e−x=e−x−1+e−xe−x
Now, let us integrate the functions in two parts.
∫ex+1e−xdx=∫[e−x−1+e−xe−x]dx
Using the subtraction rule of integration ∫(u−v)dx=∫udx−∫vdx, we get
∫ex+1e−xdx=∫e−xdx−∫1+e−xe−xdx ----------(2)
Let us first solve ∫e−xdx.
We know that ∫e−xdx=−e−x+c1. Therefore, we get
∫e−xdx=−e−x+c1
Now, consider ∫1+e−xe−xdx.
Let us assume u=1+e−x.
Differentiate u with respect to x.
dxdu=dxd(1+e−x)
⇒dxdu=dxd(1)+dxd(e−x)
We know that differentiation of a constant is zero. Therefore, we get
⇒dxdu=dxd(e−x)
We know that dxd(e−x)=−e−x.
Therefore, we get
dxdu=−e−x
∴du=−e−xdx
Substituting du in the numerator and u in the denominator, we get
∫1+e−xe−xdx=∫u−1du
We know that ∫x1dx=logx+c. Using this rule of integration, we get
∫u−1du=−logu+c2
But we know u=1+e−x. Therefore, we get
∫1+e−xe−xdx=−log(1+e−x)+c2
Substitute this value in the equation (2).
We get
∫ex+1e−xdx=−e−x+c1−[−log(1+e−x)+c2]
On taking out the constant, we get
⇒∫ex+1e−xdx=−e−x+c1+log(1+e−x)−c2
⇒∫ex+1e−xdx=−e−x+log(1+e−x)+c1−c2
Let us assume that c1−c2=c.
∴∫ex+1e−xdx=−e−x+log(1+e−x)+c -----------(3)
But we can write e−x=ex1.
Therefore, log(1+e−x)=log(1+ex1).
Let us take LCM. We het
log(1+e−x)=log(exex+1)
Substitute this value in the equation (3).
We get
∫ex+1e−xdx=−e−x+log(exex+1)+c
∴∫ex+1e−xdx=log(exex+1)−e−x+c
Hence, the integration of ex+1e−x with respect to x is log(exex+1)−e−x+c.
Note: Whenever we get this type of question, we have to simplify the given function to a simplified form for easy integration. We have to know that integration of x1 is logx. Avoid calculation mistakes based on sign convention. Also be thorough with the rules and properties of logarithm and exponential functions.