Lect 2DE Sem2
Lect 2DE Sem2
Lect 2DE Sem2
2 FIRST ORDER
LINEAR
DIFFERENTIAL
EQUATIONS
objectives:
At the end of this lecture,
students should be able to:
dy
Py Q
dx
It can be solve by multiplying the
equation with an integrating
factor I , where
Pdx
Pdx
I ( x) e
I ( x) e
The result
d
dx
ye Pdx
Qe Pdx
Express the equation
d
dx
y e Pdx Q e Pdx
in the form
d ye Pdx
Q e Pdx
dx
and integrating it , we can
then obtain the general
solution from
d ye Pdx Qe Pdx
dx
y e Pdx Pdx
Q e dx
Example 1
Find the general solution of
the following differential
equations.
dy x
(a) ye
dx
dy 3
(b) x y x sin 2 x
dx
dy x
(a) ye
dx
compare
dy
P( x) y Q( x)
dx
Therefore , P( x) 1
Integrating factor, IF
dx
e P ( x ) dx e x
e
Multiply the DE with IF
x dy x x
e y e (e )
dx
xdy x 2x
e e y e
dx
d ye
x
e 2x
dx
Integrate both sides
x 2x
d ( ye ) e dx
x1 2x
ye e c
2
1 x x
y e ce
2
dy 3
(b) x y x sin 2 x
dx
dy y 2
x sin 2 x
dx x compare
dy
P( x) y Q( x)
dx
Therefore 1
P( x)
x
Integrating factor, IF
1
dx 1 1
P ( x ) dx e x e ln x
e x
Multiply the DE with IF
1 dy y 1 2
x dx x x
x sin 2 x
1 dy y
2 x sin 2 x
x dx x
y
d
x x sin 2 x
dx
Integrate both sides
by parts
y
d x sin 2 xdx
x y x cos 2 x sin 2 x
c
x 2 4
2
x cos 2 x x sin 2 x
y cx
2 4
Example 2
Find the particular solution of the
following differential equations.
dy
dy 3
((aa)) xx xx yy xx ;; yy((11)) 11
3
dx
dx
yy sin xx
sin
((bb)) yy'' ;; yy((00)) 00
tan xx tan
tan tan xx
dy
dy 3
((aa)) xx xx yy xx ;; yy((11)) 11
3
dx
dx
dy y 2
1 x
dx x
dy y 2
x 1
dx x
compare
dy
P( x) y Q( x)
dx
1
Therefore P ( x )
x
Integrating factor, IF
1
dx
e P ( x ) dx e x
ln x 1
e
1
x
Integrate both sides
y 1
d x dx
x x
2
y x
ln x c
x 2
When x=1, y=1
1
1 ln 1 c
2
1
c
2
Therefore
2
y x 1
ln x
x 2 2
3
x 1
y x ln x x
2 2
y sin x
( b ) y' ; y( 0 ) 0
tan x tan x
dy y sin x
dx tan x tan x
compare
dy
P ( x ) y Q( x )
dx
1
Therefore P( x )
tan x
Integrating factor, IF
1 cos x
P ( x )dx dx dx
e e tan x
e sin x
e ln sin x
sin x
Multiply the DE with IF
dy y sin x
sin x sin x
dx tan x tan x
2
dy sin x sin x
sin x y
dx tan x tan x
2
dy sin x cos x sin x cos x
sin x y
dx sin x sin x
dy
sin x y cos x sin x cos x
dx
d ( y sin x)
sin x cos x
dx
Integrate both sides
d y sin x sin x cos xdx
1
sin 2 xdx
2
1
y sin x cos 2 x c
4
When x = 0, y = 0
1 1
y sin(0) cos(0) c c
4 4
Thus , the particular solution is
1 1
y sin x cos 2 x
4 4
11
yy 11cos
cos22xx
44sin
sin xx
Example 3
dy 3 x
3 y 3e sec hx tanh x
dx
Given dy 3 x
3 y 3e sec hx tanh x
dx
compare
dy
P ( x ) y Q( x )
dx
Therefore P( x) 3
Integrating factor, IF
3dx
3x
V ( x) e e
Multiply the DE with IF
dy
3x 3 x
e 3 y 3e sec hx tanh x e 3x
dx
d
dx
y .e 3x
3 x sec hx tanh x
Integrate both sides
e . y 3 sec hx tanh x dx
3x
3sech x c
ye 3 x
c 3sech x
Example 10
Therefore P (x ) 2
2x 2x
Use integration
ye 3xe dx by parts
Let u = 3x , du = 3dx
2x
2x e
dv e dx , v 2
2x 3 x 3 2x
Thus, 3xe dx xe e dx
2 2
3 2x 3 2x
xe e c
2 4
3 2 x 3 2x
Thus, ye xe e c
2 x
2 4
3 3 2x
y x ce
2 4
General Solution
3
x 0, y
When 4
3 3 3 20
0 ce
4 2 4
3 3 3
c c
4 4 2
Therefore, 3 3 3 2x
y x e
2 4 2
Particular Solution
1
When x ln , y
2 1
3 1 3 3 2 ln
ln e 2
2 2 4 2
3 1 3 31 3 3
ln ln 2
2 2 4 24 2 8
EXERCISE:
Solve the differential equation:
dy
( a )(1 x )
2
2 xy 3 x
dx
when x 0 and y 2
dy 10 x y
(b )
dx 2x
if x 0 and y 0
SUMMARY