The integral \(\int e^x\left(1+\displaystyle\frac{1}{x}+\log x\right)dx\) is equal to :
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(e^x(1+\log x)+C\)
The integral has the form \(\int e^x\left(f(x)+f'(x)\right)dx=e^xf(x)+C\).
Take
\(f(x)=1+\log x\)
\( \displaystyle f'(x)=\frac{1}{x} \)
Then \(f(x)+f'(x)=1+\frac{1}{x}+\log x\), which is exactly the bracket. Hence
\( \displaystyle \int e^x\left(1+\frac{1}{x}+\log x\right)dx=e^x(1+\log x)+C \)