Integration by Parts
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, v du, is easier to evaluate. The
key to integration by parts is making the right choice for u and v. 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 u and what to assign to dv. Our goal is to make the integral easier. One thing to bear
in mind is that whichever term we let equal u 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,
ˆ ˆ
u=x dv = cos(x) dx x cos(x) dx = x sin(x) − sin(x) dx
Example 2 Evaluate
ˆ 4
xe−x dx.
0
ˆ 4 4
ˆ 4
−x −x
xe dx = −xe − −e−x dx
0 0 0
4
−x = −xe−x − e−x
u=x dv(x) = e dx 0
−4 −4
− 0 − e−0
du = dx v = −e−x = −4e − e
= −5e−4 + 1
= 1 − 5e−4
Page 1 of 7
MATH 142 - Integration by Parts Joe Foster
Example 3 Evaluate
ˆ
x2 ex dx.
ˆ ˆ
u = x2 dv = ex dx 2 x 2 x
x e dx = x e − 2 xex dx.
x
du = 2x dx v=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!
ˆ ˆ
2 x 2 x
x e dx = x e − 2 xex dx
ˆ
u=x dv = ex dx = x2 ex − 2 xex − ex dx
du = dx v = 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 u = 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.
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.
Page 2 of 7
MATH 142 - Integration by Parts Joe Foster
ˆ ˆ
(1)
ex sin(x) dx = −ex cos(x) + ex cos(x) dx
ˆ
u = ex dv = sin(x) x x x
= −e cos(x) + e sin(x) − e sin(x) dx
x
du = e dx v = − cos(x) ˆ
= −e cos(x) + e sin(x) − ex sin(x) dx
x x
(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 get
du = ex dx v = sin(x) ˆ
=⇒ 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. If you do enough of them however you’ll start to see a pattern in the answers.
Example 6 Evaluate
ˆ
e3x sin (4x) dx.
Page 3 of 7
MATH 142 - Integration by Parts Joe Foster
The last couple of examples we will look at are ones where the integrand doesn’t seem to look like a product in anyway.
The ‘trick’ here is that everything is multiplied by 1! This idea is very useful when dealing with integrals containing
logarithms and inverse trigonometric functions.
Example 7 Find
ˆ
ln(x) dx.
ˆ ˆ
ln(x) dx = x ln(x) − 1 dx
u = ln(x) dv = 1 dx
1 = x ln(x) − x + C
du = dx v=x
x = (ln(x) − 1) x + C
For inverse trigonometric functions, we will need to know the derivatives of inverse functions. You may recall this from
Calculus I when you studied the chain rule.
d d d −1 1
f f −1 (x) = x f 0 f −1 (x) f −1 (x) = 1
dx
=⇒ =⇒ f (x) = 0 −1
dx dx f (f )
Of course, when one is dealing with inverse functions it is important to be aware of the domain and ranges of the functions
you are working with.
Example 8 Calculate,
ˆ
arctan (x) dx.
ˆ ˆ
x
u = arctan(x) dv = 1 dx arctan(x) dx = x arctan(x) − dx
1 + x2
ˆ
1 1 1
du = 2
dx v=x = x arctan(x) − dw
sec (arctan(x)) 2 w
1 1
= dx w = 1 + x2 = x arctan(x) − ln |w| + C
1 + tan2 (arctan(x)) 2
1 1
= dx dw = 2x dx = x arctan(x) − ln |1 + x2 | + C
1 + x2 2
With integrals like this you can expect to be doing a u-substitution (or as we have it labelled above, a w-substitution) after
applying the integration by parts formula.
Page 4 of 7
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
ˆ ˆ ˆ
−1
3. sin (x) dx 11. 4x cos(2 − 3x) dx 19. e−θ cos(2θ) dθ
ˆ ˆ
ˆ 0
4. p5 ln(p) dp 20. e2z cos(z/4) dz
12. (2 + 5x)ex/3 dx
6
ˆ 1 ˆ ˆ 2
2 −x ln(x)
5. (x + 1)e dx 13. 2
(t + 3t) sin(2t) dt 21. dx
0 1 x2
ˆ 9 ˆ ˆ 1
ln(y) π y
6. √ dy 14. 2
x cos(4x) dx 22. dy
4 y 0 0 e2y
ˆ π ˆ ˆ 1/2
7. x3 cos(x) dx 15. (4z 3 − 9z 2 + 7z + 3)e−z dz 23. cos(x) ln(sin(x)) dx
0 0
ˆ e ˆ ˆ
ln(x) 7t
8. dx 16. 8te dt 24. x4 (ln(x))2 dx
1 x2
Challenge Problems
ˆ ˆ √ ˆ
3 2
1. 7
t sin(2t ) dt 4
4. arctan(1/x) dx 6. t3 e−t dt
ˆ 4
1
ˆ
2 7. x ln(1 + x) dx
2. (2 − x) ln(4x) dx
1
ˆ ˆ ˆ
√
3. arcsin(x) dx 5. cos( x) dx 8. sin(ln(x)) dx
Page 5 of 7
MATH 142 - Integration by Parts Joe Foster
Page 6 of 7
MATH 142 - Integration by Parts Joe Foster
Page 7 of 7