(AI3) Trigonometric Integrals (Powers of Secant and Tangent)#

In this lesson we are going to see how to calculate integrals of the form:

tanmxsecnxdx

Videos#

Substitution Rule#

Our main strategy is going to be a u-substitution with either u=secx or u=tanx. Which one we choose, ultimately comes down to the differentials.

secant
u=secxdu=secxtanxdx
tangent
u=tanxdu=sec2xdx

In order to make the differentials match with what’s actually in our integral, we start with the function we’re integrating and factor off either a (secxtanx) term or a (sec2x) term and put it next to the dx.

In order to convert between powers of secx and powers of tanx we use the following identity:

Trigonometric Identity

sec2θ=1+tan2θ

Example 1#

Integrate the following:

tan6xsec4xdx
Solution (Click to see the steps.)

Separate: We start by separating off a (sec2x) term to get:

tan6xsec4xdx=tan6xsec2x(sec2x)dx

Convert: Since we factored off a (sec2x) term, this means we need to convert all remaining trig functions into powers of tanx.

=tan6xsec2x(sec2x)dx=tan6x(1+tan2x)(sec2x)dx

This is where we use the trig identity: sec2θ=1+tan2θ

Choose u: Now we’re ready for a u-substitution. Since we factored off a (sec2x) term, we choose:

u=tanx

and then we calculate du to get:

du=sec2xdx

And then substituting our u and du into the integral gives us:

=tan6x(1+tan2x)(sec2x)dx=u6(1+u2)du

Finish It! And finally we finish the integration. First multiply everything out so that we have only power functions to integrate.

=u6(1+u2)du=(u6+u8)du=17u7+19u9+C

And then convert back to x to get our answer:

=17tan7x+19tan9x+C

(Don’t forget +C for indefinite integrals!)


Example 2#

Integrate the following:

tan5xsec7xdx
Solution (Click to see the steps.)

Separate: We start by separating off a (secxtanx) term to get:

tan5xsec7xdx=tan4xsec6x(secxtanx)dx

Convert: Since we factored off a (secxtanx) term, this means we need to convert all remaining trig functions into powers of secx.

=tan4xsec6x(secxtanx)dx=tan2xtan2xsec6x(secxtanx)dx=(sec2x1)(sec2x1)sec6x(secxtanx)dx

This is where we use the trig identity: sec2θ=1+tan2θ

Choose u: Now we’re ready for a u-substitution. Since we factored off a (secxtanx) term, we choose:

u=secx

and then we calculate du to get:

du=secxtanxdx

And then substituting our u and du into the integral gives us:

=(sec2x1)(sec2x1)sec6x(secxtanx)dx=(u21)(u21)u6du

Finish It! And finally we finish the integration. First multiply everything out so that we have power functions to integrate.

=(u21)(u21)u6du=(u42u2+1)u6du=(u102u8+u6)du=111u1129u9+17u7+C

And then finally we convert back to x to get our answer:

=111sec11x29sec9x+17sec7x+C

(Don’t forget +C for indefinite integrals!)

Get Creative#

Unfortunately, the substitution strategy used in the first two examples doesn’t always work. If this happens we have a few more things to try:

  1. Use Trig Identities: Keep trying to use our main identity sec2θ=1+tan2θ, you might still get something useful.

  2. Convert to sine and cosine: We have techniques for integrating powers of sinx and cosx which might be helpful.

  3. Integration by parts: This can be a helpful way to move exponents between trig functions. Maybe try making the dv term either sec2x or secxtanx.

A lot of times, success with the above methods comes down to also knowing:

Helpful Antiderivatives

tanxdx=ln|secx|+Csecxdx=ln|secx+tanx|+C

Example 3#

Integrate the following:

tan3xdx
Solution 1 (Trig identities)

Separate: We are still going to try using our trig identity: sec2x=1+tan2x. Since this has a tan2x term, let’s start by breaking our function up:

tan3xdx=tanxtan2xdx

Trig Identity: Now we can apply the trig identity sec2x=1+tan2x to get:

tanxtan2xdx=tanx(sec2x1)dx=(tanxsec2xtanx)dx

And we also multiply everything out.

Now it comes down to 2 integrals:

Finish It! And finally we put it all together and get:

=(tanxsec2xtanx)dx=tanxsec2xdxtanxdx=12tan2xln|secx|+C

(Don’t forget +C for indefinite integrals!)

Solution 2 (Convert to sine and cosine)

Convert: We are going to start by converting everything into sine and cosine terms:

tan3xdx=sin3xcos3xdx

Powers of Sine: Since we have an odd power of sine in the numerator, we can separate off one sinx and put it next to the dx

sin3xcos3xdx=sin2xcos3xsinxdx

Putting a sinx next to dx tells us we are going to use the opposite function cosx as our u-sub. So let’s convert everything else remaining in our integral to cosine:

=1cos2xcos3xsinxdx

Here we use our standard trig identity: sin2θ+cos2θ=1

Substitution: Now we can do our u-substitution:

u=cosxdu=sinxdx(1)du=sinxdx

And plugging all of this into our integral gives us:

=1cos2xcos3xsinxdx=1u2u3(1)du=u21u3du

Finish It! And finally if we do the division we can finish the integration:

=u21u3du=1u1u3du=ln|u|+12u2+C

And converting back to our original variable:

=ln|cosx|+12cos2x+C

(Don’t forget +C for indefinite integrals!)

Example 4#

Integrate the following:

sec3xdx
Solution (Using Integration By Parts and Trig Identities)

Separate: We start by separating off a (sec2x) term to get:

sec3xdx=secxsec2xdx

Now we can choose u and dv:

u
u=secxdu=secxtanxdx
dv
dv=sec2xdxv=tanx

The reason why we factored off a sec2x term and chose that for dv is because it is easy to integrate (its one of our elementary antiderivatives).

Applying the integration by parts formula gives us:

=secxtanxsecxtan2xdx

Trig Identity: The resulting integral from the integration by parts is still tricky, so we try using a trig identity:

=secxtanxsecxtan2xdx=secxtanxsecx(sec2x1)dx=secxtanxsec3xsecxdx

And now it seems like we might be back where we started, so let’s formally state what we have so far:

sec3xdx=secxtanxsec3xdx+secxdx

Unknown Integral: If we look at this resulting equation we see that our unknown integral shows up on both sides.

sec3xdx=secxtanxsec3xdx+secxdx

So let’s actually solve for it! And to help picture some of the algebra we’ll rename our unknown integral:

Y=sec3xdx

Giving us the (shortened) equation:

Y=secxtanxY+secxdx

Now we just need to solve for Y. Add Y to both sides to get:

2Y=secxtanx+secxdx

And then divide both sides by 2:

Y=12secxtanx+12secxdx

And there we go!

sec3xdx=12secxtanx+12secxdx

Finish It! And finally we can finish the remaining integral with the use of some helpful antiderivatives:

sec3xdx=12secxtanx+12secxdx=12secxtanx+12ln|secx+tanx|+C

(Don’t forget +C for indefinite integrals!)

Helpful Antiderivatives

tanxdx=ln|secx|+Csecxdx=ln|secx+tanx|+C