Question
Question: How do you integrate \[\left( {\dfrac{1}{{{e^x} + 1}}} \right)dx\]?...
How do you integrate (ex+11)dx?
Solution
We use the substitution of the exponential term and convert the complete equation in terms of the new variable. Then use integration by parts to solve for the value of integration.
Complete step-by-step answer:
We have to solve for the value of ∫(ex+11)dx … (1)
Let us substitute the value of ex=t
Then differentiating both sides of the equation we get
⇒exdx=dt
Shift all values except dx to right side of the equation
⇒dx=exdt
Put the value of ex=tin RHS of the equation
⇒dx=tdt … (2)
Now substitute the value of ex=t and the value of dx from equation (2) in equation (1)
⇒∫(ex+11)dx=∫t1(t+11)dt
Now we know the term that has to be integrated can be broken using by parts method.
We write the integrand as sum of two integrands and solve for their respective coefficients
⇒t1(t+11)=tA+t+1B … (3)
Take LCM on both sides of the equation
⇒t(t+1)1=t(t+1)A(t+1)+Bt
Cancel same denominators from both sides of the equation
⇒1=A(t+1)+Bt
Now when we put the value of t=−1we get
⇒1=A(−1+1)+B(−1)
⇒1=A×(0)+B(−1)
⇒1=B(−1)
Multiply both sides by -1
⇒−1=B … (4)
Now when we put the value of t=0we get
⇒1=A(0+1)+B(0)
⇒1=A×(1)
⇒1=A … (5)
Substitute the values of A and B in equation (3)
⇒t1(t+11)=t1+t+1−1
⇒t1(t+11)=t1−t+11
Then the integration becomes ∫t1(t+11)dt=∫t1dt−∫t+11dt
Since we know ∫x1dx=logx+C, we can write the integration as
⇒∫t1dt−∫t+11dt=logt−log(1+t)+C
We know property of log that logm−logn=lognm
⇒∫t1dt−∫t+11dt=log1+tt+C
Substitute the value of ex=t
⇒∫t1dt−∫t+11dt=log1+exex+C
∴Integration of (ex+11)dx is log1+exex+C
Note:
Many students make the mistake of cancelling the log function from the exponential function in the last step which is wrong as the log function is applied on the complete fraction, so to open it we will have to open the fraction first and then cancel it which is of no use.