1 - Integration by Parts
1 - Integration by Parts
Integration by Parts
To reverse the chain rule we have the method of u-substitution. To reverse the product rule we also have a method, called
Integration by Parts. The formula is given by:
Remember, all of the techniques that we talk about are supposed to make integrating easier! Even though this formula
´
expresses one integral in terms of a second integral, the idea is that the second integral, F (x)g ′ (x) dx, is easier to evaluate.
The key to integration by parts is making the right choice for f (x) and g(x). Sometimes we may need to try multiple
options before we can apply the formula. Let’s see it in action.
Example 1 Find
ˆ
x cos(x) dx.
We have to decide what to assign to f (x) and what to assign to g(x). Our goal is to make the integral easier. One thing
to bear in mind is that whichever term we let equal g(x) we need to differentiate - so if differentiating makes a part of the
integrand simpler that’s probably what we want! In this cases differentiating cos(x) gives − sin(x), which is no easier to
deal with. But differentiating x gives 1 which is simpler. So we have,
ˆ ˆ
g(x) = x f (x) = cos(x) x cos(x) dx = x sin(x) − sin(x) dx
Example 2 Evaluate
ˆ 4
xe−x dx.
0
ˆ 4 4 ˆ 4
xe−x dx = −xe−x − −e−x dx
0 0 0
4
−x −x
= −xe − e
g(x) = x f (x) = e−x 0
g ′ (x) = 1 F (x) = −e−x = −4e−4 − e−4 − 0 − e−0
= −5e−4 + 1
= 1 − 5e−4
Page 1 of 8
MATH 142 - Integration by Parts Joe Foster
Example 3 Evaluate
ˆ
x2 ex dx.
g(x) = x2 f (x) = ex
ˆ ˆ
x2 ex dx = x2 ex − 2 xex dx.
′ x
g (x) = 2x F (x) = e
It’s at this point we see that we still cannot integrate the integral on the write easily. This is okay. Sometimes we may
have to apply the integration by parts formula more than once!
ˆ ˆ
x2 ex dx = x2 ex − 2xex dx
ˆ
2 x x x
g1 (x) = x f1 (x) = ex = x e − 2 xe − e dx
g1′ (x) = 1 F1 (x) = ex
= x2 ex − 2xex + 2ex + C
= x2 − 2x + 2 ex + C
ˆ
The previous technique works for any integral of the form xn emx dx, where n is any positive integer and m is any integer.
What if n was negative? Then this case we would set g(x) = ex .
Example 4 In Example 3 we have to apply the Integration by Parts Formula multiple times. There is a convenient way
to “book-keep” our work. This is done by creating a table. Let’s see how by examining Example 3 again.
ˆ
x2 ex dx.
x2 + ex
2x − ex
2 + ex
0 ex
x2 − 2x + 2 ex + C
=
We have actually used the integration by parts formula, but we have just made our lives easier by condensing the work
into a neat table. This method is extremely useful when Integration by Parts needs to be used over and over again.
Page 2 of 8
MATH 142 - Integration by Parts Joe Foster
The next example exposes a potential flaw in always using the tabular method above. Sometimes applying the integration
by parts formula may never terminate, thus your table will get awfully big.
du = ex dx
ˆ
v = − cos(x)
= −ex cos(x) + ex sin(x) − ex sin(x) dx
(2) ˆ
Notice that now the integral we are interested in, ex sin(x) dx, appears on both the
u = ex dv = cos(x) left and right hand side of the equation. So, if we add this integral to both sides we
du = ex dx v = sin(x) get
ˆ
=⇒ 2 ex sin(x) dx = ex (− cos(x) + sin(x))
ex (sin(x) − cos(x))
ˆ
=⇒ ex sin(x) dx =
2
This “trick” comes up often when we are dealing with the product of two functions with “non-terminating” derivatives.
By this we mean that you can keep differentiating functions like ex and trig functions indefinitely and never reach
0. Polynomials on the other hand will eventually “terminate” and their nth derivative (where n is the degree of the
polynomial) is identically 0.
Page 3 of 8
MATH 142 - Integration by Parts Joe Foster
Practice Problems
Try some of the problems below. If you get stuck, don’t worry! There are hints on the next page! But do try without
looking at them first, chances are you won’t get hints on your exam.
ˆ √
2 √
ˆ
(ln(x))2
ˆ
1. t sin(2t) dt 9. dx 17. x3 ln( 3 x) dx
1 x3
ˆ ˆ ˆ
2
2. x cos(3x) dx 10. (ln(x))2 dx 18. t sec2 (2t) dt
ˆ ˆ ˆ
3. sin−1 (x) dx 11. 4x cos(2 − 3x) dx 19. e−θ cos(2θ) dθ
ˆ ˆ
4. p5 ln(p) dp 0
e2z cos(z/4) dz
ˆ
20.
12. (2 + 5x)ex/3 dx
6
ˆ 1 2
ln(x)
ˆ
2 −x
5. (x + 1)e dx
ˆ
13. 2
(t + 3t) sin(2t) dt 21. dx
0 1 x2
9
ln(y)
ˆ 1
π y
ˆ ˆ
6. √ dy 2 22. dy
4 y 14. x cos(4x) dx e2y
0 0
ˆ π ˆ ˆ 1/2
7. x3 cos(x) dx 15. 3 2
(4z − 9z + 7z + 3)e −z
dz 23. cos(x) ln(sin(x)) dx
0
0
√
ˆ 3 ˆ ˆ
7t
8. tan −1
(1/x) dx 16. 8te dt 24. x4 (ln(x))2 dx
1
Challenge Problems
ˆ ˆ ˆ
2
1. ln(x) dx 4. tan−1 (x) dx 7. t3 e−t dt
ˆ ˆ ˆ
2. t7 sin(2t4 ) dt 5. sin−1 (x) dx 8. x ln(1 + x) dx
4
√
ˆ ˆ ˆ
3. (2 − x)2 ln(4x) dx 6. cos( x) dx 9. sin(ln(x)) dx
1
Page 4 of 8
MATH 142 - Integration by Parts Joe Foster
Page 5 of 8
MATH 142 - Integration by Parts Joe Foster
Page 6 of 8
MATH 142 - Integration by Parts Joe Foster
1 1 1 1 1
ˆ ˆ
t sin(2t) dt = − t cos(2t) + cos(2t) dt = − t cos(2t) + sin(2t) + C = (sin(2t) − 2t cos(2t)) + C
2 2 2 4 4
1
3. Let g(x) = sin−1 (x) and f (x) = 1. So g ′ (x) = √ and F (x) = x.
1 − x2
1
Let u = 1 − x2 . So − du = x dx. Then,
2
x 1 1 √
ˆ ˆ ˆ p
−1 −1 −1
sin (x) dx = x sin (x) − √ dx = x sin (x) + √ du = x sin−1 (x) + u + C = x sin−1 (x) + 1 − x2 + C
1 − x2 2 u
1 1
4. Let g(p) = ln(p) and f (p) = p5 . So g ′ (p) = and F (p) = p6 . Then,
p 6
1 1 1 6 1 1 6
ˆ ˆ
p ln(p) dp = p6 ln(p) −
5
p5 dp = p ln(p) − p6 + C = p (6 ln(p) − 1) + C
6 6 6 36 36
6. Let g(y) = ln(y) and f (y) = y −1/2 . So g ′ (y) = y −1 and F (y) = 2y 1/2 . Then,
9 ˆ 9
ln(y) √ 9 √ √ 9
ˆ
√ dy = 2 y ln(y) − 2 y −1/2 dy = 2 y ln(y) − 4 y = 6 ln(9) − 12 − [4 ln(4) − 8]
4 y 4 4 4
27
= 4 ln(27) − 4 − 4 ln(4) = 4 ln −1
4
Page 7 of 8
MATH 142 - Integration by Parts Joe Foster
1
8. Let g(x) = tan−1 (1/x) and f (x) = 1. So g ′ (x) = − and F (x) = x.
x2 + 1
1
Let u = x2 + 1. So du = x dx. Then,
2
√ √ ˆ √3 √ ˆ x=√3
3
1 1 3 x 1 3 1 1
ˆ
tan−1 dx = x tan−1 (x) + dx = x tan−1 + du
x x 1 x2+1 x 1 2 u
1 1 x=1
√
x= 3 √
1 1 1 1 3
= x tan−1 + ln |u| = x tan−1 + ln(x2 + 1)
x 2 x=1 x 2 1
√
√
3 1 1
= 3 tan−1 + ln(4) − tan−1 (1) + ln(2)
3 2 2
√ π π 1
= 3 + ln(2) − − ln(2)
6 4 2
1 √
= (2 3 − 3)π + ln(64)
12
1 2 ln(x) 1
9. Let g1 (x) = (ln(x))2 and f1 (x) = 3
. So g1′ (x) = and F1 (x) = − 2 .
x x 2x
1 ′ 1 1
Let g2 (x) = ln(x) and f2 (x) = 3 . So g2 (x) = and F2 (x) = − 2 . Then,
x x 2x
2
(ln(x))2 2(ln(x))2 + 2 ln(x) + 1 2 2(ln(2))2 + 2 ln(2) + 1
0+0+1 1
ˆ
3 − 2(ln(2))2 − 2 ln(2)
dx = − 2
= − − − =
x 4x 16 4 16
1 1
2 ln(x)
10. Let g1 (x) = (ln(x))2 and f1 (x) = 1. So g1′ (x) = and F1 (x) = x.
x
1
Let g2 (x) = ln(x) and f2 (x) = 1. So g2′ (x) = and F2 (x) = x. Then,
x
ˆ ˆ ˆ
2 2 2
(ln(x)) dx = x(ln(x)) − 2 ln(x) dx = x(ln(x)) − 2 x ln(x) − 1 dx
Page 8 of 8