Differential Equations: e DX Dy y DX y D Xy
Differential Equations: e DX Dy y DX y D Xy
Differential Equations: e DX Dy y DX y D Xy
dy
e.g: (1) x2 y sin x
dx
(2) 3 y 2 3 xy 5 x 7e 4 x
d2y dy
(3) xy 2
y e3x 0
dx dx
dy
e.g: (1) x y2 0
dx
2
dy
(2) x(1 y ) 1 x y 0
dx
d3y dy
(3) 3
ex y ln x
dx dx
2
d4y d3y
(4) y 3 e 4 x 0
dx 4 dx
dy
e.g: (1) x y2 0
dx
d2y dy
(2) 2
3 2 y x2
dx dx
2
d4y d3y
(3) y 3 e 4 x 0
dx 4 dx
2
d3y d2y
(4) 3 x 2 y 4 cos x
dx dx
1
FIRST ORDER DIFFERENTIAL EQUATIONS.
SEPARABLE EQUATION.
dy dy f ( x)
f ( x) g ( y ) or
dx dx g ( y )
This type of equation can be solved by separating x with dx and y with dy.
[note: when separating x and y, make sure the y term must be at the LHS.]
dy 2x
Example 1: Solve .
dx y 1
Solution
1) Separate ( y 1 )dy (2 x ) dx
y2
Asnwer : y x 2 c (do not forget the constant of indefinite integration)
2
dy
Example 2: Find the solution for 2 y sin x .
dx
Solution
2
dy
1) Separate sin x dx
2y
1 dy
2) Integrate
2 y
sin x dx
1
3) ln y cos x c
2
4) Simplification ln y 2 cos x 2c
eln y e 2 cos x 2c
y e 2 cos x e 2c
Note : eln f ( x)
f ( x)
dy y 2 ty 2
Example 3: Solve .
dt t 2 y t 2
Exercises: Solve
dy
(a) 1 x 1 y
dx
dy
(b) 5y 2x
dx
HOMOGENEOUS EQUATION.
3
dy x 3 y
(a)
dx 2x
dy
(b) 2x 2 x2 y2
dx
(c)
x3 x 2 y
dy
dx
xy y 2
dy
(note: before substituting y and , make sure that the
dx
dy
coefficient of is 1)
dx
v with dv = x with dx
4
dy 2 xy 3 y 2
Example 3: Solve the equation 2 .
dx x 2 xy
dy 2x
(a) 2x 2 x2 y2 (ans: y x )
dx ln x c
(b) x 2
xy dy
dx
xy y 2
(ans: xy Ae y ).
x
LINEAR EQUATIONS.
dy
a ( x) b( x ) y c ( x )
dx
5
(1) 1 x dy 5 y e 7 x
dx
dy y
2 x y
2
(2)
dx x
dy
(3) 7 e 3 x y 1
dx
dy
Step 1 : Make sure the coefficient of is 1.
dx
dy
Py Q
dx
Step 2 : Find P dx .
6
Step 3 : Calculate the integrating factor (µ)
e
P dx
Step 4 : Solve y Q dx
Find what is y.
dy
Example 1: Find the solution for 5 y e2x .
dx
dy
Example 2: Solve the equation x y x sin x .
dx
dy
Example 3: Solve x 5 y x7 .
dx
EXACT EQUATIONS.
M N
.
y x
(a) 2 x 3 y dx 6 xy 2 y dy 0
2
7
y 2 x3
(b) 3 x dx
1 dy 0
x y
(c) 1 cos x
2
dy y sin 2 x dx
u
?
y
u
Determine ( y ) by comparing N .
y
( y ) ( y ) dy
u ( x, y ) A
where A is a constant.
8
Example 1: Find the solution of 6x 2
10 xy 3 y 2 dx 5 x 2 6 xy 3 y 2 dy 0 .
Solution :
Step 1 :
M = 6 x 2 10 xy 3 y 2
M
10 x 6 y
y
N = 5 x 2 6 xy 3 y 2
N
10 x 6 y
x
Step 2 :
M = 6 x 2 10 xy 3 y 2
6 x 3 10 x 2 y
(6 x 10 xy 3 y 2 ) dx =
2
3 xy 2 ( y )
3 2
= 2 x 3 5 x 2 y 3 xy 2 ( y )
( x, y ) = 2 x 3 5 x 2 y 3 xy 2 ( y )
Step 3 :
u
y
5 x 2 6 xy ( y ) compare with N = 5 x 2 6 xy 3 y 2
u
Determine ( y ) by comparing N .
y
9
( y ) 3 y 2
Step 4 :
Find ( y ) where
( y ) ( y ) dy
( y ) 3 y 2 dy
= y3
Step 5 :
u ( x, y ) A
( x, y ) = 2 x 3 5 x 2 y 3xy 2 y 3
Therefore,
2 x 3 5 x 2 y 3 xy 2 y 3 A , where A is a constant
10
Example 3: Determine whether the differential equation
3 x 2 y 2 dx ( 2 x 3 y e 7 y ) dy
Exercise
dy
1) 3 y e2x
dx
dy
2) y x2
dx
dy
3) y ex , y (0) 1
dx
dy x
4) x y , y (1) 0
dx x 1
11
1) (3 x 2 y sin xy)dx ( x sin xy) dy 0
4) xdy ( y 2 x 3 ) dx 0
12