Mock Midterm 2 Solutions
Mock Midterm 2 Solutions
Fall 2024
Mock Midterm 2
Name:
Date: 10/21
Problem 1. (Section 1.5) Find the general solution to each of the following first order equations
∂M ∂N
= −6x =
∂y ∂x
so the equation is exact and we can solve. Since we know the potential function satisfies
∂Φ
∂x = M, we can set up an integral to solve for Φ(x, y):
Z
∂Φ
= M =⇒ Φ(x, y) = (3x2 − 6xy) dx = x3 − 3x2 y + g(y),
∂x
∂Φ
for some function g(y) that is yet to be determined. Now since ∂y = N we can differentiate
with respect to y and compare to N :
∂Φ
−3x2 + 2y = N = = −3x2 + g ′ (y)
∂y
Φ(x, y) = x3 − 3x2 y + y 2 ,
x3 − 3x2 y + y 2 = c,
v = y 1−α = y −1 =⇒ y = v −1 , y ′ = −v −2 · v ′
−v −2 · v ′ − 3v −1 = 6v −2
v ′ + 3v = −6
To solve we integrate both sides. For the left-hand side we use the product rule:
Z
(e3x v)′ = e3x v ′ + 3e3x v =⇒ (e3x v ′ + 3e3x v) dx = e3x v.
We have V (0) = 32 · 900 = 600, cin = 0 (since pure water is pumped in), rin = 13, rout = 8,
and the initial amount is A(0) = 0.95 · V (0) = 0.95 · 600 = 570 gallons of ethanol.
Firstly, we will find the equation for the volume V (t):
dV
= rin − rout = 13 − 8 = 5 =⇒ V = 5t + C
dt
Plugging in the initial condition V (0) = 600 gives that V (t) = 5t + 600. Similarly, the equation for
the change in the amount is given by
dA dA
= cin rin − cout rout ⇐⇒ + cout rout = cin rin .
dt dt
Now the concentration of the outflow depends on time, and is given by the equation:
A(t) A(t)
cout (t) = = .
V (t) 5t + 600
Hence we have
dA dA rout
+ cout rout = cin rin ⇐⇒ + A(t) = cin rin
dt dt V (t)
Finally, plugging in all of the values gives the initial value problem
dA 8
+ · A = 0, A(0) = 570.
dt 5t + 600
Problem 3. (Section 2.4 & 2.6) Consider a mass-spring system with m = 3, k = 40/3, c = 12 and
no external force.
(a) If the system is set into motion subject to the initial conditions x(0) = 2 and x′ (0) = −6, the
equation of motion is
2 2
x(t) = e−2t 2 cos t − 3 sin t .
3 3
Express this solution in amplitude-phase form.
To put into amplitude-phase form x(t) = Ae−2t cos 32 t − ϕ , where A cos(ϕ) = 2 and A sin(ϕ) =
−3, hence q √ √
A = c21 + c22 = 9 + 4 = 13.
√2 −3
Then the phase ϕ satisfies cos(ϕ) = 13
and sin(ϕ) = √
13
so we calculate
−3
ϕ = arctan ∼ −0.983
2
−3
We add π to make ϕ positive: ϕ = arctan 2 + π ∼ 2.159. This value satisfies
−3 2
cos(ϕ) = √ , sin(ϕ) = √ ,
13 13
(b) If the damping is removed (i.e. c = 0) and the system were subject to an external force
f (t) = 9 cos(ω0 t), what value of the forcing frequency ω0 would case resonance?
To get resonance we would need ω0 = ω the natural frequency. This is given by
r r √
k 40 2 10
ω= = = .
m 9 3
−1 = c =⇒ c = −1
y ′′ − 2y ′ + y = 0
yc (x) = c1 ex + c2 xex .
ex
Now we apply the formula for variaition of parameters with y1 = ex , y2 = xex , and f = x. Firstly,
the Wronskian is
We have
ex
−y2 · f −xex ·
u′1 = = x
= −1
W (y1 , y2 ) e2x
then integrating with respect to x we find
Z Z
′
u1 = u1 dx = −1 dx = −x.
For u2 have x
y1 · f ex · ex 1
u′2 = = 2x
=
W (y1 , y2 ) e x
then integrating with respect to x we find
Z Z
′ 1
u2 = u2 dx = dx = ln |x|.
x
y ′′ + 6y ′ + 9 = 86e3x .
y ′′ + 6y ′ + 9y = 0.
Then we have
86e3x = 9Ae3x + 18Ae3x + 9Ae3x ⇐⇒ 86e3x = 36Ae3x
86 43 43 3x
so that A = 26 = 18 and the particular solution is yp (x) = 18 e . The general solution is
43 3x
y(x) = e + c1 e−3x + c2 xe−3x .
18