Concept:The given integral can be solved using the standard formula
∫ex[f(x)+f′(x)]dx=exf(x)+C, where the integrand must be expressed in the form
ex times a function plus its derivative.
Explanation:We start with
I=∫ex1+cosx1+sinxdx.Use the half‑angle identities:
1+cosx=2cos22x and
sinx=2sin2xcos2x.
Substitute these into the integrand:
I=∫ex2cos22x1+2sin2xcos2xdx.Split the fraction into two terms:
I=∫ex[2cos22x1+2cos22x2sin2xcos2x]dx.Simplify each term. Note
cos2θ1=sec2θ, so the first term becomes
21sec22x. The second term simplifies to
cos2xsin2x=tan2x.
Thus,
I=∫ex[21sec22x+tan2x]dx.Now compare with the standard form
∫ex[f(x)+f′(x)]dx. Choose
f(x)=tan2x. Its derivative is
f′(x)=21sec22x. Indeed, the integrand is exactly
ex[f(x)+f′(x)]. Therefore,
I=exf(x)+C=extan2x+C.Answer:The correct option is B:
extan2x+c.