Skip to main content

Section 5.6 Introduction to \(u\)-Substitution

We have spent some time thinking about integrals, both indefinite and definite integrals, and what they represent. Let’s end this discussion of integration with some classifications of indefinite integrals.
This classification is completely unserious, but maybe helpful. Let’s say that we had to classify each of the following integrals as Easy, Medium, or Hard. Again, these are completely ambiguous and not at all defined, but I hope that we can see the spirit of what we’re thinking of. Here are the three integrals that we want to classify:
\begin{equation*} \int x^5\;dx \end{equation*}
\begin{equation*} \int \sec^2(x)\;dx \end{equation*}
\begin{equation*} \int \frac{x^3}{1+x^2}\;dx \end{equation*}
Which one could have the Easy? What about a Medium difficulty integral? What makes this one a bit harder, but not so hard to be classified as Hard? Can you even solve the Hard right now?
Let’s think about a legitimately difficult integral, but one that we can actually think about.

Activity 5.6.1. A Hard Integral.

We’re going to be thinking about two integrals here, but before we do, we should remind ourselves about how we can “rephrase” an integration question.
If we are asked to find \(\displaystyle \int f(x)\;dx\text{,}\) then we are really being asked to find some function \(F(x)\) whose derivative is \(f(x)\text{.}\) Of course, we’re actually being asked to find all of the possible functions that fit this requirement, but we know that the constant of integration covers all of the differences.
This means that we can (and maybe should) check our answers pretty consistently: just find a derivative and check that it matches the integrand!

(a)

Find \(\displaystyle \int 3x^2e^{x^3}\;dx\text{.}\)
Hint 1.
Find a function \(F(x)\) where \(F'(x)=3x^2e^{x^3}\text{.}\)
Hint 2.
If you’re looking at the structure of \(F'(x)=3x^2e^{x^3}\text{,}\) can you tell what kind of derivative rule we had to have used in order to get this derivative?
How do we use that to “undo” this differentiation?

(b)

Explain the role of \(3x^2\) in the integral. Explain why the positioning of \(x^3\) matters.

(c)

Let’s try another one.
\begin{equation*} \int 7x^6\cos(x^7)\;dx \end{equation*}
Hint.
Can you find the same kind of structure here? Is there a function-derivative pairing or composition here that signifies the end result of the Chain Rule?

(d)

How can you tell, in general, that the derivative you’re looking at is one that was produced through the Chain Rule and not the Product Rule?

Subsection Undoing the Chain Rule

Let’s try to formalize this process of “undoing the Chain Rule” that we noticed in Activity 5.6.1. It might be helpful to, first, think about the Chain Rule and how the differentiation process works. Let’s look at the differentiating \(\sin(x^7)\) using the Chain Rule.
The first thing we should do when finding \(\ddx{\sin(x^7)}\) is recognize and identify the composition. We might call \(x^7\) the “inside” function, or relabel it as \(u\text{.}\) Then we know that the Chain Rule will tell us to differentiate the “outside” function with regard to the “inside” function (or \(u\) if we relabel things) and then multiply by the derivative of the inside function (or \(\frac{du}{dx}\)).
\begin{align*} \ddx{\sin(\underbrace{x^7}_{u})} \amp =\ddx{\sin(u)}\\ \amp = \frac{d}{du}\left(\sin(u)\right)\left(\frac{du}{dx}\right)\\ \amp = \cos(u)\ddx{x^7}\\ \amp = \cos(x^7)7x^6 \end{align*}
From here, we might rewrite things to make it look nicer (coefficients look weird when they’re not in the front, in my opinion) and write:
\begin{equation*} \ddx{\sin(x^7)}= 7x^6\cos(x^7) \end{equation*}
When we work through this process backwards, we’ll need to identify the “inside” function, but also find the derivative of that “inside” function, \(\frac{du}{dx}\text{.}\) This derivative gets introduced in the Chain Rule, and so it will have to be picked out when we undo the Chain Rule.
Let’s build this process and go through the integral \(\displaystyle \int 7x^6\cos(x^7)\;dx\) from Activity 5.6.1.

Process for \(u\)-Substitution.

  1. Identify an “inside” function and/or a “function-derivative pair.” We’ll label the “inside” function, or the “function” part of the “function-derivative pair,” as \(u\text{.}\)
    Example: In our integral \(\displaystyle\int 7x^6\cos(x^7)\;dx\) we can see the “inside” function is \(x^7\text{,}\) and also we have \(x^7\) and \(7x^6\) as the function-derivative pair. Let \(u=x^7\text{.}\)
  2. Define the substitution for the differential, \(du=u'\;dx\text{.}\) We can think about this as a result from knowing that \(\frac{du}{dx}=u'\text{,}\) or by thinking that a small change in \(u\) corresponds with \(u'\) multiplied by a small change in \(dx\text{.}\)
    Example: In our integral \(\displaystyle\int 7x^6\cos(x^7)\;dx\text{,}\) we labeled \(u=x^7\text{.}\) This means that \(du=7x^6\;dx\text{,}\) since this is the derivative of \(x^7\text{.}\)
  3. Substitute! Rewrite the integral, replacing the parts that you’ve labeled as \(u\) and \(du\text{.}\)
    Example: We can rewrite our integral to make this a bit easier to see:
    \begin{align*} \int 7x^6\cos(x)\;dx \amp = \int \cos(\underbrace{x^7}_{u})\underbrace{7x^6\;dx}_{du}\\ \amp = \int \cos(u)\;du \end{align*}
  4. Antidifferentiate! We should have an integral that is “written in terms of \(u\text{,}\)” and so we can antidifferentiate the function as if \(u\) was our input variable. Notice that what we’ve done with our substitution is to undo the “multiply by the derivative of the inside function” step of the Chain Rule. Now we can antidifferentiate the “outside” function!
    Example: \(\displaystyle\int\cos(u)\;du = \sin(u)+C\)
  5. Substitute “back” to have our antiderivative family written in terms of our original input variable, \(x\) in this case. We’ll replace \(u\) with whatever we had defined our substitution to be in step 1.
    Example: We defined \(u=x^7\text{,}\) so:
    \begin{equation*} \sin(u)+C = \sin(x^7)+C \end{equation*}
Let’s practice this with some more examples.

Activity 5.6.2. Picking the Pieces of a Substitution.

We’re going to look at three integrals. Instead of working through them one-at-a-time, we’ll look at all three simultaneously, where we can practice identifying, substituting, and antidifferentiating all at the same time.
(a)
Let’s consider these three integrals:
  • \(\displaystyle \displaystyle\int \frac{3x^2+1}{(x^3+x-2)^2}\;dx\)
  • \(\displaystyle \displaystyle \int \cos(x)\sqrt{\sin(x)}\;dx\)
  • \(\displaystyle \displaystyle \int \frac{(\ln(x))^3}{x}\;dx\)
For each of these integrals, identify the substitution: define \(u\) as some function of \(x\text{.}\)
Hint.
Can you find the composition in each one? If you notice the function-derivative pairing instead, then you can think about making \(u\) the “function” portion!
Answer.
  • For \(\displaystyle\int \frac{3x^2+1}{(x^3+x-2)^2}\;dx\text{,}\) let \(u=x^3+x-2\text{.}\)
  • For \(\displaystyle \int \cos(x)\sqrt{\sin(x)}\;dx\text{,}\) let \(u=\sin(x)\text{.}\)
  • For \(\displaystyle \int \frac{(\ln(x))^3}{x}\;dx\text{,}\) let \(u=\ln(x)\text{.}\)
(b)
For each substitution, define \(du=u'\;dx\text{.}\)
Answer.
  • For \(u=x^3+x-1\text{,}\) \(du=(3x^2+1)\;dx\text{.}\)
  • For \(u=\sin(x)\text{,}\) \(du=\cos(x)\;dx\text{.}\)
  • For \(u=\ln(x)\text{,}\) \(du=\frac{1}{x}\;dx\text{.}\)
(c)
For each integral, use your substitution (for both \(u\) and the differential \(du\)) to rewrite the integral.
Answer.
  • \(\displaystyle \displaystyle\int \frac{3x^2+1}{(x^3+x-2)^2}\;dx =\int \frac{1}{u^2}\;du\)
  • \(\displaystyle \displaystyle \int \cos(x)\sqrt{\sin(x)}\;dx = \int \sqrt{u}\;du\)
  • \(\displaystyle \displaystyle \int \frac{(\ln(x))^3}{x}\;dx = \int u^3\;du\)
(d)
Antidifferentiate each integral, and then use your substitution to write each integral back in terms of \(x\text{.}\)
Answer.
  • \begin{align*} \int \frac{1}{u^2}\;du \amp = -\frac{1}{u}+C\\ \amp = -\frac{1}{x^3+x-2}+C \end{align*}
  • \begin{align*} \int \sqrt{u}\;du \amp = \frac{2 u^{3/2}}{3}+C\\ \amp = \frac{2(\sin(x))^{3/2}}{3}+C \end{align*}
  • \begin{align*} \int u^3\;du \amp = \frac{u^4}{4}+C\\ \amp = \frac{(\ln(x))^4}{4}+C \end{align*}
Let’s try to explain a little bit of what is happening. This style of problem solving is really useful in mathematics, and shows up in many places.
Two rectangles, one labeled "x Context" and the other, beside it, labeled "u Context." Inside the "x Context" rectangle is an integral of f(x) dx with an arrow pointing towards F(x)+C. Inside the "u Context" rectangle is an integral of g(u) du with an arrow pointing towards G(u)+C. There is an arrow connecting the integral of f(x) dx in the first rectangle to the integral of g(u) du labeled u = ... and du = u’ dx. Then there is an arrow connecting G(u)+C to F(x)+C labeled u = ...
Figure 5.6.1. General idea of how a variable substitution in an integral works.
Let’s explain what is happening in this picture. First, we typically are presented with integrals in some context. Our goal is to antidifferentiate. So for \(\displaystyle\int f(x)\;dx\text{,}\) we hope to antidifferentiate and end up with \(F(x)+C\text{,}\) the family of antiderivative of \(f(x)\text{.}\) These two things (the indefinite integral and the family of antiderivatives) exist in the same context (since they’re defined with the same variable). We have spent some time moving directly from \(\displaystyle f(x)\;dx\) to \(F(x)+C\text{.}\) But now we’re seeing that this isn’t always as direct of a path as we might wish: some integrals are hard.
In this case, we can try to identify what the problem is (in this case, composition) and find some transformation to apply to our integral. We choose a variable substitution, and we translate our integral to a different context (in this case, by writing it in terms of a different variable). In order for us to do this, we ned to define some substitution \(u\text{,}\) and then translate \(dx\) into \(du\) using the relationship \(du=u'\;dx\text{.}\)
Once we have this new integral, of a different function \(g(u)\) in a different context with \(u\) acting as the input, we try to antidifferentiate again. If we pick our substitution carefully and we know what kind of problem we’re trying to fix (in this case, getting around the composition), then this new integral in the \(u\) context could be “easier” to antidifferentiate. So our goal is to antidifferentiate the integral, but we can antidifferentiate it after translating it to a different context.
Once we have this antiderivative, we can translate that antiderivative family back to the original context (in this case, we write it in terms of \(x\)). We do this by utilizing the same translation or substitution that we defined earlier: we have something defined to link \(u\) and \(x\text{.}\) We can notice that, since the object we’re translating is not an integral anymore, we do not have a differential to translate.
And there we have it: \(u\)-substitution works by identifying a problem that makes our task hard, translating our object to a friendlier context based on what we know about our problem, solving the problem in this friendlier context, and then finally translating the solution back to our original context.
Let’s practice this new strategy!

Activity 5.6.3. Compare Two Integrals.

Let’s compare two integrals, and use this to build a more general strategy for performing \(u\)-substitution.
(a)
Consider the following integral:
\begin{equation*} \int -4x^3\sec^2(1-x^4)\;dx \end{equation*}
Select and justify a choice for \(u\text{.}\)
Hint.
Where is the composition? Do you see a function-derivative pair?
(b)
Perform the \(u\)-substitution and antidifferentiate, and then substitute back to write your antiderivative in terms of \(x\text{.}\)
Solution.
We’ll let \(u=1-x^4\text{,}\) and so \(du = -4x^3\;dx\text{.}\)
\begin{align*} \int -4x^3\sec^2(1-x^4)\;dx \amp = \int \sec^2(\underbrace{1-x^4}_{u})\underbrace{(-4x^3)\;dx}_{du} \\ \amp = \int \sec^2(u)\;du\\ \amp = \tan(u)+C\\ \amp = \tan(1-x^4)+C \end{align*}
(c)
Compare that integral to this one:
\begin{equation*} \int x^3\sec^2(1-x^4)\;dx \end{equation*}
What is different about this new integral? What has remained the same? How does that impact your choice for \(u\text{,}\) or does it impact your choice for \(u\text{?}\)
Hint.
Notice that nothing has changed about the “inside” function!
(d)
Has that changed what \(du\) should be?
Hint.
Remember that \(du=u'\;dx\text{.}\) If we didn’t change our selection of \(u\text{,}\) then shouldn’t \(du\) remain the same as well?
(e)
Ok, so we’ve noticed an issue here. There are plenty of good ways of solving this problem, where \(du\) doesn’t “show up” perfectly in our integral. In this case, we have that we’re missing a necessary coefficient. We have the \(x^3\) part, but we are missing the \(-4\text{.}\)
Try to rewrite our integral with a \(-4\) coefficient in there. We’ll do that by multiplying the integrand function by \(1\text{,}\) disguised as \(\frac{-4}{-4}\) or \(\left(-\frac{1}{4}\right)(-4)\text{.}\)
Answer.
\begin{align*} \int x^3\sec^2(1-x^4)\;dx \amp = \int {\color{red}{\left(-\frac{1}{4}\right)(-4)}}x^3\sec^2(1-x^4)\;dx \\ \amp = {\color{red}{-\frac{1}{4}}}\int {\color{red}{-4}}x^3\sec^2(1-x^4)\;dx \end{align*}
(f)
Now we can use the same \(u\)-substitution as before, and integrate in a similar way! Notice, though, that we will retain the coefficient of \(-\frac{1}{4}\text{.}\)
(This should be reasonable: our integral is \(-\frac{1}{4}\) of the original one, since our coefficient was \(1\) to the original’s \(-4\text{.}\))
Go ahead and integrate!
Answer.
\begin{equation*} \int x^3\sec^2(1-x^4)\;dx = -\frac{1}{4}\tan(1-x^4)+C \end{equation*}
This gives us a general strategy that we can use: if we pick a \(u\)-substitution, but we cannot find \(du\) in our integral, we can try to manipulate the integrand function to find it! We normally do this by applying some operation and its inverse (like multiplying by \(-4\) and dividing by it as well, as in Activity 5.6.3).

Fixing Coefficients for \(du\).

If we choose to perform a \(u\)-substitution in the integral \(\displaystyle \int f(x)\;dx\text{,}\) but we require a coefficient \(k\) in our definition of \(du\text{,}\) we can “fix” the coefficient in our integral:
\begin{equation*} \frac{1}{k}\int kf(x)\;dx \end{equation*}
This strategy works well for coefficients, since we can factor out the \(\frac{1}{k}\) from the integral.

Subsection Substitution for Definite Integrals

How would we evaluate the following definite integral?
\begin{equation*} \int_{x=0}^{x=2}\left(\frac{x+1}{x^2+2x+1}\right)\;dx \end{equation*}
We can think back to what the Fundamental Theorem of Calculus (Part 2) says about evaluating a definite integral. We need to do two things:
  1. Find an antiderivative of our function, \(F(x)\text{.}\) Any antiderivative will do, and we often pick the one where the constant term is 0.
  2. Evaluate the antiderivative at the end points of the interval and subtract: \(F(b)-F(a)\text{.}\)
So for us to evaluate this definite integral, we can split the work into two parts.

Subsubsection Antidifferentiate, then Evaluate

Part 1: Antidifferentiation. We can think about the function \(f(x) = \dfrac{x+1}{x^2+2x+1}\) and find the family of antiderivatives. Then, we can disregard the constant term (by selecting the antiderivative where the constant is 0 for convenience).
So we’ll use \(u\)-substitution on the integral \(\displaystyle \int \left(\frac{x+1}{x^2+2x+1}\right)\;dx\text{.}\)
We can use \(u=x^2+2x+1\text{,}\) which gives us \(du=(2x+2)\;dx\) or \(du=2(x+1)\;dx\text{.}\)
\begin{align*} \int \left(\frac{x+1}{x^2+2x+1}\right)\;dx\amp = {\color{red}{\frac{1}{2}}}\int \left(\frac{{\color{red}{2}}(x+1)}{x^2+2x+1}\right)\;dx\\ \amp = \frac{1}{2}\int \frac{1}{u}\;du\\ \amp = \frac{1}{2}\ln|u|+C\\ \amp = \frac{1}{2}\ln|x^2+2x+1|+C \end{align*}
So let’s choose \(F(x) = \frac{1}{2}\ln|x^2+2x+1|\) as the antiderivative we’ll use.
Part 2: Evaluate at the End Points. For the integral \(\displaystyle \int_{x=0}^{x=2}\left(\frac{x+1}{x^2+2x+1}\right)\;dx\text{,}\) our ending points are \(x=2\) and \(x=0\text{,}\) so let’s evaluate!
\begin{align*} F(2) \amp = \frac{1}{2}\ln|(2)^2+2(2)+1|\\ \amp = \frac{1}{2}\ln(9)\\ F(0) \amp = \frac{1}{2}\ln|(0)^2+2(0)+1|\\ \amp = \frac{1}{2}\ln(1) = 0\\ F(2)-F(1) \amp = \frac{1}{2}\ln(9)-0\\ \amp = \frac{1}{2}\ln(9)\\ \amp = \ln(3) \end{align*}
Great, so we have a way of evaluating this integral!
\begin{equation*} \int_{x=0}^{x=2}\left(\frac{x+1}{x^2+2x+1}\right)\;dx = \ln(3) \end{equation*}

Subsubsection A More Wholistic Substitution

Hang on, wait.
When we substituted our integral, we were substituting the indefinite integral. What if we applied our substitution to the definite integral.
The only difference is the limits of integration (other than the interpretation of area vs. family of antiderivatives, of course). So let’s substitute the limits of integration.
Consider the definite integral. Really think about it.
\begin{equation*} \int_{x=0}^{x=2}\left(\frac{x+1}{x^2+2x+1}\right)\;dx \end{equation*}
Here, we label the limits of integration as \(x\)-values: \(x=0\) and \(x=2\text{.}\)
Can’t we use our substitution rule to find corresponding \(u\)-values? What happens then? Let’s approach this definite integral using the same substitution: we will think of \(u=x^2+2x+1\) again. But now we can find corresponding values of \(u\) when \(x=0\) and \(x=2\text{.}\) All we need to do is evaluate the formula for \(u\) at those \(x\)-values!
\begin{align*} \int_{x=0}^{x=2}\left(\frac{x+1}{x+2x+1}\right) \amp = {\color{red}{\frac{1}{2}}}\int_{x=0}^{x=2} \left(\frac{{\color{red}{2}}(x+1)}{x^2+2x+1}\right)\;dx\\ \amp = \frac{1}{2}\int_{u=(0)^2+2(0)+1}^{u=(2)^2+2(2)+1}\frac{1}{u}\;du\\ \amp = \frac{1}{2}\int_{u=1}^{u=9}\frac{1}{u}\;du\\ \amp \left(\frac{1}{2}\ln|u|\right)\bigg|_{u=1}^{u=9}\\ \amp = \frac{1}{2}\ln(9)-\frac{1}{2}\ln(1)\\ \amp = \frac{1}{2} \ln(9)\\ \amp = \ln(3) \end{align*}
So notice that we end up with the same thing here...we can substitute the limits of integration, and this matches the same value that we would get when we evaluate our antiderivatives at the endpoints of the \(x\)-interval.
We can amend our picture from Figure 5.6.1 to include definite integrals: in this case, we can evaluate the definite integral in either context, as long as we translate the limits of integration as well.
Two rectangles, one labeled "x Context" and the other, beside it, labeled "u Context." Inside the "x Context" rectangle is an integral from x=a to x=b of f(x) dx with an arrow pointing towards F(x)+C and then an arrow continuing to F(b)-F(a). Inside the "u Context" rectangle is an integral from u=c to u=d of g(u) du with an arrow pointing towards G(u)+C and then an arrow continuing to G(d)-G(c). There is an arrow connecting the integral of f(x) dx in the first rectangle to the integral of g(u) du labeled u = ... and du = u’ dx. Then there is an arrow connecting G(u)+C to F(x)+C labeled u = ... Then there is a double-sided arrow connecting F(b)-F(a) and G(d)-G(c) labeled "equivalent."
Figure 5.6.2. General idea of how a variable substitution in a definite integral works.
To see a visualization of what is happening, we can look below: move the slider to see the continuous deformation of the integral as we apply the variable substitution:
Something we can say is that, since the area doesn’t change when we do a variable substitution, then area is invariant under the transformation we’re applying with that variable substitution.

Subsection More to Translate

There are more little tricks and nuances that we can think about with \(u\)-substitution: in general, this is an extremely flexible integration technique that we’ll use in a variety of ways. For now, let’s leave things off with one more interesting example.
In this example, we’ll see a similar kind of issue to the one we saw in Activity 5.6.3: when we pick our substitution, there will be some issues “finding” \(du\text{.}\)

Example 5.6.3.

Integrate the following, making sure to translate the whole integrand function to be written in terms of \(u\text{.}\)
\begin{equation*} \int \left( \frac{x^3}{\sqrt{x^2+1}} \right)\;dx \end{equation*}
Hint 1.
First, notice that \(u=x^2+1\) is a great choice: we really want to focus on that composition. If this is the case, though, then \(du=2x\;dx\text{.}\)
Hint 2.
We can write \(x^3\) as \(x^2\cdot x\text{,}\) or if you really want to, we can write it as \(\frac{1}{2}x^2\cdot(2x)\)
Hint 3.
Our \(u\)-substitution formula can be written in a whole bunch of different ways!
\begin{align*} u \amp =x^2+1\\ x^2 \amp = u-1\\ x \amp =\pm\sqrt{u-1} \end{align*}
These are all equivalent, but the first two might be the most helpful:
  • Anywhere in our integral that we can see an \(x^2+1\text{,}\) we can replace that with \(u\text{.}\)
  • We can also replace any extra \(x^2\) pieces with \(u-1\text{!}\)
Solution.
\begin{align*} \int \left(\frac{x^3}{\sqrt{x^2+1}}\right)\;dx \amp u = x^2+1\\ \amp du = 2x\;dx\\ \int \left(\frac{x^3}{\sqrt{x^2+1}}\right)\;dx\amp = \frac{1}{2}\int \left(\frac{x^2\cdot(2x)}{\sqrt{x^2+1}}\right)\;dx\\ \amp = \frac{1}{2}\int \frac{(u-1)}{\sqrt{u}}\;du \amp u=x^2+1 \leftrightarrow x^2=u-1\\ \amp = \frac{1}{2}\int \frac{u}{\sqrt{u}} - \frac{1}{\sqrt{u}}\;du\\ \amp = \frac{1}{2}\int u^{1/2} - u^{-1/2}\;du\\ \amp = \frac{1}{2}\left(\frac{2u^{3/2}}{3} - 2u^{1/2}\right) + C\\ \amp = \frac{(x^2+1)^{3/2}}{3} - \sqrt{x^2+1}+C \end{align*}
We’ll spend more time thinking about \(u\)-substitution (as well as other variable substitutions) later on in Chapter 7. For now, this is a good stopping point, and should give us enough of a handle on \(u\)-substitution to integrate some difficult integrals!

Practice Problems Practice Problems

1.

The \(u\)-substitution integration method was designed to undo a specific derivative rule. Explain.

2.

The \(u\)-substitution integration method deals with composition of functions. If you’re looking at a composite function \(f(g(x))\text{,}\) how do you identify the “inside” function, \(g(x)\text{?}\)

3.

For each composite function \(f(g(x))\) below, identify two different possibilities for both the “inside” \(g(x)\) function and the “outside” \(f(x)\) function.
(d)
\(f(g(x)) = (\tan(x)+x)^6\)

4.

Use the chain rule to differentiate each of the following. Carefully note for each problem which part of the composite function acts as the “inside”piece.

5.

Integrate the following indefinite integrals using the suggested \(u\)-substitution.
(a)
\(\displaystyle\int 2xe^{x^2}\;dx\text{;}\) \(u = x^2\)
(b)
\(\displaystyle\int \left(\frac{\cos(x)}{\sin(x)}\right)\;dx\text{;}\) \(u = \sin(x)\)
(c)
\(\displaystyle\int \left(\frac{\sin(\sqrt{x})}{2\sqrt{x}}\right)\;dx\text{;}\) \(u = \sqrt{x}\)
(d)
\(\displaystyle\int 50(5x+1)^9\;dx\text{;}\) \(u=5x+1\)
(e)
\(\displaystyle\int e^x\sec^2(e^x+\pi)\;dx\text{;}\) \(u=e^x+\pi\)
(f)
\(\displaystyle\int \left(\frac{3x^2}{2\sqrt{x^3+1}}\right)\;dx\text{;}\) \(u = x^3+1\)

6.

Use \(u\)-substitution to integrate the following indefinite integrals.
(a)
\(\displaystyle\int \left(\frac{2x+1}{(x^2+x+1)^3}\right) \;dx\)
(b)
\(\displaystyle\int \left(\frac{x}{x^2+1}\right) \;dx\)
(c)
\(\displaystyle\int xe^{-x^2} \;dx\)
(d)
\(\displaystyle\int\tan(x)\;dx\)
Hint.
It will likely be helpful to remember that we can write \(\tan(x)\) as \(\dfrac{\sin(x)}{\cos(x)}\text{.}\) Now try to find an appropriate \(u\)-substitution.
(e)
\(\displaystyle\int \frac{1}{x\ln(x)}\;dx\)
(f)
\(\displaystyle\int \sin^6(x)\cos(x)\;dx\)
(g)
\(\displaystyle\int x\sec(x^2)\tan(x^2)\;dx\)
(h)
\(\displaystyle\int \left(\frac{x}{1+x^4}\right)\;dx\)
Hint.
It will likely be helpful to rewrite this integral as:
\begin{equation*} \displaystyle\int \left(\frac{x}{1+(x^2)^2}\right)\;dx\text{.} \end{equation*}
This isn’t obvious!

7.

For each of the following definite integrals, identify a \(u\)-substitution and write the definite integral with regard to \(u\text{,}\) including new (translated) limits of integration.
(a)
\(\displaystyle\int_{x=0}^{x=3} \left(\frac{1}{x+1}\right)\;dx\)
(b)
\(\displaystyle\int_{\theta=\sqrt{\pi/2}}^{\theta=\sqrt{\pi}} \left(\theta\cos(\theta^2)\right)\;d\theta\)
(c)
\(\displaystyle\int_{x=0}^{x=1} \left(x\sqrt{1-x^2}\right)\;dx\)
(d)
\(\displaystyle\int_{t=-1}^{t=1} \left(\frac{2t+1}{\sqrt[3]{t^2+t+2}}\right)\;dt\)

8.

Evaluate all of the definite integrals above.