Lecture 2 Higher Order Linear Differential Equations
Lecture 2 Higher Order Linear Differential Equations
Lecture 2
Higher Order Linear Differential Equation
Revision
d , D2 =
dx 2
D= dx
dn
, ……. , D n =
dx n
Then (2) can be rewritten as follows:
5
Corollary 1:
A constant multiple y = c1y1(x) of a solution y1(x) of a
H.L.D.E. is also a solution .
Corollary 2:
A.H.L.D.E. always possesses the trivial solution y = 0
For example:
The function y1= x2 and y2= x2 ln x are both solution
of the H.L.D.E.
x3 y'' – 2xy'+ 4y = 0 on the interval ( 0 , )
Then By superposition principle, the linear
combination y = c1y1 + c2y2 is also a solution of the
H.L.D.E. in the internal ( 0 , ).
6
Example 1:
Show that y1 = cos x , y2 =. sin x are two different
solutions to the following H.L.D.E. y'' + y = 0. Then
solve the I.V.P y'' + y = 0, y( 0) = 1, y'(0) = -1
Solution:
y 1 cos x y 1' sin x y 1'' cos x
''
y y 1 0 , therefore y 1 is a solution
1
' ''
y 2 sin x y cos x y sin x
2 2
10
Example 4:
Examine the set for being L/D or L/I on the given interval .
1 ) 1 , x , 3x – 5 on
1 x 3x 5
w 0 1 3 0 L / D
0 0 0
2) Co s x , sin x on
cos x sin x
W 10 L / I
sin x cos x
11
3) ex , e-x , cos h x on , where cos h x = ½[ ex + e-x ]
x x
x x e e
e e
2
e x e x
w ex e x 0 L / D
2
x x
e e
ex e x
2
Definition:
Given the nth order linear homogenous equation L(y) = 0 If
y1(x), y2(x), ……, y n(x) are n linearly independent solutions.
Then the set {y1,y2, ......., y n} are called a fundamental set
of solutions and the general solution of the H.D.E is given
by :
Y n = c1y1 + c2y2 + ……..+ c n y n, where c1 , c2 , ……, c n are
arbitrary constants. 12
Theorem 3:
Let y1 , y2 , ……., y n be n solutions for L (y) = 0. Then the
following statements are equivalent :
• y1 , y2 , ……., y n are L/I.
• W (y1 , y2 , ……., y n ) ≠ 0 , for all x I .
• y1 , y2 , ……., y n are fundamental set of solutions.
• The general solution of L ( y ) = 0 is
Y g = c1y1 + c2y2 + ……. + c n y n
Example 5:
Show that y1= 2x3 , y2 = x -1 are two linearly independent
solutions to the HLDE:
x2 y'' – x y' – 3y = 0 , on ( 0 , ) .
Write the general solution, and then solve the I.V.P.
x2y'' – x y' – 3 y = 0 , y (1) = 0 , y1(1) = 8.
Solution :
13
3 1
2x x
w 2 1 8 x 0, x (0, )
6x 2
x
Since y1 , y2 are L/I solutions , then the general solution is :
y g = c1y1 + c2y2 = c1 2x3 + c2 x -1
y (1 ) = 0 0 = 2 c1 + c2
y`(1) = 8 8 = 6 c1 – c2
c1 = 1 & c2 = 2
2
yg=x +
3
14
Example 6:
Show that y1= ex , y2 = ex , y2 = e2x , y3 = e3x are solution to
the given D.E. y''' – 6 y'' – 6 y = 0 ,
Then write the general solution
Solution : x 2x 3x
e e e
w ex 2e 2 x 3e 3 x 2e 6 x 0
x 2x 3x
e 4e 9e
y1 , y2 , y3 are L/I on
15
Homogenous Linear Differential Equations with
constant coefficients
The general homogenous linear differential equations with
constant coefficients take the following form:
17
Case I: Distinct Real Roots:
If the roots of the auxiliary equation (4) m1 , m2, …, m n are real
and distinct, i . e m1 ≠ m2, ……≠ m n. Then we have n linearly
independent solutions, which are
m1x m 2x m nx
y 1 e , y 2 e ,.........., y n e
and the general solution of (1) is
m1x m 2x mnx
y GS c1e c 2e c ne
where c1 , c2 , ……, c n are arbitrary constants.
Example 7:
Solve the equation ( D2 – 2 D – 3 ) y = 0 , y (0) = 1 , y1(0) = 2
Solution:
18
The auxiliary equation is: m2 – 2 m – 3 = 0 m = -1 or m = + 3
Hence the general solution is: y GS = c1 e-x + + c2 e3x
Since y = 1 when x = 0 , we have 1 = c 1 + c2
Now , y' = - c1 e-x +3 c2 e3x
Since y' = 2 when x = 0 , we have 2 = - c1 + 3c2
Therefore, c1 = 1 ,c =
3
4 2
4
, and the particular solution is 4y = e-x + 3 e2x
Example 8:
Find the general solution of the D.E. (D3 – 4 D2 + D + 6 ) y = 0
Solution:
The auxiliary equation is:
m3 – 4 m2 + m + 6 = 0 m = -1 , 2 , 3 .
Hence, the general solution is: y GS = c1 e-x + c2 e2x + c3 e3x
where c1, c2 and c3 are arbitrary constants .
19
Case II: Repeated Real Roots:
If the roots of auxiliary equation are real and repeated, i. e
m1 = m2 = … = m n, then the general solution of D.E. (1) is :
y G.S. = (c1 + c2x + c3x2+ ..... + ckxk-1) e m x,
where c1 , c2 , ........, are arbitrary constants.
Example 9:
Solve the equation ( D2 + 4 D + 4 ) y = 0 , y(0) = 1 , y'(0) = 3
Solution :
The auxiliary equation is: m2 + 4 m + 4 = 0 m = 2 , 2
Then the general solution is :
y GS = c1 e2x + c2 x e2x = (c1 + c2 x ) e2x
Since y(0) = 1 1 = c1
y'(0) = 3 3 = 2c1 + c2 c2 = 1
Then the solution is : y = (1 + x ) e2x
20
Example 10:
Solve the following equation , y'''+ 3y'' - 4 y = 0
Solution:
The auxiliary equation is: m3 + 3m2 – 4 = 0
By inspection: m3 + 3m2 – 4 = 0 has a root m1 = 1 and
so (m – 1) is a factor , divide by (m – 1)
m3 + 3 m2 – 4 = ( m – 1 ) (m2 + 4 m + 4 )
m3 + 3 m 2 – 4 = ( m – 1 ) ( m + 2 ) 2
So the other roots are m2 = m3 = - 2. Thus the general
solution of the D.E. is ,
y = c1 ex + c2 e -2x + x c3 e -2x
21
Case III: Conjugate Complex Roots:
If m1 and m2 are complex conjugate numbers, then ,
m1 = + i and m2 = - i , where , are real numbers
and i = 1
Then the general solution of (1) is :
y = c1e(+i B )x + c2e(-i B) x = e x(c1eiBx + c2 e i B x )
e +i x
= co s x sin x…. Euler’ s formula
e i x + e-i x = 2 co s x ,
and e i x - e-i x = 2 sin x
22
Example 12:
Solve the DE : (D2+4D+13)y = 0 , y (0) = 1 , y`(0) = 2
Solution:
The auxiliary solution is: m2 + 4 m + 13 = 0, and hence ,
m = -2 + 3i
The general solution is therefore: y = e-2x [c1 cos 3x + c2 sin 3x ]
Since: y (0) = 1 1 = c1
4
Now y (0) = 2
'
2 = - 2 c1 + 3 c2 c2 =
3
Hence the solution is: 3y = e-2x (3 cos 3x + 4 sin 3 x )
23
Example 16:
d3y d2y dy
Solve the DE : 3
– 6 2 + 12 - 8y = 0,
dx dx dx
y(0) = 1 and y`(0) = 0 y``(0) = 0
Solution:
The auxiliary equation is: m3 – 6 m2 + 12 m - 8 = 0 ,
(m-2)3 = 0
The roots are: m = 2,2,2 and the general solution is :
y = ( A + B x + Cx2 )e2x
y' = (2A + B + 2(B+C)x +2 Cx2) e2x
y'' = (4A + 4B + 2C +2(2B+3C)x +2 Cx2 ) e2x
Sin ce : y(0) = 1 1 = A
y'(0) = 0 0 = 2 A + B B = - 2
y''(0) = 0 0 = 4 A + 4B + 2C c = 2
and the solution is : y = ( 1 – 2x + 2x2 ) e2x
24
Non-homogenous linear D.E. with constant
coefficients:
25
26
To solve a non-homogenous linear D.E.:
1. Solve the associated homogenous D.E.
2. Find the particular solution.
3. Find the Summation.
27
1
Operating on both sides by the differential ,
F (D )
1
then (1) becomes, y g ( x) (2)
F ( D)
28
1
y e ax is given by
F ( D)
1 ax
yp e , F (a) 0
F (a)
29
1
, we obtain
F (a) F ( D)
1 1
y e ax e ax , F (a) 0
F ( D) F (a)
30
10 2 x
y p e
( 1)
x 3x 2x
y G .S . y c y p c1e c 2e 10 e
31
32
33
34
Since : 1 1
D 2 3D 2 4 3D 2
1
=
3D 2
1 3D 2
3D 2 9D 2 4
3D 2
9( 4) 4
35
36
1
y xn
F ( D)
37
Expanding by the binominal theorem
38
39
40
41
42
In Addition to the above four cases we have TWO Special
cases:
• The first special case is obtained from case I:
We have
yp= 1 e ax , F (a) ≠ 0
F (a)
43
1
Let y p = ea x R(x) , where R(x) = 1 = e0x ,
F ( D)
So we can apply the shift rule as follows,
ax 1 ox
y p e e
F ( D a)
Example 49:
Solve the following D.E.
(D2 – 4 ) y = e2x
Solution:
y c = c1 e2x + c2 e-2x
To get y p,
1
yp= 2 e2x
D 4
,
y p= 1 e2x hence by applying the first special case we get,
4 4
44
1
yp= e2x . e0x
( D 2) 2 4
1
= e 2x
2 e0x
D 4
1
= e2x 2 e0x
D 2D
1 1 0x
= e2x e
D D2
1 1 = x
=e 2x e2x
D 4 4
y G = c e + c2e +
1 2x
x e2x
-2x
45
Solve the following D.E.
(D-)2 y = ex sec2 x tan x
Solution:
The A.E. is ( m - )2 = 0 , its roots are ,
y c = (c1 + c2x)e
To obtain a particular integral
1
y p= 2 e sec x tan x
2
(D )
Applying the shifting rule,
y p = ex 1 1
sec x tan x = e
2 x
sec2 x tan x
(D )2 D 2
48
Example 55:
Solve the following DE:
y'' + 4y = 8 co s 2x
Solution:
y c = c1cos 2x+ c2 sin 2x
To find a particular integral
yp= 1
2 8 co s 2 x
D 4
1
= 8 co s 2x
( D 2i ) ( D 2i )
1
= Re 8 e 2 ix
( D 2i ) ( D 2i )
1
=R e 8 e 2 ix
( D 2i ) ( 2i 2i )
49
1
= Re 8 e2ix
4i (D - 2 i )
8 1
= Re e2ix
4i e ox
( D 2i ) 2i
2 1 2
=Re e2ix
i 1= Re e2ix
x
D i
= R e ( - 2 i x e2ix )
=Re ( - 2 i x ( co s 2x + i sin 2x ) )
=R e ( - 2 i x co s 2x + 2x sin 2x ) )
The real part of y p yields the particular integral 2x sin 2 x
i.e. y p = 2 x sin 2x
And the general solution is
y G = y c + y p = c1cos 2x + c2sin 2x + 2x sin 2x
50
2- Method of undetermined coefficients:
5
5
We have TWO different cases:
5
5
5
56
57
58
59
By solving them simultaneously, we find
60
61
62
63
64
65
66
67
68
=0
=0
69
• Solving (5) and (6) using Cramer’s rule to get
y1 y2
, where (7)
y`1 y`2
70
1
1e x
1
x
, and
1e
71
y1 y2 ex e2x 3x
x 2x
e
y`1 y`2 e 2e
2x x
y2 e 1 e
This gives, u `( x) g ( x) 3 x x
e 1 e 1 e x
72
And y1 ex 1 e 2x
v`( x ) g ( x ) 3 x x
e 1 e 1 e x
e 2x
Hence, v ( x ) x
dx
1 e
e 2x z (1 z ) 1
1 e x dx 1 z dx 1 z dz
1
1 dx z ln 1 z
1 z
x x
v ( x) e ln 1 e
73
74
cos 3 x sin 3 x
3,
3 sin 3 x 3 cos 3 x
y2 sin3x cosec3x 1
( ) =
3 4 12
y1 ( x ) cos3x cosec3x
( ) 1 cos 3 x
3 4
12 sin 3 x
1 cos 3 x 1
12 sin 3x dx 36
75
These equation represents the general solution of the D.E.
76
77
Example 66:
Find the general solution of the following DE
78
79
Prove 80
81
82
83
84
85
86
87
88
89
dy dy dt dy a
dx dt dx dt ax b
90
91
92
93
Hence: 1 1
2t
yp 2 e 4 t
( 1) ( 9)
2
8 9
2
-1
1 2t 1 4
8 2
yP e 1 t
( 4 1) ( 4 9) 9 9
e 2t 1 4 8 2
yP 1 t
39 9 9
e 2t t 1 ln x
yp , y p 2
39 9 39 x 9
y G y c y p
94
2t t
y1 y2 e e
e 3t
y`1 y`2 2e 2t et
95
y 2 ( x) et
g ( x) 3t cos (e t ) e 2t cos (e t )
e
u (t ) e 2t cos (e t ) dt
and
y1 e 2t t
v`(t ) g (t ) cos ( e )
e 3t
e t cos (e t )
t
v (t ) sin (e )
96
y p e 2t e t sin (e t ) cos (e t ) e t sin (e t )
y G y c y p
97
System of Linear Differential Equations with
Constant Coefficients
Definition: (System of Differential Equations)
A System of Differential Equations is a simultaneous
ordinary D.E. involves two (or more) equations which contain
the derivations of two (or more) unknown functions of a single
independent variable.
98
a) Systematic Elimination Technique:
99
Now (2) and (3) do not satisfy the system (1) for every choice
of c1, c2, c3 & c4.
100
101
Example 77:
Report
102
103
104
D3 1 1 1 D3 1 D3 1
x t & y
1 D1 4e D1 1 D1 1 4e t
105
106
D 2
o 2 D 2
e t
o
D D y D
2 D 1 2D 2 o D 1
2 o 2 et
tz D
2D D 1 2D o
107
Any Question
Assignment # 2:
Sheet: 3 &4 odd Numbers
Due date: /4/2024
108