The value of the integral \(\int e^x\left(\displaystyle\frac{1}{x}-\frac{1}{x^2}\right)dx\) is :
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(\displaystyle\frac{e^x}{x}+C\), where C is a constant
The integrand has the standard form \(e^x\left(f(x) + f'(x)\right)\), and
\( \displaystyle \int e^x\left(f(x) + f'(x)\right)dx = e^x f(x) + C \)
because the derivative of \(e^x f(x)\) is \(e^x f(x) + e^x f'(x)\) by the product rule.
Here
\( \displaystyle f(x) = \frac{1}{x},\quad f'(x) = -\frac{1}{x^2} \)
So
\( \displaystyle \int e^x\left(\frac{1}{x}-\frac{1}{x^2}\right)dx = \frac{e^x}{x} + C \)
NCERT (2026-27 edition):
Integration by Parts

