Step 1: Understanding the Concept:
The integrand has the form \(e^{f(x)} \cdot f'(x)\) once we notice that the derivative of \(\tan x\) is \(\sec^2 x = \frac{1}{\cos^2 x}\).
This is a standard case for the substitution method.
Step 2: Key Formula or Approach:
Put \(t = \tan x\). Then \(dt = \sec^2 x \, dx = \frac{dx}{\cos^2 x}\).
Change the limits too: when \(x = 0\), \(t = \tan 0 = 0\). When \(x = \frac{\pi}{4}\), \(t = \tan\frac{\pi}{4} = 1\).
Step 3: Detailed Explanation:
The integral becomes much simpler in terms of \(t\):
\[ \int_0^{\pi/4} \frac{e^{\tan x}}{\cos^2 x}\,dx = \int_0^1 e^{t}\,dt \]
The antiderivative of \(e^t\) is \(e^t\), so
\[ \int_0^1 e^t\,dt = \left[ e^t \right]_0^1 = e^1 - e^0 = e - 1 \]
Step 4: Why the other options are wrong:
Option (2), \(e+1\), comes from adding \(e^0 = 1\) instead of subtracting it at the lower limit.
Options (3) and (4) contain \(\frac{1}{e}\). That would come from evaluating \(e^{-1}\), but \(t\) goes from 0 to 1, never to \(-1\).
Also \(e - 1 \approx 1.718 > 0\) as it must be, because the integrand is positive. Option (4) is negative, so it is impossible.
Final Answer:
The value of the integral is \(e - 1\), which is option (1).
\[ \boxed{e-1} \]