Question
Question: Find the value of \[\int {{e^x}\left[ {\log \cosh x - {{\operatorname{sech} }^2}x} \right]dx} \]. ...
Find the value of ∫ex[logcoshx−sech2x]dx.
A) ex(logcoshx−tanhx)+c
B) exlogcoshx+c
C) −extanhx+c
D) ex(logcoshx+tanhx)+c
Solution
Here, we will first apply integration by parts ∫fg′=fg−∫f′g for ∫(exlogcoshx)dx of the above equation, where f=lncoshx and g′=ex and apply integration by parts ∫fg′=fg−∫f′g for ∫(exsech2x)dx of the above equation, where f=ex and g′=sech2x. Then we subtract them to find the required value.
Complete step by step solution:
We are given that
∫ex[logcoshx−sech2x]dx
Rewriting the above equation, we get
⇒∫(exlogcoshx−exsech2x)dx
Applying linearity in the above equation, we get
⇒∫exlogcoshxdx−∫exsech2xdx
Within the above difference, applying integration by parts ∫fg′=fg−∫f′g for ∫(exlogcoshx)dx of the above equation, where f=lncoshx and g′=ex, we get
⇒∫exlncoshxdx=exlncoshx−∫extanhxdx ......eq.(1)
Within the above difference, applying integration by parts ∫fg′=fg−∫f′g for ∫(exsech2x)dx of the above equation, where f=ex and g′=sech2x, we get
⇒∫exsech2xdx=extanhx−∫extanhxdx ......eq.(2)
Subtracting the equation (2) from the equation (1), we get
Hence, option A is correct.
Note:
We need to know that while finding the value of indefinite integral, we have to add the constant in the final answer or else the answer will be incomplete. We have to be really thorough with the integrations and differentiation of the functions. The key point in this question is to use the integration by parts ∫fg′=fg−∫f′g to solve this problem. Do not forget that many integrals can be evaluated in multiple ways and so more than one technique may be used on it, but this problem can only be solved by parts.