Skip to main content
Logo image

Applied Calculus

Section 5.6 Integration by Substitution

In Section 5.3, we learned the key role that antiderivatives play in the process of evaluating definite integrals exactly. The Fundamental Theorem of Calculus tells us that if F is any antiderivative of f, then
abf(x)dx=F(b)F(a).
So, to evaluate the definite integral, we need to find an antiderivative for f, evaluate the antiderivative at a and b, and subtract. However, as we have observed in previous sections, finding the antiderivative of a function becomes more complicated as the formula becomes more complicated. In this section, we will explore what happens when you attempt to find the antiderivative of a composite function.

Subsection 5.6.1 Reversing the Chain Rule: u-substitution

Recall that the Chain Rule states that
ddx[f(g(x))]=f(g(x))g(x).
Restating this relationship in terms of an indefinite integral,
(5.6.1)f(g(x))g(x)dx=f(g(x))+C.
Equation (5.6.1) tells us that if we can view a given function as f(g(x))g(x) for some appropriate choices of f and g, then we can antidifferentiate the function by reversing the Chain Rule.
To reverse the Chain Rule we must first identify an "inside" function g(x). Since we are reversing the Chain Rule then the derivative of the inside function must also be part of the function, thus we must have g(x) as well.
If we can identify both g(x) and g(x), then we will introduce a new variable u to represent the function g(x). With u=g(x), it follows that dudx=g(x), which we can then rewrite as
 1 
If we recall from the definition of the derivative that dudxΔuΔx and use the fact that dudx=g(x), then we see that g(x)ΔuΔx. Solving for Δu, Δug(x)Δx. It is this last relationship that, when expressed in “differential” notation enables us to write du=g(x)dx in the change of variable formula.
, du=g(x)dx. Now converting the indefinite integral to a new one in terms of u, we have
f(g(x))g(x)dx=f(u)du.
Provided that f is an function whose antiderivative is known from Section 5.1, we can easily evaluate the indefinite integral in u, and then go on to determine the desired overall antiderivative of f(g(x))g(x). We call this process u-substitution, and summarize the rule as follows:

Method of Substitution.

With the substitution u=g(x),
f(g(x))g(x)dx=f(u)du=f(u)+C=f(g(x))+C.
This method is often referred to as u-substitution.
To apply the method of u-substitution, we consider the steps laid out in the following example.

Example 5.6.1.

Evaluate the following integral using u-substitution.
(x3+5)8(3x2)dx
Step 1: Identify an "inside" function and set u equal to that inside function. In this case, a possible "inside" function is
u=x3+5.
Step 2: Take the derivative of inside function, and then write in the form du=g(x)dx:
du=3x2dx.
Step 3: Replace the inside function with u and replace g(x)dx with du:
(x3+5u)8(3x2)dxdu=(u)8du.
Step 4: Integrate with variable u:
u8du=u99+C.
Step 5: Replace u with the function chosen in the Step 1:
(x3+5)83x2dx=u8du=u99+C=(x3+5)99+C
Step 6: Check your work by taking the derivative using the Chain Rule:
ddx[(x3+5)99+C]=9(x3+5)89(3x2)=(x3+5)8(3x2).

Example 5.6.2.

Evaluate the following indefinite integrals with u-substitution
  1. 4x2+3x(8x+3)dx
  2. 12x+9(6x2+9x+4)3dx
  3. 4xe2x2+4dx
  4. 6x3x2+7dx
Answer.
  1. 4x2+3x(8x+3)dx=23(4x2+3x)3/2+C
  2. 12x+9(6x2+9x+4)3dx=1/2(6x2+9x+4)2+C
  3. 4xe2x2+4dx=e2x2+4+C
  4. 6x3x2+7dx=ln|3x2+7|+C
Solution.
  1. To start, choose u=4x2+3x, the "inside" function. Then du=(8x+3)dx, so
    4x2+3x(8x+3)dx=udu=u1/2du.
    Integrate u by applying the power rule, then replace u with 4x2+3x:
    u1/2du=u3/23/2+C=23u3/2+C=23(4x2+3x)3/2+C.
  2. To start, choose u=6x2+9x+4, the "inside" function. Then du=(12x+9)dx, so
    12x+9(6x2+9x+4)3dx=1u3du=u3du.
    Integrate u by applying the power rule, then replace u with 6x2+9x+4:
    u3du=u22+C=1/2u2+C=1/2(6x2+9x+4)2+C
  3. Start by choosing u=2x2+4. As a general rule of thumb, whenever we have a function in the exponent of e we will choose this function as u. Then du=4xdx, and
    4xe2x2+4dx=eudu=eu+C=e2x2+4+C.
  4. Start by choosing u=3x2+7. As a general rule of thumb, given a rational function without an obvious inside, try to choose u= the denominator. Then du=6xdx and
    6x3x2+7dx=1udu=ln|u|+C=ln|3x2+7|+C.

Subsection 5.6.2 What if du is not exact?

In some cases after we choose u, the corresponding du is not exactly what is left over in the integral. For example, consider the following integral:
xex2dx.
For this integral we can use u-substitution with u=x2 and du=2xdx. Although, this du is not exactly in our integral we can multiply both sides by 12 so that 12du=xdx, which is now exactly what is left over in the integral. Thus,
xex2dx=eu12du=12eudu=12eu+C=12ex2+C.
However, for the similar indefinite integral
ex2dx,
the u-substitution u=x2 is no longer possible because the factor of x is missing. Hence, part of the lesson of u-substitution is just how specialized the process is: it only applies to situations where, up to a missing constant, the integrand is the result of applying the Chain Rule to a different, related function.

Example 5.6.3.

Evaluate the following indefinite integrals with u-substitution
  1. x2(3x3+8)5dx
  2. xx2+25dx
  3. (2x+1)xe3x4+6xdx
  4. 6x2x3+10dx
Answer.
  1. x2(3x3+8)5dx=(3x3+8)654+C
  2. xx2+25dx=x2+25+C
  3. (2x+1)xe3x4+6xdx=16e3x4+6x+C
  4. 6x2x3+10dx=2ln|x3+10|+C
Solution.
  1. To start with we choose u=3x3+8, the "inside" function. Then du=9x2dx. The term in the integral is x2dx, so we need to multiply both sides by 19 to get 19du=x2dx. Thus
    x2(3x3+8)5dx=u519du=19u66=(3x3+8)654+C
  2. To start with we choose u=x2+25, the "inside" function. Then du=2xdx. The term in the integral is xdx, so we need to multiply both sides by 12 to get 12du=xdx. Thus
    xx2+25dx=1u12du=12u1/2du=
    12u1/21/2+C=u1/2+C=x2+25+C
  3. Start by choosing u=3x4+6x, the exponent of e. Then du=(12x3+6)dx. The term in the integral is (2x+1)dx so we need to multiply both sides by 16 to get 16du=(2x+1)dx. Thus
    (2x+1)xe3x4+6xdx=16eudu=16eu+C=16e3x4+6x+C
  4. Start by choosing u=x3+10, the denominator. Then du=3x2dx. The term in the integral is 6x2dx, so we need to multiply both sides by 2 to get 2du=6x2dx. Thus
    6x2x3+10dx=2udu=2ln|u|+C=2ln|x3+10|+C

Subsection 5.6.3 Evaluating Definite Integrals via u-substitution

We have introduced u-substitution as a means to evaluate indefinite integrals of functions that can be written, up to a constant multiple, in the form f(g(x))g(x). This same technique can be used to evaluate definite integrals involving such functions, though we need to be careful with the corresponding limits of integration. Consider, for instance, the definite integral
25xex2dx.
Whenever we write a definite integral, the limits of integration correspond to the variable of integration. To be more explicit, observe that
25xex2dx=x=2x=5xex2dx.
When we apply u-substitution, we change the variable of integration; it is essential to note that this also changes the limits of integration. For instance, with the substitution u=x2 and du=2xdx, it also follows that when x=2, u=22=4, and when x=5, u=52=25. Thus, under the change of variables of u-substitution, we now have
x=2x=5xex2dx=u=22u=52eu12du=12eu|u=4u=25=12e2512e4.
Alternatively, we could ignore the bounds. We do this by replacing the bounds with to indicate that although this is a definite integral with bounds we know that the bounds for u are not the same as the bounds for x. We then integrate, and once we replace u with the function of x, then we return to our original bounds. With that method, we’d have
25xex2dx=12eudu=12eu|=12ex2|25=12e2512e4,
which is, of course, the same result. This is summarized below:

Two Methods to Evaluate a Definite Integral with u-substitution.

To evaluate the definite integral abh(x)dx while using a u-substitution, there are two different methods to apply the Fundamental Theorem of Calculus . Either method is correct, and they are each summarized below:
  1. Change the limits to the corresponding u-values. Then find the antiderivative with respect to u and evaluate it according to the Fundamental Theorem of Calculus, using the limits corresponding to u.
  2. Ignore the bounds, replacing them with , so the integral becomes h(x)dx, and find an antiderivative with respect to x. Make sure your resulting expression is in terms of x. Then evaluate it according to the Fundamental Theorem of Calculus, using the limits corresponding to x.

Example 5.6.4.

Evaluate each of the following definite integrals exactly through an appropriate u-substitution.
  1. 13(x22)(x36x)8dx
  2. 01ex(2ex+3)9dx
  3. 12x1+4x2dx
Answer.
  1. 13(x22)(x36x)8dx=9927(5)927.
  2. 01ex(2ex+3)9dx=120(2e1+3)10+120(5)10.
  3. x=1x=2x1+4x2dx=18(ln(17)ln(5)).
Solution.
For each of these examples, we will use both methods. It is not necessary to master both approaches. Rather, it is better to pick one and learn it well.
  1. For either method we start by choosing u=x36x. Then du=(3x26)dx, thus we need to multiply both sides by 13 to match the terms in the integral, so 13du=(x22)dx. Then changing the bounds, we get
    13(x22)(x36x)8dx(=u=(1)36(1)u=(3)36(3)13u8du(=5913u8du(=13u99|59(=9927(5)927
    Alternatively we could evaluate the integral by ignoring the bounds
    13((x22)(x36x)8)dx(=13u8du(=13u99|(=(x36x)927|13(=(336(3)927(1)36(1))927(=9927(5)927
    Either way we integrate results in the same solution.
  2. For either method we start by choosing u=2ex+3. Then du=2exdx, thus we need to multiply both sides by 12 to get 12du=exdx. Changing the bounds, we get
    01ex(2ex+3)9dx(=u=2e0+3u=2e1+312u9du(=52e1+312(=12u1010|52e1+3(=(2e1+3)1020(5)1020(=120(2e1+3)10+120(5)10
    Alternatively we could evaluate the integral by ignoring the bounds
    01ex(2ex+3)9dx(=12u9du(=12u1010|(=(2ex+3)1020|01(=(2e1+3)1020(20+3)1020(=120(2e1+3)10+120(5)10
    Either way we integrate results in the same solution.
  3. For either method we start by choosing u=1+4x2. Then du=8xdx, thus we need to multiply both sides by 18 to get 18du=xdx. Changing the bounds, we get
    12x1+4x2dx(=u=1+4(1)2u=1+4(2)2181udu(=517181udu(=18ln|u||517(=18(ln(17)ln(5)).
    Alternatively we could evaluate the integral by ignoring the bounds
    12x1+4x2dx(=181udu(=18ln|u||(=18ln|1+4x2||12(=18ln(1+4(2)2)18ln(1+4(1)2)(=18(ln(17)ln(5)).
    Either way we integrate results in the same solution.

Subsection 5.6.4 Summary

  • To find algebraic formulas for antiderivatives of more complicated algebraic functions, we need to think carefully about how we can reverse known differentiation rules. To that end, it is essential that we understand and recall known derivatives of basic functions, as well as the standard derivative rules.
  • The indefinite integral provides notation for antiderivatives. When we write “f(x)dx,” we mean “the general antiderivative of f.” In particular, if we have functions f and F such that F=f, the following two statements say the exact thing:
    ddx[F(x)]=f(x) and f(x)dx=F(x)+C.
    That is, f is the derivative of F, and F is an antiderivative of f.
  • The technique of u-substitution helps us to evaluate indefinite integrals of the form f(g(x))g(x)dx through the substitutions u=g(x) and du=g(x)dx, so that
    f(g(x))g(x)dx=f(u)du.
    A key part of choosing the expression in x to be represented by u is the identification of a function-derivative pair. To do so, we often look for an “inner” function g(x) that is part of a composite function, while investigating whether g(x) (or a constant multiple of g(x)) is present as a multiplying factor of the integrand.
  • There are two methods to use u-substitution with a definite integral. In one method, first find the general antiderivative in terms of x and use the bounds of integration corresponding to x when using the Fundamental Theorem of Calculus. For the other method, change the bounds of integration to correspond to u as a step of a u-substitution, integrate with respect to u, and use the bounds corresponding to u when using the Fundamental Theorem of Calculus.

Exercises 5.6.5 Exercises

1. Product involving a 4th power polynomial.

Find the following integral. Note that you can check your answer by differentiation.
t3(t46)3dt=

2. Fraction involving ln9(x).

Find the following integral. Note that you can check your answer by differentiation.
ln5(z)zdz=

3. Fraction involving e5x.

Find the following integral. Note that you can check your answer by differentiation.
e4x7+e4xdx=

4. Fraction involving e5y.

Find the following integral. Note that you can check your answer by differentiation.
6e3yydy=

5. Working with negative exponents.

Evaluate the following indefinite integral (x+13)2dx= +C

6. Fraction involving sums of exponential functions.

Evaluate the integral using an appropriate substitution.
10ex+7ex10ex7exdx = + C

7. Integral involving a rational function.

Evaluate the indefinite integral. (use C for the constant of integration.)
x4(x59)5dx=

8. Integral of a partial fraction.

Evaluate the definite integral.
12211x7dx=

9. Find the value of a definite integral based on another.

If f is continuous and 08f(x)dx=10, evaluate 02f(4x)dx.
Answer:

10. A clever substitution.

Consider the indefinite integral xx1dx.
  1. At first glance, this integrand may not seem suited to substitution due to the presence of x in separate locations in the integrand. Nonetheless, using the composite function x1 as a guide, let u=x1. Determine expressions for both x and dx in terms of u.
  2. Convert the given integral in x to a new integral in u.
  3. Evaluate the integral in (b) by noting that u=u12 and observing that it is now possible to rewrite the integrand in u by expanding through multiplication.
  4. Evaluate each of the integrals x2x1dx and xx21dx. Write a paragraph to discuss the similarities among the three indefinite integrals in this problem and the role of substitution and algebraic rearrangement in each.

11. Definite integral with a clever substitution.

Evaluate the definite integral two ways: first by a u-substitution in the definite integral, then by a u-substitution in the corresponding indefinite integral.
50x4xdx =

12. Integral involving a square root of a linear expression.

Evaluate the integral using an appropriate substitution.
x4xdx = + C