Final Practice Sol
Final Practice Sol
Problem 1.
Z Z
−x 2 1 1
x
e2x + e−2x + 2 dx = e2x − e−2x + 2x + C.
e +e dx =
2 2
Z π/2
3 cos2 x sin xdx
0
Z
For an integral cosn x sinm xdx, where m is odd, we can apply the substitution
u = cos x, du = − sin xdx. We have:
Z π/2 Z 0 Z 1
1
3 cos2 x sin xdx = −3u2 du = 3u2 du = u3 0
= 1.
0 1 0
then: Z π/2
π/2
3 cos2 x sin xdx = − cos3 x 0
= 1.
0
Z π
cos2 x + cos2 (2x) dx
0
1 + cos(2x)
Recall that cos2 x = . Therefore:
2
Z π Z π
2 2
1 + cos(2x) 1 + cos(4x)
cos x + cos (2x) dx = + dx =
0 0 2 2
π π
π sin(2x) sin(4x)
x 0
+ + = π.
4 0 8 0
1
Z 1
3
x2 ex dx
0
2−x
Z
dx
x(x + 1)
Partial fraction decomposition:
2−x A B
= +
x(x + 1) x x+1
or:
2 − x = A(x + 1) + Bx
Setting x = 0, we obtain 2 − 0 = A(1 + 0) + B0; i.e., A = 2. Setting x = −1, we obtain
2 − (−1) = A(1 − 1) + B(−1); i.e., B = −3. We have:
2−x 2 3
= −
x(x + 1) x x+1
and
2−x
Z Z Z
2 3
dx = dx − dx = 2 ln |x| − 3 ln |x + 1| + C.
x(x + 1) x x+1
Z
ln(x2 + x)dx
Observe that
Z Z Z Z
2
ln(x + x)dx = ln x(x + 1) dx = ln(x)dx + ln(x + 1)dx.
Z x > 0.)
(We assumed that
Recall that ln(x)dx = x ln x − x + C. Indeed, integrating by parts:
Z Z Z
0
ln(x)dx = x ln x − x(ln x) dx = x ln x − 1dx = x ln x − x + C.
2
Substituting u = x + 1, we obtain
Z Z
ln(x + 1)dx = ln udu = u ln u − u + C = (x + 1) ln(x + 1) − (x + 1) + C.
Therefore,
Z Z
ln(x)dx + ln(x + 1)dx = x ln x − x + (x + 1) ln(x + 1) − (x + 1) + C.
Problem 2. Let R denote the region in the plane bounded by the 4 curves x = 0,
x = π, y = 0, and y = sin x + 1.
(a) Compute the area of R.
(b) Compute the volume when R is rotated around the x-axis.
Problem 3. A particle is moving along the x-axis; its speed at any time t ≥ 0 is given
in terms of t by the formula t2 et .
Compute the total distance traveled by the particle during the time interval 0 ≤ t ≤ 2.
Z 2
Solution. The total distance is t2 et dt. The integral is computed using integration by
0
parts: Z Z Z
t2 et dt = t2 et − 2tet dt = t2 et − 2tet + 2et dt = t2 et − 2tet + 2et .
Therefore,
Z 2 Z 2
2 t 2 t t t 2 t t t
t e dt = t e − 2te + 2e dt = t e − 2te + 2e = 2e2 − 2.
0 0
3
Problem 4. For each of the following improper integrals, determine whether it con-
verges or not. If the integral converges, then determine its value.
Z 2
dx
−1 x3
Z ∞
x
dx
0 x2 + 1
Z ∞
x
dx
0 (x2 + 1)2
Z ∞
sin2 xdx
0
Z 2 Z 2 Z 0 Z 2
dx dx dx dx
Solution. The integral diverges because = + and
−1 x3 −1 x3 −1 x3 0 x3
0 t t
−1 −1 −1
Z Z
dx dx
= lim = lim = lim −
−1 x3 t→0− −1 x3 t→0− 2x2 −1 t→0− 2t2 2(−1)2
diverges.
Substituting u = x2 + 1, we obtain:
Z Z
x 1 du 1 1
dx = = ln |u| = ln |x2 + 1|.
x2 + 1 2 u 2 2
Therefore,
Z ∞ L
x 1
2
dx = lim ln |x2 + 1| =∞
0 x +1 L→∞ 2 0
diverges.
Substituting u = x2 + 1, we obtain:
−1 −1
Z Z
x 1 du
2 2
dx = 2
= = .
(x + 1) 2 u 2u 2(x2 + 1)
Therefore,
∞ L
−1
Z
x
dx = lim = 1/2.
0 x2 + 1 L→∞ 2(x2 + 1) 0
4
Since
1 − cos(2x) x − sin(2x)/2
Z Z
2
sin xdx = dx = + C,
2 2
we have
∞ L
x − sin(2x)/2 L − sin(2L)/2
Z
sin2 xdx = lim = lim =∞
0 L→∞ 2 0 L→∞ 2
diverges.
Problem 5. A spring has a natural length of 10 cm. It takes 1 J to stretch the spring
from 10 cm to 15 cm. How much work would it take to stretch the spring from 5 cm to 20
cm?
2
hence k = . We need
25
20−10 10 10
x2
Z Z
2 2
xdx = xdx = =3 J
5−10 25 −5 25 25 −5
3 − n2 e1−n
a) lim , b) lim
n→∞ n3 − n(n2 − 1) n→∞ 1 + n
(1 + n!)2 2n
c) lim , d) lim − 2n
n→∞ (1 − n!)2 n→∞ 1 + 2−n
r
n + 3n 5n!
e) lim , f) lim .
n→∞ 3n + 5 n→∞ 2n +1
Solution.
3 − n2 3 − n2
a) lim = lim = −∞ diverges
n→∞ n3 2
− n(n − 1) n→∞ n
5
e1−n e
b) lim = lim =0
n→∞ 1 + n n→∞ (1 + n)en
1
2
(1 + n!)2 n! + 1
c) lim = lim =1
n→∞ (1 − n!)2 n→∞ 1 − 1 2
n!
2n 2n − 2n (1 + 2−n )
−1
d) lim − 2n = lim = lim = −1
n→∞ 1 + 2−n n→∞ 1 + 2−n n→∞ 1 + 2−n
r s r
n + 3n n/3n + 1 0+1
e) lim = lim = =1
n→∞ 3n + 5 n→∞ 1 + 5/3n 1+0
5n!
f) lim =∞ diverges
n→∞ 2n +1
∞ ∞
X (−1)n X 1
We can compare n
to .
0.5 − 2 2n
n=1 n=1
∞
X 2n − n5
2)
n!
n=10
6
∞
X nπ + 2
3)
n ln n + 1
n=1
∞ ∞ ∞
X nπ + 2 X nπ−1 X n2.14... n2.14...
We can compare to = . Since the sequence =
n ln n + 1 ln n ln n ln n
n=1 n=1 n=1
∞ diverges, the series diverges as well.
∞ ∞
(−1)n
X
n 1 1 X
4) (−1) n − √ = √
n n+ n n+1
n=1 n=1
∞ ∞
X 3−n X 1
5) =
n n 3n
n=1 n=1
7
Problem 8. Consider the following Maclaurin series
∞
X (−1)n+1 xn x2 x3 x4 x5
ln(1 + x) = =x− + − + − ....
n 2 3 4 5
n=1
(a) Write the Maclaurin series for f (x) = ln(1 + 2x) and for g(x) = f 0 (x).
(b) What is the radius of convergence for the series in (a)?
Solution.
∞ ∞
X (−1)n+1 (2x)n X (−1)n+1 2n
f (x) = ln(1 + 2x) = = xn =
n n
n=1 n=1
22 2 23 3 24 4 25 5
2x − x + x − x + x − ...,
2 3 4 5
X∞
g(x) = f 0 (x) = (−1)n+1 2n xn−1 = 2 − 22 x + 23 x2 − . . .
n=1
1
The radius of convergence for f (x) and g(x) is – it can be easily computed using the
2
ratio test.
Solution.
∞ 2n+1 ∞
X
n (x/5)
X x2n+2
f (x) = x sin(x/5) = x (−1) = (−1)n .
(2n + 1)! 52n+1 (2n + 1)!
n=0 n=0
∞ ∞
x2n+2 x2n+3
Z X X
n
g(x) = (−1) 2n+1 dx = (−1)n + C.
5 (2n + 1)! (2n + 3)52n+1 (2n + 1)!
n=0 n=0
The radius of convergence of f (x) and g(x) is +∞ because of the (2n + 1)! in the
denominator. The interval of convergence is I = (−∞, ∞).
8
Problem 10. Find the general solutions to the following differential equations
dy
a) = 2 cos(2t + 1)y
dt
b) x2 y 0 = (x + 1)y
c) y 0 = ex+y
d) y 0 = x2 e y
Solve the following initial-value problems with the initial condition y(0) = 1
e) y0 = y + 1
f) y 0 = xy
ln |y| = sin(2t + 1) + C
y = ±esin(2t+1)+C = C2 esin(2t+1) ,
where C2 = ±eC .
Z Z
dy x+1
b) = dx
y x2
Z Z
x+1 1 1
Note that dx = + dx = ln |x| − 1/x + C. Therefore,
x2 x x2
−e−y = ex + C
y = − ln (−ex − C)
Z Z
−y
d) e dy = x2 dx
9
−e−y = x3 /3 + C
y = − ln −x3 /3 − C
Z Z
dy
e) = dx
y+1
ln |y + 1| = x + C
y = ±ex+C − 1 = C2 ex − 1,
where C2 = ±eC . The initial condition y(0) = 1 implies 1 = C2 e0 − 1; i.e. C2 = 2. The
answer:
y = 2ex − 1.
Z Z
dy
f) = xdx
y
ln |y| = x2 /2 + C
2 /2+C 2 /2
y = ±ex = C2 ex ,
C
where C2 = ±e . The initial condition y(0) = 1 implies 1 = C2 . The answer:
2 /2
y = ex .
10
Problem 11. Match the differential equations with corresponding direction vector
fields. No explanation is required in this problem.
y 0 = 2x − y, y 0 = −2, y0 = 1
1) y 0 = 2x − y 2) y 0 = −2
5 5
2 2
0 0
−2 −2
−5 −5
−4 −2 0 2 4 −4 −2 0 2 4
11
3) y 0 = |x| 4) y0 = 1
5 5
2 2
0 0
−2 −2
−5 −5
−4 −2 0 2 4 −4 −2 0 2 4
5) y 0 = x2 − y 2 6) y 0 = sin x cos x
5 5
2 2
0 0
−2 −2
−5 −5
−4 −2 0 2 4 −4 −2 0 2 4
12
7) y 0 = sin y 8) y 0 = y(3 − y)
5 5
2 2
0 0
−2 −2
−5 −5
−4 −2 0 2 4 −4 −2 0 2 4
Problem 12. Find the general solutions to the following second order differential
equations
a) y 00 − 4y 0 + 4y = 0
13
b) y 00 − 13y 0 + 42y = 0
c) y 00 + 9y = 0
14