Motivating Questions
- How do we evaluate indefinite integrals that involve products of basic functions such as and
- What is the method of integration by parts and how can we consistently apply it to integrate products of basic functions?
- How does the algebraic structure of functions guide us in identifying and in using integration by parts?
In Section 5.3, we learned the technique of -substitution for evaluating indefinite integrals. For example, the indefinite integral is perfectly suited to -substitution, because one factor is a composite function and the other factor is the derivative (up to a constant) of the inner function. Recognizing the algebraic structure of a function can help us to find its antiderivative.
Next we consider integrands with a different elementary algebraic structure: a product of basic functions. For instance, suppose we are interested in evaluating the indefinite integral
The integrand is the product of the basic functions and We know that it is relatively complicated to compute the derivative of the product of two functions, so we should expect that antidifferentiating a product should be similarly involved. Intuitively, we expect that evaluating will involve somehow reversing the Product Rule.
To that end, in Preview Activity we refresh our understanding of the Product Rule and then investigate some indefinite integrals that involve products of basic functions.
Preview Activity
In Section 2.3, we developed the Product Rule and studied how it is employed to differentiate a product of two functions. In particular, recall that if and are differentiable functions of then
- For each of the following functions, use the Product Rule to find the function's derivative. Be sure to label each derivative by name (e.g., the derivative of should be labeled ).
- Use your work in (a) to help you evaluate the following indefinite integrals. Use differentiation to check your work.
- Observe that the examples in (b) work nicely because of the derivatives you were asked to calculate in (a). Each integrand in (b) is precisely the result of differentiating one of the products of basic functions found in (a). To see what happens when an integrand is still a product but not necessarily the result of differentiating an elementary product, we consider how to evaluate
- First, observe that
Integrating both sides indefinitely and using the fact that the integral of a sum is the sum of the integrals, we find that
In this last equation, evaluate the indefinite integral on the left side as well as the rightmost indefinite integral on the right.
- In the most recent equation from (i.), solve the equation for the expression
- For which product of basic functions have you now found the antiderivative?
- First, observe that
Reversing the Product Rule: Integration by Parts
Problem (c) in Preview Activity provides a clue to the general technique known as Integration by Parts, which comes from reversing the Product Rule. Recall that the Product Rule states that
Integrating both sides of this equation indefinitely with respect to we find
On the left side of Equation (
We solve for the first indefinite integral on the left to generate the rule
Often we express Equation (
Note
To apply integration by parts, we look for a product of basic functions that we can identify as
Example 5.4.1 5.4.1
Evaluate the indefinite integral
using integration by parts.
- Answer
-
When we use integration by parts, we have a choice for
andu u In this problem, we can either letd v . dv\text{.} andu = x u = x or letd v = cos ( x ) d x , dv = \cos(x) \, dx\text{,} andu = cos ( x ) u = \cos(x) While there is not a universal rule for how to choosed v = x d x . dv = x \, dx\text{.} andu u a good guideline is this: do so in a way thatd v , dv\text{,} is at least as simple as the original problem∫ v d u \int v \, du ∫ u d v . \int u \, dv\text{.} This leads us to choose 1
andu = x u = x from which it follows thatd v = cos ( x ) d x , dv = \cos(x) \, dx\text{,} andd u = 1 d x du = 1 \, dx With this substitution, the rule for integration by parts tells us thatv = sin ( x ) . v = \sin(x)\text{.} ∫ x cos ( x ) d x = x sin ( x ) − ∫ sin ( x ) ⋅ 1 d x . \int x \cos(x) \, dx = x \sin(x) - \int \sin(x) \cdot 1 \, dx\text{.} Observe that if we considered the alternate choice, and let andu = cos ( x ) u = \cos(x) thend v = x d x , dv = x \, dx\text{,} andd u = − sin ( x ) d x du = -\sin(x) \, dx from which we would writev = 1 2 x 2 , v = \frac{1}{2}x^2\text{,} Thus we have replaced the problem of integrating∫ x cos ( x ) d x = 1 2 x 2 cos ( x ) − ∫ 1 2 x 2 ( − sin ( x ) ) d x . \int x\cos(x) \, dx = \frac{1}{2}x^2 \cos(x) - \int \frac{1}{2}x^2 (-\sin(x)) \, dx\text{.} with that of integratingx cos ( x ) x \cos(x) the latter is clearly more complicated, which shows that this alternate choice is not as helpful as the first choice.1 2 x 2 sin ( x ) ; \frac{1}{2}x^2 \sin(x)\text{;} All that remains to do is evaluate the (simpler) integral
Doing so, we find∫ sin ( x ) ⋅ 1 d x . \int \sin(x) \cdot 1 \, dx\text{.} ∫ x cos ( x ) d x = x sin ( x ) − ( − cos ( x ) ) + C = x sin ( x ) + cos ( x ) + C . \int x \cos(x) \, dx = x \sin(x) - (-\cos(x)) + C = x\sin(x) + \cos(x) + C\text{.} Observe that when we get to the final stage of evaluating the last remaining antiderivative, it is at this step that we include the integration constant,
+ C . +C\text{.}
The general technique of integration by parts involves trading the problem of integrating the product of two functions for the problem of integrating the product of two related functions. That is, we convert the problem of evaluating
Activity 5.4.2 5.4.2
Evaluate each of the following indefinite integrals. Check each antiderivative that you find by differentiating.
∫ t e − t d t \displaystyle \int te^{-t} \, dt ∫ 4 x sin ( 3 x ) d x \displaystyle \int 4x \sin(3x) \, dx ∫ z sec 2 ( z ) d z \displaystyle \int z \sec^2(z) \,dz ∫ x ln ( x ) d x \displaystyle \int x \ln(x) \, dx
Some Subtleties with Integration by Parts
Sometimes integration by parts is not an obvious choice, but the technique is appropriate nonetheless. Integration by parts allows us to replace one function in a product with its derivative while replacing the other with its antiderivative. For instance, consider evaluating
Initially, this problem seems ill-suited to integration by parts, since there does not appear to be a product of functions present. But if we note that
In a related problem, consider
We let
The resulting integral can be evaluated by parts. This, too, is explored further in Activity
These problems show that we sometimes must think creatively in choosing the variables for substitution in integration by parts, and that we may need to use substitution for an additional change of variables.
Activity 5.4.3 5.4.3
Evaluate each of the following indefinite integrals, using the provided hints.
- Evaluate
by using Integration by Parts with the substitution∫ arctan ( x ) d x \int \arctan(x) \, dx andu = arctan ( x ) u = \arctan(x) d v = 1 d x . dv = 1 \, dx\text{.} - Evaluate
Consider a similar substitution to the one in (a).∫ ln ( z ) d z . \int \ln(z) \,dz\text{.} - Use the substitution
to transform the integralz = t 2 z = t^2 to a new integral in the variable∫ t 3 sin ( t 2 ) d t \int t^3 \sin(t^2) \, dt and evaluate that new integral by parts.z , z\text{,} - Evaluate
using an approach similar to that described in (c).∫ s 5 e s 3 d s \int s^5 e^{s^3} \, ds - Evaluate
You will find it helpful to note that∫ e 2 t cos ( e t ) d t . \int e^{2t} \cos(e^t) \, dt\text{.} e 2 t = e t ⋅ e t . e^{2t} = e^t \cdot e^t\text{.}
Using Integration by Parts Multiple Times
Integration by parts is well suited to integrating the product of basic functions, allowing us to trade a given integrand for a new one where one function in the product is replaced by its derivative, and the other is replaced by its antiderivative. The goal in this trade of
Example 5.4.2 5.4.2
Evaluate
- Answer
-
Let
andu = t 2 u = t^2 Thend v = e t d t . dv = e^t \, dt\text{.} andd u = 2 t d t du = 2t \, dt and thusv = e t , v = e^t\text{,} ∫ t 2 e t d t = t 2 e t − ∫ 2 t e t d t . \int t^2 e^t \, dt = t^2 e^t - \int 2t e^t \, dt\text{.} The integral on the right side is simpler to evaluate than the one on the left, but it still requires integration by parts. Now letting
andu = 2 t u = 2t we haved v = e t d t , dv = e^t \, dt\text{,} andd u = 2 d t du = 2\, dt so thatv = e t , v = e^t\text{,} ∫ t 2 e t d t = t 2 e t − ( 2 t e t − ∫ 2 e t d t ) . \int t^2 e^t \, dt = t^2 e^t - \left( 2t e^t - \int 2 e^t \, dt \right)\text{.} (Note the parentheses, which remind us to distribute the minus sign to the entire value of the integral
) The final integral on the right is a basic one; evaluating that integral and distributing the minus sign, we find∫ 2 t e t d t . \int 2t e^t \, dt\text{.} ∫ t 2 e t d t = t 2 e t − 2 t e t + 2 e t + C . \int t^2 e^t \, dt = t^2 e^t - 2t e^t + 2 e^t + C\text{.}
Of course, even more than two applications of integration by parts may be necessary. In the preceding example, if the integrand had been
Next, we consider the slightly different scenario.
Example 5.4.3 5.4.3
Evaluate
- Answer
-
We can choose to let
be eitheru u ore t e^t we pickcos ( t ) ; \cos(t)\text{;} and thusu = cos ( t ) , u = \cos(t)\text{,} Withd v = e t d t . dv = e^t \, dt\text{.} andd u = − sin ( t ) d t du = -\sin(t) \, dt integration by parts tells us thatv = e t , v = e^t\text{,} ∫ e t cos ( t ) d t = e t cos ( t ) − ∫ e t ( − sin ( t ) ) d t , \int e^t \cos(t) \, dt = e^t \cos(t) - \int e^t (-\sin(t))\, dt\text{,} or equivalently that
∫ e t cos ( t ) d t = e t cos ( t ) + ∫ e t sin ( t ) d t . ( 5.4.1 4 ) \int e^t \cos(t) \, dt = e^t \cos(t) + \int e^t \sin(t) \, dt\text{.}\tag{ 4}5.4.1 5.4.1 The new integral has the same algebraic structure as the original one. While the overall situation isn't necessarily better than what we started with, it hasn't gotten worse. Thus, we proceed to integrate by parts again. This time we let
andu = sin ( t ) u = \sin(t) so thatd v = e t d t , dv = e^t \, dt\text{,} andd u = cos ( t ) d t du = \cos(t) \, dt which impliesv = e t , v = e^t\text{,} ∫ e t cos ( t ) d t = e t cos ( t ) + ( e t sin ( t ) − ∫ e t cos ( t ) d t ) . ( 5.4.1 5 ) \int e^t \cos(t) \, dt = e^t \cos(t) + \left( e^t \sin(t) - \int e^t \cos(t) \, dt \right)\text{.}\tag{ 5}5.4.1 5.4.1 We seem to be back where we started, as two applications of integration by parts has led us back to the original problem,
But if we look closely at Equation (∫ e t cos ( t ) d t . \int e^t \cos(t) \, dt\text{.} 5), we see that we can use algebra to solve for the value of the desired integral. Adding5.4.1 5.4.1 to both sides of the equation, we have∫ e t cos ( t ) d t \int e^t \cos(t) \, dt 2 ∫ e t cos ( t ) d t = e t cos ( t ) + e t sin ( t ) , 2 \int e^t \cos(t) \, dt = e^t \cos(t) + e^t \sin(t)\text{,} and therefore
∫ e t cos ( t ) d t = 1 2 ( e t cos ( t ) + e t sin ( t ) ) + C . \int e^t \cos(t) \, dt = \frac{1}{2} \left( e^t \cos(t) + e^t \sin(t) \right) + C\text{.} Note that since we never actually encountered an integral we could evaluate directly, we didn't have the opportunity to add the integration constant
until the final step.C C
Activity 5.4.4 5.4.4
Evaluate each of the following indefinite integrals.
∫ x 2 sin ( x ) d x \displaystyle \int x^2 \sin(x) \, dx ∫ t 3 ln ( t ) d t \displaystyle \int t^3 \ln(t) \, dt ∫ e z sin ( z ) d z \displaystyle \int e^z \sin(z) \, dz ∫ s 2 e 3 s d s \displaystyle \int s^2 e^{3s} \, ds (Hint: At a certain point in this problem, it is very helpful to note that∫ t arctan ( t ) d t \int t \arctan(t) \,dt )t 2 1 + t 2 = 1 − 1 1 + t 2 . \frac{t^2}{1+t^2} = 1 - \frac{1}{1+t^2}\text{.}
Evaluating Definite Integrals Using Integration by Parts
We can use the technique of integration by parts to evaluate a definite integral.
Example 5.4.4 5.4.4
Evaluate
- Answer
-
One option is to find an antiderivative (using indefinite integral notation) and then apply the Fundamental Theorem of Calculus to find that
∫ 0 π / 2 t sin ( t ) d t = ( ( − t cos ( t ) + sin ( t ) ) ∣ 0 π / 2 = ( ( − π 2 cos ( π 2 ) + sin ( π 2 ) ) − ( − 0 cos ( 0 ) + sin ( 0 ) ) = ( 1 . \begin{align*} \int_0^{\pi/2} t\sin(t) \, dt =\mathstrut & \left( -t \cos(t) + \sin(t) \right) \bigg\vert_0^{\pi/2}\\[4pt] =\mathstrut & \left( -\frac{\pi}{2} \cos(\frac{\pi}{2}) + \sin(\frac{\pi}{2}) \right) - \left( -0 \cos(0) + \sin(0) \right)\\[4pt] =\mathstrut & 1\text{.} \end{align*} Alternatively, we can apply integration by parts and work with definite integrals throughout. With this method, we must remember to evaluate the product
over the given limits of integration. Using the substitutionu v uv andu = t u = t so thatd v = sin ( t ) d t , dv = \sin(t) \, dt\text{,} andd u = d t du = dt we writev = − cos ( t ) , v = -\cos(t)\text{,} ∫ 0 π / 2 t sin ( t ) d t = ( − t cos ( t ) ∣ 0 π / 2 − ∫ 0 π / 2 ( − cos ( t ) ) d t = ( − t cos ( t ) ∣ 0 π / 2 + sin ( t ) ∣ 0 π / 2 = ( ( − π 2 cos ( π 2 ) + sin ( π 2 ) ) − ( − 0 cos ( 0 ) + sin ( 0 ) ) = ( 1 . \begin{align*} \int_0^{\pi/2} t\sin(t) \, dt =\mathstrut & -t \cos(t) \bigg\vert_0^{\pi/2} - \int_0^{\pi/2} (-\cos(t)) \, dt\\[4pt] =\mathstrut & -t \cos(t) \bigg\vert_0^{\pi/2} + \sin(t) \bigg\vert_0^{\pi/2}\\[4pt] =\mathstrut & \left( -\frac{\pi}{2} \cos(\frac{\pi}{2}) + \sin(\frac{\pi}{2}) \right) - \left( -0 \cos(0) + \sin(0) \right)\\[4pt] =\mathstrut & 1\text{.} \end{align*}
As with any substitution technique, it is important to use notation carefully and completely, and to ensure that the end result makes sense.
When u u -substitution and Integration by Parts Fail to Help
Both integration techniques we have discussed apply in relatively limited circumstances. It is not hard to find examples of functions for which neither technique produces an antiderivative; indeed, there are many, many functions that appear elementary but that do not have an elementary algebraic antiderivative. For instance, neither
While there are other integration techniques, some of which we will consider briefly, none of them enables us to find an algebraic antiderivative for
Summary
- Through the method of integration by parts, we can evaluate indefinite integrals that involve products of basic functions such as
and∫ x sin ( x ) d x \int x \sin(x) \, dx Using a substitution enables us to trade one of the functions in the product for its derivative, and the other for its antiderivative, in an effort to find a different product of functions that is easier to integrate.∫ x ln ( x ) d x . \int x \ln(x) \, dx\text{.} - If the algebraic structure of an integrand is a product of basic functions in the form
we can use the substitution∫ f ( x ) g ′ ( x ) d x , \int f(x) g'(x) \, dx\text{,} andu = f ( x ) u = f(x) and apply the ruled v = g ′ ( x ) d x dv = g'(x) \,dx ∫ u d v = u v − ∫ v d u \int u \, dv = uv - \int v \, du to evaluate the original integral
by instead evaluating∫ f ( x ) g ′ ( x ) d x \int f(x) g'(x) \, dx ∫ v d u = ∫ f ′ ( x ) g ( x ) d x . \int v \, du = \int f'(x) g(x) \, dx\text{.} - When deciding to integrate by parts, we have to select both
andu u That selection is guided by the overall principle that the new integrald v . dv\text{.} not be more difficult than the original integral∫ v d u \int v \, du In addition, it is often helpful to recognize if one of the functions present is much easier to differentiate than antidifferentiate (such as∫ u d v . \int u \, dv\text{.} ), in which case that function often is best assigned the variableln ( x ) \ln(x) In addition,u . u\text{.} must be a function that we can antidifferentiate.d v dv