Section 7.4 Integration by Change of Variables or Substitution
At the end of the last section we warned that the symbolic integration techniques we have developed only work for problems that exactly fit our formulas. When we tried integrating an exponential function where the exponent was a constant times \(t\text{,}\) we had to change the base to get a function with only \(t\) in the exponent. We want to develop one more technique of integration, that of change of variables or substitution, to handle integrals that are pretty close to our stated rules. This technique is often called \(u\)-substitution and is related to the chain rule for differentiation.
Subsection 7.4.1 Change of variables for indefinite integrals
We start by exploring some examples where we can get the desired result by the guess and check technique.
Example 7.4.1. Power of a linear by guess and check.
Find \(\int (3x+5)^7\, dx\text{.}\)
We could do this problem by rewriting the integrand as an explicit seventh degree polynomial and then using the power and sum rules, but that is too much work. Instead I will notice the integrand looks almost like a power, and thus guess an answer of \(\frac{1}{8} (3x+5)^8+C\text{.}\) I then check by differentiating. Using the chain rule,
Thus our guess was off by a factor of 3 and the correct antiderivative is
We can easily use the same trick to produce a rule for powers of a linear polynomial.
Example 7.4.2. Power of a generic linear by guess and check.
Find \(\int (ax+b)^n dx\text{.}\)
As we did in the previous example, we first guess the antiderivative to be \(\frac{1}{n+1} (ax+b)^{n+1}+C\text{.}\) We then take the derivative of that expression and obtain \(a(ax+b)^n\text{.}\) This misses our integrand by a factor of \(a\text{.}\) We adjust by that factor and find the antiderivative is \(\frac{1}{a} \frac{1}{n+1} (ax+b)^{n+1}+C\text{.}\)
We can use the same trick to produce a rule for functions that are the exponential of a linear function.
Example 7.4.3. Antidifferentiation of an exponential function by guess and check.
Find \(\int e^{ax+b} dx\text{.}\)
As we did in the last example, our first guess uses the basic rule without worrying about the linear term, so we guess \(e^{ax+b}+C\text{.}\) We then take the derivative of that expression and obtain \(ae^{ax+b}\text{.}\) This misses our integrand by a factor of \(a\text{.}\) We adjust by that factor and find the antiderivative is \(\frac{1}{a} e^{ax+b}+C\text{.}\)
We run into a problem if we try to extend this method with quadratic terms. If we start with \((x^2+5)^3\) and guess an antiderivative of \(\frac{1}{4} (x^2+5)^4\text{,}\) when we differentiate we get \((x^2+5)^3 2x\) and are off by a factor of \(8x\text{.}\) However when we divide by that factor to get \(\frac{(x^2+5)^4}{8x}\) as a proposed antiderivative, and then differentiate again we get
which is not what we want. The key is to start by recalling the chain rule:
We want to use the same rule with a different notation, using implicit differentiation and a new variable \(u\text{:}\)
By the fundamental theorem of calculus, we can convert this to an integration formula:
We will generally simplify \(\frac{du}{dx} dx\) to \(du\text{,}\) so our substitution rule is
Let us rework some earlier examples with this method and then illustrate the method with a more difficult problem.
Example 7.4.4. Power of linear example redone with change of variables.
Find \(\int (3x+5)^7 dx\text{.}\)
The obvious candidate for \(u\) is \(3x+5\text{.}\) Then \(du=3\,dx\text{.}\) Thus
This is easy to generalize for a power of a linear term.
Example 7.4.5. Power of generic linear example redone with change of variables.
Find \(\int (ax+b)^n dx\text{.}\)
The obvious candidate for \(u\) is \(ax+b\text{.}\) Then \(du=a \, dx\text{.}\) Hence
To use this method with \(u\) replacing something more complicated than a linear term, we need to have \(du\) available, with the possible addition of multiplying by a scalar constant.
Example 7.4.6. Power of quadratic function with change of variables.
Find \(\int (2x^3+11)^7 x^2 dx\text{.}\)
The obvious candidate for \(u\) is \(2x^3+11\text{.}\) Then \(du=6x^2d\)x. Thus
By convention, \(u\) is often used the new variable used with this change of variables technique, so the technique is often called \(u\)-substitution.
Subsection 7.4.2 Change of variables for definite integrals
In the definite integral, we understand that \(a\) and \(b\) are the \(x\)-values of the ends of the integral. We could be more explicit and write \(x=a\) and \(x=b\text{.}\) The last step in solving a definite integral is to substitute the endpoints back into the antiderivative we have found. We can either change the variables for the endpoints as well, or we can convert the antiderivative back to the original variables before substituting. Consider the following example.
Example 7.4.7. A definite integral with change of variables.
Evaluate \(\int_1^3 e^{2x+5} dx\text{.}\)
Solution 1: Convert everything to \(u\text{.}\) The obvious candidate for \(u\) is \(2x+5\text{.}\) Then \(du=2\, dx\text{.}\) For the lower endpoint, \(x=1\) becomes \(u=7\text{.}\) For the upper endpoint \(x=3\) becomes \(u=11\text{.}\) Substituting,
Solution 2: Keeping, but labeling, the endpoints. We have the same \(u\) and \(du\text{,}\) but do not convert the endpoints. To reduce confusion we make sure to label the variable when we are using both \(x\) and \(u\text{.}\) Thus,
It should be noted that when we change variables we may find ourselves looking at an integral from \(a\) to \(b\) where the \(b \lt a\text{.}\) We do not change the order of the endpoints.
Example 7.4.8. A second definite integral with change of variables.
Evaluate \(\int_{-2}^1 x \exp(x^2)dx\)
(Convert everything to \(u\text{.}\)) The obvious candidate for \(u\) is \(x^2\text{.}\) Then \(du=2x\, dx\text{.}\) For the lower endpoint, \(x=-2\) becomes \(u=4\text{.}\) For the upper endpoint \(x=1\) becomes \(u=1\text{.}\) Substituting,
Exercises 7.4.3 Exercises: Integration by Change of Variables or Substitution Problems
Exercise Group.
Evaluate the following integrals. In each case identify the term that will be treated as \(u\text{.}\)
1.
Let \(u=5x+3\text{.}\) Then \(du=5dx\text{.}\)
2.
3.
Let \(u=x/5-2\text{.}\) Then \(du=dx/5\text{.}\)
4.
5.
Let \(u=8x-3\text{.}\) Then \(du=8dx\text{.}\)
6.
7.
Let \(u=0.06t-5\text{.}\) Then \(du=0.06dt\text{.}\)
8.
9.
Let \(u=x^2+5x+3\text{.}\) Then \(du=(2x+5)dx\text{.}\)
10.
11.
Let \(u=x^3+x+9\text{.}\) Then \(du=(3x^2+1)dx\text{.}\)
12.
13.
Let \(u=3x+1\text{.}\) Then \(du=3dx\text{.}\)
14.
15.
Let \(u=-0.05(t+1)\text{.}\) Then \(du=-0.05dt\text{.}\)
16.
17.
Let \(u=3x^2+7\text{.}\) Then \(du=6x\,dx\text{.}\)
18.
19.
Find an antiderivative \(F(x)\) for \(f(x)=x^2(x^3+7)^3\) such that \(F(0)=5\text{.}\)
Let \(u=x^3+7\text{.}\) Then \(du=6x^2 dx\text{.}\)
20.
Find an antiderivative \(F(x)\) for \(f(x)=(4x^3+5)\exp(x^4+5x-9)\) such that \(F(0)=2\text{.}\)
21.
An investment stream pays out at a rate of $10,000 per year. In computing present value, I assume an investment return rate of 5% compounded continuously. What is the present value of the first 10 years of the payout?
22.
My gas well is returning a payout of $10,000. The well output is expected to decay exponentially with half as much output in 7 years. How much do I make over the next 10 years?
23.
The sales rate on a book is \(s(t)=1000t \exp(-t^2/4)\text{,}\) with time in years.
What are the total sales over 10 years?
When does the sales rate drop to 10?
What is the maximum sales rate?
-
Let \(u=-\frac{t^2}{4}\text{.}\) Then \(du=-\frac{t}{2} dt\text{.}\)
\begin{align*} Sales\amp=\int_0^{10} 1000t e^{-t^2/4}dt=\int_0^{-25}-2000 e^u\,du\\ \amp=\left.-2000e^u)\right|_0^{-25}\\ \amp= 2000((1-e^{-25})\approx 2000\text{.} \end{align*} - \begin{align*} 10\amp =1000t e^{-t^2/4}\\ t\amp \approx 5.0028\text{.} \end{align*}
At \(t=1.454\text{,}\) sales are approximately 857.4
24.
The marginal profit on an item is \(Mp(q)=\frac{(100q)}{(q^2+1)}-2\text{,}\) measured in thousands of dollars per thousands of units.
How much should I produce to maximize profits?
What is my profit function if my start up cost is $60,000?
What is the maximum profit?