Skip to ContentGo to accessibility page
Calculus Volume 2

3.2 Trigonometric Integrals

Calculus Volume 23.2 Trigonometric Integrals

3.2 Trigonometric Integrals

Learning Objectives

  • 3.2.1 Solve integration problems involving products and powers of sin x sin x and cos x . cos x .
  • 3.2.2 Solve integration problems involving products and powers of tan x tan x and sec x . sec x .
  • 3.2.3 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 sinxsinx and cosx.cosx.

Integrating Products and Powers of sinx and cosx

A key idea behind the strategy used to integrate combinations of products and powers of sinxsinx and cosxcosx involves rewriting these expressions as sums and differences of integrals of the form ∫sinjxcosxdx∫sinjxcosxdx or ∫cosjxsinxdx.∫cosjxsinxdx. 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 3.8

Integrating ∫cosjxsinxdx∫cosjxsinxdx

Evaluate ∫cos3xsinxdx.∫cos3xsinxdx.

Checkpoint 3.5

Evaluate ∫sin4xcosxdx.∫sin4xcosxdx.

Example 3.9

A Preliminary Example: Integrating ∫cosjxsinkxdx∫cosjxsinkxdx Where k is Odd

Evaluate ∫cos2xsin3xdx.∫cos2xsin3xdx.

Checkpoint 3.6

Evaluate ∫cos3xsin2xdx.∫cos3xsin2xdx.

In the next example, we see the strategy that must be applied when there are only even powers of sinxsinx and cosx.cosx. For integrals of this type, the identities

sin2x=12−12cos(2x)=1−cos(2x)2sin2x=12−12cos(2x)=1−cos(2x)2

and

cos2x=12+12cos(2x)=1+cos(2x)2cos2x=12+12cos(2x)=1+cos(2x)2

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

Example 3.10

Integrating an Even Power of sinxsinx

Evaluate ∫sin2xdx.∫sin2xdx.

Checkpoint 3.7

Evaluate ∫cos2xdx.∫cos2xdx.

The general process for integrating products of powers of sinxsinx and cosxcosx is summarized in the following set of guidelines.

Problem-Solving Strategy

Integrating Products and Powers of sin x and cos x

To integrate ∫cosjxsinkxdx∫cosjxsinkxdx use the following strategies:

  1. If kk is odd, rewrite sinkx=sink−1xsinxsinkx=sink−1xsinx and use the identity sin2x=1−cos2xsin2x=1−cos2x to rewrite sink−1xsink−1x in terms of cosx.cosx. Integrate using the substitution u=cosx.u=cosx. This substitution makes du=−sinxdx.du=−sinxdx.
  2. If jj is odd, rewrite cosjx=cosj−1xcosxcosjx=cosj−1xcosx and use the identity cos2x=1−sin2xcos2x=1−sin2x to rewrite cosj−1xcosj−1x in terms of sinx.sinx. Integrate using the substitution u=sinx.u=sinx. This substitution makes du=cosxdx.du=cosxdx. (Note: If both jj and kk are odd, either strategy 1 or strategy 2 may be used.)
  3. If both jj and kk are even, use sin2x=(1/2)−(1/2)cos(2x)sin2x=(1/2)−(1/2)cos(2x) and cos2x=(1/2)+(1/2)cos(2x).cos2x=(1/2)+(1/2)cos(2x). After applying these formulas, simplify and reapply strategies 1 through 3 as appropriate.

Example 3.11

Integrating ∫cosjxsinkxdx∫cosjxsinkxdx where k is Odd

Evaluate ∫cos8xsin5xdx.∫cos8xsin5xdx.

Example 3.12

Integrating ∫cosjxsinkxdx∫cosjxsinkxdx where k and j are Even

Evaluate ∫sin4xdx.∫sin4xdx.

Checkpoint 3.8

Evaluate ∫cos3xdx.∫cos3xdx.

Checkpoint 3.9

Evaluate ∫cos2(3x)dx.∫cos2(3x)dx.

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(ax), sin(bx),sin(bx), cos(ax),cos(ax), and cos(bx).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(ax), sin(bx),sin(bx), cos(ax),cos(ax), and cos(bx),cos(bx), use the substitutions

sin(ax)sin(bx)=12cos((a−b)x)−12cos((a+b)x)sin(ax)sin(bx)=12cos((a−b)x)−12cos((a+b)x)
(3.3)
sin(ax)cos(bx)=12sin((a−b)x)+12sin((a+b)x)sin(ax)cos(bx)=12sin((a−b)x)+12sin((a+b)x)
(3.4)
cos(ax)cos(bx)=12cos((a−b)x)+12cos((a+b)x)cos(ax)cos(bx)=12cos((a−b)x)+12cos((a+b)x)
(3.5)

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

Example 3.13

Evaluating ∫sin(ax)cos(bx)dx∫sin(ax)cos(bx)dx

Evaluate ∫sin(5x)cos(3x)dx.∫sin(5x)cos(3x)dx.

Checkpoint 3.10

Evaluate ∫cos(6x)cos(5x)dx.∫cos(6x)cos(5x)dx.

Integrating Products and Powers of tanx and secx

Before discussing the integration of products and powers of tanxtanx and secx,secx, it is useful to recall the integrals involving tanxtanx and secxsecx we have already learned:

  1. ∫sec2xdx=tanx+C∫sec2xdx=tanx+C
  2. ∫secxtanxdx=secx+C∫secxtanxdx=secx+C
  3. ∫tanxdx=ln|secx|+C∫tanxdx=ln|secx|+C
  4. ∫secxdx=ln|secx+tanx|+C.∫secxdx=ln|secx+tanx|+C.

For most integrals of products and powers of tanxtanx and secx,secx, we rewrite the expression we wish to integrate as the sum or difference of integrals of the form ∫tanjxsec2xdx∫tanjxsec2xdx or ∫secjxtanxdx.∫secjxtanxdx. As we see in the following example, we can evaluate these new integrals by using u-substitution.

Example 3.14

Evaluating ∫secjxtanxdx∫secjxtanxdx

Evaluate ∫sec5xtanxdx.∫sec5xtanxdx.

Media

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

Checkpoint 3.11

Evaluate ∫tan5xsec2xdx.∫tan5xsec2xdx.

We now take a look at the various strategies for integrating products and powers of secxsecx and tanx.tanx.

Problem-Solving Strategy

Integrating ∫tankxsecjxdx∫tankxsecjxdx

To integrate ∫tankxsecjxdx,∫tankxsecjxdx, use the following strategies:

  1. If jj is even and j≥2,j≥2, rewrite secjx=secj−2xsec2xsecjx=secj−2xsec2x and use sec2x=tan2x+1sec2x=tan2x+1 to rewrite secj−2xsecj−2x in terms of tanx.tanx. Let u=tanxu=tanx and du=sec2xdx.du=sec2xdx.
  2. If kk is odd and j≥1,j≥1, rewrite tankxsecjx=tank−1xsecj−1xsecxtanxtankxsecjx=tank−1xsecj−1xsecxtanx and use tan2x=sec2x−1tan2x=sec2x−1 to rewrite tank−1xtank−1x in terms of secx.secx. Let u=secxu=secx and du=secxtanxdx.du=secxtanxdx. (Note: If jj is even and kk is odd, then either strategy 1 or strategy 2 may be used.)
  3. If kk is odd where k≥3k≥3 and j=0,j=0, rewrite tankx=tank−2xtan2x=tank−2x(sec2x−1)=tank−2xsec2x−tank−2x.tankx=tank−2xtan2x=tank−2x(sec2x−1)=tank−2xsec2x−tank−2x. It may be necessary to repeat this process on the tank−2xtank−2x term.
  4. If kk is even and jj is odd, then use tan2x=sec2x−1tan2x=sec2x−1 to express tankxtankx in terms of secx.secx. Use integration by parts to integrate odd powers of secx.secx.

Example 3.15

Integrating ∫tankxsecjxdx∫tankxsecjxdx when jj is Even

Evaluate ∫tan6xsec4xdx.∫tan6xsec4xdx.

Example 3.16

Integrating ∫tankxsecjxdx∫tankxsecjxdx when kk is Odd

Evaluate ∫tan5xsec3xdx.∫tan5xsec3xdx.

Example 3.17

Integrating ∫tankxdx∫tankxdx where kk is Odd and k≥3k≥3

Evaluate ∫tan3xdx.∫tan3xdx.

Example 3.18

Integrating ∫sec3xdx∫sec3xdx

Integrate ∫sec3xdx.∫sec3xdx.

Checkpoint 3.12

Evaluate ∫tan3xsec7xdx.∫tan3xsec7xdx.

Reduction Formulas

Evaluating ∫secnxdx∫secnxdx for values of nn where nn is odd requires integration by parts. In addition, we must also know the value of ∫secn−2xdx∫secn−2xdx to evaluate ∫secnxdx.∫secnxdx. The evaluation of ∫tannxdx∫tannxdx also requires being able to integrate ∫tann−2xdx.∫tann−2xdx. 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 secxsecx or tanxtanx with the integral of a lower power of secxsecx or tanx.tanx.

Rule: Reduction Formulas for ∫ sec n x d x ∫ sec n x d x and ∫ tan n x d x ∫ tan n x d x

∫secnxdx=1n−1secn−2xtanx+n−2n−1∫secn−2xdx∫secnxdx=1n−1secn−2xtanx+n−2n−1∫secn−2xdx
(3.6)
∫tannxdx=1n−1tann−1x−∫tann−2xdx∫tannxdx=1n−1tann−1x−∫tann−2xdx
(3.7)

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 tanx.tanx.

Example 3.19

Revisiting ∫sec3xdx∫sec3xdx

Apply a reduction formula to evaluate ∫sec3xdx.∫sec3xdx.

Example 3.20

Using a Reduction Formula

Evaluate ∫tan4xdx.∫tan4xdx.

Checkpoint 3.13

Apply the reduction formula to ∫sec5xdx.∫sec5xdx.

Section 3.2 Exercises

Fill in the blank to make a true statement.

69.

sin 2 x + _______ = 1 sin 2 x + _______ = 1

70.

sec 2 x − 1 = _______ sec 2 x − 1 = _______

Use an identity to reduce the power of the trigonometric function to a trigonometric function raised to the first power.

71.

sin 2 x = _______ sin 2 x = _______

72.

cos 2 x = _______ cos 2 x = _______

Evaluate each of the following integrals by u-substitution.

73.

∫ sin 3 x cos x d x ∫ sin 3 x cos x d x

74.

∫ cos x sin x d x ∫ cos x sin x d x

75.

∫ tan 5 ( 2 x ) sec 2 ( 2 x ) d x ∫ tan 5 ( 2 x ) sec 2 ( 2 x ) d x

76.

∫ sin 7 ( 2 x ) cos ( 2 x ) d x ∫ sin 7 ( 2 x ) cos ( 2 x ) d x

77.

∫ tan ( x 2 ) sec 2 ( x 2 ) d x ∫ tan ( x 2 ) sec 2 ( x 2 ) d x

78.

∫ tan 2 x sec 2 x d x ∫ tan 2 x sec 2 x d x

Compute the following integrals using the guidelines for integrating powers of trigonometric functions. Use a CAS to check the solutions. (Note: Some of the problems may be done using techniques of integration learned previously.)

79.

∫ sin 3 x d x ∫ sin 3 x d x

80.

∫ cos 3 x d x ∫ cos 3 x d x

81.

∫ sin x cos x d x ∫ sin x cos x d x

82.

∫ cos 5 x d x ∫ cos 5 x d x

83.

∫ sin 5 x cos 2 x d x ∫ sin 5 x cos 2 x d x

84.

∫ sin 3 x cos 3 x d x ∫ sin 3 x cos 3 x d x

85.

∫ sin x cos x d x ∫ sin x cos x d x

86.

∫ sin x cos 3 x d x ∫ sin x cos 3 x d x

87.

∫ sec x tan x d x ∫ sec x tan x d x

88.

∫ tan ( 5 x ) d x ∫ tan ( 5 x ) d x

89.

∫ tan 2 x sec x d x ∫ tan 2 x sec x d x

90.

∫ tan x sec 3 x d x ∫ tan x sec 3 x d x

91.

∫ sec 4 x d x ∫ sec 4 x d x

92.

∫ cot x d x ∫ cot x d x

93.

∫ csc x d x ∫ csc x d x

94.

∫ tan 3 x sec x d x ∫ tan 3 x sec x d x

For the following exercises, find a general formula for the integrals.

95.

∫ sin 2 a x cos a x d x ∫ sin 2 a x cos a x d x

96.

∫ sin a x cos a x d x . ∫ sin a x cos a x d x .

Use the double-angle formulas to evaluate the following integrals.

97.

∫ 0 π sin 2 x d x ∫ 0 π sin 2 x d x

98.

∫ 0 π sin 4 x d x ∫ 0 π sin 4 x d x

99.

∫ cos 2 3 x d x ∫ cos 2 3 x d x

100.

∫ sin 2 x cos 2 x d x ∫ sin 2 x cos 2 x d x

101.

∫ sin 2 x d x + ∫ cos 2 x d x ∫ sin 2 x d x + ∫ cos 2 x d x

102.

∫ sin 2 x cos 2 ( 2 x ) d x ∫ sin 2 x cos 2 ( 2 x ) d x

For the following exercises, evaluate the definite integrals. Express answers in exact form whenever possible.

103.

∫ 0 2 π cos x sin 2 x d x ∫ 0 2 π cos x sin 2 x d x

104.

∫ 0 π sin 3 x sin 5 x d x ∫ 0 π sin 3 x sin 5 x d x

105.

∫ 0 π cos ( 99 x ) sin ( 101 x ) d x ∫ 0 π cos ( 99 x ) sin ( 101 x ) d x

106.

∫ − π π cos 2 ( 3 x ) d x ∫ − π π cos 2 ( 3 x ) d x

107.

∫ 0 2 π sin x sin ( 2 x ) sin ( 3 x ) d x ∫ 0 2 π sin x sin ( 2 x ) sin ( 3 x ) d x

108.

∫ 0 4 π cos ( x / 2 ) sin ( x / 2 ) d x ∫ 0 4 π cos ( x / 2 ) sin ( x / 2 ) d x

109.

∫π/6π/3cos3xsinxdx∫π/6π/3cos3xsinxdx (Round this answer to three decimal places.)

110.

∫ − π / 3 π / 3 sec 2 x − 1 d x ∫ − π / 3 π / 3 sec 2 x − 1 d x

111.

∫ 0 π / 2 1 − cos ( 2 x ) d x ∫ 0 π / 2 1 − cos ( 2 x ) d x

112.

Find the area of the region bounded by the graphs of the equations y=sinx,y=sin3x,x=0,andx=π2.y=sinx,y=sin3x,x=0,andx=π2.

113.

Find the area of the region bounded by the graphs of the equations y=cos2x,y=sin2x,x=−π4,andx=π4.y=cos2x,y=sin2x,x=−π4,andx=π4.

114.

A particle moves in a straight line with the velocity function v(t)=sin(ωt)cos2(ωt).v(t)=sin(ωt)cos2(ωt). Find its position function x=f(t)x=f(t) if f(0)=0.f(0)=0.

115.

Find the average value of the function f(x)=sin2xcos3xf(x)=sin2xcos3x over the interval [−π,π].[−π,π].

For the following exercises, solve the differential equations.

116.

dydx=sin2x.dydx=sin2x. The curve passes through point (0,0).(0,0).

117.

d y d θ = sin 4 ( π θ ) d y d θ = sin 4 ( π θ )

118.

Find the length of the curve y=ln(cscx),π4≤x≤π2.y=ln(cscx),π4≤x≤π2.

119.

Find the length of the curve y=ln(sinx),π3≤x≤π2.y=ln(sinx),π3≤x≤π2.

120.

Find the volume generated by revolving the curve y=cos(3x)y=cos(3x) about the x-axis, 0≤x≤π36.0≤x≤π36.

For the following exercises, use this information: The inner product of two functions f and g over [a,b][a,b] is defined by f(x)·g(x)=〈f,g〉=∫abf·gdx.f(x)·g(x)=〈f,g〉=∫abf·gdx. Two distinct functions f and g are said to be orthogonal if 〈f,g〉=0.〈f,g〉=0.

121.

Show that {sin(2x),cos(3x)}{sin(2x),cos(3x)} are orthogonal over the interval [−π,π].[−π,π].

122.

Evaluate ∫−ππsin(mx)cos(nx)dx.∫−ππsin(mx)cos(nx)dx.

123.

Integrate y′=tanxsec4x.y′=tanxsec4x.

For each pair of integrals, determine which one is more difficult to evaluate. Explain your reasoning.

124.

∫sin456xcosxdx∫sin456xcosxdx or ∫sin2xcos2xdx∫sin2xcos2xdx

125.

∫tan350xsec2xdx∫tan350xsec2xdx or ∫tan350xsecxdx∫tan350xsecxdx

Citation/Attribution
Reuse and redistribution of this content in digital or print format:
  • This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/calculus-volume-2/pages/1-introduction

  • If you are redistributing all or part of this book in a noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/calculus-volume-2/pages/1-introduction

Citation information

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Jul 15, 2026 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.