Skip to main content

Section 5.3 Integration by Substitution

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 \(F\) is any antiderivative of \(f\text{,}\) then

\begin{equation*} \int_a^b f(x) \, dx = F(b) - F(a)\text{.} \end{equation*}

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

\begin{equation*} \int_0^1 \left(x^3 - \sqrt{x} + 5^x \right) \,dx\text{,} \end{equation*}

it is straightforward to do so, since we can easily antidifferentiate \(f(x) = x^3 - \sqrt{x} + 5^x\text{.}\) Because one antiderivative of \(f\) is \(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

\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\\ &= \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)\\ &= -\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) = \int_a^x f(t) \, dt\) is indeed an antiderivative of the given function \(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.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 \(u\) is a differentiable function of \(x\text{,}\) and \(f\) is a differentiable function of \(u(x)\text{,}\) then

\begin{equation*} \frac{d}{dx} \left[ f(u(x)) \right] = f'(u(x)) \cdot u'(x)\text{.} \end{equation*}

In words, we say that the derivative of a composite function \(c(x) = f(u(x))\text{,}\) where \(f\) is considered the “outer” function and \(u\) 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)\) should be labeled \(g'(x)\)).

    1. \(g(x) = e^{3x}\)

    2. \(h(x) = \sin(5x+1)\)

    3. \(p(x) = \arctan(2x)\)

    4. \(q(x) = (2-7x)^4\)

    5. \(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 \(m\) should be called \(M\)). In addition, check your work by computing the derivative of each proposed antiderivative.

    1. \(m(x) = e^{3x}\)

    2. \(n(x) = \cos(5x+1)\)

    3. \(s(x) = \frac{1}{1+4x^2}\)

    4. \(v(x) = (2-7x)^3\)

    5. \(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(\pi x)\)

    2. \(b(x) = (4x+7)^{11}\)

    3. \(c(x) = xe^{x^2}\)

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

Subsection 5.3.1 Reversing the Chain Rule: First Steps

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

\begin{equation*} h(x) = f(u(x))\text{.} \end{equation*}

Determine the general antiderivative of

\begin{equation*} h(x) = (5x-3)^6\text{.} \end{equation*}

Check the result by differentiating.

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

\begin{equation*} H(x) = \frac{1}{7} (5x-3)^7 \cdot \frac{1}{5} + C = \frac{1}{35} (5x-3)^7 + C\text{.} \end{equation*}

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

\begin{equation*} H'(x) = \frac{1}{35} \cdot 7(5x-3)^6 \cdot 5 = (5x-3)^6 = h(x)\text{,} \end{equation*}

and thus \(H\) is indeed the general antiderivative of \(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.

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

\begin{equation*} H(x) = \frac{1}{a} F(ax+b) + C\text{.} \end{equation*}

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

\begin{equation*} \frac{d}{dx} \left[ f(x) \right] \end{equation*}

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

\begin{equation*} \int f(x) \, dx \end{equation*}

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

\begin{equation*} \int (5x-3)^6 \, dx = \frac{1}{35} (5x-6)^7 + C\text{.} \end{equation*}

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

Activity 5.3.2.

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

  1. \(\int \sin(8-3x) \, dx\)

  2. \(\int \sec^2 (4x) \, dx\)

  3. \(\int \frac{1}{11x - 9} \, dx\)

  4. \(\int \csc(2x+1) \cot(2x+1) \, dx\)

  5. \(\int \frac{1}{\sqrt{1-16x^2}}\, dx\)

  6. \(\int 5^{-x}\, dx\)

Hint
  1. Think \(\int \sin(u) \, du\text{.}\)

  2. Think \(\int \sec^2 (u) \, du\text{.}\)

  3. Think \(\int \frac{1}{u}\, du\text{.}\)

  4. Think \(\int \csc(u) \cot(u) \, du\text{.}\)

  5. Think \(\int \frac{1}{\sqrt{1-u^2}} \, du\text{.}\)

  6. Think \(\int 5^{u} \, du\text{.}\)

Answer
  1. \(\int \sin(8-3x) \, dx = -\frac{1}{3} (-\cos(8-3x)) + C\text{.}\)

  2. \(\int \sec^2 (4x) \, dx = \frac{1}{4} \tan(4x) + C\text{.}\)

  3. \(\int \frac{1}{11x - 9} \, dx = \frac{1}{11} \ln(11x - 9) + C\text{.}\)

  4. \(\int \csc(2x+1) \cot(2x+1) \, dx = -\frac{1}{2}\cot(2x+1) + C\text{.}\)

  5. \(\int \frac{1}{\sqrt{1-16x^2}}\, dx = \frac{1}{4} \arcsin(4x) + C\)

  6. \(\int 5^{-x}\, dx = -\frac{1}{\ln(5)}5^{-x} + C\text{.}\)

Solution
  1. Since \(u=8-3x\) is linear and \(\int \sin(u) \, du = -\cos(u) + C\text{,}\) it follows that \(\int \sin(8-3x) \, dx = -\frac{1}{3} (-\cos(8-3x)) + C\text{.}\)

  2. Since \(4x\) is linear and \(\int \sec^2(u) \, du = \tan(u) + C \text{,}\) we see \(\int \sec^2 (4x) \, dx = \frac{1}{4} \tan(4x) + C\text{.}\)

  3. Using the fact that \(\int \frac{1}{u} \, du = \ln |u| + C\text{,}\) we have \(\int \frac{1}{11x - 9} \, dx = \frac{1}{11} \ln(11x - 9) + C\text{.}\)

  4. We know \(\int \csc(u) \cot(u) \, du = -\cot(u) + C\text{,}\) so \(\int \csc(2x+1) \cot(2x+1) \, dx = -\frac{1}{2}\cot(2x+1) + C\text{.}\)

  5. Observe that \(\int \frac{1}{\sqrt{1-u^2}}\, dx = \arcsin(u) + C\text{,}\) and thus viewing \(16x^2 = (4x)^2\text{,}\) we see that \(\int \frac{1}{\sqrt{1-16x^2}}\, dx = \frac{1}{4} \arcsin(4x) + C\)

  6. Since \(\int 5^{u}\, du = \frac{1}{\ln(5)}5^u + C\text{,}\) we have that \(\int 5^{-x}\, dx = -\frac{1}{\ln(5)}5^{-x} + C\text{.}\)

Subsection 5.3.2 Reversing the Chain Rule: \(u\)-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

\begin{equation*} g(x) = x e^{x^2} \ \text{and} \ h(x) = e^{x^2}? \end{equation*}

It is important to remember that differentiation and antidifferentiation are almost inverse processes (that they are not is due to the \(+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

\begin{equation*} \frac{d}{dx} \left[x^5\right] = 5x^4\text{,} \end{equation*}

we can equivalently write

\begin{equation*} \int 5x^4 \, dx = x^5 + C\text{.} \end{equation*}

Recall that the Chain Rule states that

\begin{equation*} \frac{d}{dx} \left[ f(g(x)) \right] = f'(g(x)) \cdot g'(x)\text{.} \end{equation*}

Restating this relationship in terms of an indefinite integral,

\begin{equation} \int f'(g(x)) g'(x) \, dx = f(g(x))+C\text{.}\label{iLY}\tag{5.3.1} \end{equation}

Equation (5.3.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\text{,}\) then we can antidifferentiate the function by reversing the Chain Rule. Note that both \(g(x)\) and \(g'(x)\) appear in the form of \(f'(g(x)) g'(x)\text{;}\) we will sometimes say that we seek to identify a function-derivative pair (\(g(x)\) and \(g'(x)\)) when trying to apply the rule in Equation (5.3.1).

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

\begin{equation*} \int f'(g(x)) g'(x) \, dx = \int f'(u) \,du\text{.} \end{equation*}
If we recall from the definition of the derivative that \(\frac{du}{dx} \approx \frac{\Delta{u}}{\Delta{x}}\) and use the fact that \(\frac{du}{dx} = g'(x)\text{,}\) then we see that \(g'(x) \approx \frac{\Delta{u}}{\Delta{x}}\text{.}\) Solving for \(\Delta u\text{,}\) \(\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) \, dx\) in the change of variable formula.

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

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

\begin{equation*} \int f'(g(x)) g'(x) \, dx = \int f'(u) \,du = f(u) + C = f(g(x)) + C\text{.} \end{equation*}

To see \(u\)-substitution at work, we consider the following example.

Evaluate the indefinite integral

\begin{equation*} \int x^3 \cdot \sin (7x^4 + 3) \, dx \end{equation*}

and check the result by differentiating.

Solution

We can make two algebraic observations regarding the integrand, \(x^3 \cdot \sin (7x^4 + 3)\text{.}\) First, \(\sin (7x^4 + 3)\) is a composite function; as such, we know we'll need a more sophisticated approach to antidifferentiating. Second, \(x^3\) is almost the derivative of \((7x^4 + 3)\text{;}\) the only issue is a missing constant. Thus, \(x^3\) and \((7x^4 + 3)\) are nearly a function-derivative pair. Furthermore, we know the antiderivative of \(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 \(u\)-substitution.

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

\begin{equation*} \int \sin (7x^4 + 3) \cdot x^3 \, dx\text{,} \end{equation*}

and so by substituting \(u\) for \(7x^4 + 3\) and \(\frac{1}{28} \, du\) for \(x^3 \, dx\text{,}\) it follows that

\begin{equation*} \int \sin (7x^4 + 3) \cdot x^3 \, dx = \int \sin(u) \cdot \frac{1}{28} \, du\text{.} \end{equation*}

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

\begin{align*} \int \sin (7x^4 + 3) \cdot x^3 \, dx &= \int \sin(u) \cdot \frac{1}{28} \, du\\ &= \frac{1}{28} \int \sin(u) \, du\\ &= \frac{1}{28} (-\cos(u)) + C\\ &= -\frac{1}{28} \cos(7x^4 + 3) + C\text{.} \end{align*}

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

\begin{equation*} \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{,} \end{equation*}

which is indeed the original integrand.

The \(u\)-substitution worked because the function multiplying \(\sin (7x^4 + 3)\) was \(x^3\text{.}\) If instead that function was \(x^2\) or \(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 \(u\)-substitution with \(u = x^2\) and \(du = 2xdx\) to find that

\begin{align*} \int xe^{x^2} \, dx &= \int e^u \cdot \frac{1}{2} \, du\\ &= \frac{1}{2} \int e^u \, du\\ &= \frac{1}{2} e^u + C\\ &= \frac{1}{2} e^{x^2} + C\text{.} \end{align*}

However, for the similar indefinite integral

\begin{equation*} \int e^{x^2} \, dx\text{,} \end{equation*}

the \(u\)-substitution \(u = x^2\) 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.

Activity 5.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 \(u\) and \(du\text{;}\)

  • Evaluate the new integral in \(u\text{;}\)

  • Convert the resulting function of \(u\) back to a function of \(x\) by using your earlier substitution;

  • Check your work by differentiating the function of \(x\text{.}\) You should come up with the integrand originally given.

  1. \(\int \frac{x^2}{5x^3+1} \, dx\)

  2. \(\int e^x \sin(e^x) \, dx\)

  3. \(\int \frac{\cos(\sqrt{x})}{\sqrt{x}} \, dx\)

Hint
  1. Note that \(5x^3 + 1\) and \(15x^2\) form a function-derivative pair.

  2. Recall that \(e^{x}\) is its own derivative.

  3. Observe that \(x^{-1/2} = \frac{1}{\sqrt{x}}\text{.}\)

Answer
  1. \(\int \frac{x^2}{5x^3+1} \, dx = \frac{1}{15} \ln(5x^3 + 1) + C\text{.}\)

  2. \(\int e^x \sin(e^x) \, dx = -\cos(e^x) + C\text{.}\)

  3. \(\int \frac{\cos(\sqrt{x})}{\sqrt{x}} \, dx = 2\sin(\sqrt{x}) + C\text{.}\)

Solution
  1. Since \(5x^3 + 1\) and \(15x^2\) form a function-derivative pair, we let \(u=5x^3+1\text{,}\) and observe that \(du=15x^2dx\text{,}\) and thus \(x^2dx=\frac{1}{15}du\text{.}\) Applying this substitution, integrating, and substituting back, \(\int \frac{x^2}{5x^3+1} \, dx = \int \frac{\frac{1}{15}du}{u} = \frac{1}{15} \ln(u) + C = \frac{1}{15} \ln(5x^3 + 1) + C\text{.}\)

  2. Because \(\frac{d}{dx}[e^x] = e^x\text{,}\) if we let \(u=e^x\text{,}\) it follows \(du = e^x dx\text{.}\) Substituting and integrating, \(\int e^x \sin(e^x) \, dx = \int \sin(u) \, du = -\cos(u) + C = -\cos(e^x) + C\text{.}\)

  3. Let \(u = \sqrt{x}\text{,}\) so that \(du = \frac{1}{2}x^{-1/2}dx = \frac{dx}{2\sqrt{x}}\text{.}\) We observe that \(\frac{dx}{\sqrt{x}} = 2 du\text{,}\) and thus \(\int \frac{\cos(\sqrt{x})}{\sqrt{x}}~dx = \int 2 \cos(u) \, du = 2\sin(u) + C = 2\sin(\sqrt{x}) + C\text{.}\)

Subsection 5.3.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)\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

\begin{equation*} \int_2^5 xe^{x^2} \, dx\text{.} \end{equation*}

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

\begin{equation*} \int_2^5 xe^{x^2} \, dx = \int_{x=2}^{x=5} xe^{x^2} \, dx\text{.} \end{equation*}

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

\begin{align*} \int_{x=2}^{x=5} xe^{x^2} \, dx &= \int_{u=4}^{u=25} e^{u} \cdot \frac{1}{2} \, du\\ &= \left. \frac{1}{2}e^u \right|_{u=4}^{u=25}\\ &= \frac{1}{2}e^{25} - \frac{1}{2}e^4\text{.} \end{align*}

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

\begin{align*} \int_{2}^{5} xe^{x^2} \, dx &= \left. \frac{1}{2}e^{x^2} \right|_{2}^{5}\\ &= \frac{1}{2}e^{25} - \frac{1}{2}e^4\text{,} \end{align*}

which is, of course, the same result.

Activity 5.3.4.

Evaluate each of the following definite integrals exactly through an appropriate \(u\)-substitution.

  1. \(\int_1^2 \frac{x}{1 + 4x^2} \, dx\)

  2. \(\int_0^1 e^{-x} (2e^{-x}+3)^{9} \, dx\)

  3. \(\int_{2/\pi}^{4/\pi} \frac{\cos\left(\frac{1}{x}\right)}{x^{2}} \,dx\)

Hint
  1. Let \(u = 1+4x^2\text{.}\)

  2. \((2e^{-x}+3)\) and \(e^{-x}\) form a function-derivative pair

  3. \(\frac{d}{dx}\left[\frac{1}{x}\right] = -\frac{1}{x^2}\)

Answer
  1. \(\int_{x=1}^{x=2} \frac{x}{1 + 4x^2} \, dx = \frac{1}{8} (\ln(17) - \ln(5))\text{.}\)

  2. \(\int_0^1 e^{-x} (2e^{-x}+3)^{9} \, dx = -\frac{1}{20}(2e^{-1}+3)^{10} + \frac{1}{20}(2e^{0}+3)^{10}\text{.}\)

  3. \(\int_{2/\pi}^{4/\pi} \frac{\cos\left(\frac{1}{x}\right)}{x^{2}} \,dx = 1 - \frac{\sqrt{2}}{2}\text{.}\)

Solution
  1. Let \(u = 1+4x^2\text{,}\) so \(du=8x dx\) and \(xdx = \frac{1}{8} du\text{.}\) Note that \(x=1\) implies \(u=5\) and \(x=2\) implies \(u=17\text{.}\) Thus, \(\int_{x=1}^{x=2} \frac{x}{1 + 4x^2} \, dx = \frac{1}{8} \int_{u=5}^{u=17} \frac{du}{u} = \left. \frac{1}{8} \ln(u) \right|_5^{17} = \frac{1}{8} (\ln(17) - \ln(5))\text{.}\)

  2. First consider the corresponding indefinite integral, \(\int e^{-x} (2e^{-x}+3)^{9} \, dx\text{,}\) and let \(u=2e^{-x}+3\) so that \(du = -2e^{-x}dx\text{.}\) We see \(e^{-x}dx = -\frac{1}{2}du\text{,}\) and thus \(\int e^{-x} (2e^{-x}+3)^{9} \, dx = -\frac{1}{2} \int u^9 \, du = -\frac{1}{2} \cdot \frac{1}{10} u^{10} + C = -\frac{1}{20}(2e^{-x}+3)^{10}\text{.}\) Applying this antiderivative to the definite integral, we see that \(\int_0^1 e^{-x} (2e^{-x}+3)^{9} \, dx = \left. -\frac{1}{20}(2e^{-x}+3)^{10} \right|_0^1 = -\frac{1}{20}(2e^{-1}+3)^{10} + \frac{1}{20}(2e^{0}+3)^{10}\text{.}\)

  3. Using the substitution \(u=\frac{1}{x}\text{,}\) it follows that \(\int \frac{\cos\left(\frac{1}{x}\right)}{x^{2}} \,dx = -\int \cos(u) \, du = -\sin(u) + C\text{.}\) Hence, \(\int_{2/\pi}^{4/\pi} \frac{\cos\left(\frac{1}{x}\right)}{x^{2}} \,dx = \left.-\sin\left(\frac{1}{x}\right) \right|_{2/\pi}^{4/\pi} = -\sin(\frac{\pi}{4} + \sin(\frac{\pi}{2}) = 1 - \frac{\sqrt{2}}{2}\text{.}\)

Subsection 5.3.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 “\(\int f(x) \, dx\text{,}\)” we mean “the general antiderivative of \(f\text{.}\)” In particular, if we have functions \(f\) and \(F\) such that \(F' = f\text{,}\) the following two statements say the exact thing:

    \begin{equation*} \frac{d}{dx}[F(x)] = f(x) \ \text{and} \ \int f(x) \, dx = F(x) + C\text{.} \end{equation*}

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

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

    \begin{equation*} \int f(g(x))g'(x) \, dx = \int f(u) \, du\text{.} \end{equation*}

    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.

Exercises 5.3.5 Exercises

1. Product involving 4th power of a polynomial.
2. Product involving \(\sin(x^6)\).
3. Fraction involving \(\ln^9\).
4. Fraction involving \(e^{5 x}\).
5. Fraction involving \(e^{5 \sqrt{y}}\).
6. Definite integral involving \(e^{-cos(q)}\).
7.

This problem centers on finding antiderivatives for the basic trigonometric functions other than \(\sin(x)\) and \(\cos(x)\text{.}\)

  1. Consider the indefinite integral \(\int \tan(x) \, dx\text{.}\) By rewriting the integrand as \(\tan(x) = \frac{\sin(x)}{\cos(x)}\) and identifying an appropriate function-derivative pair, make a \(u\)-substitution and hence evaluate \(\int \tan(x) \, dx\text{.}\)

  2. In a similar way, evaluate \(\int \cot(x) \, dx\text{.}\)

  3. Consider the indefinite integral

    \begin{equation*} \int \frac{\sec^2(x) + \sec(x) \tan(x)}{\sec(x) + \tan(x)} \, dx\text{.} \end{equation*}

    Evaluate this integral using the substitution \(u = \sec(x) + \tan(x)\text{.}\)

  4. Simplify the integrand in (c) by factoring the numerator. What is a far simpler way to write the integrand?

  5. Combine your work in (c) and (d) to determine \(\int \sec(x) \, dx\text{.}\)

  6. Using (c)-(e) as a guide, evaluate \(\int \csc(x) \, dx\text{.}\)

Answer
  1. \(\int \tan(x) \, dx = \ln\left(|\sec(x)|\right) + C\text{.}\)

  2. \(\int \cot(x) \, dx = -\ln\left(|\csc(x)|\right) + C\text{.}\)

  3. \(\int \frac{\sec^2(x) + \sec(x) \tan(x)}{\sec(x) + \tan(x)} \, dx = \ln\left(|\sec(x) + \tan(x)|\right) + C\text{.}\)

  4. \(\frac{\sec^2(x) + \sec(x) \tan(x)}{\sec(x) + \tan(x)} = \sec(x)\text{.}\)

  5. \(\int \sec(x) \, dx = \ln\left(|\sec(x) + \tan(x)|\right) + C\text{.}\)

  6. \(\int \csc(x) \, dx = -\ln\left(|\csc(x) + \cot(x)|\right) + C\text{.}\)

Solution
  1. We let \(u = \cos(x)\text{,}\) so \(du = -\sin(x) \ dx\text{.}\) This change of variable transforms the integral into one we can integrate as follows:

    \begin{align*} \int \tan(x) \, dx &= \int \frac{\sin(x)}{\cos(x)} \ dx\\ &= -\int \frac{1}{u} \ du\\ &= -\ln(|u|) + C\\ &= -\ln(|\cos(x)| + C\\ &= \ln\left(|\cos(x)|^{-1}\right) + C\\ &= \ln\left(|\sec(x)|\right) + C\text{.} \end{align*}

    Note that we used the property of the logarithm that \(p \ln (z) = \ln(z^p)\) as well as the fact that \(\frac{1}{\cos(x)} = \sec(x)\) in order to simplify the result.

  2. We let \(u = \sin(x)\text{,}\) so \(du = \cos(x) \ dx\text{.}\) This change of variable transforms the integral into one we can integrate as follows:

    \begin{align*} \int \cot(x) \, dx &= \int \frac{\cos(x)}{\sin(x)} \ dx\\ &= \int \frac{1}{u} \ du\\ &= \ln(|u|) + C\\ &= \ln(|\sin(x)| + C\\ &= -\ln\left(|\sin(x)|^{-1}\right) + C\\ &= -\ln\left(|\csc(x)|\right) + C\text{.} \end{align*}

    Note that here we used the fact that \(\ln(z) = (-1)(-1)\ln(z) = (-1) \ln(z^{-1})\) in order to simplify the result.

  3. We let \(u = \sec(x) + \tan(x)\text{,}\) so it follows that \(du = \left(\sec(x)\tan(x)+\sec^2(x)\right) \ dx\text{.}\) This change of variable shows that the basic structure of the integrand is simple and can be integrated as follows:

    \begin{align*} \int \frac{\sec^2(x) + \sec(x) \tan(x)}{\sec(x) + \tan(x)} \, dx &= \int \frac{1}{u} \ du\\ &= \ln(|u|) + C\\ &= \ln\left(|\sec(x) + \tan(x)|\right) + C\text{.} \end{align*}
  4. The numerator of \(\frac{\sec^2(x) + \sec(x) \tan(x)}{\sec(x) + \tan(x)}\) can be rewritten by removing the common factor of \(\sec(x)\) to obtain

    \begin{equation*} \sec(x)\left(\sec(x) + \tan(x)\right)\text{.} \end{equation*}

    The integrand can then be simplified to

    \begin{equation*} \frac{\sec^2(x) + \sec(x) \tan(x)}{\sec(x) + \tan(x)} = \frac{\sec(x)\left(\sec(x) + \tan(x)\right)}{\sec(x) + \tan(x)} = \sec(x)\text{.} \end{equation*}
  5. Using the results of (c) and (d), we see that

    \begin{equation*} \int \sec(x) \, dx = \int \frac{\sec^2(x) + \sec(x) \tan(x)}{\sec(x) + \tan(x)} \, dx = \ln\left(|\sec(x) + \tan(x)|\right) + C\text{.} \end{equation*}
  6. Following (c)-(e) we can evaluate \(int \csc(x) \, dx\) as follows. First, rewrite \(\csc(x)\) by multiplying by \(1 = \frac{\csc(x) + \cot(x)}{\csc(x) + \cot(x)}\text{,}\) so that

    \begin{equation*} \int \csc(x) \, dx = \int \frac{\csc(x)\left(\csc(x) + \cot(x)\right)}{\csc(x) + \cot(x)} \, dx = \int \frac{\csc^2(x) + \csc(x) \cot(x)}{\csc(x) + \cot(x)} \, dx\text{.} \end{equation*}

    Now we evaluate the last integral in the preceding equation with the substitution \(u = \csc(x) + \cot(x)\text{.}\) Then \(du = -\left(\csc(x)\cot(x)+\csc^2(x)\right) \ dx\text{.}\) This change of variable transforms the integral so that we can integrate:

    \begin{align*} \int \frac{\csc^2(x) + \csc(x) \cot(x)}{\csc(x) + \cot(x)} \, dx &= - \int \frac{1}{u} \ dx\\ &= -\ln(|u|) + C\\ &= -\ln\left(|\csc(x) + \cot(x)|\right) + C\text{.} \end{align*}

    Connecting the equalities we have established in our work, we have shown that

    \begin{equation*} \int \csc(x) \, dx = -\ln\left(|\csc(x) + \cot(x)|\right) + C\text{.} \end{equation*}
8.

Consider the indefinite integral \(\int x \sqrt{x-1} \, dx\text{.}\)

  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 \(\sqrt{x-1}\) as a guide, let \(u = x-1\text{.}\) Determine expressions for both \(x\) and \(dx\) in terms of \(u\text{.}\)

  2. Convert the given integral in \(x\) to a new integral in \(u\text{.}\)

  3. Evaluate the integral in (b) by noting that \(\sqrt{u} = u^{1/2}\) and observing that it is now possible to rewrite the integrand in \(u\) by expanding through multiplication.

  4. Evaluate each of the integrals \(\int x^2 \sqrt{x-1} \, dx\) and \(\int x \sqrt{x^2 - 1} \, dx\text{.}\) 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.

Answer
  1. \(\int x \sqrt{x-1} \, dx = \int (u+1) \sqrt{u} \, du\text{.}\)

  2. \(\int x \sqrt{x-1} \, dx = \frac{2}{5} (x-1)^{5/2} + \frac{2}{3} (x-1)^{3/2} + C\text{.}\)

  3. \(\int x^2 \sqrt{x-1} \, dx = \frac{2}{7} (x-1)^{7/2} + \frac{4}{5} (x-1)^{5/2} + \frac{2}{3} (x-1)^{3/2} + C\text{.}\)

    \(\int x \sqrt{x^2 - 1} \, dx = \frac{1}{3} (x^2-1)^{3/2} + C\text{.}\)

Solution
  1. Letting \(u = x-1\text{,}\) we find that \(x = u+1\) and thus \(dx = du\text{.}\)

  2. Using the change of variables in (a),

    \begin{equation*} \int x \sqrt{x-1} \, dx = \int (u+1) \sqrt{u} \, du\text{.} \end{equation*}
  3. Using the fact that \(\sqrt{u} = u^{1/2}\) and distributing, we can evaluate the integral as follows:

    \begin{align*} \int x \sqrt{x-1} \, dx &= \int (u+1) u^{1/2} \, du\\ &= \int \left(u^{3/2} + u^{1/2} \right) \, du\\ &= \frac{2}{5} u^{5/2} + \frac{2}{3} u^{3/2} + C\\ &= \frac{2}{5} (x-1)^{5/2} + \frac{2}{3} (x-1)^{3/2} + C\text{.} \end{align*}
  4. First, for \(\int x^2 \sqrt{x-1} \, dx\text{,}\) we let \(u = x-1\) so that \(x = u+1\) and \(dx = du\text{.}\) From there, our work is very similar to what we did in (b):

    \begin{align*} \int x^2 \sqrt{x-1} \, dx &= \int (u+1)^2 u^{1/2} \, du\\ &= \int \left(u^2 + 2u + 1 \right) u^{1/2} \, du\\ &= \int \left(u^{5/2} + 2u^{3/2} + u^{1/2} \right) \, du\\ &= \frac{2}{7} u^{7/2} + \frac{4}{5} u^{5/2} + \frac{2}{3} u^{3/2} + C\\ &= \frac{2}{7} (x-1)^{7/2} + \frac{4}{5} (x-1)^{5/2} + \frac{2}{3} (x-1)^{3/2} + C\text{.} \end{align*}

    For \(\int x \sqrt{x^2 - 1} \, dx\text{,}\) despite the fact that the integral looks remarkably similar, the situation is quite different. We observe that with \(u = x^2 - 1\text{,}\) it follows \(du = 2x \, dx\text{,}\) so we have a standard function-derivative pair. Noting that \(x \, dx = \frac{1}{2} \, du\text{,}\) it follows that

    \begin{align*} \int x \sqrt{x^2 - 1} \, dx &= \int \sqrt{u} \cdot \frac{1}{2} \, du\\ &= \frac{1}{2} \cdot \frac{2}{3}u^{3/2} + C\\ &= \frac{1}{3} u^{3/2} + C\\ &= \frac{1}{3} (x^2-1)^{3/2} + C\text{.} \end{align*}

    In the situation where we have \((x-a)\) under a square root and a polynomial outside the square root, the substitution \(u = x-a\) will allow us to convert the integrand into an expression we can integrate by changing the form of the radical from \(\sqrt{x-a}\) to \(\sqrt{u}\text{.}\) From there we are able to distribute and integrate an expression that is essentially a sum of (fractional) powers of \(u\text{.}\) In the situation where a polynomial of degree higher than \(1\) (such as \(x^2 - 1\)) is under the radical, we likely have to be fortunate enough to have the derivative of said polynomial (up to a constant) outside the radical in order to be able to integrate, as we were in the last example.

9.

Consider the indefinite integral \(\int \sin^3(x) \, dx\text{.}\)

  1. Explain why the substitution \(u = \sin(x)\) will not work to help evaluate the given integral.

  2. Recall the Fundamental Trigonometric Identity, which states that \(\sin^2(x) + \cos^2(x) = 1\text{.}\) By observing that \(\sin^3(x) = \sin(x) \cdot \sin^2(x)\text{,}\) use the Fundamental Trigonometric Identity to rewrite the integrand as the product of \(\sin(x)\) with another function.

  3. Explain why the substitution \(u = \cos(x)\) now provides a possible way to evaluate the integral in (b).

  4. Use your work in (a)-(c) to evaluate the indefinite integral \(\int \sin^3(x) \, dx\text{.}\)

  5. Use a similar approach to evaluate \(\int \cos^3(x) \, dx\text{.}\)

Answer
  1. We don't have a function-derivative pair.

  2. \(\sin^3(x) = \sin(x) (1-\cos^2(x))\text{.}\)

  3. \(u = \cos(x)\) and \(du = -\sin(x) \, dx\text{.}\)

  4. \(\int \sin^3(x) \, dx = \frac{1}{3}\cos^3(x) - \cos(x) + C\text{.}\)

  5. \(\int \cos^3(x) \, dx = \sin(x) - \frac{1}{3}\sin^3(x) + C\text{.}\)

Solution
  1. If we let \(u = \sin(x)\text{,}\) then \(du = \cos(x) \, dx\text{.}\) Since there is no cosine function present in the integrand, we don't have the needed function-derivative pair present in order to transform the integral into one we can evaluate.

  2. Using the Fundamental Trigonometric Identity, we observe that \(\sin^2(x) = 1-\cos^2(x)\text{,}\) and thus

    \begin{equation*} \sin^3(x) = \sin(x) \cdot \sin^2(x) = \sin(x) (1-\cos^2(x))\text{.} \end{equation*}
  3. By our work in (b), we see that \(\int \sin^3(x) \, dx = \int \sin(x) (1-\cos^2(x)) \, dx\text{,}\) and in this integral we have the function-derivative pair that corresponds to \(u = \cos(x)\) and \(du = -\sin(x) \, dx\text{.}\)

  4. Using this substitution and evaluating the resulting integral,

    \begin{align*} \int \sin^3(x) \, dx &= \int \sin(x) (1-\cos^2(x)) \, dx\\ &= \int (-1)(1-u^2) \, du\\ &= \int (u^2-1) \, du\\ &= \frac{1}{3}u^3 - u + C\\ &= \frac{1}{3}\cos^3(x) - \cos(x) + C\text{.} \end{align*}
  5. Here we observe that \(\cos^3(x) = \cos(x) \cdot \cos^2(x) = \cos(x) (1-\sin^2(x))\text{,}\) so letting \(u = \sin(x)\) and thus \(du = \cos(x) \, dx\text{,}\) we have

    \begin{align*} \int \cos^3(x) \, dx &= \int \cos(x) (1-\sin^2(x)) \, dx\\ &= \int (1-u^2) \, du\\ &= u - \frac{1}{3}u^3 + C\\ &= \sin(x) - \frac{1}{3}\sin^3(x) + C\text{.} \end{align*}
10.

For the town of Mathland, MI, residential power consumption has shown certain trends over recent years. Based on data reflecting average usage, engineers at the power company have modeled the town's rate of energy consumption by the function

\begin{equation*} r(t) = 4 + \sin(0.263t + 4.7) + \cos(0.526t+9.4)\text{.} \end{equation*}

Here, \(t\) measures time in hours after midnight on a typical weekday, and \(r\) is the rate of consumption in megawatts 3  at time \(t\text{.}\) Units are critical throughout this problem.

  1. Sketch a carefully labeled graph of \(r(t)\) on the interval [0,24] and explain its meaning. Why is this a reasonable model of power consumption?

  2. Without calculating its value, explain the meaning of \(\int_0^{24} r(t) \, dt\text{.}\) Include appropriate units on your answer.

  3. Determine the exact amount of energy Mathland consumes in a typical day.

  4. What is Mathland's average rate of power consumption in a given 24-hour period? What are the units on this quantity?

The unit megawatt is itself a rate, which measures energy consumption per unit time. A megawatt-hour is the total amount of energy that is equivalent to a constant stream of 1 megawatt of power being sustained for 1 hour.
Answer
  1. The model is reasonable because it appears to be periodic and the rate of consumption seems to peak at the times of day where people are most active in their homes.

  2. The total power consumed in \(24\) hours, measured in megawatt-hours.

  3. \(\int_0^{24} r(t) \, dt \approx 95.7809 \) megawatts of power used in \(24\) hours.

  4. \(\displaystyle r_{\operatorname{AVG} [0,24]} \approx 3.99087\) megawatts.
Solution
  1. In the following plot, we see that the model is reasonable because it appears to be periodic and repeats every \(24\) hours, as well as that the rate of consumption seems to peak at the times of day where people are most active in their homes: around \(7\) a.m. and around \(5\) p.m.

  2. The meaning of \(\int_0^{24} r(t) \, dt\) is the total power consumed in \(24\) hours, measured in megawatt-hours. This is because \(r(t)\) is measured in megawatts and \(\triangle t\) in hours, and thus in the Riemann sum that corresponds to the definite integral, the terms in the sum of the form \(r(t) \cdot \triangle t\) have units ``megawatt-hours''. Moreover, by integrating the rate of power consumption we get the total change in power consumed.

  3. In a typical day, we know that Mathland consumes \(\int_0^{24} r(t) \, dt\) megawatt-hours of power, and thus we seek to evaluate the integral

    \begin{equation*} \int_0^{24} r(t) \, dt = \int_0^{24} \left[ 4 + \sin(0.263t + 4.7) + \cos(0.526t+9.4) \right] \, dt\text{.} \end{equation*}

    To do so, we use the subtitutions \(u = 0.263t + 4.7\) (so \(du = 0.263 \, dt\)) and \(w = 0.526t + 9.4\) (so \(dw = 0.526 \, dt\)) to help us antidifferentiate the two trigonometric expressions, and thus we find that

    \begin{equation*} \int \sin(0.263t + 4.7) \, dt = \frac{1}{0.263} \int \sin(u) \, du = -\frac{1}{0.263} \cos(u) = -\frac{1}{0.263} \cos(0.263t + 4.7) \end{equation*}

    and

    \begin{equation*} \int \cos(0.526t + 9.4) \, dt = \frac{1}{0.526} \int \cos(w) \, dw = \frac{1}{0.526} \sin(w) = \frac{1}{0.526} \sin(0.526t + 9.4)\text{.} \end{equation*}

    Putting this all together and using the Fundamental Theorem of Calculus, we have

    \begin{align*} \int_0^{24} r(t) \, dt &= \left. 4t -\frac{1}{0.263} \cos(0.263t + 4.7) + \frac{1}{0.526} \sin(0.526t + 9.4) \right|_0^{24}\\ &= \left[ 4 \cdot 24 -\frac{1}{0.263} \cos(0.263 \cdot 24 + 4.7) + \frac{1}{0.526} \sin(0.526 \cdot 24 + 9.4) \right] - \left[ -\frac{1}{0.263} \cos(4.7) + \frac{1}{0.526} \sin(9.4) \right]\\ &\approx 95.7809 \end{align*}

    megawatts of power used in \(24\) hours.

  4. We know that the average value of the rate function \(r\) on \([0,24]\) is
    \begin{equation*} \displaystyle r_{\operatorname{AVG} [0,24]} = \frac{1}{24-0} \int_{0}^{24} r(t) \, dt\text{.} \end{equation*}
    Thus, by our work in (c), we have that
    \begin{equation*} \displaystyle r_{\operatorname{AVG} [0,24]} \approx \frac{1}{24} \cdot 95.7809 = 3.99087 \end{equation*}
    which is measured in megawatts.