Skip to main content

Section 7.2 Trigonometric Integrals

In this section, you will learn some common strategies to evaluate trigonometric integrals.
NOTE: This is not one of the required sections to go through (and we certainly don’t have time to go through an optional section in class this term). Yet Richard believes this is an important section and this is also a good practice on \(u\)-sub. Hence, Richard will write the notes in this section in the form of exercises (with hints and solution, of course) if you want to practice some skills of evaluating integrals (this is actually an assignment Richard gave in his MTH 252 class in Summer 2025).
Even if you don’t want to work on all the problems in this section, make sure you pick up all the important formulas, as this will help you save a lot of time in SectionΒ 7.3.

Subsection Basic Trigonometric Integrals

In order to evaluate some trigonometric integrals, we need some basic integral formulas we can use. We learned some integral formulas SectionΒ 5.3 involving trigonometric functions by undoing the derivative formulas of trigonometric formulas in calculus 1 (see TheoremΒ 5.3.15).
But we actually don’t know about the integral formulas of all the six trigonometric functions yet... The goal of this activity is to derive the integral formula of tangent, cotangent, secant, and cosecant.
P.S.: To help you stay on track, I will give you the method you should use and also the answer. Your job is to evaluate the integral and obtain the answer in the exact format. Don’t forget to show all your work to convince Richard that you know where the formulas come from.

Exercises Part (a): Integral of (Co)Tangent

Let’s start by figuring out what the integral of tangent and cotangent are!
Your job is to evaluate \(\displaystyle \int \tan(x)\, dx\) and \(\displaystyle \int \cot(x)\, dx\text{.}\)
Hint 1. to help you get started...
Since we knew nothing about the integral of tangent and cotangent, a good strategy is to convert them to sine and cosine, because we do know about the integrals (and also derivatives) of sine and cosine. The following identities should be helpful to get you started:
\begin{equation*} \tan(x) = \frac{\sin(x)}{\cos(x)} \quad\text{and}\quad \cot(x) = \frac{\cos(x)}{\sin(x)} \end{equation*}
The method you should be thinking about using here is \(u\)-sub... (so pick your \(u\) wisely).
Hint 2. to check your answers...
If your math is right, then you should arrive the following answers:
\begin{align*} \int \tan(x)\, dx \amp= \ln\left|\sec(x)\right| + C \\ \int \cot(x)\, dx \amp= \ln\left|\sin(x)\right| + C \amp \end{align*}
Solution.
Let’s tackle the integral of \(\tan(x)\) first! By the hint, we know that
\begin{equation*} \int \tan(x)\, dx = \int\frac{\sin(x)}{\cos(x)}\, dx \end{equation*}
Let \(u = \cos(x)\text{.}\) Then \(du = -\sin(x)\, dx\text{.}\) This implies that
\begin{align*} \int \tan(x)\, dx \amp= \int\frac{\sin(x)}{\cos(x)}\, dx \\ \amp= \int \frac{-du}{u} \\ \amp= -\ln|u| + C \\ \amp= -\ln|\cos(x)| + C \\ \amp= \ln\left|\left(\cos(x)\right)^{-1}\right| + C \\ \amp= \ln\left|\sec(x)\right| + C \end{align*}
Now let’s integrate \(\cot(x)\text{!}\) Again, by the hint, we know that
\begin{equation*} \int \cot(x)\, dx = \int\frac{\cos(x)}{\sin(x)}\, dx \end{equation*}
Let \(u = \sin(x)\text{.}\) Then \(du = \cos(x)\, dx\text{.}\) This implies that
\begin{align*} \int \cot(x)\, dx \amp= \int\frac{\cos(x)}{\sin(x)}\, dx \\ \amp= \int \frac{du}{u} \\ \amp= \ln|u| + C \\ \amp= \ln\left|\sin(x)\right| + C \end{align*}

Exercises Part (b): Integral of (Co)Secant

Next, we will tackle the integral of secant and cosecant!
Your job is to evaluate \(\displaystyle \int \sec(x)\, dx\) and \(\displaystyle \int \csc(x)\, dx\text{.}\)
Hint 1. to help you get started...
These two integrals are bit tricky since the previous strategy won’t work well in the sense that we don’t get both the \(\sin(x)\) and \(\cos(x)\) in a single integral. So we will need a tricky manipulation to turn \(\sec(x)\) and \(\csc(x)\) into a slightly complicated fractions to work with, and they are
\begin{align*} \sec(x) \amp= \frac{\sec(x)\big(\sec(x) + \tan(x)\big)}{\sec(x) + \tan(x)} \\ \csc(x) \amp= \frac{\csc(x)\big(\csc(x) - \cot(x)\big)}{\csc(x) - \cot(x)} \end{align*}
The method you should be thinking about using here is also \(u\)-sub (in a similar fashion to Part (a)).
Hint 2. to check your answers...
If your math is right, then you should arrive the following answers:
\begin{align*} \int \sec(x)\, dx \amp= \ln\left|\sec(x) + \tan(x)\right| + C \\ \int \csc(x)\, dx \amp= \ln\left|\csc(x) - \cot(x)\right| + C \end{align*}
Solution.
Let’s integrate \(\sec(x)\) first! Using the hint, we know that
\begin{equation*} \int \sec(x)\, dx = \int \frac{\sec(x)\big(\sec(x) + \tan(x)\big)}{\sec(x) + \tan(x)}\, dx \end{equation*}
Let \(u = \sec(x) + \tan(x)\text{.}\) Then \(du = \left(\sec(x)\tan(x) + \sec^2(x)\right)\, dx\text{.}\) This implies that
\begin{align*} \int \sec(x)\, dx \amp= \int \frac{\sec(x)\big(\sec(x) + \tan(x)\big)}{\sec(x) + \tan(x)}\, dx \\ \amp= \int \frac{\sec^2(x) + \sec(x)\tan(x)}{\sec(x) + \tan(x)}\, dx \\ \amp= \int\frac{du}{u} \\ \amp= \ln|u| + C \\ \amp= \ln\left|\sec(x) + \tan(x)\right| + C \end{align*}
Now let’s integrate \(\csc(x)\text{!}\) We know, from the hint, that
\begin{equation*} \int\csc(x)\, dx = \int\frac{\csc(x)\big(\csc(x) - \cot(x)\big)}{\csc(x) - \cot(x)}\, dx \end{equation*}
Let \(u = \csc(x) - \cot(x)\text{.}\) Then \(du = \big(-\csc(x)\cot(x) + \csc^2(x)\big)\, dx\) This implies that
\begin{align*} \int \csc(x)\, dx \amp= \int\frac{\csc(x)\big(\csc(x) - \cot(x)\big)}{\csc(x) - \cot(x)}\, dx \\ \amp= \int \frac{\csc^2(x) - \csc(x)\cot(x)}{\csc(x) - \cot(x)}\, dx \\ \amp= \int\frac{du}{u} \\ \amp= \ln|u| + C \\ \amp= \ln\left|\csc(x) - \cot(x)\right| + C \end{align*}

Subsection Intermediate Trigonometric Integrals

Now that we know the integral formulas of all the six trigonometric functions. Let’s take things up a notch! What if there are two trigonometric functions in the integrand?
Back in MTH 112Z in which you learned a lot of the fun trigonometric identities, remember we can turn all the trigonometric functions in some combinations of \(\sin(x)\) and \(\cos(x)\text{.}\) Because of this, we will focus our investigation to some combinations of \(\sin(x)\) and \(\cos(x)\text{.}\) If you ever need to deal with other trigonometric integrals, then converting everything to some combinations of \(\sin(x)\) and \(\cos(x)\) is always a strategy to consider.
The goal of the following tasks is to develop a strategy to deal with integrals in the form of
\begin{equation*} \int \sin^m(x)\cos^n(x)\, dx \end{equation*}
where \(m\) and \(n\) are some integer powers. It turns out that the parity of \(m\) and \(n\) will help us in determining the strategy to use.
P.S.: This is essentially what a third of section 7.2 is about. To have you explore the various strategies, your job is to take the following specific integrals while summarizing the patterns (but you don’t need to include the patterns in your writeup. This will be too much). Richard will give out the strategies after the due date (so he won’t take the fun of discovering some fancy math away from you). Make sure to check this page again after the due date!

Exercises Part (a): If \(\boldsymbol{m}\) is an odd number...

The first case we are looking at here is when the power on \(\sin(x)\) is an odd number. To have you explore the strategy using a specific example, your job here is to evaluate the following integral
\begin{equation*} \int \sin^3(x)\cos^2(x)\, dx \end{equation*}
Remember to show your work!
Hint 1. to help you get started...
It is kind of annoying to deal with two different trigonometric functions. The goal here is to convert them into one function (so either trying to convert as many as the \(\sin(x)\)’s to \(\cos(x)\)’s or vice versa so we only need to deal with one single trigonometric function).
The identity that may come in handy is the Pythagorean Identity, as follows:
\begin{equation*} \sin^2(x) + \cos^2(x) = 1 \end{equation*}
Well but that brings up another question: Do we convert the \(\sin(x)\)’s to \(\cos(x)\)’s or the other way around...
Hint. to help you pick in which way of the conversion will help...
It turns out that both ways will work, but one way will be easier than the other one ... Let’s follow the easier route to convert as many of the \(\sin(x)\)’s to \(\cos(x)\)’s as possible. That is, we want less than 3 copies of \(\sin(x)\)’s in the integrand.
Hint 2. to check your setup...
Since we want to convert as many of the \(\sin(x)\)’s to \(\cos(x)\)’s, we can use the Pythagorean identity to obtain the following integrals
\begin{equation*} \int \sin(x)\left(\cos^2(x) - \cos^4(x)\right)\, dx \end{equation*}
P.S.: Just because Richard is nice to give you a step for you to check your work, it doesn’t mean you get to start here. Show your work. How does it go from the original integral to this one?
Hint. if you need help to go further...
You actually can evaluate this integral using \(u\)-sub. Try using \(u = \cos(x)\) and see how easy the integral will become!
Solution.
By the hint, we want to convert as many \(\sin(x)\)’s to \(\cos(x)\)’s. Using the Pythagorean identity \(\sin^2(x) = 1 - \cos^2(x)\text{,}\) we obtain
\begin{align*} \int\sin^3(x)\cos^2(x)\, dx \amp= \int \sin(x)\cdot \sin^2(x)\cos^2(x)\, dx \\ \amp= \int \sin(x)\left(1 - \cos^2(x)\right)\cos^2(x)\, dx \\ \amp= \int \sin(x)\left(\cos^2(x) - \cos^4(x)\right)\, dx \end{align*}
Now let’s use the hint Richard gave by letting \(u = \cos(x)\text{.}\) Then \(du = -\sin(x)\, dx\text{.}\) This implies that
\begin{align*} \int \sin(x)\left(\cos^2(x) - \cos^4(x)\right)\, dx \amp = -\int \left(u^2 - u^4\right)\, du\\ \amp= -\frac{u^3}{3} + \frac{u^5}{5} + C \\ \amp= -\frac{\cos^3(x)}{3} + \frac{\cos^5(x)}{5} + C \end{align*}

Exercises Part (b): If \(\boldsymbol{n}\) is an odd number...

The second case is when the power on \(\cos(x)\) is an odd number. It turns out that the procedure is (highly?) similar to the one in part (a) but you will need to make some adjustments since \(\cos(x)\) is the one with the odd power now.
Your job here is to evaluate the following integral
\begin{equation*} \int \sin^2(x)\cos^5(x)\, dx \end{equation*}
by mimicking what you did in part (a). Again, remember to show your work!
Richard will not give out formal hints here since the hints will be highly similar to the ones above. If you get stuck or want to confirm your work, email your questions/work to Richard and he can help you out.
Solution.
Let’s mimic the process here. Observe that \(\cos(x)\) is the one with the odd power. Then we will convert as many of the \(\cos(x)\)’s to \(\sin(x)\)’s using the Pythagorean identity.
\begin{align*} \int \sin^2(x)\cos^5(x)\, dx \amp= \int \sin^2(x) \left(\cos^2(x)\right)^2 \cos(x)\, dx\\ \amp= \int \sin^2(x)\left(1 - \sin^2(x)\right)^2\cos(x)\, dx \\ \amp= \int \sin^2(x)\left(1 - 2\sin^2(x) + \sin^4(x)\right)\cos(x)\, dx \\ \amp= \int\left( \sin^2(x) - 2\sin^4(x) + \sin^6(x)\right)\cos(x)\, dx \end{align*}
Now let \(u = \sin(x)\text{.}\) Then \(du = \cos(x)\, dx\text{.}\) This implies that
\begin{align*} \int\left( \sin^2(x) - 2\sin^4(x) + \sin^6(x)\right)\cos(x)\, dx \amp= \int \left(u^2 - 2u^4 + u^6\right)\, 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*}

Exercises Why do we care so much about the odd power...

From the previous two examples, we can see that we can always peel out a single \(\sin(x)\) or \(\cos(x)\) from the odd power and make it part of the \(du\text{.}\) For the rest of the even number of factors, we can turn it to the other one using the Pythagorean identity. To summarize it into a pretty table, these are the strategies we should consider:
Table 7.2.1.
\(\int \sin^m(x) \cos^n(x) \, dx\) Strategy
\(m\) is odd
Factor out a \(\sin(x)\)
Convert the remaining even power of \(\sin(x)\) to \(\cos(x)\) using the Pythagorean identity
Then use \(u\)-sub that \(u = \cos(x)\)
\(n\) is odd
Factor out a \(\cos(x)\)
Convert the remaining even power of \(\cos(x)\) to \(\sin(x)\) using the Pythagorean identity
Then use \(u\)-sub that \(u = \sin(x)\)
But Richard... what happens if both \(\boldsymbol{m}\) and \(\boldsymbol{n}\) are odd... Well then you can just pick one of the two strategies above and they should both work.
But Richard... what happens if neither \(\boldsymbol{m}\) nor \(\boldsymbol{n}\) are odd... Well then we need to use power-reducing formulas to chip away the power. You will explore a similar question in the next investigation. Long story short, the two major power-reducing formulas we are using are
\begin{equation*} \sin^2(x) = \frac{1}{2}\left(1 - \cos(2x)\right) \end{equation*}
and
\begin{equation*} \cos^2(x) = \frac{1}{2}\left(1 + \cos(2x)\right) \end{equation*}

Subsection Advanced Trigonometric Integrals

There are a lot of advanced and fancy methods to evaluate trigonometric integrals. For this activity, you will explore a particular advanced method to evaluate the integral of higher power of \(\sin(x)\) (or \(\cos(x)\)). That is, we want to evaluate integrals like
\begin{equation*} \int\sin^m(x)\, dx \qquad\text{ and }\qquad \int\cos^n(x)\, dx \end{equation*}
where \(m\) and \(n\) are larger numbers (without having another trigonometric function that allows you to \(u\)-sub it).
By saying an "advanced" method, I don’t mean the math concept is advanced, but more like the algebraic work is a bit complicated (so the steps are a bit longer). In fact, I will (eventually) just give you the formula and let you use it (the proof of the formula is in your textbook).
For demonstration purposes, we will only focus on integrating the powers of \(\sin(x)\) in the following tasks. Remember that the method in integrating the powers of \(\cos(x)\) is (highly) similar!

Exercises Part (a): Base case: when the power is 2 and 3

The base case consists of the following two integrals:
\begin{equation*} \int\sin^2(x)\, dx \qquad\text{ and }\qquad \int\sin^3(x)\, dx \end{equation*}
Your job is to evaluate these two integrals. Again, show your work!
Hint 1. to help you get started in the second integral...
The second integral is actually the easier one since we can use the same method to evaluate this integral from the last activity!
(Observe that the power on \(\boldsymbol{\sin(x)}\) is odd!)
So a good first step is to convert as many of the \(\sin(x)\)’s to \(\cos(x)\)’s, following the method used in part (a) of the previous activity...
Hint. to check your setup...
The correct setup should be something like
\begin{equation*} \int\sin^3(x)\, dx = \int\sin(x)\left(1 - \cos^2(x)\right)\, dx \end{equation*}
Hint 2. to help you get started in the first integral...
The first integral is actually a harder one (well it depends on if you are familiar with a specific formula in MTH 112Z...). Observe that the square is what prevented us from applying any of the basic trigonometric integral formulas. Then is there a way to get rid of the square?
Yes there is! Recall we learned some special formulas in MTH 112Z called the power reducing formula. The one we want to use here is the power reducing formula for sine, as follows:
\begin{equation*} \sin^2(x) = \frac{1}{2}\left(1 - \cos(2x)\right) \end{equation*}
See that there is no more square on your trigonometric function!
Solution.
Let’s start with the second integral since we have used the same method in the previous investigation task. Using the Pythagorean identity, we obtain
\begin{align*} \int \sin^3(x)\, dx \amp= \int \sin^2(x)\cdot \sin(x)\, dx \\ \amp= \int\left(1 - \cos^2(x)\right)\cdot \sin(x)\, dx \end{align*}
Let \(u = \cos(x)\text{.}\) Then \(du = -\sin(x)\, dx\text{.}\) This implies that
\begin{align*} \int\left(1 - \cos^2(x)\right)\cdot \sin(x)\, dx \amp= -\int \left(1 - u^2\right)\, du \\ \amp= -u + \frac{u^3}{3} + C \\ \amp= -\cos(x) + \frac{\cos^3(x)}{3} + C \end{align*}
Now let’s tackle the more difficult one. Using the power-reducing formula, we obtain
\begin{align*} \int \sin^2(x)\, dx \amp= \int \frac{1}{2}\left(1 - \cos(2x)\right)\, dx \\ \amp= \frac{1}{2}\int \left(1 - \cos(2x)\right)\, dx \\ \amp= \frac{1}{2} \left(\int \, dx - \int \cos(2x)\, dx\right) \end{align*}
We can integrate \(\cos(2x)\) by a simple \(u\)-sub of letting \(u = 2x\text{.}\) Then we have
\begin{align*} \frac{1}{2} \left(\int \, dx - \int \cos(2x)\, dx\right) \amp= \frac{1}{2} \left(x - \frac{1}{2}\sin(2x)\right) + C\\ \amp= \frac{x}{2} - \frac{1}{4}\sin(2x) + C \end{align*}

Exercises Part (b): Reduction Formulas for larger powers

The first integral in part (a) demonstrates the essence of integrating trigonometric functions with larger powers, that we want to reduce the power to a number small enough that we can just use one of the existing formulas (like power of 1, 2, and 3 of \(\sin(x)\)).
But how do we reduce the power? There is a reduction formula for sine that we can use directly and I included it below:
\begin{equation} \int \sin^m(x)\, dx = -\frac{\sin^{m-1}(x)\cos(x)}{m} + \frac{m - 1}{m}\int \sin^{m-2}(x)\, dx\tag{7.2.1} \end{equation}
If you are comparing the two integrals in the above formula, we can reduce the power of \(\sin(x)\) in the integrand by 2 each time we apply this formula.
If you are wondering how we obtain this formula, the proof is included in section 7.1 in your textbook (I used to have my students prove the cosine version by mimicking the process but this would make this weekly investigation assignment way too long...). To get the best out of this formula, I want to make sure you know how to use it.
Your job in this part is to evaluate the following integral
\begin{equation*} \int\sin^4(x)\, dx \end{equation*}
using this reduction formula above.
Solution.
We can use the reduction formula with \(m = 4\) to integrate \(\sin^4(x)\) as follows:
\begin{align*} \int \sin^4(x)\, dx \amp= -\frac{\sin^3(x)\cos(x)}{4} + \frac{3}{4}\int \sin^2(x)\, dx \end{align*}
See that the resulting integral is something we have evaluated in part (a), so we can use the result directly. This implies that
\begin{align*} -\frac{\sin^3(x)\cos(x)}{4} + \frac{3}{4}\int \sin^2(x)\, dx \amp= -\frac{\sin^3(x)\cos(x)}{4} + \frac{3}{4}\left(\frac{x}{2} - \frac{1}{4}\sin(2x)\right) + C \\ \amp= -\frac{\sin^3(x)\cos(x)}{4} + \frac{3x}{8} - \frac{3}{16}\sin(2x) + C \end{align*}