Professional Documents
Culture Documents
MIDTERM EXAMINATION
Lecturer:
Signature:
Signature:
Instructions:
Each student is allowed a scientific calculator and a maximum of two double-sided sheets of
reference material (size A4 or similar), stapled together and marked with their name and ID.
All other documents and electronic devices are forbidden.
x ( , );
2 2
y(0) = 1.
Question 3. (25 marks) Find the general solution of the differential equation
y 00 + 4y 0 + 4y = ex + x.
END.
SOLUTIONS:
Question 1. Let M (x, y) := cos x cos y y and let N (x, y) := x(sin y 1). The given differential
equation is rewritten as
M (x, y)dx + N (x, y)dy = 0.
Since
M
N
(x, y) = sin y 1 =
(x, y),
y
x
the differential equation is exact. Note that
0 = (cos x cos y y)dx + x(sin y 1)dy = d(sin x) + ( cos y)dx + xd( cos y) (xdy + ydx)
= d(sin x x cos y xy).
Thus the general solution is given by
sin x x cos y xy = C.
Question 2. The given equation is rewritten as
sin x
y = cos x,
x ( , ).
y0
cos x
2 2
The integrating factor is given by I(x) = cos x. Thus, we get
(cos x)y 0 (sin x)y = cos2 x.
This gives
d
((cos x)y) = cos2 x.
dx
Therefore, the general solution is
1
1
1
(C + x + sin 2x).
cos x
2
4
1
1
Since y(0) = 1, the particular solution is y(x) = cos x (1 + 2 x + 41 sin 2x).
Question 3.
The general solution of the corresponding homogeneous equation y 00 + 4y 0 + 4y = 0 is
y(x) =