Chapter One Lecture Note
Chapter One Lecture Note
1. Differential Equations
Definition: The order of a differential equation is the order of the highest ordered
derivative that appears in the given equation. The degree of a differential equation is the
exponent of the highest derivative that occurs in the DE, after the DE is expressed as a
polynomial of the dependent variable and its derivative.
Examples:
dy
2 2w 2w Order: 2 Degree: 1
a) y sin x
2
Order: 1 Degree: 2 c) 0
x 2 y 2
dx
3
d 2u u 2u 2u
b) u 2 cos t Order: 2 Degree: 1 d) Order: 2 Degree: 3
dt 2
t x 2 y 2
d2y dy d2y dy
2
2 y sin x IVP 2
2 y sin x BVP
dx dx dx dx
y (0) 1; y ' (0) 2 Initial condition y (1) 5; y ' (2) 2 Boundary conditionn
AASTU 2 Banchi K.
Examples:
a) y A cos x B sin x solution of y' ' y 0
dy
b) y ce x , c IR solution of y
dx
dy ( x 1)
c) ( x 1) 2 ( y 3) 2 c 2 ; c IR solution of
dx y 3
2
Exercise: Show that y ce x is the solution of the following DE y ' 2 xy
Solution:
Solution: y ' A sin x B cos x y ' ' A cos x B sin x ( y ) y ' ' y
AASTU 3 Banchi K.
dy
Method of Solution: Integrate both sides of equation v( y ) u ( x)dx
Example 1: Solve the initial value problem
dy y cos x
, y ( 0) 1
dx 1 2 y 2
Solution:
1 2y2 Use your Calculus
i. Separate the functions: ( )dy (cos x)dx
y knowledge to solve
1 2y2 this problem
ii. Integrate both sides: ( )dy (cos x)dx
y
Answer: ln y y2 sinx c
general solution
iii. Use the initial condition given, y (0) 1
ln 1 12 sin 0 c c 1 ln y y 2 sin x 1 Particular solution
Note: Some DE may not appear separable initially but through appropriate substitutions, the
DE can be separable.
dy
Example 2: Show that the DE ( x y ) 2 can be reduced to a separable equation by using
dx
substitution z x y . Then obtain the solution for the original DE.
Solutions:
i. Differentiate both sides of the substitution wrt x iv. Integrate the separable eqn.
z x y .....................................(*)
1
dz
1
dy
dy dz
1.........(**) z 1
2
dz dx
dx dx dx dx
ii. Insert (*) and (*) into the DE Final answer:
dz dz
1 z 2 z 2 1.........(* * *) y tan( x c) c
dx dx
1
iii. Write (***) into separable form: 2 dz dx
z 1
Exercise:
1. Solve the following equations
dy dy
a. x cot x c. (1 y 2 ) 0, y (0) 0
dx dx
AASTU 4 Banchi K.
dy y dy
b. d. xy 4 x
dx x( x 1) dx
dy
2. Using substitution z xy , convert x y 2 x 1 x 2 y 2 to a separable equation.
dx
Hence solve the original equation.
Method of Solution :
i. Determine whether the equation homogenous or not
dy dv
ii. Use substitution y vx and v x in the original DE
dx dx
iii. Separate the variable x and v Separable
iv. Integrate both sides equation method
v. Use initial condition (if given) to find the constant value
dy x2 y2
a.
dx ( x y )( x y )
dy x2 y2
f ( x, y )
Solution: dx ( x y )( x y )
( x ) 2 ( y ) 2 2 ( x 2 y 2 )
f ( x, y ) f ( x, y )
(x y )(x y ) 2 (( x y )( x y ))
AASTU 5 Banchi K.
dy dv
iii. Substitute: y vx and vx into (1)
dx dx
dv (vx) 2 x(vx) dv
vx 2
v2 v x v2
dx x dx
1 1
iv. Solve the problem using the separable equation method: v 2
dv dx
x
x
Final answer : x Ae y
Solutions:
I. Differentiate (2) and (3): dx dX , dy dY
dY Y
II. and substitute them into (1),
dX X Y REMEMBER! Now we use
instead of
III. Test for homogeneity, f (x, y ) f ( x, y )
dY dV
IV. Use the substitutions Y VX and V X
dX dX
dV Y VX V dV V V2
VX X V
dX X Y X VX V 1 dX V 1 1V
V. Use the separable equation method to solve the problem
1V 1
2 dV dX
V X LASTLY, do not forget to
x 3
replace with
Ans: y 2 Ae y 2
y 2 xy x
Exercises: Solve y ' ' Ans : y
x2 ln x c
AASTU 6 Banchi K.
1.1.3 Exact Equation
M ( x, y )
Suppose f ( x, y )
N ( x, y )
dy M(x, y)
M(x, y)dx N(x, y)dy 0
Therefore the first order DE is given by dx N(x, y)
u
u
x y
M N
Condition for an exact equation:
y x
M N u u
If , then there exist a function u ( x, y ) such that M, N
y x x y
Method of Solution (Method 1):
M N
i. Write the DE in the form M ( x, y )dx N ( x, y )dy 0 and test exactness
y x
u u
ii. If the DE is exact, then M , N ………………………………(1)
x y
To find u ( x, y ) , integrate (1) wrt x : u ( x, y ) M ( x, y )dx ( y ) ……..(2)
AASTU 7 Banchi K.
Example 1: Solve (2 xy 3)dx ( x 2 1)dy 0
Solution (Method 1):
M N
i) Check the exactness 2x this equation is exact.
y x
ii) Find u ( x, y ) ,
u
2 xy 3 M ( x, y )..........................................................( 1)
dx
u
x 2 1 N ( x, y ).............................................................(2)
dy
u (2 xy 3)x u ( x, y) x y 3 x ( y )..........................(3)
2
u
iv. Now we differentiate (3) wrt y to compare with N
y
u
x 2 ' ( y )........................................................................( 4)
y
Now, let’s compare (4) with (2): x 2 ' ( y ) x 2 1 ' ( y ) 1
v. Find ( y ) , ' ( y ) 1dy ( y ) y B
vi. Now that we found ( y ) , our new u ( x, y ) should looks like this:
u ( x, y ) x 2 y 3 x y B
vii. Write the solution in the form u ( x, y ) A,
u ( x, y ) x 2 y 3 x y B A x 2 y 3 x y C , where C A B is a constant
Exercise : Try to solve Example 1 by using Method 2
Answer:
M N
i. Since 2x this equation is exact.
y x
ii. Find u ( x, y ) ,
u
2 xy 3 M ( x, y )...........................................................( 1)
dx
u
x 2 1 N ( x, y )..............................................................(2)
dy
To find u ( x, y ) , integrate both (1) and (2),
u (2 xy 3)x u ( x, y) x y 3 x 1 ( y )...................(3)
2
AASTU 8 Banchi K.
u ( x 1)y u ( x, y ) x 2 y y 2 ( x)...................(4)
2
(x) e
g ( x ) dx
1 1
If and ( M y N x ) are independent of x and say ( M y N x ) h( y ) then
M M
( y) e
h ( y ) dy
AASTU 9 Banchi K.
Example 2: Show that the equation ( xy y 2 y )dx ( x 2 y )dy 0 is not exact. And by
using integrating factor, ( x, y ) e x solve the equation.
Solution:
i. Show that it is not exact
M N M N
x 2 y 1, 1 Since , this equation is not exact.
y x y x
ii. Multiply ( x, y ) into the DE to make the equation exact
( xy y 2 y )(e x )dx ( x 2 y )(e x )dy 0
M N
M N
iii. Check the exactness again: xe x 2e x y e x the equation is exact.
y x
u
( xy y 2 y )e x M ( x, y ) ..............................................(1)
x
iv. Find u ( x, y ) ,
u
( x 2 y )e x N ( x, y ) ....................................................(2)
y
To find u ( x, y ) , integrate either (1) or (2), let’s say we take (2)
u
(( xy y 2 )(e x ) ( x)) ( xy y 2 y )(e x ) ' ( x).....(4)
v. Find (x) , x x
AASTU 10 Banchi K.
Exercises :
1. Try solving Example 2 by using method 2.
2. Determine whether the following equation is exact. If it is, then solve it.
a. (2 x y )dx ( x 2 y )dy 0
b. (cos x cos y 2 x)dx (sin x sin y 2 y )dy 0
3. Find the integration factor for the DEs
2 sin( y 2 )dx xy cos( y 2 )dy 0 Ans : ( x) x 3
4. Solve
a. 2 xydx ( x 2 1)dy 0 Ans : x 2 y y c
e 2 y
b. 2 x y 3 (3 xy 2 e 2 y ) y ' 0 Ans : x 2 y 3 x c0
2
NOTE: Must be +
1.1.4 Linear First Order Differential Equation here!!
dy
The general form of the first order linear DE is given by 1 p ( x) y q ( x )
dx
Method of Solution 1:
dy
i. Determine the value of p (x) and q (x) such the coefficient of is 1.
dx
ii. Calculate the integrating factor: ( x) e
p ( x ) dx
d
iii. Write the equation in the form of: ( ( x)) ( x)q( x) ( x) y ( x)q( x)dx
dx
1
( x)
iv. The general solution is given by: y ( x)q( x)dx
Method of Solution 2:
To find the general solution multiply the DE by e
p ( x ) dx
d
e y ' e p ( x ) y q ( x )e ( ye ) q ( x )e
p ( x ) dx p ( x ) dx p ( x ) dx p ( x ) dx p ( x ) dx
dx
) dx p ( x ) dx )dx Is the general
ye ( q ( x )e )dx y e
p ( x ) dx p ( x ) dx p ( x
( q ( x ) e solution
AASTU 11 Banchi K.
dy 1 x ex
Example 1: Solve this first order DE y
dx x x
Solution:
1 x ex
i. Determine p (x) and q (x) : p( x) , q( x)
x x
1 x
Find integrating factor, ( x) e
p ( x ) dx dx
ii. e x
e (ln x x ) xe x
iii. Write down the equation:
d ex 1 e 2x
( xe x y ) ( xe x )( ) xe x y e 2 x dx y x c
dx x xe 2
ex c
iv. Final answer: y x
2 x xe
Note: Non-linear DE can be converted into linear DE by using the right substitution.
Example 2: Using, z y 2 convert the following non-linear DE into linear DE and solve it
dy
x2 y xy 2 1 ; y (1) 1
dx
Solutions:
dy
i. Differentiate z y 2 to get and replace into the nonlinear equation
dx
dz dy 1 dz dy
2y y
dx dx 2 dx dx
dy 1 dz dy
x2 y xy 2 1 x 2 xz 1
dx 2 dx dx
ii. Change the equation into the general form of linear equation & determine p and q :
dz 2 2 dz 2 2
( 2 )( xz ) ( 2 )1 ( ) z 2
dx x x dx
x x
p q
2
dx 1
Find the integrating factor, ( x) e
p ( x ) dx
iii. ( x) e x 2
x
d 1 1 2 2 z 2 2
iv. Find y : ( 2 z ) ( 2 )( 2 ) 4 2 4 dx z x 2 ( 2 c)
dx x x x x x x 3x
AASTU 12 Banchi K.
2
Since z y 2 , y2 cx 2
3x
v. Use the initial condition given, y (1) 1
2 5 2 5 2
12 c(1) 2 c y 2 x
3(1) 3 3x 3
Exercise: Solve the following DEs
c 1
a. xy ' y 2 x , y (1) 0 Ans : y x G.S and y x , 0 x 8 P.S
x x
5 1
b. y '5 y x , Ans : y ce 5 x G.S
x 25
1
c. y ' y cos x sin x d. y ' y
1 e2x
d
Solve ( ( x ) z ) ( x )q ( x )
dx
AASTU 13 Banchi K.
dy 1
Example 1: Solve y ex y4
dx 3
Solutions:
i. Determine n 4
1 dy 1 3
ii. Divide the DE by y 4 : 4
y e x .............(2)
y dx 3
iii. Using substitution, z y 3
dz dy 1 dy 1 dz
3 y 4 4 ...............................(3)
dx dx y dx 3 dx
iv. Replace ( 3 ) into ( 2 ) and write into linear equation form
1 dz 1 dz
z ex z 3e x p ( x) 1, q ( x) 3e x
3 dx 3 dx
Find the integrating factor ( x) e e x
1dx
v.
vi. Solve the problem
d x 1
(e z ) e x (3e x ) z x 3dx e x 3 x c
dx e
3 3
vii. Since z y , y ce 3 xe x
x
Exercise: Answer:
dy 1 1 x2 c
1. y xy 2
dx x y 3 x
1 x2 c
2. xy ' y ' x 2 y 2 , x 0
y 3 x
dy y 1
3. y2 x(c ln x)
dx x y
dy 1
4. x y xy 3 y2
dx 2 x cx 2
dy 2 1
5. y x 2 y 2 cos x x 2 (sin x c)
dx x y
dy (4 x 5) 2 3 1 (4 x 5) 3 c
6. 2 (tan x) y y 2
dx cos x y 12 cos x cos x
7. Given the differential equation, (2 x 4 y ) dy (4 x 3 y 2 x 3 ) dx 0
Show that the equation is exact. Hence solve it.
8. The equation in Question 6 can be rewritten as a Bernoulli equation,
dy 1
2y 4y . By using the substitution, z y 2 solve this equation. Check the
dx y
answer with Question 6.
AASTU 14 Banchi K.