Practice Problems: Integration by Parts (Solutions)
Practice Problems: Integration by Parts (Solutions)
The following are solutions to the Integration by Parts practice problems posted November 9.
1. ex sin xdx
R
Now we need to use integration by parts on the second integral. Let u = cos x, dv = ex dx.
Then du = − sin xdx and v = ex . Then
Z Z
ex sin xdx = ex sin x − ex cos x − ex sin xdx
The right integral is the same as the one we started with! Move it over:
Z
2 ex sin xdx = ex sin x − ex cos x
And divide by 2: Z
1 x
ex sin xdx = (e sin x − ex cos x)
2
This is our final solution, so make sure to add your constant C:
Z
1
ex sin xdx = (ex sin x − ex cos x) + C
2
(sin−1 x)2 dx
R
2.
sin−1 x
Solution: Let u = (sin−1 x)2 , dv = dx. Then du = 2√
1−x2
dx, v = x. Then
2x sin−1 x
Z Z
(sin−1 x)2 dx = x(sin−1 x)2 − √ dx
1 − x2
2x sin−1 x
Z Z
√ dx = 2w sin wdw
1 − x2
1
We can use integration by parts on this last integral by letting u = 2w and dv = sin wdw.
Tabular method makes it rather quick:
Z
2w sin wdw = 2w cos w + 2 sin w
OR you can look at the triangle formed by our substitution for w. Since x =√sin w then the
hypotenuse will be 1, the opposite side will be x and the adjacent side will be 1 − x2 . Then
Z p
2w sin wdw = 2 1 − x2 sin−1 x + 2x
Either of these solutions is fine. So then our integral will look like either one of the solutions
below:
Z
(sin−1 x)2 dx = x(sin−1 x)2 − (2 sin−1 x cos (sin−1 x) + 2 sin (sin−1 x)) + C
Z p
(sin−1 x)2 dx = x(sin−1 x)2 − (2 1 − x2 sin−1 x + 2x) + C
x tan2 xdx
R
3.
Solution: Use the identity tan2 x = sec2 x − 1:
Z Z Z Z
2 2 2
x tan xdx = x(sec x − 1)dx = x sec xdx − xdx
The last integral is no problemo. The first integral we need to use integration by parts. Let
u = x, dv = sec2 x. Then du = dx, v = tan x, so:
Z Z
2
x sec xdx = x tan x − tan xdx
sin x
R R
You can rewrite the last integral as cos x dx and use the substitution w = cos x. tan xdx =
− ln | cos x|, so: Z
x sec2 xdx = x tan x + ln | cos x|
2
R1
4. 0
t cosh tdt
Solution: This is quick with tabular method. Let u = t, dv = cosh t:
Z 1 1
t cosh tdt = t sinh t − cosh t = sinh(1) − cosh(1) + cosh(0)
0 0
You can leave your answer like this. If you want to evaluate it further, remember that
ex − e−x ex + e−x
sinh x = and cosh x = . Then we see that sinh(1) = 12 (e1 − e−1 ), cosh(1) =
2 2
1 1 −1
2 (e + e ), and cosh 0 = 1. Then
Z 1
1
t cosh tdt = sinh(1) − cosh(1) + cosh(0) = 1 −
0 e
z 3 ez dx
R
5.
Solution: Tabular is the way to go with this baby. Let u = z 3 , dv = ez dz. Then
Z
z 3 ez dx = z 3 ez − 3z 2 ez + 6zez − 6ez + C = ez (z 3 − 3z 2 + 6z − 6) + C
R √3
6. 1
arctan(1/x)dx
−dx
Solution: Let u = arctan(1/x), dv = dx. Then du = x2 +1 (using chain rule), v = x:
√ √
Z 3 √3 Z 3
x
arctan(1/x)dx = x arctan(1/x) + dx
1 1 1 x2 +1
R
7. cos x ln (sin x)dx
Solution: We first need to do a substitution. Let w = sin x, then dw = cos xdx:
Z Z
cos x ln (sin x)dx = ln wdw
3
Next use integration by parts with u = ln w, dv = dw. Then du = w1 dw, v = w:
Z Z
ln wdw = w ln w − dw = w ln w − w
R 2 (ln x)2
8. 1
dx
x3
You can do this problem a couple different ways. I will show you two solutions.
Solution I: First do the substitution w = ln x. Then dw = x1 dx and x = ew . Then
2 ln 2 ln 2
(ln x)2 w2
Z Z Z
dx = dw = w2 e−2w dw
1 x3 0 e2w 0
4
R √
9. cos xdx
√ 1 √
Solution: First do the substitution w = x. Then dw = √ dx ⇒ 2 xdw = dx ⇒ 2wdw =
2 x
dx:
√
Z Z
cos xdx = 2w cos wdw
R √π
10. √ θ3 cos(θ2 )dθ
π/2
1 π
Z π
1 1 π
w cos wdw = (w sin w + cos w) =− −
2 π/2 2 π/2 2 4
R
11. x ln(1 + x)dx
Solution: Use the substitution w = 1 + x. Then dw = dx and x = w − 1:
Z Z
x ln(1 + x)dx = (w − 1) ln wdw
1
Next use integration by parts with u = ln w, dv = (w − 1)dw. Then du = dw and v =
w
1 2
w −w :
2 Z Z
1 2 1
(w − 1) ln wdw = w − w ln w − w − 1 dw
2 2
5
The right integral is straightforward, so
Z
1 2 1
(w − 1) ln wdw = w − w ln w − w2 + w + C
2 4
Next, plug back in w:
Z
1 1
x ln(1 + x)dx = (1 + x)2 − (1 + x) ln (1 + x) − (1 + x)2 + 1 + x + C
2 4
This answer is fine. You can simplify it a bit more for kicks and giggles:
Z
1 1 1
x ln(1 + x)dx = (x2 − 1) ln (1 + x) − x2 + x + C
2 4 2
R
12. sin(ln x)dx
1
Solution: Use the substitution w = ln x. Then dw = dx ⇒ xdw = dx ⇒ ew dw = dx since
x
x = ew from our substitution. Then we have:
Z Z
sin(ln x)dx = ew sin wdw
√
x3 1 + x2 dx
R
13.
You can do this problem a couple different ways. I will show you two solutions.
Solution I: You can actually do this problem without using integration by parts. Use the
substitution w = 1 + x2 . Then dw = 2xdx and x2 = w − 1:
√
Z Z Z Z
p p 1 1
x3 1 + x2 dx = x · x2 1 + x2 dx = (w − 1) wdw = (w3/2 − w1/2 )dw
2 2
1 5/2 1 3/2 1 1
= w − w + C = (1 + x2 )5/2 − (1 + x2 )3/2 + C
5 3 5 3
Solution II: You can use integration by parts as well, but it is much more complicated. Rewrite
the integral: Z Z
p 1 2 p
x3 1 + x2 dx = x · 2x 1 + x2 dx
2
6
√
Let u = 12 x2 , dv = 2x 1 + x2 dx. Then du = xdx, v = 23 (1 + x2 )3/2 (using a substitution on
dv): Z Z
1 2 p 1 2
x · 2x 1 + x2 dx = x2 (1 + x2 )3/2 − x(1 + x2 )3/2 dx
2 3 3
You can use a substitution on the last integral:
Z
1 2 p 1 2
x · 2x 1 + x2 dx = x2 (1 + x2 )3/2 − (1 + x2 )5/2 + C
2 3 15
15. Use the method of cylindrical shells to the find the volume generated by rotating the region
bounded by the given curves about the specified axis: y = e−x , y = 0, x = −1, x = 0 about
x = 1.
Solution: Draw a picture of what is happening. Recall that the volume for a cylinder is
V = 2πRH. In this scenario, R = 1 − x and H = e−x (since H is the top function minus the
bottom function). x is going from -1 to 0:
Z 0
V = 2π(1 − x)e−x dx
−1