Active Calculus · 5: Finding Antiderivatives and Evaluating Integrals

5.3: Integration by Substitution

Motivating Questions
  • How can we begin to find algebraic formulas for antiderivatives of more complicated algebraic functions?
  • What is an indefinite integral and how is its notation used in discussing antiderivatives?
  • How does the technique of uu-substitution work to help us evaluate certain indefinite integrals, and how does this process rely on identifying function-derivative pairs?

In Section 4.4, 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 FF is any antiderivative of f,f\text{,} then

∫abf(x) dx=F(b)−F(a). \int_a^b f(x) \, dx = F(b) - F(a)\text{.}

Furthermore, we realized that each elementary derivative rule developed in Chapter 2 leads to a corresponding elementary antiderivative, as summarized in Table 4.4.5. Thus, if we wish to evaluate an integral such as

∫01(x3−x+5x) dx, \int_0^1 \left(x^3 - \sqrt{x} + 5^x \right) \,dx\text{,}

it is straightforward to do so, since we can easily antidifferentiate f(x)=x3−x+5x.f(x) = x^3 - \sqrt{x} + 5^x\text{.} Because one antiderivative of ff is F(x)=14x4−23x3/2+1ln⁡(5)5x,F(x) = \frac{1}{4}x^4 - \frac{2}{3}x^{3/2} + \frac{1}{\ln(5)}5^x\text{,} the Fundamental Theorem of Calculus tells us that

∫01(x3−x+5x) dx=14x4−23x3/2+1ln⁡(5)5x∣01=(14(1)4−23(1)3/2+1ln⁡(5)51)−(0−0+1ln⁡(5)50)=−512+4ln⁡(5).\begin{align*} \int_0^1 \left(x^3 - \sqrt{x} + 5^x\right) \,dx &= \left. \frac{1}{4}x^4 - \frac{2}{3}x^{3/2} + \frac{1}{\ln(5)}5^x\right|_0^1\\[4pt] &= \left( \frac{1}{4}(1)^4 - \frac{2}{3}(1)^{3/2} + \frac{1}{\ln(5)}5^1 \right) - \left( 0 - 0 + \frac{1}{\ln(5)}5^0 \right)\\[4pt] &= -\frac{5}{12} + \frac{4}{\ln(5)}\text{.} \end{align*}

We see that we have a natural interest in being able to find such algebraic antiderivatives. We emphasize algebraic antiderivatives, as opposed to any antiderivative, since we know by the Second Fundamental Theorem of Calculus that G(x)=∫axf(t) dtG(x) = \int_a^x f(t) \, dt is indeed an antiderivative of the given function f,f\text{,} but one that still involves a definite integral. Our goal in this section is to “undo” the process of differentiation to find an algebraic antiderivative for a given function.

Preview Activity 5.3.15.3.1

In Section 2.5, we learned the Chain Rule and how it can be applied to find the derivative of a composite function. In particular, if uu is a differentiable function of x,x\text{,} and ff is a differentiable function of u(x),u(x)\text{,} then

ddx[f(u(x))]=f′(u(x))⋅u′(x). \frac{d}{dx} \left[ f(u(x)) \right] = f'(u(x)) \cdot u'(x)\text{.}

In words, we say that the derivative of a composite function c(x)=f(u(x)),c(x) = f(u(x))\text{,} where ff is considered the “outer” function and uu the “inner” function, is “the derivative of the outer function, evaluated at the inner function, times the derivative of the inner function.”

  1. For each of the following functions, use the Chain Rule to find the function's derivative. Be sure to label each derivative by name (e.g., the derivative of g(x)g(x) should be labeled g′(x)g'(x)).
    1. g(x)=e3x\displaystyle g(x) = e^{3x}
    2. h(x)=sin⁡(5x+1)\displaystyle h(x) = \sin(5x+1)
    3. p(x)=arctan⁡(2x)\displaystyle p(x) = \arctan(2x)
    4. q(x)=(2−7x)4\displaystyle q(x) = (2-7x)^4
    5. r(x)=34−11x\displaystyle r(x) = 3^{4-11x}
  2. For each of the following functions, use your work in (a) to help you determine the general antiderivative 1  of the function. Label each antiderivative by name (e.g., the antiderivative of mm should be called MM). In addition, check your work by computing the derivative of each proposed antiderivative.
    1. m(x)=e3x\displaystyle m(x) = e^{3x}
    2. n(x)=cos⁡(5x+1)\displaystyle n(x) = \cos(5x+1)
    3. s(x)=11+4x2\displaystyle s(x) = \frac{1}{1+4x^2}
    4. v(x)=(2−7x)3\displaystyle v(x) = (2-7x)^3
    5. w(x)=34−11x\displaystyle w(x) = 3^{4-11x}
  3. Based on your experience in parts (a) and (b), conjecture an antiderivative for each of the following functions. Test your conjectures by computing the derivative of each proposed antiderivative.
    1. a(x)=cos⁡(πx)\displaystyle a(x) = \cos(\pi x)
    2. b(x)=(4x+7)11\displaystyle b(x) = (4x+7)^{11}
    3. c(x)=xex2\displaystyle c(x) = xe^{x^2}

Recall that the general antiderivative of a function includes “+C+C” to reflect the entire family of functions that share the same derivative.

Reversing the Chain Rule: First Steps

Whenever ff is a familiar function whose antiderivative is known and u(x)u(x) is a linear function, it is straightforward to antidifferentiate a function of the form

h(x)=f(u(x)). h(x) = f(u(x))\text{.}
Example 5.3.15.3.1

Determine the general antiderivative of

h(x)=(5x−3)6. h(x) = (5x-3)^6\text{.}

Check the result by differentiating.

For this composite function, the outer function ff is f(u)=u6,f(u) = u^6\text{,} while the inner function is u(x)=5x−3.u(x) = 5x - 3\text{.} Since the antiderivative of ff is F(u)=17u7+C,F(u) = \frac{1}{7}u^7+C\text{,} we see that the antiderivative of hh is

H(x)=17(5x−3)7⋅15+C=135(5x−3)7+C. H(x) = \frac{1}{7} (5x-3)^7 \cdot \frac{1}{5} + C = \frac{1}{35} (5x-3)^7 + C\text{.}

The inclusion of the constant 15\frac{1}{5} is essential precisely because the derivative of the inner function is u′(x)=5.u'(x) = 5\text{.} Indeed, if we now compute H′(x),H'(x)\text{,} we find by the Chain Rule (and Constant Multiple Rule) that

H′(x)=135⋅7(5x−3)6⋅5=(5x−3)6=h(x), H'(x) = \frac{1}{35} \cdot 7(5x-3)^6 \cdot 5 = (5x-3)^6 = h(x)\text{,}

and thus HH is indeed the general antiderivative of h.h\text{.}

Hence, in the special case where the outer function is familiar and the inner function is linear, we can antidifferentiate composite functions according to the following rule.

Note

If h(x)=f(ax+b)h(x) = f(ax + b) and FF is a known algebraic antiderivative of f,f\text{,} then the general antiderivative of hh is given by

H(x)=1aF(ax+b)+C. H(x) = \frac{1}{a} F(ax+b) + C\text{.}

It is useful to have shorthand notation that indicates the instruction to find an antiderivative. Thus, in a similar way to how the notation

ddx[f(x)] \frac{d}{dx} \left[ f(x) \right]

represents the derivative of f(x)f(x) with respect to x,x\text{,} we use the notation of the indefinite integral,

∫f(x) dx \int f(x) \, dx

to represent the general antiderivative of ff with respect to x.x\text{.} Returning to the earlier example with h(x)=(5x−3)6,h(x) = (5x-3)^6\text{,} we can rephrase the relationship between hh and its antiderivative HH through the notation

∫(5x−3)6 dx=135(5x−6)7+C. \int (5x-3)^6 \, dx = \frac{1}{35} (5x-6)^7 + C\text{.}

When we find an antiderivative, we will often say that we evaluate an indefinite integral. Just as the notation ddx[□]\frac{d}{dx} [ \Box ] means “find the derivative with respect to xx of □,\Box\text{,}” the notation ∫□ dx\int \Box \, dx means “find a function of xx whose derivative is □.\Box\text{.}”

Activity 5.3.25.3.2

Evaluate each of the following indefinite integrals. Check each antiderivative that you find by differentiating.

  1. ∫sin⁡(8−3x) dx\displaystyle \int \sin(8-3x) \, dx
  2. ∫sec⁡2(4x) dx\displaystyle \int \sec^2 (4x) \, dx
  3. ∫111x−9 dx\displaystyle \int \frac{1}{11x - 9} \, dx
  4. ∫csc⁡(2x+1)cot⁡(2x+1) dx\displaystyle \int \csc(2x+1) \cot(2x+1) \, dx
  5. ∫11−16x2 dx\displaystyle \int \frac{1}{\sqrt{1-16x^2}}\, dx
  6. ∫5−x dx\displaystyle \int 5^{-x}\, dx

Reversing the Chain Rule: uu-substitution

A natural question arises from our recent work: what happens when the inner function is not linear? For example, can we find antiderivatives of such functions as

g(x)=xex2 and h(x)=ex2? g(x) = x e^{x^2} \ \text{and} \ h(x) = e^{x^2}?

It is important to remember that differentiation and antidifferentiation are almost inverse processes (that they are not is due to the +C+C that arises when antidifferentiating). This almost-inverse relationship enables us to take any known derivative rule and rewrite it as a corresponding rule for an indefinite integral. For example, since

ddx[x5]=5x4, \frac{d}{dx} \left[x^5\right] = 5x^4\text{,}

we can equivalently write

∫5x4 dx=x5+C. \int 5x^4 \, dx = x^5 + C\text{.}

Recall that the Chain Rule states that

ddx[f(g(x))]=f′(g(x))⋅g′(x). \frac{d}{dx} \left[ f(g(x)) \right] = f'(g(x)) \cdot g'(x)\text{.}

Restating this relationship in terms of an indefinite integral,

∫f′(g(x))g′(x) dx=f(g(x))+C.(5.3.1) \int f'(g(x)) g'(x) \, dx = f(g(x))+C\text{.}\tag{5.3.15.3.1}

Equation (5.3.15.3.1) tells us that if we can view a given function as f′(g(x))g′(x)f'(g(x)) g'(x) for some appropriate choices of ff and g,g\text{,} then we can antidifferentiate the function by reversing the Chain Rule. Note that both g(x)g(x) and g′(x)g'(x) appear in the form of f′(g(x))g′(x);f'(g(x)) g'(x)\text{;} we will sometimes say that we seek to identify a function-derivative pair (g(x)g(x) and g′(x)g'(x)) when trying to apply the rule in Equation (5.3.15.3.1).

If we can identify a function-derivative pair, we will introduce a new variable uu to represent the function g(x).g(x)\text{.} With u=g(x),u = g(x)\text{,} it follows in Leibniz notation that dudx=g′(x),\frac{du}{dx} = g'(x)\text{,} so that in terms of differentials 2 , du=g′(x) dx.du = g'(x)\, dx\text{.} Now converting the indefinite integral to a new one in terms of u,u\text{,} we have

∫f′(g(x))g′(x) dx=∫f′(u) du. \int f'(g(x)) g'(x) \, dx = \int f'(u) \,du\text{.}
If we recall from the definition of the derivative that dudx≈ΔuΔx\frac{du}{dx} \approx \frac{\Delta{u}}{\Delta{x}} and use the fact that dudx=g′(x),\frac{du}{dx} = g'(x)\text{,} then we see that g′(x)≈ΔuΔx.g'(x) \approx \frac{\Delta{u}}{\Delta{x}}\text{.} Solving for Δu,\Delta u\text{,} Δu≈g′(x)Δx.\Delta u \approx g'(x) \Delta x\text{.} It is this last relationship that, when expressed in “differential” notation enables us to write du=g′(x) dxdu = g'(x) \, dx in the change of variable formula.

Provided that f′f' is an elementary function whose antiderivative is known, we can easily evaluate the indefinite integral in u,u\text{,} and then go on to determine the desired overall antiderivative of f′(g(x))g′(x).f'(g(x)) g'(x)\text{.} We call this process uu-substitution, and summarize the rule as follows:

Note

With the substitution u=g(x),u = g(x)\text{,}

∫f′(g(x))g′(x) dx=∫f′(u) du=f(u)+C=f(g(x))+C. \int f'(g(x)) g'(x) \, dx = \int f'(u) \,du = f(u) + C = f(g(x)) + C\text{.}

To see uu-substitution at work, we consider the following example.

Example 5.3.25.3.2

Evaluate the indefinite integral

∫x3⋅sin⁡(7x4+3) dx \int x^3 \cdot \sin (7x^4 + 3) \, dx

and check the result by differentiating.

Answer

We can make two algebraic observations regarding the integrand, x3⋅sin⁡(7x4+3).x^3 \cdot \sin (7x^4 + 3)\text{.} First, sin⁡(7x4+3)\sin (7x^4 + 3) is a composite function; as such, we know we'll need a more sophisticated approach to antidifferentiating. Second, x3x^3 is almost the derivative of (7x4+3);(7x^4 + 3)\text{;} the only issue is a missing constant. Thus, x3x^3 and (7x4+3)(7x^4 + 3) are nearly a function-derivative pair. Furthermore, we know the antiderivative of f(u)=sin⁡(u).f(u) = \sin(u)\text{.} The combination of these observations suggests that we can evaluate the given indefinite integral by reversing the chain rule through uu-substitution.

Letting uu represent the inner function of the composite function sin⁡(7x4+3),\sin (7x^4 + 3)\text{,} we have u=7x4+3,u = 7x^4 + 3\text{,} and thus dudx=28x3.\frac{du}{dx} = 28x^3\text{.} In differential notation, it follows that du=28x3 dx,du = 28x^3 \, dx\text{,} and thus x3 dx=128 du.x^3 \, dx = \frac{1}{28} \, du\text{.} The original indefinite integral may be slightly rewritten as

∫sin⁡(7x4+3)⋅x3 dx, \int \sin (7x^4 + 3) \cdot x^3 \, dx\text{,}

and so by substituting uu for 7x4+37x^4 + 3 and 128 du\frac{1}{28} \, du for x3 dx,x^3 \, dx\text{,} it follows that

∫sin⁡(7x4+3)⋅x3 dx=∫sin⁡(u)⋅128 du. \int \sin (7x^4 + 3) \cdot x^3 \, dx = \int \sin(u) \cdot \frac{1}{28} \, du\text{.}

Now we may evaluate the easier integral in u,u\text{,} and then replace uu by the expression 7x4+3.7x^4 + 3\text{.} Doing so, we find

∫sin⁡(7x4+3)⋅x3 dx=∫sin⁡(u)⋅128 du=128∫sin⁡(u) du=128(−cos⁡(u))+C=−128cos⁡(7x4+3)+C.\begin{align*} \int \sin (7x^4 + 3) \cdot x^3 \, dx &= \int \sin(u) \cdot \frac{1}{28} \, du\\[4pt] &= \frac{1}{28} \int \sin(u) \, du\\[4pt] &= \frac{1}{28} (-\cos(u)) + C\\[4pt] &= -\frac{1}{28} \cos(7x^4 + 3) + C\text{.} \end{align*}

To check our work, we observe by the Chain Rule that

ddx[−128cos⁡(7x4+3)]=−128⋅(−1)sin⁡(7x4+3)⋅28x3=sin⁡(7x4+3)⋅x3, \frac{d}{dx} \left[ -\frac{1}{28}\cos(7x^4 + 3) \right] = -\frac{1}{28} \cdot (-1)\sin(7x^4 + 3) \cdot 28x^3 = \sin(7x^4 + 3) \cdot x^3\text{,}

which is indeed the original integrand.

The uu-substitution worked because the function multiplying sin⁡(7x4+3)\sin (7x^4 + 3) was x3.x^3\text{.} If instead that function was x2x^2 or x4,x^4\text{,} the substitution process would not have worked. This is one of the primary challenges of antidifferentiation: slight changes in the integrand make tremendous differences. For instance, we can use uu-substitution with u=x2u = x^2 and du=2xdxdu = 2xdx to find that

∫xex2 dx=∫eu⋅12 du=12∫eu du=12eu+C=12ex2+C.\begin{align*} \int xe^{x^2} \, dx &= \int e^u \cdot \frac{1}{2} \, du\\[4pt] &= \frac{1}{2} \int e^u \, du\\[4pt] &= \frac{1}{2} e^u + C\\[4pt] &= \frac{1}{2} e^{x^2} + C\text{.} \end{align*}

However, for the similar indefinite integral

∫ex2 dx, \int e^{x^2} \, dx\text{,}

the uu-substitution u=x2u = x^2 is no longer possible because the factor of xx is missing. Hence, part of the lesson of uu-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.

Activity 5.3.35.3.3

Evaluate each of the following indefinite integrals by using these steps:

  • Find two functions within the integrand that form (up to a possible missing constant) a function-derivative pair;
  • Make a substitution and convert the integral to one involving uu and du;du\text{;}
  • Evaluate the new integral in u;u\text{;}
  • Convert the resulting function of uu back to a function of xx by using your earlier substitution;
  • Check your work by differentiating the function of x.x\text{.} You should come up with the integrand originally given.
  1. ∫x25x3+1 dx\displaystyle \int \frac{x^2}{5x^3+1} \, dx
  2. ∫exsin⁡(ex) dx\displaystyle \int e^x \sin(e^x) \, dx
  3. ∫cos⁡(x)x dx\displaystyle \int \frac{\cos(\sqrt{x})}{\sqrt{x}} \, dx

Evaluating Definite Integrals via uu-substitution

We have introduced uu-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).f(g(x))g'(x)\text{.} 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

∫25xex2 dx. \int_2^5 xe^{x^2} \, dx\text{.}

Whenever we write a definite integral, it is implicit that the limits of integration correspond to the variable of integration. To be more explicit, observe that

∫25xex2 dx=∫x=2x=5xex2 dx. \int_2^5 xe^{x^2} \, dx = \int_{x=2}^{x=5} xe^{x^2} \, dx\text{.}

When we execute a uu-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=x2u = x^2 and du=2x dx,du = 2x \, dx\text{,} it also follows that when x=2,x = 2\text{,} u=22=4,u = 2^2 = 4\text{,} and when x=5,x = 5\text{,} u=52=25.u = 5^2 = 25\text{.} Thus, under the change of variables of uu-substitution, we now have

∫x=2x=5xex2 dx=∫u=4u=25eu⋅12 du=12eu∣u=4u=25=12e25−12e4.\begin{align*} \int_{x=2}^{x=5} xe^{x^2} \, dx &= \int_{u=4}^{u=25} e^{u} \cdot \frac{1}{2} \, du\\[4pt] &= \left. \frac{1}{2}e^u \right|_{u=4}^{u=25}\\[4pt] &= \frac{1}{2}e^{25} - \frac{1}{2}e^4\text{.} \end{align*}

Alternatively, we could consider the related indefinite integral ∫xex2 dx,\int xe^{x^2} \, dx\text{,} find the antiderivative 12ex2\frac{1}{2}e^{x^2} through uu-substitution, and then evaluate the original definite integral. With that method, we'd have

∫25xex2 dx=12ex2∣25=12e25−12e4,\begin{align*} \int_{2}^{5} xe^{x^2} \, dx &= \left. \frac{1}{2}e^{x^2} \right|_{2}^{5}\\[4pt] &= \frac{1}{2}e^{25} - \frac{1}{2}e^4\text{,} \end{align*}

which is, of course, the same result.

Activity 5.3.45.3.4

Evaluate each of the following definite integrals exactly through an appropriate uu-substitution.

  1. ∫12x1+4x2 dx\displaystyle \int_1^2 \frac{x}{1 + 4x^2} \, dx
  2. ∫01e−x(2e−x+3)9 dx\displaystyle \int_0^1 e^{-x} (2e^{-x}+3)^{9} \, dx
  3. ∫2/π4/πcos⁡(1x)x2 dx\displaystyle \int_{2/\pi}^{4/\pi} \frac{\cos\left(\frac{1}{x}\right)}{x^{2}} \,dx

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,\int f(x) \, dx\text{,}” we mean “the general antiderivative of f.f\text{.}” In particular, if we have functions ff and FF such that F′=f,F' = f\text{,} the following two statements say the exact thing:
    ddx[F(x)]=f(x) and ∫f(x) dx=F(x)+C. \frac{d}{dx}[F(x)] = f(x) \ \text{and} \ \int f(x) \, dx = F(x) + C\text{.}

    That is, ff is the derivative of F,F\text{,} and FF is an antiderivative of f.f\text{.}

  • The technique of uu-substitution helps us to evaluate indefinite integrals of the form ∫f(g(x))g′(x) dx\int f(g(x))g'(x) \, dx through the substitutions u=g(x)u = g(x) and du=g′(x) dx,du = g'(x) \, dx\text{,} so that
    ∫f(g(x))g′(x) dx=∫f(u) du. \int f(g(x))g'(x) \, dx = \int f(u) \, du\text{.}

    A key part of choosing the expression in xx to be represented by uu is the identification of a function-derivative pair. To do so, we often look for an “inner” function g(x)g(x) that is part of a composite function, while investigating whether g′(x)g'(x) (or a constant multiple of g′(x)g'(x)) is present as a multiplying factor of the integrand.

Credit and licence

This page titled 5.3: Integration by Substitution was last modified on Wed, 09 Nov 2022 23:00:51 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Matthew Boelkins, David Austin, and Steven Schlicker ( ScholarWorks @Grand Valley State University ) via source content that was edited to the style and standards of the LibreTexts platform.

Source: https://math.libretexts.org/Bookshelves/Calculus/Active_Calculus_(Boelkins_et_al.)/05%3A_Finding_Antiderivatives_and_Evaluating_Integrals/5.03%3A_Integration_by_Substitution

Licence: CC BY-SA 4.0 (creativecommons.org/licenses/by-sa/4.0/). You may share and adapt it under the same licence, with this credit. WorldClass adapted the formatting only: the text is the authors', with interactive parts and links to other sites left out.

Build status · Flash Infinity AI™ is a trademark of AI-Flash Inc.. WorldClass is not affiliated with, approved or accredited by any exam board, curriculum provider or university unless a page says so.