Lecture 2 Ode
Lecture 2 Ode
Lecture 2 Ode
طريقة فصل
المتغيرات
-1توضع 𝑦𝑑
متغيرات yو
)g(y )𝑥(𝑓 =
𝑥𝑑
dyفي طرف
ومتغيرات xو
dxفي الطرف
االخر
Separable ODE’s
𝑀 𝑥 𝑑𝑥 + 𝑁 𝑦 𝑑𝑦 =0
Then we can solve this equation by integrating both sides with respect to
x to get:
𝑑𝑦
𝑀 𝑥 𝑑𝑥 + 𝑁 𝑦 𝑑𝑥 = 0
𝑑𝑥
𝑀 𝑥 𝑑𝑥 + 𝑁 𝑦 𝑑𝑦 = 0
Example(1):
𝑑𝑦 𝑑𝑥
= 1 + 𝑦2 multiplying two sides by then
𝑑𝑥 (1+𝑦 2 )
𝑑𝑦
= dx integrating two sides
(1 + 𝑦 2 )
1
𝑑𝑦 = 𝑑𝑥
(1+𝑦 2 )
( tan−1 𝑦 = 𝑥 + 𝐶 )
𝑦 −2 𝑑𝑦 = (𝑥 + 1)𝑒 −𝑥 𝑑𝑥
𝑦 −1
= − 𝑥 + 1 𝑒 −𝑥 − 𝑒 −𝑥 + 𝐶 derivative integrate
−1
−1 X+1 + 𝑒 −𝑥
= −𝑥 − 1 − 1 𝑒 −𝑥 + 𝐶 … .∗ (−1)
𝑦 1 - −𝑒 −𝑥
1 0 + 𝑒 −𝑥
= 𝑥 + 2 𝑒 −𝑥 − 𝐶
𝑦 −𝑒 −𝑥
1
𝑦=
𝑥 + 2 𝑒 −𝑥 − 𝐶
• Homogeneous FODE:
𝑦
𝑦 ′ = 𝑓( ) ………………(1)
𝑥
𝑑𝑦 𝑑𝑢
𝑑𝑥
= 𝑢 + 𝑥 𝑑𝑥 substitution this term in the eq.(1) we get:
𝑑𝑢 𝑦
𝑢 + 𝑥 𝑑𝑥 = 𝑓 𝑢 𝑤ℎ𝑒𝑟𝑒 𝑢 = 𝑥
𝑑𝑢
𝑥 𝑑𝑥 = f u − u then 𝑥𝑑𝑢 = 𝑑𝑥 𝑓 𝑢 − 𝑢 𝑡ℎ𝑒𝑛 % 𝑥
𝑑𝑥
𝑑𝑢 = 𝑓 𝑢 −𝑢 𝑡ℎ𝑒𝑛
𝑥
𝑑𝑥 𝑑𝑢
= this is the formula for homogeneous D.E.
𝑥 𝑓 𝑢 −𝑢
See example 8: in page 18 (Erwin Kreyszig 10th edition)
𝑦 2 𝑦 𝑑𝑦 𝑦 𝑑𝑦
1+ 2 − =0 let u =
𝑎𝑛𝑑 = 𝑓 𝑢 𝑡ℎ𝑒𝑛
𝑥 𝑥 𝑑𝑥 𝑥 𝑑𝑥
2
1 + 𝑢2
1+𝑢 −𝑢𝑓 𝑢 =0 %𝑢 𝑓 𝑢 =
𝑢
𝑑𝑥 𝑑𝑢
The formula of homo. =
𝑥 𝑓 𝑢 −𝑢
𝑑𝑥 𝑑𝑢 𝑑𝑥
= 1+𝑢2 then = udu integrating it we get:
𝑥 −𝑢
𝑥
𝑢
𝑢2 𝑦2
Ln (x)= +𝐶 𝑡ℎ𝑒𝑛 ln 𝑥 − 𝐶 = multiplying by 2𝑥 2
2 2𝑥 2
𝑦 2 = 2𝑥 2 ln 𝑥 − 𝐶
𝑦= 2𝑥 2 (ln 𝑥 − 𝑐)
Example2: solve the FODE.by homogeneous method
𝑦
𝑥. sec + 𝑦 𝑑𝑥 − 𝑥𝑑𝑦 = 0
𝑥
𝑦 𝑦 𝑑𝑦
Divided by xdx sec 𝑥
+ 𝑥 − 𝑑𝑥 = 0
𝑦 𝑦 𝑑𝑦 𝑦 𝑑𝑦
sec + = let u= and 𝐹 𝑢 =
𝑥 𝑥 𝑑𝑥 𝑥 𝑑𝑥
𝑑𝑥 𝑑𝑢
𝐹 𝑢 = sec 𝑢 + 𝑢 remember the formula =
𝑥 𝑓 𝑢 −𝑢
𝑑𝑥 𝑑𝑢
=
𝑥 sec 𝑢 + 𝑢 − 𝑢
𝑑𝑥 𝑑𝑢 1
= = cos 𝑥
𝑥 sec 𝑢 sec 𝑥
ln 𝑥 = cos 𝑢 𝑑𝑢 ln 𝑥 = sin 𝑢 + 𝐶
𝑦 𝑦
Ln (x)= sin 𝑥 + 𝐶 𝑙𝑛 𝑥 − 𝐶 = sin(𝑥 )
𝑦
= sin−1 (ln 𝑥 − 𝐶) *x we get
𝑥
𝑦 = 𝑥. sin−1 (ln 𝑥 − 𝐶)