Skip to main content
Mathematics LibreTexts

2.2: Trigonometric Integrals

  • Page ID
    42109
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives
    • Solve integration problems involving products and powers of \(\sin x\) and \(\cos x\).
    • Solve integration problems involving products and powers of \(\tan x\) and \(\sec x\).
    • Use reduction formulas to solve trigonometric integrals.

    In this section we look at how to integrate a variety of products of trigonometric functions. These integrals are called trigonometric integrals. They are an important part of the integration technique called trigonometric substitution, which is featured in Trigonometric Substitution. This technique allows us to convert algebraic expressions that we may not be able to integrate into expressions involving trigonometric functions, which we may be able to integrate using the techniques described in this section. In addition, these types of integrals appear frequently when we study polar, cylindrical, and spherical coordinate systems later. Let’s begin our study with products of \(\sin x\) and \(\cos x.\)

    Integrating Products and Powers of sin x and cos x

    A key idea behind the strategy used to integrate combinations of products and powers of \(\sin x\) and \(\cos x\) involves rewriting these expressions as sums and differences of integrals of the form \(∫\sin^jx\cos x\,dx\) or \(∫\cos^jx\sin x\,dx\). After rewriting these integrals, we evaluate them using \(u\)-substitution. Before describing the general process in detail, let’s take a look at the following examples.

    Example \(\PageIndex{1}\): Integrating \(\displaystyle ∫\cos^j x\sin x\,dx\)

    Evaluate \(\displaystyle ∫\cos^3x\sin x\,dx.\)

    Solution

    Use \(u\)-substitution and let \(u=\cos x\). In this case, \(du=−\sin x\,dx.\)

    Thus,

    \[∫\cos^3x\sin x\,dx=−∫u^3\,du=−\frac{1}{4}u^4+C=−\frac{1}{4}\cos^4x+C.\nonumber \]

    Exercise \(\PageIndex{1}\)

    Evaluate \(\displaystyle ∫\sin^4x\cos x\,dx.\)

    Hint

    Let \(u=\sin x.\)

    Answer

    \(\displaystyle ∫\sin^4x\cos x\,dx = \frac{1}{5}\sin^5x+C\)

    Example \(\PageIndex{2}\): A Preliminary Example: Integrating \(∫\cos^jx\sin^kx\,dx\) where \(k\) is Odd

    Evaluate \(\displaystyle ∫\cos^2x\sin^3x\,dx.\)

    Solution

    To convert this integral to integrals of the form \(\displaystyle ∫\cos^jx\sin x\,dx,\) rewrite \(\sin^3x=\sin^2x\sin x\) and make the substitution \(\sin^2x=1−\cos^2x.\)

    Thus,

    \(\displaystyle \begin{align*} ∫\cos^2x\sin^3x\,dx &=∫\cos^2x(1−\cos^2x)\sin x\,dx & & \text{Let }u=\cos x; \; \text{then }du=−\sin x\,dx.\\[4pt]
    &=−∫u^2(1−u^2)\,du \\[4pt]
    &=∫(u^4−u^2)\,du \\[4pt]
    &=\frac{1}{5}u^5−\frac{1}{3}u^3+C \\[4pt]
    &=\frac{1}{5}\cos^5x−\frac{1}{3}\cos^3x+C.\end{align*} \)

    Exercise \(\PageIndex{2}\)

    Evaluate \(\displaystyle ∫\cos^3x\sin^2x\,dx.\)

    Hint

    Write \(\cos^3x=\cos^2x\cos x=(1−\sin^2x)\cos x\) and let \(u=\sin x\).

    Answer

    \(\displaystyle ∫\cos^3x\sin^2x\,dx = \frac{1}{3}\sin^3x−\frac{1}{5}\sin^5x+C\)

    In the next example, we see the strategy that must be applied when there are only even powers of \(\sin x\) and \(\cos x\). For integrals of this type, the identities

    \[\sin^2x=\frac{1}{2}−\frac{1}{2}\cos(2x)=\frac{1−\cos(2x)}{2} \nonumber \]

    and

    \[\cos^2x=\frac{1}{2}+\frac{1}{2}\cos(2x)=\frac{1+\cos(2x)}{2} \nonumber \]

    are invaluable. These identities are sometimes known as power-reducing identities and they may be derived from the double-angle identity \(\cos(2x)=\cos^2x−\sin^2x\) and the Pythagorean identity \(\cos^2x+\sin^2x=1.\)

    Example \(\PageIndex{3}\): Integrating an Even Power of \(\sin x\)

    Evaluate \(\displaystyle ∫\sin^2x\,dx\).

    Solution

    To evaluate this integral, let’s use the trigonometric identity \(\sin^2x=\frac{1}{2}−\frac{1}{2}\cos(2x).\) Thus,

    \(\displaystyle ∫\sin^2x\,dx=∫\left(\frac{1}{2}−\frac{1}{2}\cos(2x)\right)\,dx=\frac{1}{2}x−\frac{1}{4}\sin(2x)+C.\)

    Exercise \(\PageIndex{3}\)

    Evaluate \(\displaystyle ∫\cos^2x\,dx.\)

    Hint

    \(\cos^2x=\frac{1}{2}+\frac{1}{2}\cos(2x)\)

    Answer

    \(\displaystyle ∫\cos^2x\,dx = \frac{1}{2}x+\frac{1}{4}\sin(2x)+C\)

    The general process for integrating products of powers of \(\sin x\) and \(\cos x\) is summarized in the following set of guidelines.

    Problem-Solving Strategy: Integrating Products and Powers of \(\sin x\) and \(cos x\)

    To integrate \(\displaystyle \int \cos^jx\sin^kx\,dx\) use the following strategies:

    1. If \(k\) is odd, rewrite \(\sin^kx=\sin^{k−1}x\sin x\) and use the identity \(\sin^2x=1−\cos^2x\) to rewrite \(\sin^{k−1}x\) in terms of \(\cos x\). Integrate using the substitution \(u=\cos x\). This substitution makes \(du=−\sin x\,dx.\)

    2. If \(j\) is odd, rewrite \(\cos^jx=\cos^{j−1}x\cos x\) and use the identity \(\cos^2x=1−\sin^2x\) to rewrite \(\cos^{j−1}x\) in terms of \(\sin x\). Integrate using the substitution \(u=\sin x\). This substitution makes \(du=\cos x\,dx.\) (Note: If both \(j\) and \(k\) are odd, either strategy 1 or strategy 2 may be used.)

    3. If both \(j\) and \(k\) are even, use \(\sin^2x=\dfrac{1−\cos(2x)}{2}\) and \(\cos^2x=\dfrac{1+\cos(2x)}{2}\). After applying these formulas, simplify and reapply strategies 1 through 3 as appropriate.

    Example \(\PageIndex{4}\): Integrating \(∫\cos^jx\sin^kx\,dx\) where \(k\) is Odd

    Evaluate \(\displaystyle ∫\cos^8x\sin^5x\,dx.\)

    Solution

    Since the power on \(\sin x\) is odd, use strategy 1. Thus,

    \(\displaystyle \begin{align*} ∫\cos^8x\sin^5x\,dx &=∫\cos^8x\sin^4x\sin x\,dx & & \text{Break off }\sin x. \\[4pt]
    &=∫\cos^8x(\sin^2x)^2\sin x\,dx & & \text{Rewrite }\sin^4x=(\sin^2x)^2. \\[4pt]
    &=∫\cos^8x(1−\cos^2x)^2\sin x\,dx & & \text{Substitute }\sin^2x=1−\cos^2x. \\[4pt]
    &=∫u^8(1−u^2)^2(−du) & & \text{Let }u=\cos x\text{ and }du=−\sin x\,dx. \\[4pt]
    &=∫(−u^8+2u^{10}−u^{12})du & & \text{Expand.} \\[4pt]
    &=−\frac{1}{9}u^9+\frac{2}{11}u^{11}−\frac{1}{13}u^{13}+C & & \text{Evaluate the integral.} \\[4pt]
    &=−\frac{1}{9}\cos^9x+\frac{2}{11}\cos^{11}x−\frac{1}{13}\cos^{13}x+C & & \text{Substitute }u=\cos x. \end{align*}\)

    Example \(\PageIndex{5}\): Integrating \(∫\cos^jx\sin^kx\,dx\) where \(k\) and \(j\) are Even

    Evaluate \(\displaystyle ∫\sin^4x\,dx.\)

    Solution: Since the power on \(\sin x\) is even \((k=4)\) and the power on \(\cos x\) is even \((j=0),\) we must use strategy 3. Thus,

    \(\begin{align*} \displaystyle ∫\sin^4x\,dx &=∫\left(\sin^2x\right)^2\,dx & & \text{Rewrite }\sin^4x=\left(\sin^2x\right)^2.\\[4pt]
    &=∫\left(\frac{1}{2}−\frac{1}{2}\cos(2x)\right)^2\,dx & &\text{Substitute }\sin^2x=\frac{1}{2}−\frac{1}{2}\cos(2x).\\[4pt]
    &=∫\left(\frac{1}{4}−\frac{1}{2}\cos(2x)+\frac{1}{4}\cos^2(2x)\right)\,dx & & \text{Expand }\left(\frac{1}{2}−\frac{1}{2}\cos(2x)\right)^2.\\[4pt]
    &=∫\left(\frac{1}{4}−\frac{1}{2}\cos(2x)+\frac{1}{4}\left(\frac{1}{2}+\frac{1}{2}\cos(4x)\right)\right)\,dx & &\text{Since }\cos^2(2x)\text{ has an even power, substitute }\cos^2(2x)=\frac{1}{2}+\frac{1}{2}\cos(4x).\\[4pt]
    &=∫\left(\frac{3}{8}−\frac{1}{2}\cos(2x)+\frac{1}{8}\cos(4x)\right)\,dx & & \text{Simplify.}\\[4pt]
    &=\frac{3}{8}x−\frac{1}{4}\sin(2x)+\frac{1}{32}\sin(4x)+C & & \text{Evaluate the integral.}\\[4pt]\end{align*}\)

    Exercise \(\PageIndex{4}\)

    Evaluate \(\displaystyle ∫\cos^3x\,dx.\)

    Hint

    Use strategy 2. Write \(\cos^3x=\cos^2x\cos x\) and substitute \(\cos^2x=1−\sin^2x.\)

    Answer

    \(\displaystyle ∫\cos^3x\,dx = \sin x−\frac{1}{3}\sin^3x+C\)

    Exercise \(\PageIndex{5}\)

    Evaluate \(\displaystyle ∫\cos^2(3x)\,dx.\)

    Hint

    Use strategy 3. Substitute \(\cos^2(3x)=\frac{1}{2}+\frac{1}{2}\cos(6x)\)

    Answer

    \(\displaystyle ∫\cos^2(3x)\,dx = \frac{1}{2}x+\frac{1}{12}\sin(6x)+C\)

    In some areas of physics, such as quantum mechanics, signal processing, and the computation of Fourier series, it is often necessary to integrate products that include \(sin(ax), sin(bx), cos(ax),\) and \(cos(bx).\) These integrals are evaluated by applying trigonometric identities, as outlined in the following rule.

    Rule: Integrating Products of Sines and Cosines of Different Angles

    To integrate products involving \(\sin(ax), \,\sin(bx), \,\cos(ax),\) and \(\cos(bx),\) use the substitutions

    \[\sin(ax)\sin(bx)=\frac{1}{2}\cos((a−b)x)−\frac{1}{2}\cos((a+b)x) \nonumber \]

    \[\sin(ax)\cos(bx)=\frac{1}{2}\sin((a−b)x)+\frac{1}{2}\sin((a+b)x) \nonumber \]

    \[\cos(ax)\cos(bx)=\frac{1}{2}\cos((a−b)x)+\frac{1}{2}\cos((a+b)x) \nonumber \]

    These formulas may be derived from the sum-of-angle formulas for sine and cosine.

    Example \(\PageIndex{6}\): Evaluating \(∫\sin(ax)\cos(bx)\,dx\)

    Evaluate \(\displaystyle ∫\sin(5x)\cos(3x)\,dx.\)

    Solution: Apply the identity \(\sin(5x)\cos(3x)=\frac{1}{2}\sin(2x)+\frac{1}{2}\sin(8x).\) Thus,

    \(\displaystyle ∫\sin(5x)\cos(3x)\,dx=∫\frac{1}{2}\sin(2x)+\frac{1}{2}\sin(8x)\,dx=−\frac{1}{4}\cos(2x)−\frac{1}{16}\cos(8x)+C.\)

    Exercise \(\PageIndex{6}\)

    Evaluate \(\displaystyle ∫\cos(6x)\cos(5x)\,dx.\)

    Hint

    Substitute \(\cos(6x)\cos(5x)=\frac{1}{2}\cos x+\frac{1}{2}\cos(11x).\)

    Answer

    \(\displaystyle ∫\cos(6x)\cos(5x)\,dx = \frac{1}{2}\sin x+\frac{1}{22}\sin(11x)+C\)

    Integrating Products and Powers of \(\tan x\) and \(\sec x\)

    Before discussing the integration of products and powers of \(\tan x\) and \(\sec x\), it is useful to recall the integrals involving \(\tan x\) and \(\sec x\) we have already learned:

    1. \(\displaystyle ∫\sec^2x\,dx=\tan x+C\)

    2. \(\displaystyle ∫\sec x\tan x\,dx=\sec x+C\)

    3. \(\displaystyle ∫\tan x\,dx=\ln|\sec x|+C\)

    4. \(\displaystyle ∫\sec x\,dx=\ln|\sec x+\tan x|+C.\)

    For most integrals of products and powers of \(\tan x\) and \(\sec x\), we rewrite the expression we wish to integrate as the sum or difference of integrals of the form \(\displaystyle ∫\tan^jx\sec^2x\,dx\) or \(\displaystyle ∫\sec^jx\tan x\,dx\). As we see in the following example, we can evaluate these new integrals by using u-substitution.

    Example \(\PageIndex{7}\): Evaluating \(∫\sec^jx\tan x\,dx\)

    Evaluate \(\displaystyle ∫\sec^5 x\tan x\,dx.\)

    Solution: Start by rewriting \(\sec^5 x\tan x\) as \(\sec^4 x\sec x\tan x.\)

    \(\displaystyle \begin{align*} ∫\sec^5x\tan x\,dx &= ∫\sec^4 x\sec x\tan x \,dx \\[4pt]
    &=∫u^4\,du & & \text{Let } u=\sec x;\,\text{then}, \,du=\sec x\tan x \,dx.\\[4pt]
    &=\tfrac{1}{5}u^5+C & & \text{Evaluate the integral.} \\[4pt]
    &=\tfrac{1}{5}\sec^5 x+C & & \text{Substitute }\sec x=u.\end{align*}\)

    You can read some interesting information at this website to learn about a common integral involving the secant.

    Exercise \(\PageIndex{7}\)

    Evaluate \(\displaystyle ∫\tan^5x\sec^2x\,dx.\)

    Hint

    Let \(u=\tan x\) and \(du=\sec^2 x.\)

    Answer

    \(\displaystyle ∫\tan^5x\sec^2x\,dx = \tfrac{1}{6}\tan^6x+C\)

    We now take a look at the various strategies for integrating products and powers of \(\sec x\) and \(\tan x.\)

    Problem-Solving Strategy: Integrating \(\displaystyle ∫\tan^kx\sec^jx\,dx\)

    To integrate \(\displaystyle ∫\tan^kx\sec^jx\,dx,\) use the following strategies:

    1. If \(j\) is even and \(j≥2,\) rewrite \(\sec^jx=\sec^{j−2}x\sec^2x\) and use \(\sec^2x=\tan^2x+1\) to rewrite \(\sec^{j−2}x\) in terms of \(\tan x\). Let \(u=\tan x\) and \(du=\sec^2x.\)

    2. If \(k\) is odd and \(j≥1\), rewrite \(\tan^kx\sec^jx=\tan^{k−1}x\sec^{j−1}x\sec x\tan x\) and use \(\tan^2x=\sec^2x−1\) to rewrite \(\tan^{k−1}x\) in terms of \(\sec x\). Let \(u=\sec x\) and \(du=\sec x\tan x\,dx.\) (Note: If \(j\) is even and \(k\) is odd, then either strategy 1 or strategy 2 may be used.)

    3. If \(k\) is odd where \(k≥3\) and \(j=0\), rewrite \(\tan^kx=\tan^{k−2}x\tan^2x=\tan^{k−2}x(\sec^2x−1)=\tan^{k−2}x\sec^2x−\tan^{k−2}x.\) It may be necessary to repeat this process on the \(\tan^{k−2}x\) term.

    4. If \(k\) is even and \(j\) is odd, then use \(\tan^2x=\sec^2x−1\) to express \(\tan^kx\) in terms of \(\sec x\). Use integration by parts to integrate odd powers of \(\sec x.\)

    Example \(\PageIndex{8}\): Integrating \(∫\tan^kx\sec^jx\,dx\) when \(j\) is Even

    Evaluate \(\displaystyle ∫\tan^6x\sec^4x\,dx.\)

    Solution

    Since the power on \(\sec x\) is even, rewrite \(\sec^4x=\sec^2x\sec^2x\) and use \(\sec^2x=\tan^2x+1\) to rewrite the first \(\sec^2x\) in terms of \(\tan x.\) Thus,

    \(\begin{align*} \displaystyle ∫\tan^6x\sec^4x\,dx &=∫\tan^6x(\tan^2x+1)\sec^2x\,dx \\[4pt]
    &=∫u^6(u^2+1)\,du & & \text{Let }u=\tan x\text{ and }du=\sec^2x.\\[4pt]
    &=∫(u^8+u^6)\,du & & \text{Expand.}\\[4pt]
    &=\frac{1}{9}u^9+\frac{1}{7}u^7+C & & \text{Evaluate the integral.}\\[4pt]
    &=\frac{1}{9}\tan^9x+\frac{1}{7}\tan^7x+C. & & \text{Substitute }\tan x=u. \end{align*}\)

    Example \(\PageIndex{9}\): Integrating \(∫\tan^kx\sec^jx\,dx\) when \(k\) is Odd

    Evaluate \(\displaystyle ∫\tan^5x\sec^3x\,dx.\)

    Solution

    Since the power on \(\tan x\) is odd, begin by rewriting \(\tan^5x\sec^3x=\tan^4x\sec^2x\sec x\tan x.\) Thus,

    \(\begin{align*} \displaystyle ∫\tan^5x\sec^3x\,dx&=\tan^4x\sec^2x\sec x\tan x.\\[4pt]
    &=∫(\tan^2x)^2\sec^2x\sec x\tan x\,dx & & \text{Write }\tan^4x=(\tan^2x)^2.\\[4pt]
    &=∫(\sec^2x−1)^2\sec^2x\sec x\tan x\,dx & & \text{Use }\tan^2x=\sec^2x−1.\\[4pt]
    &=∫(u^2−1)^2u^2du & & \text{Let }u=\sec x\text{ and }du=\sec x\tan x\,dx\\[4pt]
    &=∫(u^6−2u^4+u^2)du & & \text{Expand.}\\[4pt]
    &=\frac{1}{7}u^7−\frac{2}{5}u^5+\frac{1}{3}u^3+C & & \text{Integrate.}\\[4pt]
    &=\frac{1}{7}\sec^7x−\frac{2}{5}\sec^5x+\frac{1}{3}\sec^3x+C & & \text{Substitute }\sec x=u.\end{align*}\)

    Example \(\PageIndex{10}\): Integrating \(∫\tan^kx\,dx\) where \(k\) is Odd and \(k≥3\)

    Evaluate \(\displaystyle ∫\tan^3x\,dx.\)

    Solution

    Begin by rewriting \(\tan^3x=\tan x\tan^2x=\tan x(\sec^2x−1)=\tan x\sec^2x−\tan x.\) Thus,

    \(\begin{align*} \displaystyle ∫\tan^3x\,dx &= ∫(\tan x\sec^2x−\tan x)\,dx\\[4pt]
    &=∫\tan x\sec^2x\,dx−∫\tan x\,dx\\[4pt]
    &=\frac{1}{2}\tan^2x−\ln |\sec x|+C.\end{align*}\)

    For the first integral, use the substitution \(u=\tan x.\) For the second integral, use the formula.

    Example \(\PageIndex{11}\): Integrating \(\displaystyle ∫\sec^3x\,dx\)

    Integrate \(\displaystyle ∫\sec^3x\,dx.\)

    Solution

    This integral requires integration by parts. To begin, let \(u=\sec x\) and \(dv=\sec^2x\). These choices make \(du=\sec x\tan x\) and \(v=\tan x\). Thus,

    \(\begin{align*} \displaystyle ∫\sec^3x\,dx &=\sec x\tan x−∫\tan x\sec x\tan x\,dx\\[4pt]
    &=\sec x\tan x−∫\tan^2x\sec x\,dx & & \text{Simplify.}\\[4pt]
    &=\sec x\tan x−∫(\sec^2x−1)\sec x\,dx & & \text{Substitute }\tan^2x=\sec^2x−1.\\[4pt]
    &=\sec x\tan x+∫\sec x\,dx−∫\sec^3x\,dx & & \text{Rewrite.}\\[4pt]
    &=\sec x\tan x+\ln|\sec x+\tan x|−∫\sec^3x\,dx. & & \text{Evaluate }∫\sec x\,dx.\end{align*}\)

    We now have

    \[∫\sec^3x\,dx=\sec x\tan x+\ln|\sec x+\tan x|−∫\sec^3x\,dx.\nonumber \]

    Since the integral \(\displaystyle ∫\sec^3x\,dx\) has reappeared on the right-hand side, we can solve for \(\displaystyle ∫\sec^3x\,dx\) by adding it to both sides. In doing so, we obtain

    \[2∫\sec^3x\,dx=\sec x\tan x+\ln|\sec x+\tan x|.\nonumber \]

    Dividing by 2, we arrive at

    \[∫\sec^3x\,dx=\frac{1}{2}\sec x\tan x+\frac{1}{2}\ln|\sec x+\tan x|+C\nonumber \]

    Exercise \(\PageIndex{8}\)

    Evaluate \(\displaystyle ∫\tan^3x\sec^7x\,dx.\)

    Hint

    Use Example \(\PageIndex{9}\) as a guide.

    Answer

    \(\displaystyle ∫\tan^3x\sec^7x\,dx = \frac{1}{9}\sec^9x−\frac{1}{7}\sec^7x+C\)

    Reduction Formulas

    Evaluating \(\displaystyle ∫\sec^nx\,dx\) for values of \(n\) where \(n\) is odd requires integration by parts. In addition, we must also know the value of \(\displaystyle ∫\sec^{n−2}x\,dx\) to evaluate \(\displaystyle ∫\sec^nx\,dx\). The evaluation of \(\displaystyle ∫\tan^nx\,dx\) also requires being able to integrate \(\displaystyle ∫\tan^{n−2}x\,dx\). To make the process easier, we can derive and apply the following power reduction formulas. These rules allow us to replace the integral of a power of \(\sec x\) or \(\tan x\) with the integral of a lower power of \(\sec x\) or \(\tan x.\)

    Rule: Reduction Formulas for \(∫\sec^nx\,dx\) and \(∫\tan^nx\,dx\)

    \[∫\sec^n x\,dx=\frac{1}{n−1}\sec^{n−2}x\tan x+\frac{n−2}{n−1}∫\sec^{n−2}x\,dx \nonumber \]

    \[∫\tan^n x\,dx=\frac{1}{n−1}\tan^{n−1}x−∫\tan^{n−2}x\,dx \nonumber \]

    The first power reduction rule may be verified by applying integration by parts. The second may be verified by following the strategy outlined for integrating odd powers of \(\tan x.\)

    Example \(\PageIndex{12}\): Revisiting \(∫\sec^3x\,dx\)

    Apply a reduction formula to evaluate \(\displaystyle ∫\sec^3x\,dx.\)

    Solution: By applying the first reduction formula, we obtain

    \(\begin{align*} \displaystyle ∫\sec^3x\,dx &=\frac{1}{2}\sec x\tan x+\frac{1}{2}∫\sec x\,dx\\[4pt]
    &=\frac{1}{2}\sec x\tan x+\frac{1}{2}\ln|\sec x+\tan x|+C.\end{align*}\)

    Example \(\PageIndex{13}\): Using a Reduction Formula

    Evaluate \(\displaystyle ∫\tan^4x\,dx.\)

    Solution: Applying the reduction formula for \(∫\tan^4x\,dx\) we have

    \(\begin{align*} \displaystyle ∫\tan^4x\,dx &=\frac{1}{3}\tan^3x−∫\tan^2x\,dx\\[4pt]
    &=\frac{1}{3}\tan^3x−(\tan x−∫\tan^0x\,dx) & & \text{Apply the reduction formula to }∫\tan^2x\,dx.\\[4pt]
    &=\frac{1}{3}\tan^3x−\tan x+∫1\,dx & & \text{Simplify.}\\[4pt]
    &=\frac{1}{3}\tan^3x−\tan x+x+C & & \text{Evaluate }∫1\,dx\end{align*}\)

    Exercise \(\PageIndex{9}\)

    Apply the reduction formula to \(\displaystyle ∫\sec^5x\,dx.\)

    Hint

    Use reduction formula 1 and let \(n=5.\)

    Answer

    \(\displaystyle ∫\sec^5x\,dx=\frac{1}{4}\sec^3x\tan x+\frac{3}{4}∫\sec^3x\)

    Key Concepts

    Integrals of trigonometric functions can be evaluated by the use of various strategies. These strategies include

    1. Applying trigonometric identities to rewrite the integral so that it may be evaluated by \(u\)-substitution
    2. Using integration by parts
    3. Applying trigonometric identities to rewrite products of sines and cosines with different arguments as the sum of individual sine and cosine functions
    4. Applying reduction formulas

    Key Equations

    To integrate products involving \(\sin(ax), \,\sin(bx), \,\cos(ax),\) and \(\cos(bx),\) use the substitutions.

    • Sine Products

    \(\sin(ax)\sin(bx)=\frac{1}{2}\cos((a−b)x)−\frac{1}{2}\cos((a+b)x)\)

    • Sine and Cosine Products

    \(\sin(ax)\cos(bx)=\frac{1}{2}\sin((a−b)x)+\frac{1}{2}\sin((a+b)x)\)

    • Cosine Products

    \(\cos(ax)\cos(bx)=\frac{1}{2}\cos((a−b)x)+\frac{1}{2}\cos((a+b)x)\)

    • Power Reduction Formula

    \(\displaystyle ∫\sec^nx\,dx=\frac{1}{n−1}\sec^{n−2}x \tan x+\frac{n−2}{n−1}∫\sec^{n−2}x\,dx\)

    • Power Reduction Formula

    \(\displaystyle ∫\tan^nx\,dx=\frac{1}{n−1}\tan^{n−1}x−∫\tan^{n−2}x\,dx\)

    Glossary

    power reduction formula
    a rule that allows an integral of a power of a trigonometric function to be exchanged for an integral involving a lower power
    trigonometric integral
    an integral involving powers and products of trigonometric functions

    This page titled 2.2: Trigonometric Integrals is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.