2nd order ODE
2nd order ODE
example
the characteristic equation for y (4)−3 y , ,, +2 y ,, − y=0is m 4 −3 m3 +2 m2−1=0
i.e. m=
−b ± √ b2−4 ac and hence m and m .
1 2
2a
There are 3 cases to consider.
case1
m1and m2 are both distinct and real, the general solution is
m1 x m2 x
y=c1 e +c 2 e
Case2
When m 1and m 2 are real and equal, the general solution is
m1 x m2 x
y=c1 e +c 2 xe
Case3
When m 1and m 2 are unreal /complex ,where m 1=∝+iβ and m 2=∝−iβ and the general
equation will be y=e∝ x (c 1 cos ( βx ) +c 2 sin ( βx ) )
Example
Solve y , ,− y ,−6 y=0 where y (0)=¿1 and y , ( 0 )=20020
Solution
Characteristic form; m 2−m−6=0
Factors (-3,2)
2
m +2 m−3 m−6=0
m ( m+ 2 )−3 ( m+ 2 )=0
( m+2 ) ( m−3 )=0
m=−2∨m=3
Assume that the solution is y=emx
−2 x 3x
y=c1 e +c 2 e
When y (0) =1, then y=1 and x=0
−2(0) 3(0)
1=c1 e + c2 e
1=c1 +c 2 … … … … … …(1)
when
,
y (0)=2
' −2 x 3x
y =−2 c 1 e +3 c2 e
But x=0, y ' =2
−2(0) 3 (0)
2=−2 c1 e +3 c 2 e
2=−2 c1 +3 c 2 … … … … … … … .(2)
From eqn (1)
c 1=1−c 2
Into eqn (2)
2=−2 ( 1−c 2 ) +3 c 2
4
c 2=
5
1
c 1=
5
1 −2 x 4 3 x
∴ y= e + e
5 5
Second order non homogenous differential
equation with constant coefficients
The form of a nonhomogeneous differential equation is given by f ( x )=∅ (x ) where
∅ (x) is the non-homogeneity part and f (x) is the homogeneity part.
Case2
ax
∅ ( x ) =K e where k and a constant. here we assume the particular solution to be
ax
y p= A e .
Case3
∅ ( x ) =k 1 sinβx+ k 2 cosβx , where k 1, k 2 and β are constants. here we assume a solution
y p= Asinβx+ Bcosβx
NOTE: y p= Asinβx+ Bcosβx entirely assumed for ∅ ( x ) =k 1 sinβx+ k 2 cosβx even when k 1
and k 1is azero because the derivatives of sines and cosines involves sines and
cosines still.
If ∅ ( x ) =¿either a product, sum or difference of cases1,2 and 3, y p=¿product,
sum or difference of the corresponding solutions and algebraically combine constants
if possible
Example
Solve
'' ' 2
y − y −2 y=4 x .
Solution
Auxiliary equation; r 2−r−2=0
2
r −2r +r −2=0
r ( r−2 )+(r −2)=0
(r +1)(r −2)=0
Either r=-1, or r=2
2x −x
y h=c1 e +c 2 e
2
y p= A x + Bx+C
'
y =2 Ax + B
''
y =2 A
2 2
2 A−( 2 Ax+ B )−2( A x + Bx+C )=4 x
2 2
−2 A x + (−2 A−2 B ) x+ ( 2 A−2 C ) =4 x
2
−2 A x =4 x
2
−2 A−B=0 2 A−2 C=0
A=−2 −2 (−2 )−2 B=0 2 (−2 )−2 C=0
B=−2 C=2
2
y p=−2 x +2 x −2
But y= y p+ y h