The value of the integral \(\int e^x\left(\log x+\displaystyle\frac{1}{x}\right)dx\) is:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(e^x\log x+C\), where C is a constant.
The integrand has the form \(e^x\left[f(x) + f'(x)\right]\), and
\(\int e^x\left[f(x) + f'(x)\right]dx = e^x f(x) + C\)
This follows from the product rule, since \(\frac{d}{dx}\left[e^x f(x)\right] = e^x f(x) + e^x f'(x)\).
Here
\(f(x) = \log x\)
\( \displaystyle f'(x) = \frac{1}{x} \)
So
\( \displaystyle \int e^x\left(\log x+\frac{1}{x}\right)dx = e^x\log x + C \)