\(\int_{0}^{\frac{\pi}{4}}\displaystyle e^x(\tan x+\sec^2 x)\,dx\)
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(e^{\frac{\pi}{4}}\)
The integrand has the form \(e^x\left(f(x) + f'(x)\right)\) with
\(f(x) = \tan x,\quad f'(x) = \sec^2 x\)
and the standard result \(\int e^x\left(f(x) + f'(x)\right)dx = e^x f(x) + C\) gives
\( \displaystyle \int_{0}^{\pi/4}e^x(\tan x+\sec^2 x)\,dx = \Big[e^x\tan x\Big]_{0}^{\pi/4} \)
\( \displaystyle = e^{\pi/4}\tan\frac{\pi}{4} - e^0\tan 0 \)
\(= e^{\pi/4}\cdot 1 - 0\)
\(= e^{\pi/4}\)