Integration by Substitution

Substitution works to "reverse" the chain rule of differentiation, or to change the appearance of the integrand by rewriting it to make the antiderivative easier to find.
Substitution and the Chain Rule:
Recall that the chain rule says
[ f(g(x)) ]' = f '(g(x)) g'(x)
So if we antidifferentiate this we get
ò   [ f(g(x)) ]'   dx = ò   f '(g(x)) g'(x)   dx, so
f(g(x)) + C = ò   f '(g(x)) g'(x)   dx
(because on the left-hand-side we're just taking the antiderivative of a derivative). What does this mean for us? When we have an integrand that is a product, if it matches the pattern on the right-hand side of the equation above, that is, if one term of the product is the derivative of the part of another, we can use substitution. Next we show how this works without substitution, and after that we use substitution to do it much more easily.
Example: Let's look at
ò x2 cos(x3 + 4) dx.
There is a composition here, cos(x3 + 4), so g(x) = x3 + 4. Then g'(x) = 3 x2, so g'(x)/ 3 = x2, and our integral is actually
ò (g'(x)/ 3) cos(g(x)) dx = (1/ 3) ò cos(g(x)) g'(x) dx (factoring out constants).
This is hopeful, because it says if cos(x) is f '(x) for some f, we have exactly the reversed chain rule problem that we looked at above. And, of course, it is:
if   f(x) = sin(x),   then   f '(x) = cos(x).
So our integral is "easy":
ò x2 cos(x3 + 4) dx = (1/ 3) ò cos(g(x)) g'(x) dx
  = (1/3) ò f '(g(x)) g'(x) dx
  = (1/ 3) f(g(x)) + C
  = (1/ 3) sin(x3 + 4) + C.
Substitution Explanation:
Substitution makes it easier to see the composition in an integrand. To use it,
  1. pick w to be the "inner" function (g(x) above),
  2. find dw/dx and solve for dw,
  3. multiply both sides of the equation for dw by any constants you need to make it match terms in the integral,
  4. substitute w and dw into the integral to get rid of all terms involving x,
  5. find an antiderivative, and
  6. plug w(x) into the antiderivative.
Note that if after step 4 you still have terms involving x left in the integrand, either substitution doesn't work, or it's necessary to solve the equation w = g(x) for x and plug that in as well.
Let's do this with our example.
Example, part 2: Find
ò x2 cos(x3 + 4) dx.
  1. The inner function is w = x3 + 4,
  2. dw/dx = 3 x2, so dw = 3 x2 dx,
  3. to make this match the integrand, multiply by 1/3: (1/3) dw = x2 dx.
  4. Then the integral becomes
    ò (1/3) cos(w) dw,
    and all terms in x are in fact gone. Thus
  5. we can antidifferentiate: ò (1/3) cos(w) dw = (1/3) ò cos(w) dw = (1/3) sin(w) + C, and
  6. plugging back in for w, ò x2 cos(x3 + 4) dx = (1/3) sin(x3 + 4) + C.
[ ]
Substitution to Rewrite an Integrand
In some cases, we can change the appearance of an integrand by using substitution and therefore make it easier to see how to find the antiderivative. For example, consider the integrals
ò x sqrt(x + 3) dx   and   ò x3/ 2 - 3 x1/ 2 dx.
These are the same integral in disguise, but while the first of these is not obvious, the second consists of two terms that are easy to antidifferentiate (see the basic antidifferentiation page).
Picking w to Rewrite the Integrand:
To use substitution to rewrite an integrand, try picking the substitution variable w to be some part of the integrand that is an "inner" function in a composition; or part that is under a root sign; or part that is in the denominator of a fraction; or a combination of terms that appears in multiple places in the integrand. Then continue with steps 2-6 as indicated in the previous section.
Example: Let's do the example above. Find
ò x sqrt(x + 3) dx
The term under the root sign is w = x + 3. So
  1. dw/dx = 1, so that dw = dx.
  2. We have just a dx in the integrand, so we don't have to multiply by anything.
  3. Substituting, we get
    ò x sqrt(x + 3) dx = ò x sqrt(w) dw
    We have a remaining x, but can turn that into a w by solving for x:
    w = x + 3,   so   w - 3 = x, and
    ò x sqrt(w) dw = ò (w - 3) sqrt(w) dw.
  4. We can now antidifferentiate: rewriting sqrt(w) as w to the one-half power, we get
    ò (w - 3) sqrt(w) dw = ò (w - 3) w1/ 2 dw
      = ò (w3/ 2 - 3 w1/ 2) dw
      = (2/5) w5/ 2 - 2 w3/ 2 + C
    (by basic antidifferentiation).
  5. Finally, plugging back in for w,
    ò x sqrt(x + 3) dx = (2/5)(x + 3)5/ 2 - 2(x + 3)3/ 2 + C
[ ]
integration by substitution
Last Modified: Fri Aug 31 15:38:10 EDT 2001
Comments to glarose@umich.edu
©2001 Gavin LaRose, UM Math Dept.