Trigonometric Integrals

Trigonometric Integrals
When integrating complex trigonometric functions, we often need to use a combination of substitutions and trig identities.
Case 1: ∫sinmxcosnx dx
- Power of sinx is odd
- Keep a copy of sinx and convert the rest to cosx using sin2x=1−cos2x
- Formula: ∫cosnx(1−cos2x)ksinx dx
- Do a U-substitution with u=cosx
- Power of cosx is odd
- Keep a copy of cosx and convert the rest to sinx using cos2x=1−sin2x
- Formula: ∫sinmx(1−sin2x)kcosx dx
- Do a U-substitution with u=sinx
- Both powers of sinx and cosx are even
- Convert everything into sin(...x) or cos(...x) using double and half angle formulas:
- sin2x=21−cos2x
- cos2x=21+cos2x
- sinxcosx=2sin2x
Case 2: ∫tanmxsecnx dx
- Power of secx is even
- Keep a copy of sec2x and convert the rest to tanx using sec2x=1+tan2x
- Formula: ∫tanmx(1+tan2x)ksec2x dx
- Do a U-substitution with u=tanx
- Power of tanx is odd
- Keep a copy of secx tanx and convert the rest to secx using tan2x=sec2x−1
- Formula: ∫secn−1x(sec2x−1)ksecxtanx dx
- Do a U-substitution with u=secx
Case 3: ∫cotmxcscnx dx
- Power of cscx is even
- Keep a copy of csc2x and convert the rest to cotx using csc2x=1+cot2x
- Formula: ∫cotmx(1+cot2x)kcsc2x dx
- Do a U-substitution with u=cotx
- Power of cotx is odd
- Keep a copy of cscx cotx and convert the rest to cscx using cot2x=csc2x−1
- Formula: ∫cscn−1x(csc2x−1)kcscxcotx dx
- Do a U-substitution with u=cscx
Case 4: ∫sin(mx) cos(nx) dx ,∫sin(mx) sin(nx) dx,∫cos(mx) cos(nx) dx
Use the identities
- sinA cosB=21[sin(A−B)+sin(A+B)]
- sinA sinB=21[cos(A−B)−cos(A+B)]
- cosA cosB=21[cos(A−B)+cos(A+B)]

Example: Trig Integrals (Case 1)
Evaluate the following indefinite integral
∫sin4xcos3x dx
Keep one copy of cos and convert the rest to sin
=∫sin4x(cos2x) (cosx) dx
=∫sin4x(1−sin2x)(cosx) dx
We need to do a U-substitution:
Let u=sinx, then du=cosx dx, and dx=cosx1du
The new integral becomes:
=∫u4(1−u2)(cosx)(cosx1 du)
=∫u4(1−u2) du
=∫(u4−u6)du
=5u5−7u7+C
=5sin5x−7sin7x+C

Example: Trig Integrals (Case 1)
Evaluate the following indefinite integral
∫sin2xcos2x dx
Let's convert everything into cos x using the half-angle formulas:
=∫[21−cos(2x)][21+cos(2x)] dx
=∫221−cos2(2x) dx
=∫(41−4cos2(2x)) dx
=∫41 dx − 41∫cos2(2x) dx
Using the half-angle formula again for cos:
=∫41 dx − 41∫21+cos(4x) dx
=∫41 dx − 81∫(1+cos(4x)) dx
=41x − 81x − 32sin(4x)+C
=8x − 32sin(4x)+C

Example: Trig Integrals (Case 2)
Evaluate the following indefinite integral
∫sec8xtan6x dx
Keep a copy of sec2x and convert the rest to tanx:
=∫(sec2x)(sec6x)tan6x dx
=∫(sec2x)(sec2x)3tan6x dx
=∫(sec2x)(1+tan2x)3tan6x dx
We need to do a U-substitution:
Let u=tanx, then du=sec2x dx and dx=sec2x1du
The new integral becomes:
=∫(sec2x)(1+u2)3(u6)(sec2x1du)
=∫(1+u2)3 (u6) du
=∫(u6+3u4+3u2+1) u6 du
=∫(u12+3u10+3u8+u6) du
=13u13+113u11+93u9+7u7+C
=13tan13x+113tan11x+3tan9x+7tan7x+C

Example: Trig Integrals (Case 4)
Evaluate the following indefinite integral
∫sin(3x)sin(2x) dx
Using the appropriate identity:
∫sin(3x)sin(2x) dx
=∫21[cos(3x−2x)−cos(3x+2x)] dx
=21∫[cosx−cos5x] dx
=21[sinx−5sinx]+C
=2sinx−10sin5x+C

Example: Trig Integrals
Evaluate the following indefinite integral
∫secx dx
=∫(secx ⋅ secx+tanxsecx+tanx)dx
=∫(secx+tanxsec2x+secx tanx)dx
We'll do a U-substitution:
Let u=secx+tanx, then du=(secx tanx+sec2x)dx, and dx=secx tanx+sec2x1du
The new integral becomes:
=∫(usec2x+secx tanx)(secx tanx+sec2x1du)
=∫u1 du
=ln∣u∣+C
=ln∣secx+tanx∣+C
Practice: Trig Integrals
Evaluate the following indefinite integral
∫sin7x dx
Practice: Trig Integrals
Evaluate the following indefinite integral
∫sec6x dx
Practice: Trig Integrals
Evaluate the following indefinite integral
∫sin(15x)cos(4x) dx