Name:
Page: 2 3 4 5 6 7 8 11 12 13 14 Total
Points: 6 6 8 4 4 7 8 4 3 5 5 60
Score:
1. (3 points) Is xy 00 + yy 0 + x2 y = 0 a second order linear differential equation? Explain
why or why not.
2. (3 points) A model for the populations (in thousands) of two species x(t) and y(t) is
given below (
dx
dt
= −x + xy
dy
dt
= y − xy
One of the species serves as the main food source for the other species. Which is the
predator and which is the prey and why? What are the equilibrium solutions?
dy
Solution: y is the prey since the −xy term in suggests that y will decrease if
dt
there are a lot of meetings between the xs and the ys.
dx
Similarly, the +xy term in suggests that x will increase if there are a lot of the
dt
meetings, so x is the predator.
The equilibrium solutions occur when both derivatives are zero, i.e.:
(
0 = −x + xy
0 = y − xy
Page 2
∞
X
3. (3 points) Determine whether e1/n converges or diverges.
n=1
Solution:
e1/n → e0 = 1 6= 0
X
so e1/n diverges by the divergence test.
Z 2
4. (3 points) Consider the definite integral cos x dx. Find an n ∈ N such that the
0
1
midpoint rule with n bars would give an approximation within of the true value
300 00
of the integral. (Recall the midpoint rule error bound formula: If |f (x)| ≤ K for all
K(b − a)3
x ∈ [a, b], then |EM | ≤ )
24n2
Solution: In this case f (x) = cos x, and so |f 00 (x)| = | − cos x| ≤ 1 (for every x).
Thus,
1(2 − 0)3
|EM | ≤
24n2
1
≤ 2
3n
1 1
Thus, all we need to do is ensure that 2
≤ . This happens if n ≥ 10, so we
3n 300
may choose n = 10.
Page 3
∞
X (x − 1)n
5. (4 points) For which x does converge?
n=1
n2n
Solution:
r2 − 2r + 2 = 0
p
2± 4 − 4(1)(2)
r=
2
=1±i
y = ex (c1 cos x + c2 sin x)
Page 4
−x2 − 3
Z
7. (4 points) Evaluate dx.
(x2 + 1)(x − 1)
−x2 − 3 Ax + B C
2
= 2 +
(x + 1)(x − 1) x +1 x−1
−x − 3 = (Ax + B)(x − 1) + C(x2 + 1)
2
−x2 − 3
Z Z
x+1 2
2
dx = 2
− dx
(x + 1)(x − 1) x +1 x−1
Z
x 1 2
= + − dx
x2 + 1 x2 + 1 x − 1
1
= ln(x2 + 1) + 2 tan−1 (x) − 2 ln(x − 1) + C
2
Page 5
8. (4 points) Solve the differential equation y 00 − 2y 0 + y = ex .
Solution:
r2 − 2r + 1 = 0
(r − 1)2 = 0
yc = c1 ex + c2 xex
= 2Aex
1 1
This is supposed to equal ex , so we get A = . Thus yp = x2 ex is a particular
2 2
solution. The general solution is then given by
1
y = yc + yp = c1 ex + c2 xex + x2 ex
2
Page 6
1
9. (3 points) Express p as a power series. Your answer should make clear what
(x2 + 1)3
n
the coefficient of x is.
Solution:
3 − 3 (− 3 − 1) 2 2 − 23 (− 32 − 1)(− 32 − 2) 2 3
(x2 + 1)−3/2 = 1 − x2 + 2 2 (x ) + (x ) + · · ·
2 2! 3!
3 − 3 (− 5 ) − 3 (− 5 )(− 72 ) 6
= 1 − x2 + 2 2 x4 + 2 2 x + ···
2 2! 3!
∞
3 2 X 3 · 5 · · · (2n + 1) 2n
=1− x + (−1)n x
2 n=2
n!2n
10. (4 points) Is it possible that two distinct linearly dependent functions may be solutions
of the same homogenous second order linear differential equation? If so, give an example
demonstrating it’s possible. If not, explain why not.
Solution: Yes, it’s possible. Consider the homogenous second order linear differen-
tial equation y 00 − 2y 0 + y = 0. The auxiliary equation is r2 − 2r + 1 = (r − 1)2 = 0,
and so the general solution is y = c1 ex + c2 xex . Then 2ex and ex are both solutions,
and they are linearly dependent.
Page 7
11. (4 points) Solve the differential equation y 0 + y 2 = 0.
Solution:
y0 = −y 2
dy
= −1 dx (assuming y 6= 0)
y2
1
− = −x + C
y
1
=x+C
y
1
y=
x+C
Note that y = 0 is also a solution, so the general solution is
(
y=0
1
y = x+C (C ∈ R)
12. (4 points) For which natural numbers n is y = sin x a solution to y (n+2) + y (n+1) + y (n) =
cos x?
Solution:
The derivatives repeat in cycles of four. So we just need to check four different cases.
Case n = 0. Here we get
so it works.
Case n = 1. Here we get
Page 8
so it doesn’t work.
Case n = 2. Here we get
so it doesn’t work.
Finally, Case n = 3. Here we get
so it doesn’t work.
In conclusion, it works for n = 0, 4, 8, 12, . . ..
Page 9
13. ^
¨ Happy Friday the Thirteenth! (This is a bonus problem, worth 1 bonus point) Find
a continuous, positive function defined on [1, ∞) such that
Z ∞ ∞
X
f (x) dx = f (n)
1 n=1
Solution: (I’m sure there are many possible ways to answer this problem.) Since
we know how to add them up, it’s reasonable to try a geometric series, say
∞ n 1
X 1 2
= 1 =1
n=1
2 1− 2
x
1
If we let f (x) = for x ∈ [2, ∞) and x = 1, then our task just becomes to define
2 R∞
f for x ∈ (1, 2) so that f is continous and positive and 1 f (x) dx = 1. Note that
Z ∞ x t
1 1 1
dx = lim · x
2 2 t→∞ ln 1 2 2
2
−1
=
ln 12 22
1
=
4 ln 2
1
Since < 1, our task is still possible. We just need to define a function f on [1, 2]
4 ln 2
R2 1 1
such that f (1) = 21 , f (2) = 41 , and 1 f (x) dx = 1 − 4 ln1 2 . Since 1 − > , it will
4 ln 2 2
be possible to find some height y (greater than 1/2) such that the trapezoid formed
by the points (1, 0.5), (1.25, y), (1.75, y), (2, 0.25) and the x-axis has area 1 − 4 ln1 2 .
29 1
Finding this y just involves solving a linear equation; it turns out y = − .
24 3 ln 2
The function f can then be defined on [1, 2] just so it agrees with the upper sides of
this trapezoid.
Page 10
14. (4 points) Solve y 00 − xy 0 − y = 0, y(0) = 1, y 0 (0) = 0. Express your final answer as an
elementary function.
∞
X
Solution: We guess that a solution may be found of the form y = cn xn . Then
n=0
from the initial conditions, we get that c0 = 1 and c1 = 0.
∞
X ∞
X ∞
X
00 0 n n
y − xy − y = (n + 2)(n + 1)cn+2 x − ncn x − cn x n
n=0 n=1 n=0
∞
X
= 2c2 − c0 + [(n + 2)(n + 1)cn+2 − (n + 1)cn ] xn
n=1
=0
c0
Thus, c2 = 2
= 21 , and cn+2 = cn
n+2
for n > 0. Calculating the first few cn we get:
c1
c3 = =0
3
c2 1
c4 = =
4 2·4
c5 = 0
1
c6 =
2·4·6
...
1
We see that c2n = n!2n
, while the odd coefficents are 0. We get
∞
X 1 2n
y= n
x
n=0
n!2
∞ n
X (x2 /2)
=
n=0
n!
x2 /2
=e
Page 11
Z 1/2
2 + sin x
15. (3 points) Find the value of if it converges. If it diverges, show why.
0 x ln x
Page 12
16. (5 points) Solve the differential equation y 0 − (tan x)y = cos x where x ∈ (−π/2, π/2).
P (x) = − tan x
R
− tan x dx
I(x) = e
= e− ln | sec x|
= cos x
(y cos x)0 = y 0 cos x − y sin x
= cos x(y 0 − (tan x)y)
= cos2 x
Z
y cos x = cos2 x dx
Z
1
= (1 + cos(2x)) dx
2
1 1
= x + sin(2x) + C
2 4
2x + sin(2x) + C
y= (C ∈ R)
4 cos x
Page 13
17. (5 points) Solve the differential equation y 00 + y = ecos x . Antiderivatives should be
simplified where possible.
r2 + 1 = 0
r = ±i
yc = c1 cos x + c2 sin x
Now we find a particular solution using the method of variation of paramters. Let
y1 = cos x and y2 = sin x. Then y10 = − sin x and y20 = cos x, and y10 y2 − y1 y20 =
− sin x(sin x) − cos x(cos x) = −1. Then
Z
1 y2 G
u1 =
a −1
Z
= − sin xecos x dx
= ecos x
Z
1 y1 G
u2 = −
a −1
Z
= cos xecos x
y = yc + yp
Z
cos x
= c1 cos x + c2 sin x + cos xe + sin x cos xecos x dx
Page 14