Skip to main content

Section 6.3 Trigonometric Integrals

Functions involving trigonometric functions are useful as they are good at describing periodic behavior. This section describes several techniques for finding antiderivatives of certain combinations of trigonometric functions.

Subsection 6.3.1 Integrals of the form \(\int \sin^m(x) \cos^n(x) \, dx\)

In learning the technique of Substitution, we saw the integral \(\int \sin(x) \cos(x) \, dx\) in Example 6.1.8. The integration was not difficult, and one could easily evaluate the indefinite integral by letting \(u=\sin(x)\) or by letting \(u = \cos(x)\text{.}\) This integral is easy since the power of both sine and cosine is 1.

We generalize this integral and consider integrals of the form \(\int \sin^m(x) \cos^n(x) \, dx\text{,}\) where \(m,n\) are nonnegative integers. Our strategy for evaluating these integrals is to use the identity \(\cos^2(x) +\sin^2(x) =1\) to convert high powers of one trigonometric function into the other, leaving a single sine or cosine term in the integrand. Let's see an example of how this technique works.

Example 6.3.1. Integrating powers of sine and cosine.

Evaluate \(\ds\int\sin^3(x) \cos(x) \, dx\text{.}\)

Solution

We have used substitution on problems similar to this problem in Section 6.1 . If we let \(u=\cos(x)\text{,}\) then \(du=-\sin(x)\,dx\text{.}\) Unfortunately, we have \(\sin^3(x)\) as part of our integrand, not just \(\sin(x)\text{.}\) The solution to this problem is to replace some of our powers of sine (two of them to be exact) with expressions that involve cosine. We will use the Pythagorean Identity \(\sin^2(x)=1-\cos^2(x)\text{.}\)

\begin{align*} \ds\int\sin^3(x) \cos(x) \, dx \amp =\int\sin(x)\cdot \sin^2(x) \cos(x) \, dx\\ \amp =\int\sin(x)\left(1-\cos^2(x)\right) \cos(x) \, dx\text{.} \end{align*}

Now we let \(u=\cos(x)\) so that \(-du=\sin(x)\,dx\text{.}\)

\begin{align*} \ds\int\sin^3(x) \cos(x) \, dx \amp =\int\sin(x)\left(1-\cos^2(x)\right) \cos(x) \, dx\\ \amp =\int -\left(1-u^2\right)u\,du\\ \amp =\int -\left(u-u^3\right)\,du\\ \amp =\frac{u^2}{2}-\frac{u^4}{4}+C\\ \amp =\frac{\cos^2(x)}{2}-\frac{\cos^4(x)}{4}+C\text{.} \end{align*}

We summarize the general technique in the following Key Idea.

Key Idea 6.3.2. Integrals Involving Powers of Sine and Cosine.

Consider \(\ds \int \sin^m(x) \cos^n(x) \, dx\text{,}\) where \(m,n\) are nonnegative integers.

  1. If \(m\) is odd, then \(m=2k+1\) for some integer \(k\text{.}\) Rewrite

    \begin{align*} \sin^m(x) \amp = \sin^{2k+1}(x)\\ \amp = \sin^{2k}(x) \sin(x)\\ \amp = (\sin^2(x) )^k\sin(x)\\ \amp = (1-\cos^2(x) )^k\sin(x)\text{.} \end{align*}

    Then

    \begin{align*} \int \sin^m(x) \cos^n(x) \, dx \amp = \int (1-\cos^2(x) )^k\sin(x) \cos^n(x) \, dx\\ \amp = -\int (1-u^2)^ku^n\,du\text{,} \end{align*}

    where \(u = \cos(x)\) and \(du = -\sin(x) \, dx\text{.}\)

  2. If \(n\) is odd, then using substitutions similar to that outlined above (replacing all of the even powers of \(cosine\) using a Pythagorean identity) we have:

    \begin{equation*} \int \sin^m(x) \cos^n(x) \, dx = \int u^m(1-u^2)^k\,du\text{,} \end{equation*}

    where \(u = \sin(x)\) and \(du = \cos(x) \, dx\text{.}\)

  3. If both \(m\) and \(n\) are even, use the power-reducing identities:

    \begin{equation*} \cos^2(x) = \frac{1+\cos(2x)}{2} \text{ and } \sin^2(x) = \frac{1-\cos(2x)}2 \end{equation*}

    to reduce the degree of the integrand. Expand the result and apply the principles of this Key Idea again.

We practice applying Key Idea 6.3.2 in the next examples.

Example 6.3.3. Integrating powers of sine and cosine.

Evaluate \(\ds\int\sin^5(x) \cos^8(x) \, dx\text{.}\)

Solution

The power of the sine term is odd, so we rewrite \(\sin^5(x)\) as

\begin{align*} \sin^5(x) \amp = \sin^4(x) \sin(x)\\ \amp = (\sin^2(x) )^2\sin(x)\\ \amp = (1-\cos^2(x) )^2\sin(x)\text{.} \end{align*}

Our integral is now \(\ds \int (1-\cos^2(x) )^2\cos^8(x) \sin(x) \, dx\text{.}\) Let \(u = \cos(x)\text{,}\) hence \(du = -\sin(x) \, dx\text{.}\) Making the substitution and expanding the integrand gives

\begin{align*} \int (1-\cos^2)^2\cos^8(x) \sin(x) \, dx \amp = -\int (1-u^2)^2u^8\,du\\ \amp = -\int \big(1-2u^2+u^4\big)u^8\,du\\ \amp = -\int \big(u^8-2u^{10}+u^{12}\big)\,du\text{.} \end{align*}

This final integral is not difficult to evaluate, giving

\begin{align*} -\int \big(u^8-2u^{10}+u^{12}\big)\, du \amp = -\frac19u^9 + \frac2{11}u^{11} - \frac1{13}u^{13} + C\\ \amp =-\frac19\cos^9(x) + \frac2{11}\cos^{11}(x) - \frac1{13}\cos^{13}(x) + C\text{.} \end{align*}
Example 6.3.4. Integrating powers of sine and cosine.

Evaluate \(\ds \int\sin^5(x) \cos^9(x) \, dx\text{.}\)

Solution

The powers of both the sine and cosine terms are odd, therefore we can apply the techniques of Key Idea 6.3.2 to either power. We choose to work with the power of the cosine term since the previous example used the sine term's power.

We rewrite \(\cos^9(x)\) as

\begin{align*} \cos^9(x) \amp = \cos^8(x) \cos(x)\\ \amp = \left(\cos^2(x)\right)^4\cos(x)\\ \amp = \left(1-\sin^2(x)\right)^4\cos(x)\text{.} \end{align*}

We rewrite the integral as

\begin{equation*} \int\sin^5(x) \cos^9(x) \, dx = \int\sin^5(x) \left(1-\sin^2(x)\right)^4\cos(x) \, dx\text{.} \end{equation*}

Now substitute and integrate, using \(u = \sin(x)\) and \(du = \cos(x) \, dx\text{.}\) Expand the binomial using algebra.

\begin{align*} \amp \int u^5(1-u^2)^4\,du\\ \amp = \int u^5(1-4u^2+6u^4-4u^6+u^8)\,du\\ \amp = \int\big(u^5-4u^7+6u^9-4u^{11}+u^{13}\big)\,du\\ \amp = \frac16u^6-\frac12u^8+\frac35u^{10}-\frac13u^{12}+\frac{1}{14}u^{14}+C\\ \amp = \frac16\sin^6(x) -\frac12\sin^8(x) +\frac35\sin^{10}(x)-\frac13\sin^{12}(x) +\frac{1}{14}\sin^{14}(x) +C\text{.} \end{align*}

Technology Note: The work we are doing here can be a bit tedious, but the skills developed (problem solving, algebraic manipulation, etc.) are important. Nowadays problems of this sort are often solved using a computer algebra system. The powerful program Mathematica™ integrates \(\int \sin^5(x) \cos^9(x) \, dx\) as

\begin{equation*} f(x)=-\frac{45 \cos(2 x)}{16384}-\frac{5 \cos(4 x)}{8192}+\frac{19 \cos(6 x)}{49152}+\frac{\cos(8 x)}{4096}-\frac{\cos(10 x)}{81920}-\frac{\cos(12 x)}{24576}-\frac{\cos(14 x)}{114688}\text{,} \end{equation*}

which clearly has a different form than our answer in Example 6.3.4, which is

\begin{equation*} g(x)=\frac16\sin^6(x) -\frac12\sin^8(x) +\frac35\sin^{10}(x) -\frac13\sin^{12}(x) +\frac{1}{14}\sin^{14}(x)\text{.} \end{equation*}

Figure 6.3.5 shows a graph of \(f\) and \(g\text{;}\) they are clearly not equal, but they differ only by a constant. That is \(g(x) = f(x) + C\) for some constant \(C\text{.}\) So we have two different antiderivatives of the same function, meaning both answers are correct.

Figure 6.3.5. A plot of \(f(x)\) and \(g(x)\) from Example 6.3.4 and the Technology Note
Example 6.3.6. Integrating powers of sine and cosine.

Evaluate \(\ds\int\cos^4(x) \sin^2(x) \, dx\text{.}\)

Solution

The powers of sine and cosine are both even, so we employ the power-reducing formulas and algebra as follows.

\begin{align*} \amp \int \cos^4(x) \sin^2(x) \, dx = \int\left(\frac{1+\cos(2x)}{2}\right)^2\left(\frac{1-\cos(2x)}2\right)\, dx\\ \amp = \int\frac{1+2\cos(2x)+\cos^2(2x)}4\cdot\frac{1-\cos(2x)}2\, dx\\ \amp = \int \frac18\big(1+\cos(2x)+\cos^2(2x)-\cos^3(2x)\big)\, dx\\ \amp = \frac18 \left(\underbrace{\int 1 \, dx}_{a}+\underbrace{\int \cos(2x)\, dx}_{b}-\underbrace{\int \cos^2(2x)\, dx}_{c}-\underbrace{\int \cos^3(2x)\, dx}_{d}\right) \end{align*}

The first integral labeled \(a\) is easy to integrate. The \(\cos(2x)\) term is also easy to integrate, especially with Key Idea 6.1.5. The \(\cos^2(2x)\) term is another trigonometric integral with an even power, requiring the power-reducing formula again. The \(\cos^3(2x)\) term is a cosine function with an odd power, requiring a substitution as done before. We integrate each in turn below.

\begin{align*} \underbrace{\int\cos(2x)\, dx}_{b} \amp = \frac12\sin(2x)+C\\ \underbrace{\int\cos^2(2x)\, dx}_{c} \amp = \int \frac{1+\cos(4x)}2\, dx\\ \amp = \frac12\big(x+\frac14\sin(4x)\big)+C\text{.} \end{align*}

Finally, we rewrite \(\cos^3(2x)\) as

\begin{align*} \cos^3(2x) \amp = \cos^2(2x)\cos(2x)\\ \amp = \big(1-\sin^2(2x)\big)\cos(2x)\text{.} \end{align*}

Letting \(u=\sin(2x)\text{,}\) we have \(du = 2\cos(2x)\, dx\text{,}\) hence

\begin{align*} \underbrace{\int \cos^3(2x)\, dx}_{d} \amp = \int\big(1-\sin^2(2x)\big)\cos(2x)\, dx\\ \amp = \int \frac12(1-u^2)\,du\\ \amp = \frac12\Big(u-\frac13u^3\Big)+C\\ \amp = \frac12\Big(\sin(2x)-\frac13\sin^3(2x)\Big)+C\text{.} \end{align*}

Putting all the pieces together, we have

\begin{align*} \amp \int \cos^4(x) \sin^2(x) \, dx\\ \amp =\int \frac18\big(1+\cos(2x)-\cos^2(2x)-\cos^3(2x)\big)\, dx\\ \amp = \frac18\Big[x+\frac12\sin(2x)-\frac12\big(x+\frac14\sin(4x)\big)-\frac12\Big(\sin(2x)-\frac13\sin^3(2x)\Big)\Big]+C\\ \amp =\frac18\Big[\frac12x-\frac18\sin(4x)+\frac16\sin^3(2x)\Big]+C\text{.} \end{align*}

The process above was a bit long and tedious, but being able to work a problem such as this from start to finish is important.

Subsection 6.3.2 Integrals of the form \(\int\sin(mx)\sin(nx)\, dx\text{,}\) \(\int \cos(mx)\cos(nx)\, dx\text{,}\) and \(\int \sin(mx)\cos(nx)\, dx\)

Functions that contain products of sines and cosines of differing periods are important in many applications including the analysis of sound waves. Integrals of the form

\begin{equation*} \int\sin(mx)\sin(nx)\, dx, \int \cos(mx)\cos(nx)\, dx \text{ and } \int \sin(mx)\cos(nx)\, dx \end{equation*}

are best approached by first applying the Product to Sum Formulas found in the back cover of this text, namely

\begin{align*} \sin(mx)\sin(nx) \amp = \frac12\Big[\cos\big((m-n)x\big)-\cos\big((m+n)x\big)\Big]\\ \cos(mx)\cos(nx) \amp = \frac12\Big[\cos\big((m-n)x\big)+\cos\big((m+n)x\big)\Big]\\ \sin(mx)\cos(nx) \amp = \frac12\Big[\sin\big((m-n)x\big)+\sin\big((m+n)x\big)\Big]\text{.} \end{align*}
Example 6.3.7. Integrating products of \(\sin(mx)\) and \(\cos(nx)\).

Evaluate \(\ds\int\sin(5x)\cos(2x)\, dx\text{.}\)

Solution

The application of the formula and subsequent integration are straightforward:

\begin{align*} \int\sin(5x)\cos(2x)\, dx \amp = \int \frac12\Big[\sin((5-2)x)+\sin((5+2)x)\Big]\, dx\\ \amp= \int \frac12\Big[\sin(3x)+\sin(7x)\Big]\, dx\\ \amp = -\frac16\cos(3x) - \frac1{14}\cos(7x) + C \end{align*}

Subsection 6.3.3 Integrals of the form \(\int\tan^m(x) \sec^n(x) \, dx\)

When evaluating integrals of the form \(\int \sin^m(x) \cos^n(x) \, dx\text{,}\) the Pythagorean Theorem allowed us to convert even powers of sine into even powers of cosine, and vise-versa. If, for instance, the power of sine was odd, we pulled out one \(\sin(x)\) and converted the remaining even power of \(\sin(x)\) into a function using powers of \(\cos(x)\text{,}\) leading to an easy substitution.

The same basic strategy applies to integrals of the form \(\int \tan^m(x) \sec^n(x) \, dx\text{,}\) albeit a bit more nuanced. The following three facts will prove useful:

  • \(\frac{d}{dx}(\tan(x) ) = \sec^2(x)\text{,}\)
  • \(\frac{d}{dx}(\sec(x) ) = \sec(x) \tan(x)\text{,}\)
  • \(1+\tan^2(x) = \sec^2(x)\) (the Pythagorean Theorem).

If the integrand can be manipulated to separate a \(\sec^2(x)\) term with the remaining secant power even, or if a \(\sec(x) \tan(x)\) term can be separated with the remaining \(\tan(x)\) power even, the Pythagorean Theorem can be employed, leading to a simple substitution. This strategy is outlined in the following Key Idea.

Key Idea 6.3.8. Integrals Involving Powers of Tangent and Secant.

Consider \(\ds\int\tan^m(x) \sec^n(x) \, dx\text{,}\) where \(m,n\) are nonnegative integers.

  1. If \(n\) is even, then \(n=2k\) for some integer \(k\text{.}\) Rewrite \(\sec^n(x)\) as

    \begin{align*} \sec^n(x) \amp = \sec^{2k}(x)\\ \amp = \sec^{2k-2}(x) \sec^2(x)\\ \amp = (1+\tan^2(x) )^{k-1}\sec^2(x)\text{.} \end{align*}

    Then

    \begin{align*} \int\tan^m(x) \sec^n(x) \, dx \amp =\int\tan^m(x) (1+\tan^2(x) )^{k-1}\sec^2(x) \, dx\\ \amp =\int u^m(1+u^2)^{k-1}\,du\text{,} \end{align*}

    where \(u = \tan(x)\) and \(du = \sec^2(x) \, dx\text{.}\)

  2. If \(m\) is odd, then \(m=2k+1\) for some integer \(k\text{.}\) Rewrite \(\tan^m(x) \sec^n(x)\) as

    \begin{align*} \tan^m(x) \sec^n(x) \amp = \tan^{2k+1}(x) \sec^n(x)\\ \amp = \tan^{2k}(x) \sec^{n-1}(x) \sec(x) \tan(x)\\ \amp = (\sec^2(x) -1)^k\sec^{n-1}(x) \sec(x) \tan(x)\text{.} \end{align*}

    Then

    \begin{align*} \int\tan^m(x) \sec^n(x) \, dx \amp =\int(\sec^2(x) -1)^k\sec^{n-1}(x) \sec(x) \tan(x) \, dx\\ \amp = \int(u^2-1)^ku^{n-1}\,du\text{,} \end{align*}

    where \(u = \sec(x)\) and \(du = \sec(x) \tan(x) \, dx\text{.}\)

  3. If \(n\) is odd and \(m\) is even, then \(m=2k\) for some integer \(k\text{.}\) Convert \(\tan^m(x)\) to \((\sec^2(x) -1)^k\text{.}\) Expand the new integrand and use Integration By Parts, with \(dv = \sec^2(x) \, dx\text{.}\)

  4. If \(m\) is even and \(n=0\text{,}\) rewrite \(\tan^m(x)\) as

    \begin{align*} \tan^m(x) \amp = \tan^{m-2}(x) \tan^2(x)\\ \amp = \tan^{m-2}(x) (\sec^2(x) -1)\\ \amp = \tan^{m-2}\sec^2(x) -\tan^{m-2}(x)\text{.} \end{align*}

    So

    \begin{equation*} \int\tan^m(x) \, dx = \underbrace{\int\tan^{m-2}\sec^2(x) \, dx}_{\text{ apply rule 1 } } - \underbrace{\int\tan^{m-2}(x) \, dx}_{\text{ apply rule 4 again } }\text{.} \end{equation*}

The techniques described in Item 1 and Item 2 of Key Idea 6.3.8 are relatively straightforward, but the techniques in Item 3 and Item 4 can be rather tedious. A few examples will help with these methods.

Example 6.3.9. Integrating powers of tangent and secant.

Evaluate \(\ds\int \tan^2(x) \sec^6(x) \, dx\text{.}\)

Solution

Since the power of secant is even, we use Rule 1from Key Idea 6.3.8 and pull out a \(\sec^2(x)\) in the integrand. We convert the remaining powers of secant into powers of tangent.

\begin{align*} \int \tan^2(x) \sec^6(x) \, dx \amp = \int\tan^2(x) \sec^4(x) \sec^2(x) \, dx\\ \amp = \int \tan^2(x) \big(1+\tan^2(x) \big)^2\sec^2(x) \, dx\\ \end{align*}

Now substitute, with \(u=\tan(x)\text{,}\) with \(du = \sec^2(x) \, dx\text{.}\)

\begin{align*} \amp =\int u^2\big(1+u^2\big)^2\,du\\ \end{align*}

We leave the integration and subsequent substitution to the reader. The final answer is

\begin{align*} \amp =\frac13\tan^3(x) +\frac25\tan^5(x) +\frac17\tan^7(x) +C\text{.} \end{align*}

When we have an odd power of \(\tan(x)\) (and \(\sec(x)\) to any power of at least one), we can split off a factor of \(\tan(x)\sec(x)\) and use the substitution \(u=\sec(x)\text{,}\) as the following video illustrates.

Figure 6.3.10. An integral with odd powers of \(\tan(x)\) and \(\sec(x)\)
Example 6.3.11. Integrating powers of tangent and secant.

Evaluate \(\ds\int \sec^3(x) \, dx\text{.}\)

Solution

We apply Rule 3 from Key Idea 6.3.8 as the power of secant is odd and the power of tangent is even (\(0\) is an even number). We use Integration by Parts; the rule suggests letting \(dv = \sec^2(x) \, dx\text{,}\) meaning that \(u = \sec(x)\text{.}\)

\begin{align*} u\amp = \sec(x) \amp v\amp =\mathord{?}\\ du\amp = \mathord{?} \amp dv\amp =\sec^2(x) \, dx \end{align*}

\(\implies\)

\begin{align*} u\amp = \sec(x) \amp v\amp =\tan(x)\\ du\amp = \sec(x) \tan(x) \, dx \amp dv\amp =\sec^2(x) \, dx \end{align*}
Figure 6.3.12. Setting up Integration by Parts

Employing Integration by Parts, we have

\begin{align*} \int \sec^3(x) \, dx \amp = \int \underbrace{\sec(x) }_u\cdot\underbrace{\sec^2(x) \, dx}_{dv}\\ \amp = \sec(x) \tan(x) - \int \sec(x) \tan^2(x) \, dx.\\ \end{align*}

This new integral also requires applying Rule 3 of Key Idea 6.3.8:

\begin{align*} \int \sec^3(x)\, dx\amp = \sec(x) \tan(x) - \int \sec(x) \big(\sec^2(x) -1\big)\, dx\\ \amp = \sec(x) \tan(x) - \int \sec^3(x) \, dx + \int \sec(x) \, dx\\ \amp = \sec(x) \tan(x) -\int \sec^3(x) \, dx + \ln\abs{\sec(x) +\tan(x) }\\ \end{align*}

In previous applications of Integration by Parts, we have seen where the original integral has reappeared in our work. We resolve this by adding \(\int \sec^3(x) \, dx\) to both sides, giving:

\begin{align*} 2\int \sec^3(x) \, dx \amp = \sec(x) \tan(x) + \ln\abs{\sec(x) +\tan(x) }\\ \int \sec^3(x) \, dx \amp = \frac12\Big(\sec(x) \tan(x) + \ln\abs{\sec(x) +\tan(x) }\Big)+C \end{align*}

Integrals involving odd powers of \(\sec(x)\) (and nothing else) are often among the more intimidating tasks for beginning calculus students. However, larger odd powers are best handled not by doing the integral directly, but by employing a reduction forumula. The video below shows how to obtain a reduction formula for the integral of \(\sec^{2k+1}(x)\text{;}\) this formula allows us to express the integral in terms of an integral where the power of \(\sec(x)\) is reduced by two.

Figure 6.3.13. Deriving a power reduction formula for secant integrals

We give one more example.

Example 6.3.14. Integrating powers of tangent and secant.

Evaluate \(\ds\int\tan^6(x) \, dx\text{.}\)

Solution

We employ Rule 3 of Key Idea 6.3.8.

\begin{align*} \int \tan^6(x) \, dx \amp = \int \tan^4(x) \tan^2(x) \, dx\\ \amp = \int\tan^4(x) \big(\sec^2(x) -1\big)\, dx\\ \amp = \int\tan^4(x) \sec^2(x) \, dx - \int\tan^4(x) \, dx\\ \end{align*}

Integrate the first integral with substitution, \(u=\tan(x)\text{;}\) integrate the second by employing rule Rule 4 again.

\begin{align*} \amp = \frac15\tan^5(x) -\int\tan^2(x) \tan^2(x) \, dx\\ \amp = \frac15\tan^5(x) -\int\tan^2(x) \big(\sec^2(x) -1\big)\, dx\\ \amp = \frac15\tan^5(x) -\underbrace{\int\tan^2(x) \sec^2(x) \, dx}_{a} + \underbrace{\int\tan^2(x) \, dx}_b\\ \end{align*}

Again, use substitution (\(u=\tan(x)\)) for the first integral (a) and Rule 4 for the second (b).

\begin{align*} \amp = \frac15\tan^5(x) -\frac13\tan^3(x) +\int\big(\sec^2(x) -1\big)\, dx\\ \int \tan^6(x)\, dx\amp = \frac15\tan^5(x) -\frac13\tan^3(x) +\tan(x) - x+C\text{.} \end{align*}

These latter examples were admittedly long, with repeated applications of the same rule. Try to not be overwhelmed by the length of the problem, but rather admire how robust this solution method is. A trigonometric function of a high power can be systematically reduced to trigonometric functions of lower powers until all antiderivatives can be computed.

Section 6.4 introduces an integration technique known as Trigonometric Substitution, a clever combination of Substitution and the Pythagorean Theorem.

Exercises 6.3.4 Exercises

Terms and Concepts
1.

  • True

  • False

\(\ds \int \sin^2(x) \cos^2(x) \, dx\) cannot be evaluated using the techniques described in this section since both powers of \(\sin(x)\) and \(\cos(x)\) are even.

2.

  • True

  • False

\(\ds \int \sin^3(x) \cos^3(x) \, dx\) cannot be evaluated using the techniques described in this section since both powers of \(\sin(x)\) and \(\cos(x)\) are odd.

3.

  • True

  • False

This section addresses how to evaluate indefinite integrals such as \(\ds \int \sin^5(x) \tan^3(x) \, dx\text{.}\)

4.

  • True

  • False

Sometimes computer programs evaluate integrals involving trigonometric functions differently than one would using the techniques of this section. When this is the case, the techniques of this section have failed and one should only trust the answer given by the computer.

Problems

Evaluate the indefinite integral.

5.

\(\ds \int \sin(x) \cos^4(x) \, dx\)

6.

\(\ds \int \sin^3(x) \cos(x) \, dx\)

7.

\(\ds \int \sin^3(x)\cos^{2}(x) \, dx\)

8.

\(\ds \int \sin^{3}(x)\cos^{3}(x) \, dx\)

9.

\(\ds \int \sin^{6}(x)\cos^{5}(x) \, dx\)

10.

\(\ds \int \sin^2(x) \cos^7(x) \, dx\)

11.

\(\ds \int \sin^2(x) \cos^2(x) \, dx\)

12.

\(\ds \int \sin(5x)\cos(3x)\, dx\)

13.

\(\ds \int {\sin\!\left(x\right)\cos\!\left(2x\right)} \, dx\)

14.

\(\ds \int {\sin\!\left(3x\right)\sin\!\left(7x\right)} \, dx\)

15.

\(\ds \int {\sin\!\left(\pi x\right)\sin\!\left(2\pi x\right)} \, dx\)

16.

\(\ds \int \cos(x)\cos(2x)\, dx\)

17.

\(\ds \int {\cos\!\left(\frac{\pi }{2}x\right)\cos\!\left(\pi x\right)} \, dx\)

18.

\(\ds \int \tan^4(x) \sec^2(x) \, dx\)

19.

\(\ds \int \tan^2(x) \sec^4(x) \, dx\)

20.

\(\ds \int \tan^{3}(x)\sec^{4}(x) \, dx\)

21.

\(\ds \int \tan^{3}(x)\sec^{2}(x) \, dx\)

22.

\(\ds \int \tan^{3}(x)\sec^{3}(x) \, dx\)

23.

\(\ds \int \tan^{5}(x)\sec^{5}(x) \, dx\)

24.

\(\ds \int \tan^4(x) \, dx\)

25.

\(\ds \int \sec^5(x) \, dx\)

26.

\(\ds \int \tan^2(x) \sec(x) \, dx\)

27.

\(\ds \int \tan^2(x) \sec^3(x) \, dx\)

Evaluate the definite integral. Note: the corresponding indefinite integrals appear in Exercises.

28.

\(\ds \int_{{0}}^{{\pi }} \sin(x) \cos^4(x) \, dx\)

29.

\(\ds \int_{{-\pi }}^{{\pi }} \sin^3(x) \cos(x) \, dx\)

30.

\(\ds \int_{{-\frac{\pi }{2}}}^{{\frac{\pi }{2}}} \sin^2(x) \cos^7(x) \, dx\)

31.

\(\ds \int_{{0}}^{{\frac{\pi }{2}}} \sin(5 x)\cos(3x)\, dx\)

32.

\(\ds \int_{{-\frac{\pi }{2}}}^{{\frac{\pi }{2}}} \cos(x)\cos(2x)\, dx\)

33.

\(\ds \int_{{0}}^{{\frac{\pi }{4}}} \tan^4(x) \sec^2(x) \, dx\)

34.

\(\ds \int_{-\pi/4}^{\pi/4} \tan^2(x) \sec^4(x) \, dx\)