5 Integration

5.5 Substitution

We motivate this section with an example. Let f(x)=(x2+3x-5)10. We can compute f(x) using the Chain Rule. It is:

f(x)=10(x2+3x-5)9(2x+3)=(20x+30)(x2+3x-5)9.

Now consider this: What is (20x+30)(x2+3x-5)9𝑑x? We have the answer in front of us;

(20x+30)(x2+3x-5)9𝑑x=(x2+3x-5)10+C.

How would we have evaluated this indefinite integral without starting with f(x) as we did?

This section explores integration by substitution. It allows us to “undo the Chain Rule.” Substitution allows us to evaluate the above integral without knowing the original function first.

The underlying principle is to rewrite a “complicated” integral of the form f(x)𝑑x as a not-so-complicated integral h(u)𝑑u. We’ll formally establish later how this is done. First, consider again our introductory indefinite integral, (20x+30)(x2+3x-5)9𝑑x. Arguably the most “complicated” part of the integrand is (x2+3x-5)9. We wish to make this simpler; we do so through a substitution. Let u=x2+3x-5. Thus

(x2+3x-5)9=u9.

We have established u as a function of x, so now consider the differential of u:

du=(2x+3)dx.

Keep in mind that (2x+3) and dx are multiplied; the dx is not “just sitting there.” margin: Note: Recall from Section 4.3 that the differential of x, denoted dx, is any nonzero real number. If u is a function of x, then the differential of u, denoted du, is defined by du=u(x)dx.

Return to the original integral and do some substitutions through algebra:

(20x+30)(x2+3x-5)9𝑑x =10(2x+3)(x2+3x-5)9𝑑x
=10(x2+3x-5u)9(2x+3)dxdu
=10u9𝑑u
=u10+C(replace u with x2+3x-5)
=(x2+3x-5)10+C

One might well look at this and think “I (sort of) followed how that worked, but I could never come up with that on my own,” but the process is learnable. This section contains numerous examples through which the reader will gain understanding and mathematical maturity enabling them to regard substitution as a natural tool when evaluating integrals.

We stated before that integration by substitution “undoes” the Chain Rule. Specifically, let F(x) and g(x) be differentiable functions and consider the derivative of their composition:

ddx(F(g(x)))=F(g(x))g(x).

Thus

F(g(x))g(x)𝑑x=F(g(x))+C.

Integration by substitution works by recognizing the “inside” function g(x) and replacing it with a variable. By setting u=g(x), we can rewrite the derivative as

ddx(F(u))=F(u)u.

Since du=g(x)dx, we can rewrite the above integral as

F(g(x))g(x)𝑑x=F(u)𝑑u=F(u)+C=F(g(x))+C.

This concept is important so we restate it in the context of a theorem.

Theorem 5.5.1      Integration by Substitution

Let F and g be differentiable functions, where the range of g is an interval I contained in the domain of F. Then

F(g(x))g(x)𝑑x=F(g(x))+C.

If u=g(x), then du=g(x)dx and

F(g(x))g(x)𝑑x=F(u)𝑑u=F(u)+C=F(g(x))+C.

The point of substitution is to make the integration step easy. Indeed, the step F(u)𝑑u=F(u)+C looks easy, as the antiderivative of the derivative of F is just F, plus a constant. The “work” involved is making the proper substitution. There is not a step-by-step process to memorize; rather, experience will be your guide. To gain experience, we now embark on many examples.

Example 5.5.1 Integrating by substitution

Evaluate xsin(x2+5)𝑑x.

SolutionKnowing that substitution is related to the Chain Rule, we choose to let u be the “inside” function of sin(x2+5). (This is not always a good choice, but it is often the best place to start.)

Let u=x2+5, hence du=2xdx. The integrand has an xdx term, but not a 2xdx term. (Recall that multiplication is commutative, so the x does not physically have to be next to dx for there to be an xdx term.) We can divide both sides of the du expression by 2:

du=2xdx12du=xdx.

We can now substitute.

xsin(x2+5)𝑑x =sin(x2+5u)xdx12du
=12sinudu
=-12cosu+C(now replace u with x2+5)
=-12cos(x2+5)+C.

Thus xsin(x2+5)𝑑x=-12cos(x2+5)+C. We can check our work by evaluating the derivative of the right hand side.

Example 5.5.2 Integrating by substitution

Evaluate cos(5x)𝑑x.

SolutionAgain let u replace the “inside” function. Letting u=5x, we have du=5dx. Since our integrand does not have a 5dx term, we can divide the previous equation by 5 to obtain 15du=dx. We can now substitute.

cos(5x)𝑑x =cos(5xu)dx15du
=15cosudu
=15sinu+C
=15sin(5x)+C.

We can again check our work through differentiation.

The previous example exhibited a common, and simple, type of substitution. The “inside” function was a linear function (in this case, y=5x). When the inside function is linear, the resulting integration is very predictable, so that we can say

F(ax+b)𝑑x=1aF(ax+b)+C.

For example, sin(7x-4)𝑑x=-17cos(7x-4)+C. Our next example can use this idea, but we will only employ it after going through all of the steps.

Example 5.5.3 Integrating by substituting a linear function

Evaluate 7-3x+1𝑑x.

SolutionView this as a composition of functions f(g(x)), where f(x)=7/x and g(x)=-3x+1. Employing our understanding of substitution, we let u=-3x+1, the inside function. Thus du=-3dx. The integrand lacks a -3; hence divide the previous equation by -3 to obtain -du/3=dx. We can now evaluate the integral through substitution.

7-3x+1𝑑x =(7u)(du-3)
=-73duu
=-73ln|u|+C
=-73ln|-3x+1|+C.

Not all integrals that benefit from substitution have a clear “inside” function. Several of the following examples will demonstrate ways in which this occurs.

Example 5.5.4 Integrating by substitution

Evaluate sinxcosxdx.

SolutionThere is not a composition of function here to exploit; rather, just a product of functions. Do not be afraid to experiment; when given an integral to evaluate, it is often beneficial to think “If I let u be this, then du must be that …” and see if this helps simplify the integral at all.

In this example, let’s set u=sinx. Then du=cosxdx, which we have as part of the integrand. The substitution becomes very straightforward:

sinxcosxdx =u𝑑u
=12u2+C
=12sin2x+C.

One would do well to ask “What would happen if we let u=cosx?” The result is just as easy to find, yet looks very different. The challenge to the reader is to evaluate the integral letting u=cosx and discover why the answer is the same, yet looks different.

Our examples so far have required “basic substitution.” The next example demonstrates how substitutions can be made that often strike the new learner as being “nonstandard.”

Example 5.5.5 Integrating by substitution

Evaluate xx+3𝑑x.

SolutionRecognizing the composition of functions, set u=x+3. Then du=dx, giving what seems initially to be a simple substitution. But at this stage, we have:

xx+3𝑑x=xu𝑑u.

We cannot evaluate an integral that has both an x and an u in it. We need to convert the x to an expression involving just u.

Since we set u=x+3, we can also state that u-3=x. Thus we can replace x in the integrand with u-3. It will also be helpful to rewrite u as u12.

xx+3𝑑x =(u-3)u12𝑑u
=(u32-3u12)𝑑u
=25u52-2u32+C
=25(x+3)52-2(x+3)32+C.

Checking your work is always a good idea. In this particular case, some algebra will be needed to make one’s answer match the integrand in the original problem.

Example 5.5.6 Integrating by substitution

Evaluate 1xlnx𝑑x.

SolutionThis is another example where there does not seem to be an obvious composition of functions. The line of thinking used in Example 5.5.5 is useful here: choose something for u and consider what this implies du must be. If u can be chosen such that du also appears in the integrand, then we have chosen well.

Choosing u=1/x makes du=-1/x2dx; that does not seem helpful. However, setting u=lnx makes du=1/xdx, which is part of the integrand. Thus:

1xlnx𝑑x =1lnx1/u1xdxdu
=1u𝑑u
=ln|u|+C
=ln|lnx|+C.

The final answer is interesting; the natural log of the natural log. Take the derivative to confirm this answer is indeed correct.

Integrals Involving Trigonometric Functions

Section 8.2 delves deeper into integrals of a variety of trigonometric functions; here we use substitution to establish a foundation that we will build upon.

The next three examples will help fill in some missing pieces of our antiderivative knowledge. We know the antiderivatives of the sine and cosine functions; what about the other standard functions tangent, cotangent, secant and cosecant? We discover these next.

Example 5.5.7 Integration by substitution: antiderivatives of tanx

Evaluate tanxdx.

SolutionThe previous paragraph established that we did not know the antiderivatives of tangent, hence we must assume that we have learned something in this section that can help us evaluate this indefinite integral.

Rewrite tanx as sinx/cosx. While the presence of a composition of functions may not be immediately obvious, recognize that cosx is “inside” the 1/x function. Therefore, we see if setting u=cosx returns usable results. We have that du=-sinxdx, hence -du=sinxdx. We can integrate:

tanxdx =sinxcosx𝑑x
=1cosxusinxdx-du
=-1u𝑑u
=-ln|u|+C
=-ln|cosx|+C.

Some texts prefer to bring the -1 inside the logarithm as a power of cosx, as in:

-ln|cosx|+C =ln|(cosx)-1|+C
=ln|1cosx|+C
=ln|secx|+C.

Thus the result they give is tanxdx=ln|secx|+C. These two answers are equivalent.

Example 5.5.8 Integrating by substitution: antiderivatives of secx

Evaluate secxdx.

SolutionThis example employs a wonderful trick: multiply the integrand by “1” so that we see how to integrate more clearly. In this case, we write “1” as

1=secx+tanxsecx+tanx.

This may seem like it came out of left field, but it works beautifully. Consider:

secxdx =secxsecx+tanxsecx+tanxdx
=sec2x+secxtanxsecx+tanx𝑑x.
Now let u=secx+tanx; this means du=(secxtanx+sec2x)dx, which is our numerator. Thus:
secxdx =duu
=ln|u|+C
=ln|secx+tanx|+C.

We can use similar techniques to those used in Examples 5.5.7 and 5.5.8 to find antiderivatives of cotx and cscx (which the reader can explore in the exercises.) We summarize our results here.

Theorem 5.5.2      Antiderivatives of Trigonometric Functions
1. sinxdx=-cosx+C 2. cosxdx=sinx+C 3. tanxdx=ln|secx|+C 4. cscxdx=-ln|cscx+cotx|+C 5. secxdx=ln|secx+tanx|+C 6. cotxdx=ln|sinx|+C

Simplifying the Integrand

It is common to be reluctant to manipulate the integrand of an integral; at first, our grasp of integration is tenuous and one may think that working with the integrand will improperly change the results. Integration by substitution works using a different logic: as long as equality is maintained, the integrand can be manipulated so that its form is easier to deal with. The next example demonstrates a common way in which using algebra first makes the integration easier to perform.

Example 5.5.9 Integration by alternate methods

Evaluate x2+2x+3x𝑑x with, and without, substitution.

SolutionWe already know how to integrate this particular example. Rewrite x as x12 and simplify the fraction:

x2+2x+3x1/2=x32+2x12+3x-12.

We can now integrate using the Power Rule:

x2+2x+3x1/2𝑑x =(x32+2x12+3x-12)𝑑x
=25x52+43x32+6x12+C

This is a perfectly fine approach. We demonstrate how this can also be solved using substitution as its implementation is rather clever.

Let u=x=x12; therefore

du=12x-12dx=12xdx2du=1xdx.

This gives us x2+2x+3x𝑑x=(x2+2x+3)2𝑑u. What are we to do with the other x terms? Since u=x12, we have u2=x and u4=x2. We can then replace x2 and x with appropriate powers of u. We thus have

x2+2x+3x𝑑x =(x2+2x+3)2𝑑u
=2(u4+2u2+3)𝑑u
=25u5+43u3+6u+C
=25x52+43x32+6x12+C,

which is obviously the same answer we obtained before. In this situation, substitution is arguably more work than our other method. The fantastic thing is that it works. It demonstrates how flexible integration is.

Substitution and Definite Integration

So far this section has focused on learning a new technique for finding antiderivatives. In practice, we will frequently be interested in finding definite integrals. We can use this antiderivative to evaluate the definite integral, but there is a more efficient method.

At its heart, (using the notation of Theorem 5.5.1) substitution converts integrals of the form F(g(x))g(x)𝑑x into an integral of the form F(u)𝑑u with the substitution of u=g(x). The following theorem states how the bounds of a definite integral can be changed as the substitution is performed.

Theorem 5.5.3      Substitution with Definite Integrals

Let F and g be differentiable functions, where the range of g is an interval I that is contained in the domain of F. Then

abF(g(x))g(x)𝑑x=g(a)g(b)F(u)𝑑u.

In effect, Theorem 5.5.3 states that once you convert to integrating with respect to u, you do not need to switch back to evaluating with respect to x. A few examples will help one understand.

Example 5.5.10 Definite integrals and substitution: changing the bounds

Evaluate 02cos(3x-1)𝑑x using Theorem 5.5.3.

SolutionObserving the composition of functions, let u=3x-1, hence du=3dx. As 3dx does not appear in the integrand, divide the latter equation by 3 to get du/3=dx.

By setting u=3x-1, we are implicitly stating that g(x)=3x-1. Theorem 5.5.3 states that the new lower bound is g(0)=-1; the new upper bound is g(2)=5. We now evaluate the definite integral:

margin:

y=cos(3x-1)

-1

1

2

3

4

5

-1

-0.5

0.5

1

x

y
(a)

y=13cos(u)

-1

1

2

3

4

5

-1

-0.5

0.5

1

u

y
(b)
Figure 5.5.1: Graphing the areas defined by the definite integrals of Example 5.5.10.
12cos(3x-1)𝑑x =-15cosudu3
=13sinu|-15
=13(sin5-sin(-1)).

Notice how once we converted the integral to be in terms of u, we never went back to using x.

The graphs in Figure 5.5.1 tell more of the story. In (a) the area defined by the original integrand is shaded, whereas in (b) the area defined by the new integrand is shaded. In this particular situation, the areas look very similar; the new region is “shorter” but “wider,” giving the same area.

margin:

y=sinxcosx

1

-0.5

0.5

1

π2

x

y
(a)

y=u

1

-0.5

0.5

1

π2

u

y
(b)
Figure 5.5.2: Graphing the areas defined by the definite integrals of Example 5.5.11.
Example 5.5.11 Definite integrals and substitution: changing the bounds

Evaluate 0π/2sinxcosxdx using Theorem 5.5.3.

SolutionWe saw the corresponding indefinite integral in Example 5.5.4. In that example we set u=sinx but stated that we could have let u=cosx. For variety, we do the latter here.

Let u=g(x)=cosx, giving du=-sinxdx and hence sinxdx=-du. The new upper bound is g(π/2)=0; the new lower bound is g(0)=1. Note how the lower bound is actually larger than the upper bound now. We have

0π/2sinxcosxdx =10-udu (switch bounds & change sign)
=01u𝑑u
=12u2|01=12.

In Figure 5.5.2 we have again graphed the two regions defined by our definite integrals. Unlike the previous example, they bear no resemblance to each other. However, Theorem 5.5.3 guarantees that they have the same area.

Example 5.5.12 Definite integrals and substitution: changing the bounds

Evaluate 02xex2+1𝑑x using Theorem 5.5.3.

SolutionWe note the composition of functions and let u=x2+1, hence du=2xdx. We divide the differential by 2 to get du2=xdx.

Setting g(x)=u=x2+1, we find that the new lower bound is g(0)=1; the new upper bound is g(2)=5. We now evaluate:

02xex2+1𝑑x =15eudu2
=12eu|15
=12(e5-e1)
=e2(e4-1).

Exercises 5.5

 

Terms and Concepts

  1. 1.

    Substitution “undoes” what derivative rule?

  2. 2.

    T/F: One can sometimes use algebra to rewrite the integrand of an integral to make it easier to evaluate.

Problems

In Exercises 3–56, evaluate the indefinite integral.

  1. 3.

    3x2(x3-5)7𝑑x

  2. 4.

    (2x-5)(x2-5x+7)3𝑑x

  3. 5.

    x(x2+1)8𝑑x

  4. 6.

    (12x+14)(3x2+7x-1)5𝑑x

  5. 7.

    12x+7𝑑x

  6. 8.

    12x+3𝑑x

  7. 9.

    xx+3𝑑x

  8. 10.

    x3-xx𝑑x

  9. 11.

    exx𝑑x

  10. 12.

    x4x5+1𝑑x

  11. 13.

    1x+1x2𝑑x

  12. 14.

    ln(x)x𝑑x

  13. 15.

    sin2(x)cos(x)𝑑x

  14. 16.

    cos3(x)sin(x)𝑑x

  15. 17.

    cos(3-6x)𝑑x

  16. 18.

    sec2(4-x)𝑑x

  17. 19.

    sec(2x)𝑑x

  18. 20.

    xcos(x2)𝑑x

  19. 21.

    tan2(x)𝑑x

  20. 22.

    cotxdx. Do not just refer to Theorem 5.5.2 for the answer; justify it through Substitution.

  21. 23.

    cscxdx. Do not just refer to Theorem 5.5.2 for the answer; justify it through Substitution.

  22. 24.

    e3x-1𝑑x

  23. 25.

    ex3x2𝑑x

  24. 26.

    ex2-2x+1(x-1)𝑑x

  25. 27.

    ex+1ex𝑑x

  26. 28.

    exex+1𝑑x

  27. 29.

    ex-e-xe2x𝑑x

  28. 30.

    lnxx𝑑x

  29. 31.

    (lnx)2x𝑑x

  30. 32.

    ln(x3)x𝑑x

  31. 33.

    1xln(x2)𝑑x

  32. 34.

    x2+3x+1x𝑑x

  33. 35.

    x3+x2+x+1x𝑑x

  34. 36.

    x2(x3+3)2𝑑x

  35. 37.

    (3x2+2x)(5x3+5x2+2)8𝑑x

  36. 38.

    x1-x2𝑑x

  37. 39.

    x2csc2(x3+1)𝑑x

  38. 40.

    sin(x)cos(x)𝑑x

  39. 41.

    sin(5x+1)𝑑x

  40. 42.

    1x-5𝑑x

  41. 43.

    73x+2𝑑x

  42. 44.

    2x+7x2+7x+3𝑑x

  43. 45.

    9(2x+3)3x2+9x+7𝑑x

  44. 46.

    3x-3x2-2x-6𝑑x

  45. 47.

    x-3x2-6x+8𝑑x

  46. 48.

    cosxx𝑑x

  47. 49.

    sec2θtanθdθ

  48. 50.

    x2x+3𝑑x

  49. 51.

    x3(x2+1)3𝑑x

  50. 52.

    2x5x2+1𝑑x

  51. 53.

    3x8(x3+2)8𝑑x

  52. 54.

    sin(x3)𝑑x

  53. 55.

    sin5(x4)cos(x4)𝑑x

  54. 56.

    x1/2cos(x3/2+1)𝑑x

In Exercises 57–66, evaluate the definite integral.

  1. 57.

    131x-5𝑑x

  2. 58.

    26xx-2𝑑x

  3. 59.

    -π/2π/2sin2xcosxdx

  4. 60.

    012x(1-x2)4𝑑x

  5. 61.

    -2-1(x+1)ex2+2x+1𝑑x

  6. 62.

    0π/4etanxsec2xdx

  7. 63.

    -11x1+x2𝑑x

  8. 64.

    1ln3ex1+ex𝑑x

  9. 65.

    -12xx+2𝑑x

  10. 66.

    0π4cos5(2x)sin(2x)𝑑x

Modern Campus CMS