Skip to main content

Section 5.1 Trigonometric Integrals

This weeks sections will complete the study of the techniques of integration. I’ll start with integrals involving trigonometric functions. The trigonometric integrals in the tables are limited to a small number of basic antiderivatives. In this section, I want to expand the repertoire for trigonometric integrals. (Though you don’t need to memorize, it is valuable to be familiar with which trig functions are already in the tables for antiderivatives. This can save you a bunch of work if you find a trig function which is on the table and you can simply look up the antiderivative.)

Subsection 5.1.1 Strategies for Products and Quotients

I will first consider integrands which are products of trigonometric functions, such as \(\sin^2 x \cos^3 x\) or \(\tan^4 x \sec^2 x\text{.}\) In particular, these types of integral are useful for the technique in Section 5.2.
When I have a product or quotient of trig functions, there are two main strategies I want to apply.
  1. Change everthing into sine and cosines, to hopefully use a substitution \(u = \sin x\) or \(u = \cos x\text{.}\)
  2. Use tangent, secant, cosecant and cotangent to write everything in the the numerator and see if a substitution involving trig functions other than sine or cosine is reasonable.
There is no guarantee (as always, with integrals) that either of these strategies will work. However, they are successful in many examples. Instead of further discussion the strategy in the abstract, I’ll move on to examples of both of these techniques. However, before the examples, I want to introduce another idea that can save a lot of calcultion.

Subsection 5.1.2 Symmetry and Definite Integrals

The basic trig functions oscillate up and down. When I integrate a trig function, I often will have area above and below the axis form this oscillation. Sometimes, if the trig functions have a particular form, the areas above and below will cancel off and the integral will be zero. If I am observant, I might be able to notice this fact before even starting a calculation. If I can notice this, I’ll say the integral is zero by symmetry. Consider this first example:
\begin{equation*} \int_0^{2\pi} \sin x dx \end{equation*}
This is an integral over a full period of the sine function. In a full period, there are equal pieces above and below the axis, therefore this integral is zero by symmetry. I don’t need to calculate it I just need to observe that it must be zero.
Integrals over one period are the most obvious case of this symmetry argument, but it applies more broadly. Consider this inetgral.
\begin{equation*} \int_{-\frac{\pi}{2}}^{\frac{\pi}{2}} \cos x dx \end{equation*}
This is an integral over half a period, so the full period argument doesn’t apply. However, on this half-period, cosine still is symmetric above and below the axis. On \(\left[ \frac{-\pi}{2}, 0 \right]\text{,}\) cosine is negative. On \(\left[0, \frac{\pi}{2} \right]\text{,}\) cosine is positive. These two shapes and areas are identical, so these two areas cancel out and the integral is zero.
If I take an odd power of a trig function, this argument still works.
\begin{equation*} \int_0^{2\pi} \sin^7 x dx \end{equation*}
This is an integral over a whole period. The positive and negative parts are still perfect mirrors of each other, so this integral is zero. Note, however, that this doesn’t work for even powers. If I integrate \(\sin^2 x\) over a whole period, I do not get zero. When I take an even power, the result is always positive; there are no pieces at all below thte axis to cancel off.
Finally, adjustments of period can come into play. Consider this integral.
\begin{equation*} \int_0^{\frac{2\pi}{3}} \sin (3x) dx \end{equation*}
In \(\sin (3x)\text{,}\) the period is one third of the original period. The bounds of this integral are likewise also one third of the conventional period. Therefore, this is also an integral over a whole period, so the positive and negative pieces of the integral cancel off and the integral must be zero.

Subsection 5.1.3 Examples

The goal of the first technique to change everything to sine or cosine is to use a substitution with either of those functions. If \(u = \sin x\) then \(du = \cos x dx\text{;}\) the sine substitution needs a cosine with the \(dx\) term. The same is true for the cosine substitution: it needs a sine with the \(dx\) term. Therefore, changing everything to sine or cosine is going to be successful if I can make everything into sine, leaving only \(\cos x dx\text{,}\) or vice versa, make everything into cosine leaving only \(\sin x dx\text{.}\) The definitions of the other four trig functions can be used to write everything in terms of sine and cosine. Then the square identity (\(\sin^2 x + \cos^2 x = 1\)) can be used to change any instance of \(\sin^2 x\) into \(1 - \cos^2 x\text{,}\) or vice versa. If these manipulations can be done to leave only one sine or only one cosine, then this strategy will be effective.

Example 5.1.1.

Here is an integral that is already setup for the sine/cosine strategy. Since there is only one sine function, it can act as the derivative of the \(u = \cos x\) substitution. I proceed with the substitution, after which I split this up into two integrals in \(u\text{,}\) integrate, and reverse the substitution.
\begin{align*} \int \frac{(1-\cos^4 x)}{\cos^2 x} \sin x dx \amp\\ u \amp = \cos x\\ du \amp = - \sin x dx\\ \int \frac{(1-\cos^4 x)}{\cos^2 x} \sin x dx \amp = - \int \frac{1-u^4}{u^2} du = -\int \frac{1}{u^2} du + \int u^2 du \\ \amp = \frac{1}{u} + \frac{u^3}{3} + c = \sec x + \frac{\cos^3 x}{3} + c \end{align*}

Example 5.1.2.

Here cosine shows up with an odd exponent. I want to use the square identity to change all but one power into sine. I can write \(\cos^5 x\) as \((\cos^4 x)(\cos x)\text{.}\) Then I can write \(\cos^4 x\) as \((\cos^2 x)^2\text{.}\) Finally, I can replace \(\cos^2 x\) with \((1-\sin^2 x)\text{.}\) After those replacements, I use do the substitution \(u = \sin x\text{,}\) do the polynomial integral, and then reverse the substitution at the end.
\begin{align*} \int \sin^2 x \cos^5 x dx \amp = \int \sin^2 x \cos^4 x \cos x dx\\ \amp = \sin^2 x (1-\sin^2 x)^2 \cos x dx\\ u \amp = \sin x\\ du \amp = \cos x dx\\ \amp = \int u^2 (1-u^2)^2 du = \int u^2 - 2u^4 + u^6 du\\ \amp = \frac{u^3}{3} - \frac{2u^5}{5} + \frac{u^7}{7} + c\\ \amp = \frac{\sin^3 x}{3} - \frac{2\sin^5 x}{5} + \frac{\sin^7 x}{7} + c \end{align*}
So far, I have been looking for situations where I could isolate sine or cosine and change everything into the other function. If sine and cosine show up both with even powers, then this is impossible to do with the square identity. However, if both show up with an even exponent, I can use the half-angle identities instead. The next example shows the use of these half-angle identities and the resulting (admittedly complicated) algebra to finish the integral.

Example 5.1.3.

Here, I have even powers of both sine and cosine. By writing \(\cos^4 t\) as \((\cos^2 t)^2\text{,}\) I can replace both \(\sin^2 t\) and \(\cos^2 t\) by their half-angle identities. After this substitution, I expand the various binomials and split up the resulting integral by linearity.
\begin{align*} \amp \int_0^\pi \sin^2 t \cos^4 t dt \\ \amp = \int_0^\pi \left( \frac{1-\cos (2t)}{2} \right) \left( \frac{1 + \cos (2t)}{2} \right)^2 dt\\ \amp = \frac{1}{8} \int_0^\pi (1-\cos (2t)) (1+ 2 \cos (2t) + \cos^2 (2t)) dt\\ \amp = \frac{1}{8} \left( \int_0^\pi dt + \int_0^\pi \cos (2t) dt - \int_0^\pi \cos^2 (2t) dt - \int_0^\pi \cos^3 (2t) dt \right) \end{align*}
The first and second of these integrals can be done directly. For the third, since it is an isolated even power, I can repeat the half-angle identity replacement. (Note that since this is already \(\cos (2t)\text{,}\) the half-angle will give \(\cos (4t)\text{.}\) The fourth integral is zero by symmetry. The period of \(\cos (2t)\) is \(\pi\) and the integral is over this whole period. Since this is an odd power of cosine, the positive and negative pieces still cancel out.
\begin{align*} \amp = \frac{1}{8} \left(\pi + \frac{\sin (2t)}{2} \Bigg|_0^\pi - \int_0^\pi \frac{1 + \cos (4t)}{2} dt - 0 \right)\\ \amp = \frac{1}{8} \left( \pi + 0 - \int_0^\pi \frac{1}{2} dt - \int_0^\pi \frac{\cos (4t)}{2}dt \right) \end{align*}
I’ve split the last integral up into two pieces by linearity. Both of these pieces are now reasonable integrals, so I can directly find antiderivatives, evaluate on the bounds, and finish the example.
\begin{align*} \amp = \frac{1}{8} \left( \pi - \frac{\pi}{2} - \frac{\sin 4t}{8} \Bigg|_0^\pi \right)\\ \amp = \frac{1}{8} \left( \pi - \frac{\pi}{2} - 0 - \right) = \frac{1}{8} \frac{\pi}{2} = \frac{\pi}{16} \end{align*}
The second strategy for trig integrals is to write everything as numerators and possibly use another substitution of a trig function. The next example makes use of the derivative patterns of tangent and secant and the identity \(1 + \tan^2 x = \sec^2 x\text{.}\) Specifically, with the derivative \(\frac{d}{dx} \tan x = \sec^2 x\text{,}\) if everything is expressed as tangent except a lone \(\sec^2 x\) term, then ths substitution \(u = \tan x\) should work nicely.

Example 5.1.4.

This example is already given entirely as tangents and secants, with everything in the numerator. The power of secant is even, so I can solve \(\sec^2 x\text{.}\) I can write the remaining \(\sec^2 x\) as \((1 + \tan^2 x)\text{.}\) Therefore, I’ll use the substitution \(u = \tan x\) with \(du = \sec^2 x dx\text{.}\) Since this is a definite integral, I can also change the bounds with the substitution: \(u(0) = 0\text{,}\) \(u\left(\frac{\pi}{3} \right) = \sqrt{3}\text{.}\) After the substitution, this is an integral of polynomial terms, which I can split up with linearity, use the power rule to find antiderivaitves, and evaluate on the bounds.
\begin{align*} \int_0^{\frac{\pi}{3}} \tan^5 x \sec^4 x dx \amp = \int_0^{\frac{\pi}{3}} \tan^5 x (1 + \tan^2 x) \sec^2 x dx\\ \amp = \int_0^{\sqrt{3}} u^5 (1+u^2) du = \int_0^{\sqrt{3}} u^5 + u^7 du = \frac{u^6}{6} + \frac{u^8}{8} \Bigg|_0^{\sqrt{3}} \\ \amp = \frac{3^3}{6} + \frac{3^4}{8} = \frac{4\cdot 3^3 + 3\cdot 3^4}{24} = \frac{108 + 243}{24} = \frac{351}{24} = \frac{117}{8} \end{align*}
I could have solved this integral using my first method as well: converting everything into sines and cosines. Let me do that as well in this example, to show that the result is the same. (This also demonstrate the important point that for some integrals, multiple different techniques can all be successful.) Let me start by converting everything into sine and cosine.
\begin{equation*} \int_0^{\frac{\pi}{3}} \tan^5 x \sec^4 x dx = \int_0^{\frac{\pi}{3}} \frac{\sin^5 x}{\cos^9 x} dx \end{equation*}
There is an odd power of sine in the numerator, so I’d like to isolate one sine term and change all the rest to cosine. I can do this with the squared identity. After doing so, I can use the substitution \(u = \cos x\) with \(du = -\sin x dx\text{.}\) Again, since this is a definite integral, I change the bounds as well with the substitution \(u(0) = 1\text{,}\) \(u(\frac{\pi}{3}) = \frac{1}{2}\text{.}\)
\begin{align*} \amp = \int_0^{\frac{\pi}{3}} \frac{\sin^5 x}{\cos^{9} x} dx\\ \amp = \int_0^{\frac{\pi}{3}} \frac{(1-\cos^2 x)^2}{\cos^{9} x} \sin x dx\\ \amp = -\int_1^{\frac{1}{2}} \frac{(1-u^2)^2}{u^{9}} du = \int_{\frac{1}{2}}^1 \frac{1 - 2u^2 + u^4}{u^{9}} du\\ \amp = \int_{\frac{1}{2}}^1 \left( \frac{1}{u^{9}} - \frac{2}{u^7} + \frac{1}{u^5} \right) du = \int_{\frac{1}{2}}^1 \frac{1}{u^{9}} - \int_{\frac{1}{2}}^1 \frac{2}{u^7} du + \int_{\frac{1}{2}}^1 \frac{1}{u^5} du \end{align*}
After the substitution, I expanded the numerator and split up the fraction into three pieces. Using linearity, the integral splits into three integrals. Now I have three power rule integrals, which I can find antiderivatives for, evalutate on bounds, and do some arithmetic to finish the integral. Notice that the arithmetic is quite different from the first solution (and a little more complicated), but it does end up in with the same final answer.
\begin{align*} \amp = \int_{\frac{1}{2}}^1 \frac{1}{u^{9}} - \frac{2}{u^7} + \frac{1}{u^5} du = \left( \frac{-1}{8u^{8}} + \frac{2}{6u^6} - \frac{1}{4u^4} \right) \Bigg|_{\frac{1}{2}}^1\\ \amp = \left( \frac{-1}{8} + \frac{1}{3} - \frac{1}{4} + \frac{2^{8}}{8} - \frac{2^6}{3} + \frac{2^4}{4} \right)\\ \amp = \frac{-3+8-6+2^{8}\cdot 3 - 2^6 \cdot 8 + 2^4 \cdot 6}{24}\\ \amp = \frac{-3+8-6+768-512+96}{24} = \frac{351}{24} = \frac{117}{8} \end{align*}