The key idea is to rewrite the integrand as ex times a sum of a function and its derivative, so that the integral simplifies via the formula ∫ex[f(x)+f′(x)]dx=exf(x)+C. The final result is extan2x+C.
Why This Approach Works
When you see an integral of the form ∫ex⋅(something)dx, your first instinct should be to check if that "something" can be expressed as f(x)+f′(x). Why? Because there's a beautiful shortcut:
∫ex[f(x)+f′(x)]dx=exf(x)+C
This is a direct consequence of the product rule: dxd[exf(x)]=exf(x)+exf′(x). So if your integrand matches that pattern, the answer is simply exf(x).
Our integrand is ex(1+cosx1+sinx). The challenge is to rewrite 1+cosx1+sinx as f(x)+f′(x) for some cleverly chosen f(x).
Step-by-Step Solution
1. Simplify the trigonometric fraction using half-angle identities.
Recall the standard half-angle formulas:
- 1+cosx=2cos22x
- sinx=2sin2xcos2x
- 1+sinx=(sin2x+cos2x)2 (this is less common but useful)
Let's verify that last one: (sin2x+cos2x)2=sin22x+cos22x+2sin2xcos2x=1+sinx. Perfect.
So:
1+cosx1+sinx=2cos22x(sin2x+cos2x)2
2. Split the square into two terms.
2cos22x(sin2x+cos2x)2=21(cos2xsin2x+cos2x)2=21(tan2x+1)2
Now expand:
21(tan22x+2tan2x+1)
3. Use the identity tan2θ=sec2θ−1 to simplify.
21[(sec22x−1)+2tan2x+1]=21(sec22x+2tan2x)
The −1 and +1 cancel neatly. So:
1+cosx1+sinx=21sec22x+tan2x
4. Spot the f(x)+f′(x) pattern.
Let f(x)=tan2x. Then: …