Math 334 (A1) Spring 2009 Introduction To Differential Equations Solutions To Midterm Examination
Math 334 (A1) Spring 2009 Introduction To Differential Equations Solutions To Midterm Examination
where A is a constant.
(a) Find the value of the constant A such that the differential equation is exact.
(b) Solve the differential equation when A has the value found above.
Solution:
where
M (x, y) = x2 + 3xy and N (x, y) = Ax2 + 4y.
In order for this equation to be exact, we need
∂M ∂N
(x, y) = 3x = 2Ax = (x, y),
∂y ∂x
3
so the equation is exact if and only if A = .
2
3
(b) If A = , the differential equation
2
3
(x2 + 3xy )dx + ( x2 + 4y)dy = 0
| {z } |2 {z }
M (x,y)
N (x,y)
∂F ∂F 3
M (x, y) = (x, y) = x2 + 3xy and N (x, y) = (x, y) = x2 + 4y.
∂x ∂y 2
y(1) = 0.
that is, Z Z
dx
sec θ dθ = ,
x
so that p
log |ν + ν 2 + 1| = log |x| + log |c|,
that is, p
ν+ ν 2 + 1 = cx.
y
Replacing ν by , the general solution of the differential equation is
x
r
y y2
+ + 1 = cx,
x x2
that is, p
y+ x2 + y 2 = cx2 .
Finally, applying the initial condition that y = 0 when x = 1, we get c = 1, and the solution is
p
y + x2 + y 2 = x2 ,
that is,
1 2
y= x −1 .
2
An integrating factor is
Z Z
4x dx
exp P dx = exp = exp 2 log(x2 + 1) = (x2 + 1)2 ,
x2 + 1
x4 x2
(x2 + 1)2 y = + + c,
4 2
where c is an arbitrary constant.
25 = 4 + 2 + c,
x4 x2
(x2 + 1)2 y = + + 19.
4 2
Question 4. Find a particular solution to the nonhomogeneous equation
y 00 + 2y 0 + y = 3xe−x
using the method of undertermined coefficients and then write the general solution.
Question 5. Use the method of variation of parameters to find a particular solution to the nonhomogeneous
equation
x2 y 00 − 4xy 0 + 6y = x4 sin x
on the interval 0 < x < ∞.
with Wronskian 2
x x3
W [φ1 , φ2 ](x) =
= 3x4 − 2x4 = x4
2x 3x2
which is nonzero on the interval 0 < x < ∞.
and Z
v2 (x) = sin x dx = − cos x.