Nonhomogeneous Second Order Linear Odes
Nonhomogeneous Second Order Linear Odes
y 00 + p(x)y 0 + q(x)y = 0.
We have:
φ(x) = c1 y1 (x) + c2 y2 (x) + yp (x).
I Let
yp (x) = v1 (x)y1 (x) + v2 (x)y2 (x)
.
I Then, choose these functions so that is a solution of
L(y ) = r (x).
y = c1 y1 + c2 y2 + yp .
Example 1
Find a particular solution of y 00 + y = cosec x.
I General solution of associated homogeneous eq i.e y 00 + y = 0
is y = c1 sin x + c2 cos x.
I Wronskian W (y1 , y2 ) equals:
sin x cos x
= −1.
cos x − sin x
I Also,
Z Z
y2 r (x) cos x cosec x
v1 = − dx = − dx = log | sin x|,
W (y1 , y2 ) −1
Z Z
y1 r (x) sin x cosec x
v2 = dx = dx = −x.
W (y1 , y2 ) −1
I A particular solution is given by:
yp (x) = sin x log | sin x| − x cos x.
Example 2
Find the general solution of y 00 − y 0 − 2y = e −x .
General solution of associated homogeneous eq. is
y = c1 e 2x + c2 e −x .
Wronskian W (y1 , y2 ) equals:
e 2x e −x
= −3e x .
2e 2x −e −x
Also,
e −x e −x
Z Z
y2 r (x) 1
v1 = − dx = − x
dx = − e −3x ,
W (y1 , y2 ) −3e 9
e 2x e −x
Z Z
y1 r (x) 1
v2 = dx = dx = − x.
W (y1 , y2 ) −3e x 3
Example 2
yp (x) = − 19 e −3x e 2x − 31 xe −x = − 19 e −x − 13 xe −x .
1
y = c1 e 2x + c2 e −x + yp (x) = c1 e 2x + C2 e −x − xe −x .
3
Example 3
I Then,
Z
sin 2t . 3 cos 2t 3
v1 = − dt = cos 4t,
2 16
Z
cos 2t . 3 cos 2t 3 3
v2 = dt = sin 4t + t.
2 16 4