Skip to main content

Section 7.6 Strategies for Integration

In this section, we will summarize all the techniques we learned in class for evaluating integrals and come up with some strategies to evaluate integrals.

Investigation 7.6.1. POP QUIZ!

Suppose the following question were the first problem on your final exam for this class.
Evaluate the integral \(\displaystyle \int\dfrac{x}{9 - x^2}\, dx\)
Solution.
We can evaluate this integral using the three methods we have learned in his class: \(u\)-sub, trig sub, and partial fraction decomposition.
Solution 1. Using \(u\)-sub
Let \(u = 9 - x^2\text{.}\) Then \(du = -2x\, dx\text{.}\) Hence, we obtain
\begin{align*} \int \frac{x}{9 - x^2}\, dx \amp = -\int \frac{1}{2u}\, du \\ \amp = -\frac{1}{2}\ln|u| + C \\ \amp = -\frac{1}{2}\ln\left|9 - x^2\right| + C \end{align*}
Solution 2. Using Trig sub
Let \(x = 3\sin(\theta)\text{.}\) Then \(dx = 3\cos(\theta)\, d\theta\text{.}\) Hence, we obtain
\begin{align*} \int \frac{x}{9 - x^2}\, dx \amp = \int \frac{3\sin(\theta)}{9 - 9\sin^2(\theta)}\cdot 3\cos(\theta)\, d\theta \\ \amp = \int \frac{9\sin(\theta)\cos(\theta)}{9\cos^2(\theta)}\, d\theta \\ \amp = \int \tan(\theta)\, d\theta \\ \amp = \ln|\sec(\theta)| + C_0 \\ \amp = \ln\left|\frac{3}{\sqrt{9 - x^2}}\right| + C_0 \\ \amp = \ln(3) - \ln\left|9 - x^2\right|^{\frac{1}{2}} + C_0\\ \amp = -\frac{1}{2}\ln\left|9 - x^2\right| + \ln(3) + C_0\\ \amp = -\frac{1}{2}\ln\left|9 - x^2\right| + C \end{align*}
where \(C = \ln(3) + C_0\text{.}\)
Solution 3. Using Partial Fraction Decomposition
Let \(A\) and \(B\) be two numbers. Note that
\begin{equation*} \frac{x}{9 - x^2} = \frac{x}{(3 - x)(3 + x)} = \frac{A}{3 - x} + \frac{B}{3 + x} \end{equation*}
This implies that
\begin{equation*} x = A(x + 3) + B(x - 3) \end{equation*}
We can determine that \(A = \dfrac{1}{2}\) and \(B = -\dfrac{1}{2}\text{.}\) Hence, we obtain
\begin{align*} \int \frac{x}{9 - x^2}\, dx \amp = \int \left(\frac{1/2}{3 - x} + \frac{-1/2}{3 + x}\right)\, dx \\ \amp = \frac{1}{2} \int \left(\frac{1}{3 - x} - \frac{1}{3 + x}\right) \, dx \\ \amp = \frac{1}{2} \left(-\ln|3 - x| - \ln|3 + x|\right) + C \\ \amp = -\frac{1}{2} \left(\ln|3 - x| + \ln|3 + x|\right) + C \\ \amp = -\frac{1}{2}\ln\left|9 - x^2\right| + C \end{align*}
Richard actually found this task from a research paper in math education during the first doctoral class he took during his first year of PhD. Back in the 1990s, an instructor placed the integral problem \(\int \frac{x}{x^2 - 9}\, dx\) at the beginning of a final exam in an integral calculus course (our pop quiz problem is a bit different since the original integral was a bit complicated if a student attempted to try trig sub).
The result from that study showed that only about 50% of the students attempted the \(u\)-sub in this problem. About 35% of them tried partial fraction decomposition and 15% of them used trig sub.
Well students trying \(u\)-sub performed better in general compared to students who didn’t try \(u\)-sub in this problem since they have greater confidence and ample time for the rest of the exam. People trying trig sub spent too much time on this problem and often got stuck and doubt whether their answer was correct.
But the surprising finding here is that students using partial fraction decomposition or trig sub didn’t switch method when they got stuck. They just kept on getting stuck using a complicated method rather than trying another method.
In addition, the instructor put this problem in the beginning of the final exam, hoping to bolster students’ confidence. This goal was only achieved for those who attempted \(u\)-sub in this problem...
I was shocked by the finding when I read this paper two years ago (there are more from this paper but this is the most shocking finding to me). I hope you all learn something from this task and the findings in terms of evaluating the integrals!

Subsection What is the "best" way to evaluate integrals?

We went through various strategies to evaluate integrals this term (and there are more strategies that goes beyond the scope of this class!). Sometimes it is difficult to determine which method to try right off the bat.
There are two factors that you may consider when determining which method to try right off the bat.
The first one is the structural features of the integral. You want to pick a right method for the integrals (for example, trying partial fraction decomposition on an integral that has no rational expression is not right).
The second one is the complexity of the method. Similar to the pop quiz problem, if multiple methods work out for an integral, then always try the easier method first (if we can solve a problem using an easier method, why bother using something complicated).
For summary purposes, Richard put all the methods we have learned so far below all on one page:
  • Always try simplification first! Do any algebraic simplification possible! If we can make the integrand a lot simpler to deal with, why not!?
  • \(\boldsymbol{u}\)-sub is the method you should try next. Recall \(u\)-sub came from the chain rule you learned in calculus 1, which means you may want to be able to find the derivative of the choice of \(u\) in the integrand. Long story short, the \(u\)-sub formula is
    \begin{equation*} \int f'(u(x))\cdot u'(x)\, dx = f(u(x)) + C \end{equation*}
    Just make sure you don’t end up getting a more complicated integral after \(u\)-sub. (for more detail, check out \(u\)-sub in SectionΒ 5.7).
  • If you see two functions being multiplied in the integrand, you may want to consider using integration by parts since this method came from the product rule in derivative. You will want to pick a \(u\) and the rest of the integral will be the \(dv\text{.}\) Long story short, the integration by parts formula is
    \begin{equation*} \int u\, dv = uv - \int v\, du \end{equation*}
    You may be wondering how we can pick a \(u\) to make the problem easier. Recall there is an acronym "LIPET" to help us pick a good \(u\text{.}\) This acronym LIPET tells us that we should pick the \(u\) in the following order:
    (for more detail, check out \(u\)-sub in SectionΒ 7.1).
  • There are also two special methods we learned that only works if the situation fits. They are:
    • Trigonometric Substitution: If you see \(a^2 - x^2\) in the integrand, you may consider using the substitution that \(x = a\sin(\theta)\text{.}\) Likewise, if you see \(a^2 + x^2\) in the integrand, you may consider using the substitution that \(x = a\tan(\theta)\text{.}\) (for more detail, check out \(u\)-sub in SectionΒ 7.3).
    • Partial Fraction Decomposition: If you see a complicated proper fraction where the denominator happens to be reducible (fancy way of saying the denominator can be factored), then partial fraction decomposition will help you split up the fraction to smaller pieces. (for more detail, check out \(u\)-sub in SectionΒ 7.5).
Let’s look at a couple examples. Make sure you know HOW to determine what method you should use (and WHY, rather than just picking a method at random).

Example 7.6.1.

Evaluate the indefinite integral \(\displaystyle \int\left(\sin(x) + \cos(x)\right)^2\, dx\text{.}\)
Hint.
A good first step is to determine what method we should use for this integral. By looking through Richard’s list above, pick a method (you may want to convince yourself why the method you pick is a good choice) and try it out! If it doesn’t work out, pick something else.
Solution.
Observe that the integrand can be simplified further by expanding the square and using some trig identities.
\begin{align*} \int \left(\sin(x) + \cos(x)\right)^2\, dx \amp = \int \left(\sin^2(x) + \cos^2(x) + 2\sin(x)\cos(x)\right)\, dx \\ \amp= \int \left(1 + 2\sin(x)\cos(x)\right)\, dx \amp\amp \text{by Pythagorean Identity} \\ \amp= \int \left(1 + \sin(2x)\right)\, dx \amp\amp \text{by Double-angle Identity} \end{align*}
See that the integrand is a lot easier now compared to what we started with! A simple \(u\)-sub will help evaluate the integral.
\begin{align*} \int \left(1 + \sin(2x)\right)\, dx \amp= x - \frac{1}{2}\cos(2x) + C \end{align*}

Example 7.6.2.

Evaluate the indefinite integral \(\displaystyle \int x\sec^2(x)\, dx\text{.}\)
Hint.
A good first step is to determine what method we should use for this integral. By looking through Richard’s list above, pick a method (you may want to convince yourself why the method you pick is a good choice) and try it out! If it doesn’t work out, pick something else.
Solution.
For starters, we can’t simplify the integrand any further. Also, there is no composite function here that may allow us to do a \(u\)-sub. But the integral consists of the product of two functions. Then integration by parts may be a good method to try here.
By the LIPET test, we pick \(u = x\) here. Then we have
\begin{align*} u \amp= x \amp\amp dv = \sec^2(x)\, dx \\ du \amp= dx \amp\amp \;\; v= \tan(x) \end{align*}
Using the integration by parts formula, we obtain
\begin{align*} \int x\sec^2(x)\, dx \amp= x\tan(x) - \int \tan(x)\, dx \end{align*}
Recall we do have a formula to evaluate the integral of tangent (see SectionΒ 7.2). Using the formula, we obtain
\begin{align*} \int x\sec^2(x)\, dx \amp= x\tan(x) - \int \tan(x)\, dx \\ \amp= x\tan(x) - \ln\left|\sec(x)\right| + C \end{align*}

Example 7.6.3.

Evaluate the indefinite integral \(\displaystyle \int \frac{\tan^{-1}(x)}{1 + x^2}\, dx\)
Hint.
Observe that we can’t simplify the integrand any further. Also, the integrand doesn’t consist of a product (so integration by parts may not be useful) and the integrand isn’t a rational expression (so partial fraction decomposition isn’t gonna work).
Richard just eliminated three of the methods for you. What method do you think you should use here (and why)?
Solution.
Observe that the denominator of the integrand takes the form of \(a^2 + x^2\text{,}\) where \(a = 1\text{.}\) Then trig sub may work out here.
Let \(x = \tan(\theta)\text{.}\) Then
\begin{equation*} 1 + x^2 = 1 + \tan^2(\theta) = \sec^2(\theta) \end{equation*}
and
\begin{equation*} \tan^{-1}(x) = \tan^{-1}\left(\tan(\theta)\right) = \theta \end{equation*}
In addition, we know that \(\dfrac{dx}{d\theta} = \sec^2(\theta)\text{,}\) which implies that \(dx = \sec^2(\theta)\, d\theta\text{.}\)
Now putting all the pieces together, we obtain
\begin{align*} \int \frac{\tan^{-1}(x)}{1 + x^2}\, dx \amp=\int \frac{\theta}{\sec^2(\theta)}\cdot \sec^2(\theta)\, d\theta \\ \amp= \int \theta\, d\theta \\ \amp= \frac{\theta^2}{2} + C \end{align*}
By our assumption of \(x = \tan(\theta)\text{,}\) we know that \(\theta = \tan^{-1}(x)\text{.}\) Hence, we obtain
\begin{equation*} \frac{\theta^2}{2} + C = \frac{\left(\tan^{-1}(x)\right)^2}{2} + C \end{equation*}
Solution. Alternative method (if you are super observant)
The integral can be rewritten as follows
\begin{equation*} \int \frac{\tan^{-1}(x)}{1 + x^2}\, dx = \int \tan^{-1}(x) \cdot \frac{1}{1 + x^2}\, dx \end{equation*}
Observe that \(\dfrac{1}{1 + x^2}\) is the derivative of \(\tan^{-1}(x)\text{,}\) which implies that a \(u\)-sub may work out here.
Let \(u = \tan^{-1}(x)\text{.}\) Then
\begin{equation*} \frac{du}{dx} = \frac{1}{1 + x^2} \qquad\implies\qquad du = \frac{1}{1 + x^2}\, dx \end{equation*}
We obtain
\begin{align*} \int \tan^{-1}(x) \cdot \frac{1}{1 + x^2}\, dx \amp= \int u\, du \\ \amp= \frac{u^2}{2} + C \\ \amp= \frac{\left(\tan^{-1}(x)\right)^2}{2} + C \end{align*}

Subsection Evaluate Integrals using CAS

There are some computer algebra system (CAS), including WolframAlpha, Symbolab, Integral Calculator, and so many others, to evaluate integrals.
As we saw in the pop quiz, there may be multiple approaches to evaluate integrals, some of which may be easier than others. We can imagine CAS is a pretty powerful tool to evaluate integrals, but does it always evaluate integrals using the most "efficient" way?

Example 7.6.4.

Evaluate the indefinite integral \(\displaystyle \int \left(\sin(x) + \cos(x)\right)^2\, dx\) using Integral Calculator. Next, scroll down on the Result and click "Show steps" to see how CAS evaluated the integral.
Then compare your solution with the one CAS provided. In your opinion, who do you think, you or CAS, provided an easier and more elegant solution? Why?
This is the SolutionΒ 7.6.1.1 to the integral when we evaluated it by hand.
Solution.
Well what CAS did was expanding \((\sin x + \cos x)^2\) and breaking it down using linearity as follows:
\begin{align*} \int \left(\sin x + \cos x\right)^2 \amp = \int \left(\sin^2 x + 2\sin(x)\cos(x) + \cos^2(x)\right)\, dx \\ \amp = \int\sin^2(x)\, dx + \int 2\sin(x)\cos(x)\, dx + \int \cos^2(x)\, dx \end{align*}
Well the middle integral is easy to evaluate but CAS uses the reduction formula for \(\int \sin^2(x)\, dx\) and \(\int \cos^2(x)\, dx\text{,}\) making the steps a lot more complicated.
We human certainly provided an easier and more elegant solution than the CAS did when evaluating this integral! We are smart to simplify the integrand instead of evaluating each term separately!
You may all have some takeaways about evaluating integrals using CAS! Normally, CAS is powerful enough to provide the correct answer, but it may not provide the most easiest and elegant solution. Don’t just trust the CAS 100%. We human are a lot smarter than CAS!
Remember the goal in this class is for you to learn how to integrate functions. Richard can’t past you if you don’t show any understanding on integrating functions. Below are a lot of practices on integrating functions. Feel free to test yourself or practice with the list. Reach out to Richard if you need help!!

Worksheet Some Exercises for this section

I included some practice problems that cover some main concepts in this section. You don’t need to turn it in, but I highly encourage you to work on this with your classmates. I may take problems here to be your in-class practice problems, homework problems, and/or exam problems. Reach out to Richard for help if you get stuck or have any questions.
I will only include the final answer to some of the problems for you to check your result. If you want to check your work, talk to Richard and he is happy to discuss the process with you.

Exercise Group.

Evaluate the following integrals.
1.
\(\displaystyle \int \left(\frac{1 - x}{x}\right)^2\, dx\)
Solution.
\begin{equation*} -\frac{1}{x} - 2\ln|x| + x + C \end{equation*}
2.
\(\displaystyle \int \frac{\csc^2(x)}{1 + \cot(x)}\, dx\)
Solution.
\begin{equation*} \ln\left|1 + \cot(x)\right| + C \end{equation*}
3.
\(\displaystyle \int \sqrt{\tan(x)}\sec^2(x)\, dx\)
Solution.
\begin{equation*} \frac{2}{3}\tan^\frac{3}{2}(x) + C \end{equation*}
4.
\(\displaystyle \int x^3\ln(x)\, dx\)
Solution.
\begin{equation*} \frac{x^4}{4}\ln(x) - \frac{x^4}{16} + C \end{equation*}
5.
\(\displaystyle \int \frac{\ln(x)}{x^{10}}\, dx\)
Solution.
\begin{equation*} -\frac{\ln(x)}{9x^9} - \frac{1}{81x^9} + C \end{equation*}
6.
\(\displaystyle \int (x + 1)e^{4 - 3x}\, dx\)
Solution.
\begin{equation*} -\frac{1}{9}e^{4 - 3x}(3x + 4) + C \end{equation*}
8.
\(\displaystyle \int \frac{x}{\sqrt{1 - x^4}}\, dx\)
Solution.
\begin{equation*} \frac{1}{2}\sin^{-1}(x) + C \end{equation*}
9.
\(\displaystyle \int \frac{dx}{x^2 + 6x + 8}\)
Solution.
\begin{equation*} \frac{1}{2}\ln\left|\frac{x + 2}{x + 4}\right| + C \end{equation*}
10.
\(\displaystyle \int \frac{dx}{(x - 3)^2(x + 4)}\, dx\)
Solution.
\begin{equation*} \frac{1}{49}\ln\left|\frac{x + 4}{x - 3}\right| - \frac{1}{7(x - 3)} + C \end{equation*}
11.
\(\displaystyle \int \frac{dx}{x^2 + 8x + 25}\, dx\)
Solution.
\begin{equation*} \frac{1}{3}\tan^{-1}\left(\frac{x + 4}{3}\right) + C \end{equation*}
12.
\(\displaystyle \int \ln\left(\sqrt{5 - x}\right)\, dx\)
Solution.
\begin{equation*} \frac{1}{2}\bigg((x - 5)\ln(5 - x) - x \bigg) + C \end{equation*}
13.
\(\displaystyle \int \tan^5(x)\sec^3(x) \, dx\)
Solution.
\begin{equation*} \frac{\sec^7(x)}{7} - \frac{2\sec^5(x)}{5} + \frac{\sec^3(x)}{3} + C \end{equation*}
14.
\(\displaystyle \int \frac{x^3}{\sqrt{x^2 + 1}}\, dx\)
Solution.
\begin{equation*} \frac{x^2}{3}\sqrt{x^2 + 1} - \frac{2}{3}\sqrt{x^2 + 1} + C \end{equation*}
15.
\(\displaystyle \int \sin\left(\ln(x)\right)\, dx\)
Solution.
\begin{equation*} \frac{x}{2}\left(\sin\left(\ln(x)\right) - \cos\left(\ln(x)\right)\right) + C \end{equation*}
17.
\(\displaystyle \int \tan^{-1}\left(\frac{1}{x}\right)\, dx\)
Solution.
\begin{equation*} \frac{\ln\left(x^2 + 1\right)}{2} + x\tan^{-1}\left(\frac{1}{x}\right) + C \end{equation*}
18.
\(\displaystyle \int \frac{5x + 1}{2x^2 - x - 1}\, dx\)
Solution.
\begin{equation*} \frac{1}{2}\ln\left|2x + 1\right| + 2\ln\left|x - 1\right| + C \end{equation*}
19.
\(\displaystyle \int x^3\cos\left(x^2\right)\, dx\)
Solution.
\begin{equation*} \frac{1}{2}\left(x^2\sin\left(x^2\right) + \cos\left(x^2\right)\right) + C \end{equation*}
20.
\(\displaystyle \int \frac{x^2 - x + 6}{x^3 + 3x}\, dx\)
Solution.
\begin{equation*} 2\ln|x| - \frac{1}{2}\ln\left(x^2 + 3\right) - \frac{1}{\sqrt{3}}\tan^{-1}\left(\frac{x}{\sqrt{3}}\right) + C \end{equation*}
21.
\(\displaystyle \int \frac{\sqrt{9 - x^2}}{x^2}\, dx\)
Solution.
\begin{equation*} -\frac{\sqrt{9 - x^2}}{x} - \sin^{-1}\left(\frac{x}{3}\right)+ C \end{equation*}
22.
\(\displaystyle \int \frac{dx}{x\sqrt{9 - x^2}}\)
Solution.
\begin{equation*} \frac{1}{3}\ln\left|\frac{3 - \sqrt{9 - x^2}}{x}\right| + C \end{equation*}
24.
\(\displaystyle \int \frac{10}{(x - 1)\left(x^2 + 9\right)}\, dx\)
Solution.
\begin{equation*} -\frac{1}{2}\ln\left(x^2 + 9\right) - \frac{1}{3}\tan^{-1}\left(\frac{x}{3}\right) + \ln|x - 1| + C \end{equation*}
25.
\(\displaystyle \int e^{2x}\sin(3x)\, dx\)
Solution.
\begin{equation*} \frac{e^{2x}}{13}\left(2\sin(3x) - 3\cos(3x)\right) + C \end{equation*}