Online Textbook Practice Tests 1500 Calculus Problems Solved About

6.2: Trigonometric Integrals

In this section we investigate integrals with combinations of trigonometric functions. In doing so, we apply a variety of trigonometric properties and relationships using calculus. We discuss the following topics:

Integrals with Sine and Cosine

We evaluate \(\int \sin^n x \cos x \di x \) by substituting \(u = \sin x\) because \(\dd u = \cos x \di x,\) thereby stripping the extra factor \(\cos x\) in the integrand. Similarly, we evaluate \(\int \cos^n x \sin x \di x \) using \(u = \cos x\) since \(\dd u = - \sin x \di x,\) eliminating the factor \(\sin x.\) Now let's devise a strategy to evaluate the families of integrals \[\int \sin^n x \di x \and \int \cos^n x \di x \] where \(n\) is a positive integer.

Odd \(n\) If \(n\) is odd, then \(n - 1\) is even. To evaluate \(\int \sin^n x \di x,\) we save an extra factor \(\sin x\) and use the Pythagorean identity to express \(\sin^{n - 1} x\) in terms of cosine. Then substituting \(u = \cos x\) strips the extra \(\sin x.\) Likewise, to evaluate \(\int \cos^n x \di x,\) we preserve an extra factor \(\cos x\) and use the Pythagorean identity to express \(\cos^{n - 1} x\) in terms of sine. The substitution \(u = \sin x\) then eliminates the extra \(\cos x.\)

Even \(n\) Power-reduction formulas help us convert \(\sin^2 x\) and \(\cos^2 x\) into expressions of lower degree through the following equations: \begin{align} \sin^2 x &= \tfrac{1}{2} (1 - \cos 2x) \cma \label{eq:power-reduction-sin} \nl \cos^2 x &= \tfrac{1}{2} (1 + \cos 2x) \pd \label{eq:power-reduction-cos} \end{align} The expressions on the right are far easier to integrate. (We proved these equations in Example 0.8-15.) Thus, we evaluate \(\int \sin^n x \di x\) and \(\int \cos^n x \di x\) by using \(\eqref{eq:power-reduction-sin}\) and \(\eqref{eq:power-reduction-cos}\) as many times as necessary.

INTEGRATING \(\int \sin^n x \di x\)
  1. If \(n\) is odd, then save an extra factor \(\sin x\) by writing \(\sin^n x\) as \(\sin^{n - 1} x \sin x.\) Use \(\sin^2 x = 1 - \cos^2 x\) to express \(\sin^{n - 1} x\) in terms of cosine: \[ \ba \int \sin^n x \di x &= \int \sin^{n - 1} x \sin x \di x \nl &= \int (1 - \cos^2 x)^{(n - 1)/2} \sin x \di x \pd \ea \] Then substitute \(u = \cos x.\)
  2. If \(n\) is even, then reduce the integral using \(\eqref{eq:power-reduction-sin}\) as necessary: \[ \int \sin^n x \di x = \int \parbr{\tfrac{1}{2} (1 - \cos 2x)}^{n/2} \di x \pd \]
INTEGRATING \(\int \cos^n x \di x\)
  1. If \(n\) is odd, then save an extra factor \(\cos x\) by writing \(\cos^n x\) as \(\cos^{n - 1} x \cos x.\) Use \(\cos^2 x = 1 - \sin^2 x\) to express \(\cos^{n - 1} x\) in terms of sine: \[ \ba \int \cos^n x \di x &= \int \cos^{n - 1} x \cos x \di x \nl &= \int (1 - \sin^2 x)^{(n - 1)/2} \cos x \di x \pd \ea \] Then substitute \(u = \sin x.\)
  2. If \(n\) is even, then reduce the integral using \(\eqref{eq:power-reduction-cos}\) as necessary: \[ \int \cos^n x \di x = \int \parbr{\tfrac{1}{2} (1 + \cos 2x)}^{n/2} \di x \pd \]
EXAMPLE 1
\[\int \cos^3 x \di x\]
Since cosine's power is odd, we preserve an extra term \(\cos x\) and use the Pythagorean identity \((\cos^2 x = 1 - \sin^2 x)\) to express \(\cos^2 x\) in terms of sine. Doing so, the integral becomes \[\int \cos^2 x \cos x \di x = \int (1 - \sin^2 x) \cos x \di x \pd\] To strip the extra \(\cos x\) term, we substitute \(u = \sin x.\) Then \(\dd u = \cos x \di x\) and so the integral becomes \[ \ba \int \par{1 - u^2} \di u &= u - \tfrac{1}{3} u^3 + C \nl &= \boxed{\sin x - \tfrac{1}{3} \sin^3 x + C} \ea \]
EXAMPLE 2
\[\int \sin^5 x \di x\]
Sine's power is odd, so we conserve an extra term \(\sin x\) and use \(\sin^2 x = 1 - \cos^2 x\) to express the remaining sines in terms of cosine. Doing so yields \[ \ba \int \sin^5 x \di x &= \int \sin^4 x \sin x \di x \nl &= \int (1 - \cos^2 x)^2 \sin x \di x \pd \ea \] Substituting \(u = \cos x,\) we get \(\dd u = - \sin x \di x \) and so the integral becomes \[ \ba - \int (1 - u^2)^2 \di u &= - \int \par{1 - 2u^2 + u^4} \di u \nl &= -u + \tfrac{2}{3} u^3 - \tfrac{1}{5} u^5 + C \nl &= \boxed{-\cos x + \tfrac{2}{3} \cos^3 x - \tfrac{1}{5} \cos^5 x + C} \ea \]
EXAMPLE 3
Calculate the area bounded by one wave of the curve \(y = \cos^2 x\) and the \(x\)-axis.
Figure 1
Because the curve intersects the \(x\)-axis at \(x = -\pi/2\) and \(\pi/2,\) the area of one wave is given by \[ A = \int_{-\pi/2}^{\pi/2} \cos^2 x \di x \pd \] (See Figure 1.) Because cosine's power is even, we use \(\eqref{eq:power-reduction-cos}\) to decompose the integral: \[ \ba A &= \int_{-\pi/2}^{\pi/2} \tfrac{1}{2} (1 + \cos 2x) \di x \nl &= \tfrac{1}{2} \par{x + \tfrac{1}{2} \sin 2x} \intEval_{-\pi/2}^{\pi/2} \nl &= \boxed{\frac{\pi}{2}} \ea \]
EXAMPLE 4
\[\int \cos^4 x \di x\]
Because cosine's power is even, we use \(\eqref{eq:power-reduction-cos}\) to reduce the degree, as follows: \[ \ba \int \par{\cos^2 x}^2 \di x &= \int \parbr{\tfrac{1}{2} (1 + \cos 2x)}^2 \di x \nl &= \tfrac{1}{4} \int \par{1 + 2 \cos 2x + \cos^2 2x} \di x \pd \ea \] A modification of \(\eqref{eq:power-reduction-cos}\) is \(\cos^2 2x = \tfrac{1}{2} (1 + \cos 4x),\) which we substitute to get \[ \ba \tfrac{1}{4} \int \parbr{1 + 2 \cos 2x + \tfrac{1}{2} (1 + \cos 4x)} \di x &= \tfrac{1}{4} \int \par{\tfrac{3}{2} + 2 \cos 2x + \tfrac{1}{2} \cos 4x} \di x \nl &= \boxed{\tfrac{3}{8} x + \tfrac{1}{4} \sin 2x + \tfrac{1}{32} \sin 4x + C} \ea \]

Another common family of integrals is \(\int \sin^m x \cos^n x \di x,\) where \(m\) and \(n\) are positive integers. We evaluate these integrals similarly to how we evaluate \(\int \sin^n x \di x\) and \(\int \cos^n x \di x\)—by conserving a factor and performing a substitution, or by applying power-reduction formulas.

INTEGRATING \(\int \sin^m x \cos^n x \di x\)
  1. If the power of sine is odd (\(m\) odd), then save an extra factor \(\sin x\) and use \(\sin^2 x = 1 - \cos^2 x\) to express the remaining factors in terms of cosine: \[ \ba \int \sin^m x \cos^n x \di x &= \int \sin^{m - 1} x \cos^n x \sin x \di x \nl &= \int (1 - \cos^2 x)^{(m - 1)/2} \cos^n x \sin x \di x \pd \ea \] Then substitute \(u = \cos x.\)
  2. If the power of sine is even and the power of cosine is odd (\(m\) even, \(n\) odd), then save an extra factor \(\cos x\) and use \(\cos^2 x = 1 - \sin^2 x\) to express the remaining factors in terms of sine: \[ \ba \int \sin^m x \cos^n x \di x &= \int \sin^m x \cos^{n - 1} x \cos x \di x \nl &= \int \sin^m x (1 - \sin^2 x)^{(n - 1)/2} \cos x \di x \pd \ea \] Then substitute \(u = \sin x.\)
  3. If the powers of sine and cosine are both even (\(m\) and \(n\) both even), then use \(\sin^2 x = 1 - \cos^2 x\) to express the integrand in terms of cosine: \[ \ba \int \sin^m x \cos^n x \di x &= \int (\sin^2 x)^{m/2} \cos^n x \di x \nl &= \int (1 - \cos^2 x)^{m/2} \cos^n x \di x \pd \ea \] Then use \(\eqref{eq:power-reduction-cos}\) to reduce the integral.
EXAMPLE 5
\[\int \sin^2 x \cos^3 x \di x\]
Since cosine's power is odd, we conserve an extra factor \(\cos x.\) We write the remaining cosine factors in terms of sine using the Pythagorean identity, as follows: \[\int \sin^2 x \cos^2 x \cos x \di x = \int \sin^2 x \par{1 - \sin^2 x} \cos x \di x \pd \] To strip the factor \(\cos x,\) we substitute \(u = \sin x.\) Then \(\dd u = \cos x \di x\) and so the integral becomes \[ \ba \int u^2 \par{1 - u^2} \di u &= \int \par{u^2 - u^4} \di u \nl &= \tfrac{1}{3} u^3 - \tfrac{1}{5} u^5 + C \nl &= \boxed{\tfrac{1}{3} \sin^3 x - \tfrac{1}{5} \sin^5 x + C} \ea \]

Integrals with Secants and Tangents

The next family of integrals we explore is \(\int \sec^m x \tan^n x \di x,\) where \(m\) and \(n\) are positive integers. Recall that \(\textderiv{}{x} (\tan x) = \sec^2 x.\) Accordingly, one option is to conserve an extra factor \(\sec^2 x\) in the integrand, express the remaining secants in terms of tangent (using \(\tan^2 x =\) \(\sec^2 x - 1\)) and substitute \(u = \tan x.\) Alternatively, given that \(\textderiv{}{x} (\sec x) = \sec x \tan x,\) we can conserve an extra factor \(\sec x \tan x\) in the integrand and rewrite the remaining tangents in terms of secant (using \(\sec^2 x =\) \(\tan^2 x + 1\)), substituting \(u = \sec x.\) The following guidelines elaborate on this strategy.

INTEGRATING \(\int \sec^m x \tan^n x \di x\)
  1. If the power of secant is even (\(m\) even), then preserve an extra factor \(\sec^2 x.\) Use \(\sec^2 x = \tan^2 x + 1\) to express the remaining factors in terms of tangent: \[ \ba \int \sec^m x \tan^n x \di x &= \int \sec^{m - 2} x \tan^n x \sec^2 x \di x \nl &= \int (\tan^2 x + 1)^{(m - 2)/2} \tan^n x \sec^2 x \di x \pd \ea \] Then substitute \(u = \tan x.\)
  2. If the power of tangent is odd (\(n\) odd), then preserve an extra factor \(\sec x \tan x.\) Use \(\tan^2 x = \sec^2 x - 1\) to express the remaining factors in terms of secant: \[ \ba \int \sec^m x \tan^n x \di x &= \int \sec^{m - 1} x \tan^{n - 1} x \sec x \tan x \di x \nl &= \int \sec^{m - 1} x \par{\sec^2 x - 1}^{(n - 1)/2} \sec x \tan x \di x \pd \ea \] Then substitute \(u = \sec x.\)
EXAMPLE 6
\[\int \sec^4 x \tan^6 x \di x\]
Since secant's power is even, we separate the factor \(\sec^2 x\) and convert the remaining secants to be in terms of tangents. The integral therefore becomes \[ \int \sec^2 x \tan^6 x \sec^2 x \di x = \int (\tan^2 x + 1) \tan^6 x \sec^2 x \di x \pd\] To clear the factor \(\sec^2 x,\) we substitute \(u = \tan x.\) Then \(\dd u = \sec^2 x \di x\) and so the integral becomes \[ \ba \int \parbr{(u^2 + 1) \, u^6} \di u &= \int \par{u^8 + u^6} \di u \nl &= \tfrac{1}{9} u^9 + \tfrac{1}{7} u^7 + C \nl &= \boxed{\tfrac{1}{9} \tan^9 x + \tfrac{1}{7} \tan^7 x + C} \ea \]
EXAMPLE 7
\[\int \sec^5 x \tan^3 x \di x\]
Because tangent's power is odd, we save an extra factor \(\sec x \tan x\) and use \(\tan^2 x = \sec^2 x - 1\) to reexpress the integrand in terms of secant. The integral therefore becomes \[\int \sec^4 x \tan^2 x \sec x \tan x \di x = \int \sec^4 x \par{\sec^2 x - 1} \sec x \tan x \di x \pd\] To strip the extra factor \(\sec x \tan x,\) we substitute \(u = \sec x\) because then \(\dd u = \sec x \tan x \di x.\) Accordingly, the integral becomes \[ \ba \int [u^4(u^2 - 1)] \di u &= \int \par{u^6 - u^4} \di u \nl &= \tfrac{1}{7} u^7 - \tfrac{1}{5} u^5 + C \nl &= \boxed{\tfrac{1}{7} \sec^7 x - \tfrac{1}{5} \sec^5 x + C} \ea \]

A similar strategy enables us to evaluate \(\int \sec^n x \di x\) if \(n\) is a positive even integer, as shown below. But if \(n\) is odd, then no simple guideline exists; instead, evaluating the integral may require ingenuity with trigonometric identities or Integration by Parts.

INTEGRATING \(\int \sec^n x \di x\)
If the power of secant is even (\(n\) even), then save an extra factor \(\sec^2 x\) and use \(\sec^2 x = \tan^2 x + 1\) to express the remaining secants in terms of tangents: \[ \ba \int \sec^n x \di x &= \int \sec^{n - 2} x \sec^2 x \di x \nl &= \int (\tan^2 x + 1)^{(n - 2)/2} \sec^2 x \di x \pd \ea \]
EXAMPLE 8
\[\int \sec^6 x \di x\]
Secant's power is even, so we conserve an extra factor \(\sec^2 x\) and apply \(\sec^2 x = \tan^2 x + 1\) to express the remaining secants in terms of tangents. The integral therefore becomes \[ \int \sec^4 x \sec^2 x \di x \nl = \int \par{\tan^2 x + 1}^2 \sec^2 x \di x \pd \] We strip the \(\sec^2 x\) by substituting \(u = \tan x,\) given that \(\dd u = \sec^2 x \di x.\) So the integral becomes \[ \ba \int (u^2 + 1)^2 \di u &= \int \par{u^4 + 2u^2 + 1} \di u \nl &= \tfrac{1}{5} u^5 + \tfrac{2}{3} u^3 + u + C \nl &= \boxed{\tfrac{1}{5} \tan^5 x + \tfrac{2}{3} \tan^3 x + \tan x + C} \ea \]

Integrals with Cosecant and Cotangent

It turns out that \(\csc x\) is analogous to \(\sec x\) and \(\tan x\) is analogous to \(\cot x.\) For example, the identity \(\cot^2 x + 1 = \csc^2 x\) is akin to \(\tan^2 x + 1 = \sec^2 x.\) The derivatives of cosecant and cotangent are also similar to the derivatives of secant and tangent, respectively; recall that \(\textderiv{}{x} (\csc x)\) \(= -\csc x \cot x\) and \(\textderiv{}{x} (\cot x)\) \(= -\csc^2 x.\) Therefore, if \(m\) and \(n\) are positive integers, then we evaluate \(\int \csc^m x \cot^n x \di x\) nearly identically to how we evaluate \(\int \sec^m x \tan^n x \di x.\) Let's therefore take inspiration from our strategy for Integrals with Secants and Tangents.

INTEGRATING \(\int \csc^m x \cot^n x \di x\)
  1. If the power of cosecant is even (\(m\) even), then preserve an extra factor \(\csc^2 x.\) Use \(\csc^2 x = \cot^2 x + 1\) to express the remaining factors in terms of cotangent: \[ \ba \int \csc^m x \cot^n x \di x &= \int \csc^{m - 2} x \cot^n x \csc^2 x \di x \nl &= \int (\cot^2 x + 1)^{(m - 2)/2} \cot^n x \csc^2 x \di x \pd \ea \] Then substitute \(u = \cot x.\)
  2. If the power of cotangent is odd (\(n\) odd), then preserve an extra factor \(\csc x \cot x.\) Use \(\cot^2 x = \csc^2 x - 1\) to express the remaining factors in terms of cosecant: \[ \ba \int \csc^m x \cot^n x \di x &= \int \csc^{m - 1} x \cot^{n - 1} x \csc x \cot x \di x \nl &= \int \csc^{m - 1} x (\csc^2 x - 1)^{(n - 1)/2} \csc x \cot x \di x \pd \ea \] Then substitute \(u = \csc x.\)
INTEGRATING \(\int \csc^n x \di x\)
If the power of cosecant is even (\(n\) even), then save an extra factor \(\csc^2 x\) and use \(\csc^2 x =\) \(\cot^2 x + 1\) to express the remaining cosecants in terms of cotangents: \[ \ba \int \csc^n x \di x &= \int \csc^{n - 2} x \csc^2 x \di x \nl &= \int (\cot^2 x + 1)^{(n - 2)/2} \csc^2 x \di x \pd \ea \]
EXAMPLE 9
\[\int \csc^6 x \cot^4 x \di x\]
Cosecant's power is even, so we preserve an extra \(\csc^2 x\) in the integrand. We then use \(\csc^2 x = \cot^2 x + 1\) to rewrite the remaining factors in terms of cotangent: \[\int \csc^4 x \cot^4 x \csc^2 x \di x = \int (\cot^2 x + 1)^2 \cot^4 x \csc^2 x \di x \pd \] To eliminate the extra factor \(\csc^2 x,\) we substitute \(u = \cot x\) because then \(\dd u = - \csc^2 x \di x.\) Accordingly, the integral becomes \[ \ba - \int \parbr{(u^2 + 1)^2 \, u^4} \di u &= -\int \par{u^8 + 2u^6 + u^4} \di u \nl &= -\tfrac{1}{9} u^9 - \tfrac{2}{7} u^7 - \tfrac{1}{5} u^5 + C \nl &= \boxed{-\tfrac{1}{9} \cot^9 x - \tfrac{2}{7} \cot^7 x - \tfrac{1}{5} \cot^5 x + C} \ea \]
EXAMPLE 10
\[\int \csc^6 x \di x\]
Since cosecant's power is even, we conserve an extra factor \(\csc^2 x\) and use \(\csc^2 x = \cot^2 x + 1\) to express the remaining cosecants in terms of cotangents. The integral therefore becomes \[ \int \csc^4 x \csc^2 x \di x \nl = \int (\cot^2 x + 1)^2 \csc^2 x \di x \pd \] Substituting \(u = \cot x,\) we get \(\dd u = -\csc^2 x \di x\) and so the integral becomes \[ \ba -\int (u^2 + 1)^2 \di u &= -\int \par{u^4 + 2u^2 + 1} \di u \nl &= -\tfrac{1}{5} u^5 - \tfrac{2}{3} u^3 - u + C \nl &= \boxed{-\tfrac{1}{5} \cot^5 x - \tfrac{2}{3} \cot^3 x - \cot x + C} \ea \]

Trigonometric Integrals with Products

The next families of integrals we evaluate contain products of trigonometric functions, such as the family \(\int \sin mx \cos nx \di x.\) Whereas we could use Integration by Parts to evaluate these integrals, it is far better to convert these products to sums of trigonometric functions, which are much easier to integrate. The following trigonometric identities enable us to do so.

PRODUCT-TO-SUM TRIGONOMETRIC IDENTITIES
\begin{align} \sin A \sin B &= \tfrac{1}{2} [\cos(A - B) - \cos(A + B)] \label{eq:sinsin} \nl \cos A \cos B &= \tfrac{1}{2} [\cos(A - B) + \cos(A + B)] \label{eq:coscos} \nl \sin A \cos B &= \tfrac{1}{2} [\sin(A - B) + \sin(A + B)] \label{eq:sincos} \end{align}

PROOF The addition and subtraction identities for sine are, respectively, \[ \ba \sin(A + B) &= \sin A \cos B + \cos A \sin B \cma \nl \sin(A - B) &= \sin A \cos B - \cos A \sin B \pd \ea \] Adding both equations gives \begin{align} \sin(A - B) + \sin(A + B) &= 2 \sin A \cos B \nonum \nl \implies \sin A \cos B &= \tfrac{1}{2} [\sin(A - B) + \sin(A + B)] \pd \eqlabel{eq:sincos} \end{align} Conversely, the addition and subtraction identities for cosine are, respectively, \[ \ba \cos(A + B) &= \cos A \cos B - \sin A \sin B \cma \nl \cos(A - B) &= \cos A \cos B + \sin A \sin B \pd \ea \] By adding both equations, we see \begin{align} \cos(A - B) + \cos(A + B) &= 2 \cos A \cos B \nonum \nl \implies \cos A \cos B &= \tfrac{1}{2} [\cos(A - B) + \cos(A + B)] \pd \eqlabel{eq:coscos} \end{align} Likewise, subtracting both identities for cosine gives \begin{align} \cos(A - B) - \cos(A + B) &= 2 \sin A \sin B \nonum \nl \implies \sin A \sin B &= \tfrac{1}{2} [\cos(A - B) - \cos(A + B)] \pd \eqlabel{eq:sinsin} \end{align} \[\qedproof\]

EXAMPLE 11
Evaluate the following integrals.
  1. \(\ds \int \cos 4x \cos 2x \di x\)
  2. \(\ds \int \sin 8x \cos 3x \di x\)
  3. \(\ds \int \sin 12 x \sin 20 x \di x\)
  1. By \(\eqref{eq:coscos},\) the integral becomes \[ \int \tfrac{1}{2} (\cos 2x + \cos 6x) \di x = \boxed{\tfrac{1}{4} \sin 2x + \tfrac{1}{12} \sin 6x + C} \]

  2. By \(\eqref{eq:sincos},\) the integral becomes \[ \int \tfrac{1}{2} \par{\sin 5x + \sin 11 x} \di x = \boxed{-\tfrac{1}{10} \cos 5x - \tfrac{1}{22} \cos 11 x + C} \]

  3. By \(\eqref{eq:sinsin},\) the integral becomes \[ \ba \int \tfrac{1}{2} [\cos(-8x) - \cos 32 x] \di x &= -\tfrac{1}{16} \sin(-8x) - \tfrac{1}{64} \sin 32 x + C \nl &= \boxed{\tfrac{1}{16} \sin 8x - \tfrac{1}{64} \sin 32 x + C} \ea \] where the last step is true because sine is odd and so \(\sin(-8x)\) \(= -\sin 8x.\)

We culminate this section by evaluating miscellaneous trigonometric integrals, which require ingenuity and apply the strategies we have discussed.

RECALL As we proceed into the following examples, let's remind ourselves of the antiderivatives of tangent, secant, cosecant, and cotangent, which we found in Section 4.4. The following information is essential to memorize.

\(\ds \int \tan x \di x = \ln \abs{\sec x} + C\) \(\ds \int \cot x \di x = \ln \abs{\sin x} + C\)
\(\ds \int \sec x \di x = \ln \abs{\sec x + \tan x} + C\) \(\ds \int \csc x \di x = - \ln \abs{\csc x + \cot x} + C\)

EXAMPLE 12
\[\int \sec^3 x \di x\]
Secant's power is odd, so there's no clear guideline for evaluating the integral. For example, rewriting it as \(\int \sec x (\tan^2 x + 1) \di x\) doesn't help, since no substitution can eliminate the extra factor \(\sec x.\) But because \(\textderiv{}{x} (\tan x)\) \(= \sec^2 x,\) it's easy to integrate \(\sec^2 x.\) Let's therefore break \(\sec^3 x\) into \(\sec x \sec^2 x\) and perform Integration by Parts (see Section 6.1). We choose \[ \baat{2} u &= \sec x \lspace &\dd v &= \sec^2 x \di x \nl \dd u &= \sec x \tan x \di x \lspace &v &= \tan x \pd \eaat \] So we see \[ \ba \int \sec^3 x \di x &= \sec x \tan x - \int \sec x \tan^2 x \di x \nl \int \sec^3 x \di x &= \sec x \tan x - \int \sec x \par{\sec^2 x - 1} \di x \nl \int \sec^3 x \di x &= \sec x \tan x - \int \sec^3 x \di x + \int \sec x \di x \nl 2 \int \sec^3 x \di x &= \sec x \tan x + \int \sec x \di x \pd \ea \] We have \(\int \sec x \di x = \ln \abs{\sec x + \tan x} + C.\) Then we solve for \(\int \sec^3 x \di x,\) as follows: \[ \ba 2 \int \sec^3 x \di x &= \sec x \tan x + \ln \abs{\sec x + \tan x} \nl \int \sec^3 x \di x &= \boxed{\tfrac{1}{2} \sec x \tan x + \tfrac{1}{2} \ln \abs{\sec x + \tan x} + C} \ea \]

The result in Example 12 seems unorthodox. But this integral happens to appear in many applications of integration, as we will see in the next chapters.

EXAMPLE 13
\[\int \frac{1}{1 - \sin x} \di x\]
Because the denominator contains a binomial with a trigonometric function, it is useful to multiply the numerator and denominator by the conjugate, \((1 + \sin x).\) We then have \[ \ba \int \frac{1}{1 - \sin x} \di x &= \int \frac{1}{1 - \sin x} \par{\frac{1 + \sin x}{1 + \sin x}} \di x \nl &= \int \frac{1 + \sin x}{1 - \sin^2 x} \di x \nl &= \int \frac{1 + \sin x}{\cos^2 x} \di x \nl &= \int \par{\sec^2 x + \sec x \tan x} \di x \nl &= \boxed{\tan x + \sec x + C} \ea \]
EXAMPLE 14
\[\int \frac{1}{\sin^2 x \cos^2 x} \di x\]
When sine and cosine factors are built up in the denominator, it is useful to use the Pythagorean identity \((\sin^2 x + \cos^2 x = 1)\) to split the fraction. Doing so, we see \[ \ba \int \frac{1}{\sin^2 x \cos^2 x} \di x &= \int \par{\frac{\sin^2 x}{\sin^2 x \cos^2 x} + \frac{\cos^2 x}{\sin^2 x \cos^2 x}} \di x \nl &= \int \par{\sec^2 x + \csc^2 x} \di x \nl &= \boxed{\tan x - \cot x + C} \ea \]

Integrals with Sine and Cosine We evaluate integrals that contain sine and cosine factors by exploiting the identities \(\textderiv{}{x} (\sin x) = \cos x\) and \(\textderiv{}{x} (\cos x) = -\sin x.\) The following guidelines enable us to evaluate \(\int \sin^n x \di x\) if \(n\) is a positive integer.

  1. If \(n\) is odd, then save an extra factor \(\sin x\) by writing \(\sin^n x\) as \(\sin^{n - 1} x \sin x.\) Use \(\sin^2 x = 1 - \cos^2 x\) to express \(\sin^{n - 1} x\) in terms of cosine: \[ \ba \int \sin^n x \di x &= \int \sin^{n - 1} x \sin x \di x \nl &= \int (1 - \cos^2 x)^{(n - 1)/2} \sin x \di x \pd \ea \] Then substitute \(u = \cos x.\)
  2. If \(n\) is even, then reduce the integral using \(\eqref{eq:power-reduction-sin}\) as necessary: \[ \int \sin^n x \di x = \int \parbr{\tfrac{1}{2} (1 - \cos 2x)}^{n/2} \di x \pd \]

Likewise, we use the following guidelines in evaluating \(\int \cos^n x \di x.\)

  1. If \(n\) is odd, then save an extra factor \(\cos x\) by writing \(\cos^n x\) as \(\cos^{n - 1} x \cos x.\) Use \(\cos^2 x = 1 - \sin^2 x\) to express \(\cos^{n - 1} x\) in terms of sine: \[ \ba \int \cos^n x \di x &= \int \cos^{n - 1} x \cos x \di x \nl &= \int (1 - \sin^2 x)^{(n - 1)/2} \cos x \di x \pd \ea \] Then substitute \(u = \sin x.\)
  2. If \(n\) is even, then reduce the integral using \(\eqref{eq:power-reduction-cos}\) as necessary: \[ \int \cos^n x \di x = \int \parbr{\tfrac{1}{2} (1 + \cos 2x)}^{n/2} \di x \pd \]

The following guidelines enable us to evaluate \(\int \sin^m x \cos^n x \di x.\)

  1. If the power of sine is odd (\(m\) odd), then save an extra factor \(\sin x\) and use \(\sin^2 x = 1 - \cos^2 x\) to express the remaining factors in terms of cosine: \[ \ba \int \sin^m x \cos^n x \di x &= \int \sin^{m - 1} x \cos^n x \sin x \di x \nl &= \int (1 - \cos^2 x)^{(m - 1)/2} \cos^n x \sin x \di x \pd \ea \] Then substitute \(u = \cos x.\)
  2. If the power of sine is even and the power of cosine is odd (\(m\) even, \(n\) odd), then save an extra factor \(\cos x\) and use \(\cos^2 x = 1 - \sin^2 x\) to rewrite the remaining factors in terms of sine: \[ \ba \int \sin^m x \cos^n x \di x &= \int \sin^m x \cos^{n - 1} x \cos x \di x \nl &= \int \sin^m x (1 - \sin^2 x)^{(n - 1)/2} \cos x \di x \pd \ea \] Then substitute \(u = \sin x.\)
  3. If the powers of sine and cosine are both even (\(m\) and \(n\) both even), then use \(\sin^2 x = 1 - \cos^2 x\) to express the integrand in terms of cosine: \[ \ba \int \sin^m x \cos^n x \di x &= \int (\sin^2 x)^{m/2} \cos^n x \di x \nl &= \int (1 - \cos^2 x)^{m/2} \cos^n x \di x \pd \ea \] Then use \(\eqref{eq:power-reduction-cos}\) to reduce the integral.

Integrals with Secants and Tangents The derivatives \(\textderiv{}{x} (\tan x)\) \(= \sec^2 x\) and \(\textderiv{}{x} (\sec x)\) \(= \sec x \tan x\) enable us to evaluate the family of integrals \(\int \sec^m x \tan^n x \di x\) as follows.

  1. If the power of secant is even (\(m\) even), then preserve an extra factor \(\sec^2 x.\) Use \(\sec^2 x = 1 + \tan^2 x\) to express the remaining factors in terms of \(\tan x \col \) \[ \ba \int \sec^m x \tan^n x \di x &= \int \sec^{m - 2} x \tan^n x \sec^2 x \di x \nl &= \int (1 + \tan^2 x)^{(m - 2)/2} \tan^n x \sec^2 x \di x \pd \ea \] Then substitute \(u = \tan x.\)
  2. If the power of tangent is odd (\(n\) odd), then preserve an extra factor \(\sec x \tan x.\) Use \(\tan^2 x = \sec^2 x - 1\) to express the remaining factors in terms of \(\sec x \col \) \[ \ba \int \sec^m x \tan^n x \di x &= \int \sec^{m - 1} x \tan^{n - 1} x \sec x \tan x \di x \nl &= \int \sec^{m - 1} x \par{\sec^2 x - 1}^{(n - 1)/2} \sec x \tan x \di x \pd \ea \] Then substitute \(u = \sec x.\)

To evaluate \(\int \sec^n x \di x\) if \(n\) is a positive even integer, we save an extra factor \(\sec^2 x\) and use \(\sec^2 x = \tan^2 x + 1\) to express the remaining factors in terms of tangent: \[ \ba \int \sec^n x \di x &= \int \sec^{n - 2} x \sec^2 x \di x \nl &= \int (\tan^2 x + 1)^{(n - 2)/2} \sec^2 x \di x \pd \ea \]

Integrals with Cosecant and Cotangent The derivatives \(\textderiv{}{x} (\cot x)\) \(= -\csc^2 x\) and \(\textderiv{}{x} (\csc x)\) \(= -\csc x \cot x\) enable us to evaluate the family of integrals \(\int \csc^m x \cot^n x \di x.\) We do so by employing a similar strategy from Integrals with Secants and Tangents; namely, \(\tan x\) is analogous to \(\cot x\) and \(\sec x\) is analogous to \(\csc x.\) We therefore use the following guidelines.

  1. If the power of cosecant is even (\(m\) even), then preserve an extra factor \(\csc^2 x.\) Use \(\csc^2 x = \cot^2 x + 1\) to express the remaining factors in terms of cotangent: \[ \ba \int \csc^m x \cot^n x \di x &= \int \csc^{m - 2} x \cot^n x \csc^2 x \di x \nl &= \int (\cot^2 x + 1)^{(m - 2)/2} \cot^n x \csc^2 x \di x \pd \ea \] Then substitute \(u = \cot x.\)
  2. If the power of cotangent is odd (\(n\) odd), then preserve an extra factor \(\csc x \cot x.\) Use \(\cot^2 x = \csc^2 x - 1\) to express the remaining factors in terms of cosecant: \[ \ba \int \csc^m x \cot^n x \di x &= \int \csc^{m - 1} x \cot^{n - 1} x \csc x \cot x \di x \nl &= \int \csc^{m - 1} x (\csc^2 x - 1)^{(n - 1)/2} \csc x \cot x \di x \pd \ea \] Then substitute \(u = \csc x.\)

Trigonometric Integrals with Products Trigonometric identities convert products of trigonometric functions into sums and differences, which are simple to integrate. We use the following equations: \begin{align} \sin A \sin B &= \tfrac{1}{2} [\cos(A - B) - \cos(A + B)] \eqlabel{eq:sinsin} \nl \cos A \cos B &= \tfrac{1}{2} [\cos(A - B) + \cos(A + B)] \eqlabel{eq:coscos} \nl \sin A \cos B &= \tfrac{1}{2} [\sin(A - B) + \sin(A + B)] \eqlabel{eq:sincos} \end{align}