$\int e^x\left(1-\cot x+\cot ^2 x\right) d x=$
Answer & explanation
Correct answer: option 2
We have,
$I =\int e^x\left(1-\cot x+\cot ^2 x\right) d x=\int e^x\left(1+\cot ^2 x-\cot x\right) d x$
$\Rightarrow I =\int e^x\left(-\cot x+cosec^2 x\right) d x=-e^x \cot x+C$