(I3) Substitution Rule for Indefinite Integrals#
By the end of the lesson you will be able to:
calculate an indefinite integral using substitution rule.
Lecture Videos#
Derivative and Integration Rules#
Essentially each derivative rule that we have seen, has a complementary integration counterpart. For example, we have the differentiation and integration rules for addition:
Similar matching rules also exist for subtraction and constant multiplication. Now you might be wondering, what is the integration rule that corresponds with the Chain Rule?
Question: What Integration Rule do you think corresponds with the chain rule?
Why, substitution rule of course!
Substitution Rule#
Substitution Rule
If \(u=g(x)\) is a differentiable function and \(f\) is continuous, then
How It Works#
For the most part, we tend to think of the substitution rule, not so much as a formula to memorize, but rather as a process:
Choose \(u\) and calculate \(du\)
Substitute these values into the original integral.
Integrate this new integral in terms of \(u\).
Convert the antiderivative from \(u\) back to the original variable.
Warning
One of the key things to remember in Step 2, is that we need to convert all instances of our original variable.
If we start with \(x\), then all of the \(x\)-terms, including \(dx\), need to be replaced. And this needs to be done before we move onto step 3.
Differentials#
Part of this process is that once we choose \(u\), it is up to us to actually calculate the new differential \(du\). How?
Differentials
If \(u=g(x)\) is a differentiable function, then the differential \(du\) is:
Remember to put the \(dx\) at the end.
Example 1#
Evaluate the following integral:
Click through the steps to see what we do.
If you want, give it a try first! (Use the steps listed above as a guide to get you started.)
Our first step is choose \(u\):
and then we calculate \(du\) to get:
Next, we plug-in our choice for \(u\) and what we calculated for \(du\) to get:
The resulting integral can now be solved by basic power rule.
Once we are done finding the antiderivative in terms of \(u\), the very last step is to convert back to \(x\):
(Don’t forget \(+C\) for indefinite integrals!)
How to choose u?#
At this point, you might be asking: In that last example, how did you know that we needed to pick \(u=3x+4\)? Well, that’s a very good question, with a not too satisfying answer: practice and trial-and-error.
The strategy that tends to work the most often is to break the integral into two pieces.
And then from there we identify the inner function of the complicated piece.
In our case, the \(3x+4\) is the inner function because it is inside \((\cdot )^{10}\) the power function “raise to the power 10.” In general:
Complicated Piece |
What We Choose |
Why? |
---|---|---|
\(\big(\cdot\big)^n\) |
Terms inside the parentheses |
\(\displaystyle \int u^n \, du = \dfrac{1}{n+1} u^{n+1}+C\) |
\(\dfrac{1}{\big(\cdot\big)}\) |
Terms inside the denominator |
\(\displaystyle \int \dfrac{1}{u} \, du = \ln\vert u\vert + C\) |
\(e^{\big(\cdot\big)}\) |
Terms inside the exponent |
\(\displaystyle \int e^u \, du = e^u+C\) |
Example 2#
Evaluate the following integral:
Click through the steps to see what we do.
If you want, give it a try first!
It sometimes is helpful to rewrite the integral by putting the complicated term first, and then any less-complicated terms next to the \(dx\) (but still within the integral).
This step is not really necessary, but it can be helpful - especially if you are unsure of how to pick \(u\).
Since the more complicated piece of our function is \(e^{x^2}\), we choose \(u\) to be the inner function:
We also calculate \(du\) to get:
Next, we plug-in our choice for \(u\) and what we calculated for \(du\) to get:
The resulting integral can now be solved since it is one of our basic forms.
Once we are done finding the antiderivative in terms of \(u\), the very last step is to convert back to \(x\):
(Don’t forget \(+C\) for indefinite integrals!)
Example 3#
Evaluate the following integral:
Click through the steps to see what we do.
If you want, give it a try first!
Let’s split up our function again and rewrite it with the complicated piece first:
Again, this step is not really necessary, but it can be helpful for picking \(u\).
Since the more complicated piece of our function is \(\dfrac{1}{x^3+1}\), we choose \(u\) to be the inner function:
We also calculate \(du\) to get:
Next, we plug-in our choice for \(u\) and what we calculated for \(du\) to get:
The resulting integral can now be solved since it is one of our basic forms.
Once we are done finding the antiderivative in terms of \(u\), the very last step is to convert back to \(x\):
(Don’t forget the absolute value signs!)
Example 4#
Evaluate the following integral:
Click through the steps to see what we do.
If you want, give it a try first!
When we’re trying to decide what to pick for \(u\) it helps to split up the function a bit:
Again, this step is not really necessary, but it can be helpful. So what are some possible choices for \(u\)? Well, let’s look at all of the pieces we have there on the right. We could do:
We never do this substitution, since it does not simplify our problem at all.
If we calculate \(du\) we get:
But this doesn’t match up too nicely with the remaining \(\ln x\) term.
If we calculate \(du\) we get:
And this matches up perfectly with the remaining \(\tfrac{1}{x}\) term. We have a winner!
So, we’re going to choose:
And calculate:
Next, we plug-in our choice for \(u\) and what we calculated for \(du\) to get:
The resulting integral is now a nice power rule problem.
And then finally we get back to \(x\).
Matching Differentials#
Up until this point, all of the substitutions we have seen have had a perfect match between what we calculate for \(du\) and the extra, leftover terms in our integral.
In example 3 we had:
A perfect match! Usually, this does not have happen. Usually, we have to do a little bit of work with the differentials to make our calculated \(du\) fit better with what is actually there in the integral. And that’s what we’re going to see in the next example.
Example 5#
Evaluate the integral.
Click through the steps to see what we do.
If you want, give it a try first!
The first thing we should do whenever we see a root function is to rewrite it as a power function
(This just helps us later on, if we have to use the power rule.)
Choose \(u\) by looking for the inner function:
And then calculate \(du\):
Next, we need to compare:
And we see that they do not exactly match, there is an extra constant (that \(4\)) in what we calculated for \(du\) that does not appear in the original integral.
How do we handle this? Well, we need to solve our differential equation for what does appear in the integral, we need to solve for the \(dx\).
Now we’re ready to substitute our \(u\) and \(\frac{1}{4}du\) into the original integral:
And this gives us one of our basic integrals, where we can just apply the power rule:
And then finally we can simplify and convert all instances of \(u\) back to our original variable \(x\).
Example 6#
Evaluate the integral.
Click through the steps to see what we do.
If you want, give it a try first!
Since the more complicated piece of our function is \(\sin\left(x^3+5\right)\), we choose \(u\) to be the inner function:
And then calculate \(du\)
Next, we need to compare:
And we see that they do not exactly match, there is an extra constant (that \(3\)) in what we calculated for \(du\) that does not appear in the original integral.
Again, we need to solve for what does appear in the integral, we need to solve for the \(x^2\cdot dx\).
Now we’re ready to substitute our \(u\) and \(\frac{1}{3}du\) into the original integral:
This gives us one of our basic integrals, which we can just do:
And then finally we convert back to \(x\).
Example 7#
Evaluate the integral.
Click through the steps to see what we do.
If you want, give it a try first!
We start by rewriting this root function as a power function
(This just helps us later on, if we have to use the power rule.)
Since the more complicated piece of our function is \((2x^2-8x+1)^{-1/2}\), we choose \(u\) to be the inner function:
And then calculate \(du\)
Next, we need to compare:
And we see that they do not exactly match, but if we do some factoring we can get them to almost match, except for a constant.
And since the \((2-x)\cdot dx\) shows up in both of these, this is what we solve for:
Now we’re ready to substitute our \(u\) and \(\frac{-1}{4}du\) into the original integral:
This gives us one of our basic integrals, which can be solved by using power rule:
And then we get back to \(x\).
Example 8#
Evaluate the integral
k-form Integrals
Example 9#
Evaluate the integral
Click through the steps to see what we do.
If you want, give it a try first!
We start by rewriting this trig function in terms of sine and cosine
Since the more complicated piece of our function is \(\dfrac{1}{\cos x}\), we choose \(u\) to be the inner function:
And then calculate \(du\)
Next, we need to compare:
And since the \(\sin x \cdot dx\) shows up in both of these, this is what we solve for:
Now we’re ready to substitute our \(u\) and \((-1) \cdot du\) into the original integral:
This gives us one of our basic integrals, which can be solved by using power rule:
And then we get back to \(x\).
Solving for x#
Sometimes after making as many subsitutions with \(u\) and \(du\) as possible, there are still some pesky \(x\) terms that stick around. How can we get of rid of them?
Strategy
One strategy to try is to solve our \(u=g(x)\) equation for \(x\).
As a quick example, let’s suppose we were working on an integral and after choosing \(u=5+x\) were able to get to this point in our substitution:
Now, we can’t go any further yet because of that remaining \(x\)-term. Remember we need to convert everything from \(x\) to \(u\), before going on with the integration.
But if we solve for \(x\) …
We see that we can replace that leftover \(x\) with \(5-u\) instead:
And now we’re ready to keep going!
Example 10#
Evaluate the integral.
Click through the steps to see what we do.
If you want, give it a try first!
We start by rewriting this root function as a power function
(This just helps us later on, if we have to use the power rule.)
Since the more complicated piece of our function is \((1+x^2)^{1/2}\), we choose \(u\) to be the inner function:
And then calculate \(du\)
Next, we need to compare:
Our calculated \(du\) |
Leftovers in the Integral |
---|---|
\( du = 2x\cdot dx\) |
\(x^3 \cdot dx\) |
We’re sort of looking for the greatest common factor between the two of these. Both have an \(x\) on the right and both have a \(dx\), so this is what we try to produce:
Our calculated \(du\) |
Leftovers in the Integral |
---|---|
\( \tfrac{1}{2}\cdot du = x\cdot dx\) |
\(x^2 \cdot x \cdot dx\) |
Now we’re ready to substitute our \(u\) and \(\frac{1}{2}du\) into the original integral:
But… we can’t go any further yet since we still have some \(x\)-terms that we haven’t gotten rid of yet. So we turn to our “solve for \(x\) strategy.”
And this is actually as far as we need to solve, since an \(x^2\) is what we have remaining.
This gives us a basic integral, which can be solved by multiplying out the integrand and then using power rule:
And then we get back to \(x\).