Step 1: Understanding the Concept
Write the integrand as \(e^x(\sec x+\sec x\tan x)\).
Step 2: Identify f
Let \(f(x)=\sec x\), then \(f'(x)=\sec x\tan x\).
Step 3: Apply the rule
\(\int e^x[f(x)+f'(x)]dx=e^xf(x)+c\), so the integral is \(e^x\sec x+c\).
Final Answer:
The integral is e to the x times sec x plus c.
\[ \boxed{\text{(B) }e^{x}\sec x+c} \]