Trigonometric Integrals
In this section, we'll revisit u-substitution, but specifically for trigonometric functions.
Specifically, we'll solve problems of the form
∫sinmx cosnx dx
and
∫secmx tannx dx.
To do all the examples in this section, we'll need to review some trig identities, as well as trig derivatives, but before we do, we'll start with a few simple examples.
Evaluate ∫sin2x cosx dx.
Solution
If we let u=sinx, then du=cosx dx, so
∫sin2x cosx dx=∫u2 du=31u3+C=31sin3x+C
Evaluate ∫cos4xsinx dx.
Solution
This time, let u=cosx so that du=−sinx dx, or −du=sinx dx.
Then
∫cos4xsinx dx=∫−u41 du=∫−u−4 du=31u−3+C=3cos3x1+C
Evaluate ∫tanx dx.
Solution
Once we rewrite tanx as cosxsinx, this problem looks a lot like the previous one.
We can let u=cosx again, so that −du=sinx dx:
∫tanx dx=∫cosxsinx dx=∫−u1 du=−lnu+C=−ln∣cosx∣+C
Before we do more examples, let's review a few trigonometric identities.
Reviewing Identities
The most important trigonometric identity of all is
sin2x+cos2x=1
Dividing that identity by cos2x gives another variation:
tan2x+1=sec2x
Besides that, we need the half-angle identities:
sin2xcos2x=21−21cos(2x)=21+21cos(2x)
Finally, recall the following derivatives:
dxd[secx]dxd[tanx]=secxtanx=sec2x
∫sinmx cosnx dx
In this form, u will either be the sine or cosine function; we just need to figure out which one.
Take a look at the first examples we did: we want du to be the one that appears once.
For instance, to evaluate
∫sin2x cosx dx
we would want cosx to be du, so we'd let u=sinx.
On the other hand, to evaluate
∫sinx cos2x dx
we would let u=cosx so that du would involve sinx.
What about
∫sin3x cos2x dx?
If u=sinx and du=cosx dx, there would be a leftover cosx after substituting, which is a problem. On the other hand, if u=cosx and −du=sinx dx, after substituting we'd have
∫−sin2x u2 du
We can deal with this leftover sin2x by using the identity
sin2x+cos2x=1
∫−(1−cos2x)u2 du=∫−(1−u2)u2 du
Finally, we can integrate this:
∫−u2+u4 du=−31u3+51u5+C=−31cos3x+51cos5x+C
Evaluate ∫sin2x cos3x dx.
Solution
Following what we just saw, we want to split off a single cosx - that'll serve as du eventually, and the leftover cos2x can be replaced with 1−sin2x.
∫sin2x cos3x dx=∫sin2x cos2x cosx dx=∫sin2x (1−sin2x) cosx dx
Now let u=sinx so that du=cosx dx.
∫sin2x (1−sin2x) cosx dx=∫u2(1−u2) du=∫u2−u4 du=31u3−51u5+C=31sin3x−51sin5x+C
Evaluate ∫sin3x dx.
Solution
This time, split off a sinx; the remaining sin2x can be rewritten in terms of cosx and we'll make u=cosx.
∫sin3x dx=∫sin2x sinx dx=∫(1−cos2x) sinx dx=∫−(1−u2) du=∫−1+u2 du=−u+31u3+C=−cosx+31cos3x+C
Conclusion: how to integrate ∫sinmx cosnx dx
- If one of the powers (m or n) is odd:
- Split off one copy of that function (sin or cos)
- Use sin2x+cos2x=1 to rewrite everything else in terms of the other function
- Use u-substitution to integrate (the one you split off will be part of du)
- If both powers are even
- Use half-angle identities to rewrite everything in terms of cos(2x)
- Use u-substitution to integrate, with u=2x
Even Powers
Evaluate ∫cos2x dx.
Solution
This one only has an even power, so we need to use a half-angle identity. Remember that
cos2x=21+21cos(2x),
so we can rewrite the integral as
∫21+21cos(2x) dx.
The first part we can deal with directly, and for the second part, we can use u-substitution, with u=2x. Since
∫cos(2x) dx=21sin(2x),
we can get the final answer:
∫cos2x dx=∫21+21cos(2x) dx=21x+41sin(2x)+C
∫sin3x cos2x dx
Let u=cosx⟶−du=sinx dx
∫sin3x cos2x dx=∫sin2x cos2x sinx dx=∫(1−cos2x) cos2x sinx dx=∫−(1−u2)u2 du=∫−u2+u4 du=−31u3+51u5+C=−31cos3x+51cos5x+C
∫cos5(πx) dx
Let u=sin(πx)⟶π1du=cos(πx) dx
∫cos5(πx) dx=∫cos2(πx) cos2(πx) cos(πx) dx=∫(1−sin2(πx))(1−sin2(πx)) cos(πx) dx=∫π1(1−u2)(1−u2) du=∫pi1−π2u2+π1u4 du=π1u−3π2u3+5π1u5+C=π1sin(πx)−3π2sin3(πx)+5π1sin5(πx)+C
∫sin2x cos2x dx
∫sin2x cos2x dx=∫(21−21cos(2x))(21+21cos(2x)) dx=∫41−41cos2(2x) dx=∫41−41(21+21cos(4x)) dx=∫81−81cos(4x) dx=81x−321sin(4x)+C
∫sin2(2θ) dθ
∫sin2(2θ) dθ=∫21−21cos(4θ) dθ=21θ−81sin(4θ)+C
∫tanmx secnx dx
These examples will work similarly. Just like sine and cosine are a matched pair of derivatives, secant and tangent match each other's derivatives:
dxd[secx]dxd[tanx]=secx tanx=sec2x
We're either going to make u=secx, in which case du=secx tanx dx, or we'll make u=tanx, so that du=sec2x.
Thus, we'll either split off secx tanx or sec2x to serve as du, then rewrite the rest of the integral in terms of the appropriate function.
This boils down to the following:
Conclusion: how to integrate ∫tanmx secnx dx
Evaluate ∫tan6x sec4x dx.
Solution
The power of secant is even, so let u=tanx⟶du=sec2x dx.
∫tan6x sec4x dx=∫tan6x sec2x sec2x dx=∫tan6x (1+tan2x) sec2x dx=∫u6(1+u2) du=∫u6+u8 du=71u7+91u9+C=71tan7x+91tan9x+C
Evaluate ∫sec2x tanx dx.
This one has both an even power of secant and an odd power of tangent, so we can actually solve it either way.
Solution 1
Let u=tanx, so du=sec2x dx.
∫sec2x tanx dx=∫u du=21u2+C=21tan2x+C
Solution 2
Let u=secx, so du=secx tanx dx.
∫sec2x tanx dx=∫u du=21u2+C=21sec2x+C
That's odd: we got two different answers, but if we did everything correctly, both solutions should end up with the same answer. So what's the deal?
Remember, based on the identity
1+tan2x=sec2x
the only difference between tan2x and sec2x is a constant. The arbitrary constants in the answers absorb that difference.
∫tan5x sec7x dx
Let u=secx⟶du=secx tanx dx
∫tan5x sec7x dx=∫tan4x sec6x secx tanx dx=∫(sec2x−1)2 sec6x secx tanx dx=∫(u2−1)2u6 du=∫u10−2u8+u6 du=111u11−92u9+71u7+C=111sec11x−92sec9x+71sec7x+C
∫tan5x sec4x dx
Let u=tanx⟶du=sec2x dx
∫tan5x sec4x dx=∫tan5x sec2x sec2x dx=∫tan5x (tan2x+1) sec2x dx=∫u5(u2+1) du=∫u7+u5 du=81u8+61u6+C=81tan8x+61tan6x+C
∫sec6t dt
Let u=tant⟶du=sec2t dt
∫sec6t dt=∫sec4t sec2t dt=∫(tan2t+1)2 sec2t dt=∫(u2+1)2 du=∫u4+2u2+1 du=51u5+32u3+u+C=51tan5t+32tan3t+tant+C