Solveeit Logo

Question

Question: What is the value of the integral \(\int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx...

What is the value of the integral 2(ex+ex)2dx\int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx ?
(A) (exex+ex)+c - \left( {\dfrac{{{e^{ - x}}}}{{{e^x} + {e^{ - x}}}}} \right) + c
(B) (e2x+1)+c - \left( {{e^{2x}} + 1} \right) + c
(C) (1ex+1)2+c{\left( {\dfrac{1}{{{e^x} + 1}}} \right)^2} + c
(D) (1ex+ex)2+c{\left( {\dfrac{1}{{{e^x} + {e^{ - x}}}}} \right)^2} + c

Explanation

Solution

The given question requires us to integrate a function of x with respect to x. We evaluate the given integral using the substitution method. We substitute the exponential function as t and then follow the substitution method of integration. After getting the answer in the terms of t, we substitute back t in terms of x.

Complete step by step answer:
The given question requires us to find the value of the indefinite integral 2(ex+ex)2dx\int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx.
So, we have, 2(ex+ex)2dx\int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx
But, it is very difficult to integrate the function directly. So, we can assign a new variable to the exponential function ex{e^x}.
So, let t=ex(1)t = {e^x} - - - - - \left( 1 \right).
Then, differentiating both sides of the equation, we get,
dt=exdx(2)\Rightarrow dt = {e^x}dx - - - - - \left( 2 \right)
So, the integral 2(ex+ex)2dx\int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx can be simplified by substituting the value of (dx)\left( {dx} \right) in terms of (dt)\left( {dt} \right) as obtained above. So, we get,
2(ex+ex)2dx=2(ex+ex)2(dtex)\int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} \left( {\dfrac{{dt}}{{{e^x}}}} \right)
Substituting ex{e^x} as t, we get,
2(ex+ex)2dx=2(t+1t)2(dtt)\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {\dfrac{2}{{{{\left( {t + \dfrac{1}{t}} \right)}^2}}}} \left( {\dfrac{{dt}}{t}} \right)
Evaluating the whole square using the algebraic identity (a+b)2=a2+2ab+b2{\left( {a + b} \right)^2} = {a^2} + 2ab + {b^2}. So, we have,
2(ex+ex)2dx=2(t2+1t2+2)(dtt)\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {\dfrac{2}{{\left( {{t^2} + \dfrac{1}{{{t^2}}} + 2} \right)}}} \left( {\dfrac{{dt}}{t}} \right)
Opening the brackets, we get,
2(ex+ex)2dx=2dt(t3+1t+2t)\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {\dfrac{{2dt}}{{\left( {{t^3} + \dfrac{1}{t} + 2t} \right)}}}
Taking LCM in the numerator, we get,
2(ex+ex)2dx=2dt(t4+1+2t2t)\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {\dfrac{{2dt}}{{\left( {\dfrac{{{t^4} + 1 + 2{t^2}}}{t}} \right)}}}
2(ex+ex)2dx=2tdt(t4+1+2t2)\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {\dfrac{{2tdt}}{{\left( {{t^4} + 1 + 2{t^2}} \right)}}}
Now, condensing the denominator using algebraic identity (a+b)2=a2+2ab+b2{\left( {a + b} \right)^2} = {a^2} + 2ab + {b^2}, we get,
2(ex+ex)2dx=2tdt(t2+1)2\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {\dfrac{{2tdt}}{{{{\left( {{t^2} + 1} \right)}^2}}}}
Now, we again substitute u=(t2+1)u = \left( {{t^2} + 1} \right).
Differentiating both sides, we get,
du=2tdtdu = 2tdt
So, we get,
2(ex+ex)2dx=2tdt(t2+1)2=duu2\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {\dfrac{{2tdt}}{{{{\left( {{t^2} + 1} \right)}^2}}}} = \int {\dfrac{{du}}{{{u^2}}}}
Now, we know the power rule of integration as xndx=xn+1n+1+c\int {{x^n}dx} = \dfrac{{{x^{n + 1}}}}{{n + 1}} + c. So, we get,
2(ex+ex)2dx=u2du\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \int {{u^{ - 2}}du}
2(ex+ex)2dx=u2+12+1+c\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = \dfrac{{{u^{ - 2 + 1}}}}{{ - 2 + 1}} + c
Simplifying further, we get,
2(ex+ex)2dx=u+c\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = - u + c
Now, we have the final answer. We just need to substitute u in terms of t and then in terms of x.
So, we get,
2(ex+ex)2dx=(t2+1)+c\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = - \left( {{t^2} + 1} \right) + c
2(ex+ex)2dx=((ex)2+1)+c\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = - \left( {{{\left( {{e^x}} \right)}^2} + 1} \right) + c
Simplifying further, we get,
2(ex+ex)2dx=(e2x+1)+c\Rightarrow \int {\dfrac{2}{{{{\left( {{e^x} + {e^{ - x}}} \right)}^2}}}} dx = - \left( {{e^{2x}} + 1} \right) + c, where c is any arbitrary constant.

Therefore, option (B) is the correct answer.

Note:
The indefinite integrals of certain functions may have more than one answer in different forms. However, all these forms are correct and interchangeable into one another. Indefinite integral gives us the family of curves as we don’t know the exact value of the arbitrary constant. It is extremely important to substitute back the value of the assumed variable, once we have reached the final stage.