.Arch6.2! Integration by Parts
.Arch6.2! Integration by Parts
.Arch6.2! Integration by Parts
2: Integration by Parts
Here's a simple integral that we can't yet evaluate:
$$\int x\cos x \,dx.\]
It's a simple matter to take the derivative of the integrand using the Product Rule, but there is no Product Rule for integrals.
However, this section introduces Integration by Parts, a method of integration that is based on the Product Rule for derivatives. It
will enable us to evaluate this integral.
The Product Rule says that if u and v are functions of x, then (uv) = u v + u v . For simplicity, we've written
′ ′ ′
u for u(x) and v
for v(x). Suppose we integrate both sides with respect to x. This gives
$$\int (uv)'\,dx = \int (u'v+uv')\,dx.\]
By the Fundamental Theorem of Calculus, the left side integrates to uv. The right side can be broken up into two integrals, and we
have
$$uv = \int u'v\,dx + \int uv'\,dx.\]
Solving for the second integral we have
$$\int uv'\,dx = uv - \int u'v\,dx.\]
Using differential notation, we can write du = u (x)dx and dv = v (x)dx and the expression above can be written as follows:
′ ′
∫ u dv = uv − ∫ v du, (6.2.1)
Evaluate ∫ x cos x dx .
Solution
The key to Integration by Parts is to identify part of the integrand as "u" and part as "dv ." Regular practice will help one make
good identifications, and later we will introduce some principles that help. For now, let u = x and dv = cos x dx .
It is generally useful to make a small table of these values as done below. Right now we only know u and dv as shown on the
left of Figure 6.2.1; on the right we fill in the rest of what we need. If u = x , then du = dx . Since dv = cos x dx , v is an
antiderivative of cos x. We choose v = sin x .
6.2.1 https://math.libretexts.org/@go/page/4186
We can then integrate sin x to get − cos x + C and overall our answer is
$$\int x\cos x\ dx = x\sin x + \cos x + C.\]
Note how the antiderivative contains a product, x sin x. This product is what makes Integration by Parts necessary.
The example above demonstrates how Integration by Parts works in general. We try to identify u and dv in the integral we are
given, and the key is that we usually want to choose u and dv so that du is simpler than u and v is hopefully not too much more
complicated than dv . This will mean that the integral on the right side of the Integration by Parts formula, ∫ v du will be simpler to
integrate than the original integral ∫ u dv .
In the example above, we chose u = x and dv = cos x dx . Then du = dx was simpler than u and v = sin x is no more
complicated than dv . Therefore, instead of integrating x cos x dx, we could integrate sin x dx, which we knew how to do.
A useful mnemonic for helping to determine u is "LIATE," where
If the integrand contains both a logarithmic and an algebraic term, in general letting u be the logarithmic term works best, as
indicated by L coming before A in LIATE.
We now consider another example.
Evaluate ∫ xe
x
dx .
Solution
The integrand contains an Algebraic term (x) and an \textbf{E}xponential term (e ). Our mnemonic suggests letting u be the
x
algebraic term, so we choose u = x and dv = e dx . Then du = dx and v = e as indicated by the tables below.
x x
Evaluate ∫ x
2
cos x dx .
Solution
The mnemonic suggests letting u =x
2
instead of the trigonometric function, hence dv = cos x dx . Then du = 2x dx and
v = sin x as shown below.
6.2.2 https://math.libretexts.org/@go/page/4186
The Integration by Parts formula gives
$$\int x^2\cos x\,dx = x^2\sin x - \int 2x\sin x\,dx.\]
At this point, the integral on the right is indeed simpler than the one we started with, but to evaluate it, we need to do
Integration by Parts again. Here we choose u = 2x and dv = sin x and fill in the rest below.
Evaluate ∫ e
x
.
cos x dx
Solution
This is a classic problem. Our mnemonic suggests letting u be the trigonometric function instead of the exponential. In this
particular example, one can let u be either cos x or e ; to demonstrate that we do not have to follow LIATE, we choose u = e
x x
x x x x
∫ e cos x dx =e sin x − (−e cos x − ∫ −e cos x dx)
x x x
=e sin x + e cos x − ∫ e cos x dx.
It seems we are back right where we started, as the right hand side contains ∫ e x
cos x dx . But this is actually a good thing.
Add ∫ e x
cos x dx to both sides. This gives
x x x
2∫ e cos x dx = e sin x + e cos x
1
x x x
Now divide both sides by 2: ∫ e cos x dx = (e sin x + e cos x).
2
Simplifying a little and adding the constant of integration, our answer is thus
$$\int e^x\cos x\ dx = \frac12e^x\left(\sin x + \cos x\right)+C.\]
6.2.3 https://math.libretexts.org/@go/page/4186
Example 6.2.5: Integrating using Integration by Parts: antiderivative of ln x
Evaluate ∫ ln x dx .
Solution
One may have noticed that we have rules for integrating the familiar trigonometric functions and e , but we have not yet given
x
a rule for integrating ln x. That is because ln x can't easily be integrated with any of the rules we have learned up to this point.
But we can find its antiderivative by a clever application of Integration by Parts. Set u = ln x and dv = dx . This is a good,
sneaky trick to learn as it can help in other situations. This determines du = (1/x) dx and v = x as shown below.
Evaluate ∫ arctan x dx .
Solution
The same sneaky trick we used above works here. Let u = arctan x and dv = dx . Then du = 1/(1 + x 2
) dx and v = x . The
Integration by Parts formula gives
x
∫ arctan x dx = x arctan x − ∫ dx. (6.2.5)
2
1 +x
The integral on the right can be solved by substitution. Taking u = 1 + x , we get du = 2x dx. The integral then becomes
2
1 1
∫ arctan x dx = x arctan x − ∫ du. (6.2.6)
2 u
2
∫ arctan x dx = x arctan x − ln(1 + x ) + C . (6.2.7)
Evaluate ∫ cos(ln x) dx .
Solution
The integrand contains a composition of functions, leading us to think Substitution would be beneficial. Letting u = ln x , we
have du = 1/x dx. This seems problematic, as we do not have a 1/x in the integrand. But consider:
6.2.4 https://math.libretexts.org/@go/page/4186
1
du = dx ⇒ x ⋅ du = dx. (6.2.8)
x
Since u = ln x , we can use inverse functions and conclude that x = e . Therefore we have that u
dx = x ⋅ du
u
=e du.
u
∫ cos(ln x) dx = ∫ e cos u du. (6.2.9)
We evaluated this integral in Example 6.2.4. Using the result there, we have:
u
∫ cos(ln x) dx = ∫ e cos u du
1 u
= e ( sin u + cos u) + C
2
1 ln x
= e ( sin(ln x) + cos(ln x)) + C
2
1
= x( sin(ln x) + cos(ln x)) + C .
2
Evaluate ∫ 2
x .
ln x dx
1
Solution
Our mnemonic suggests letting u = ln x , hence dv = x 2
dx .
We then get du = (1/x) dx and v = x 3
/3 as shown below.
3 2 2 2
x ∣ x
= ln x ∣ − ∫ dx
3 ∣ 3
1 1
3 2 3 2
x ∣ x ∣
= ln x ∣ − ∣
3 ∣ 9 ∣1
1
3 3 2
x x ∣
=( ln x − )∣
3 9 ∣
1
8 8 1 1
=( ln 2 − ) −( ln 1 − )
3 9 3 9
8 7
= ln 2 −
3 9
≈ 1.07.
6.2.5 https://math.libretexts.org/@go/page/4186
In general, Integration by Parts is useful for integrating certain products of functions, like ∫ xe
x
dx or 3
∫ x sin x dx . It is also
useful for integrals involving logarithms and inverse trigonometric functions.
As stated before, integration is generally more difficult than derivation. We are developing tools for handling a large array of
integrals, and experience will tell us when one tool is preferable/necessary over another. For instance, consider the three similar--
looking integrals
$$\int xe^x\,dx, \qquad \int x e^{x^2}\,dx \qquad \text{and} \qquad \int xe^{x^3}\,dx.\]
While the first is calculated easily with Integration by Parts, the second is best approached with Substitution. Taking things one step
further, the third integral has no answer in terms of elementary functions, so none of the methods we learn in calculus will get us
the exact answer.
Integration by Parts is a very useful method, second only to substitution. In the following sections of this chapter, we continue to
learn other integration techniques. The next section focuses on handling integrals containing trigonometric functions.
This page titled 6.2: Integration by Parts is shared under a CC BY-NC 3.0 license and was authored, remixed, and/or curated by Gregory Hartman
et al. via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.
6.2.6 https://math.libretexts.org/@go/page/4186