Solving Non-Homogeneous Second Order DEs
Solving Non-Homogeneous Second Order DEs
DIFFERENTIAL EQUATIONS
Procedure for solving non-homogeneous second order differential equations:
y" p( x) y'q( x) y g ( x)
Variation of y 2 ( x) g ( x) y ( x) g ( x )
Parameters. y p ( x) y1 dx y2 1 dx
W ( y1 , y 2 )( x) W ( y1 , y2 )( x)
where y1 and y2 are solutions to the homogeneous equation and
y y2
W ( y1 , y 2 )( x) 1 y1 y 2 y 2 y1
y1 y 2
The set of solutions is linearly independent in I if
W ( y1 , y2 )( x) 0 for every x in the interval.
Or equivalently:
y p ( x) v1 y1 v2 y2
where y1 and y2 are solutions to the homogeneous equation and
v1 and v2 are unknown functions of x.
To determine v1 and v2, solve the following system of equations
for v′1 and v′2.
y1v1 y 2 v2 0
y1v1 y 2 v2 g ( x)
Integrate v′1 and v′2 to find v1 and v2.
Substitute v1 and v2 into y p ( x) v1 y1 v2 y2
www.rit.edu/asc
Example #1. Solve the differential equation: y 2 y t e t
Solution:
1. Homogeneous equation: y 2 y 0
Characteristic equation: r 2 2r 0
r ( r 2) 0
r 0, r 2
yh C1 C2 e
2t
2. Particular solution:
The constant is already in the
g (t ) t e t t, et homogeneous solution.
Multiplying it by t will repeat the
g ' (t ) 1 e t Terms: C , e t terms of g(t). So we need to
modify both the constant and the t.
g" (t ) e t et No new terms.
Initial guess of yp At B) Ce t
y p (
Part of a homogeneous solution.
Both terms need to be modified
Modify yp: y p t ( At B) Ce t At 2 Bt Ce t
y p 2 At B Cet
y" p 2 A Cet
Plug the yp and its derivatives into the original differential equation:
y 2 y t e t implies 2 A Cet 22 At B Cet t et
2 A 2B 4 At Cet t et
C 1 C 1
1
4A 1 A
4
1
2 A 2B 0 B
4
t2 t t
So y p e t (t 1) e t and the general solution is:
4 4 4
y yh y p
t
y C1 C 2 e 2t (t 1) e t
4
www.rit.edu/asc
et
Example #2. Solve the differential equation: y 2 y y
t
2. Particular solution:
W ( y1 , y 2 )( x) det
y1
y1
y2
y 2
et
det t
tet
e t tet e t tet e t te2t e 2t te2t e 2t
e te e
t t
So
y 2 ( x) g ( x) y ( x) g ( x)
y p ( x) y1 dx y 2 1 dx
W ( y1 , y 2 )( x) W ( y1 , y 2 )( x)
et et
tet et
e t t dt e t 1dt tet 1dt tet tet ln t
t
t dt tet
2t 2t
e e
www.rit.edu/asc
Solutions:
3 1
#1: y C1e x C 2 e 2 x sin 2 x cos 2 x
20 20
1
#2: y C1e x C 2 xe x x 3 e x
6
#3: y C1 cos x C2 sin x cos x ln cos x x sin x
www.rit.edu/asc