Professional Documents
Culture Documents
Emad Al-Hemiary
Second Year, First Semester Bernoulli First Order ODE
Test of Exactness
If 𝑀(𝑥, 𝑦) and 𝑁(𝑥, 𝑦) and there FO derivatives are continuous on some rectangle of 𝑥𝑦-plane,
then (5.1) is exact if-and-only-if:
𝜕𝑀(𝑥, 𝑦) 𝜕𝑁(𝑥, 𝑦)
= (5.3)
𝜕𝑦 𝜕𝑥
Step 2:
Step 3:
1
Engineering Mathematics I Lecture 5: Exact, Linear, and Prof. Dr. Emad Al-Hemiary
Second Year, First Semester Bernoulli First Order ODE
𝜕𝑔(𝑥, 𝑦) 𝜕 2
= 𝑁(𝑥, 𝑦) → {𝑥 𝑦 + ℎ(𝑦)} = 1 + 𝑥 2 → 𝑥 2 + ℎ′ (𝑦) = 1 + 𝑥 2 → ℎ′ (𝑦) = 1
𝜕𝑦 𝜕𝑦
Step 4:
Step 5:
𝑔(𝑥, 𝑦) = 𝑐
𝑔(𝑥, 𝑦) = 𝑥 2 𝑦 + ℎ(𝑦) → 𝑐 = 𝑥 2 𝑦 + 𝑦 + 𝑐1 → 𝑦(𝑥 2 + 1) = 𝑐 − 𝑐1
𝑘
∴ 𝑦(𝑥) = , 𝑘 = 𝑐 − 𝑐1
(𝑥 2 + 1)
Example 5.2: Evaluate cos(𝑥 + 𝑦) 𝑑𝑥 + {3𝑦 2 + 2𝑦 + cos(𝑥 + 𝑦)} 𝑑𝑦 = 0
Solution:
We first test for exactness:
𝜕𝑀(𝑥,𝑦) 𝜕𝑁(𝑥,𝑦)
𝑀(𝑥, 𝑦) = cos(𝑥 + 𝑦) → = − sin(𝑥 + 𝑦), 𝑁(𝑥, 𝑦) = 3𝑦 2 + 2𝑦 + cos(𝑥 + 𝑦) → =
𝜕𝑦 𝜕𝑥
− sin(𝑥 + 𝑦) → 𝐸𝑥𝑎𝑐𝑡
𝜕𝑔(𝑥, 𝑦) 𝜕
= 𝑁(𝑥, 𝑦) → {sin(𝑥 + 𝑦) + ℎ(𝑦)} = 3𝑦 2 + 2𝑦 + cos(𝑥 + 𝑦) → cos(𝑥 + 𝑦) + ℎ′ (𝑦)
𝜕𝑦 𝜕𝑦
= 3𝑦 2 + 2𝑦 + cos(𝑥 + 𝑦) → ℎ′ (𝑦) = 3𝑦 2 + 2𝑦
2
Engineering Mathematics I Lecture 5: Exact, Linear, and Prof. Dr. Emad Al-Hemiary
Second Year, First Semester Bernoulli First Order ODE
If:
1 𝜕𝑀 𝜕𝑁
( − ) ≡ 𝑔(𝑥) → 𝐼(𝑥, 𝑦) = 𝑒 ∫ 𝑔(𝑥)𝑑𝑥 (5.5)
𝑁 𝜕𝑦 𝜕𝑥
If:
1 𝜕𝑀 𝜕𝑁
( − ) ≡ ℎ(𝑦) → 𝐼(𝑥, 𝑦) = 𝑒 − ∫ ℎ(𝑦)𝑑𝑦 (5.6)
𝑀 𝜕𝑦 𝜕𝑥
𝐼(𝑥, 𝑦) = 𝑒 − ∫ ℎ(𝑦)𝑑𝑦 = 𝑒 − ∫ 𝑑𝑦 = 𝑒 −𝑦
Therefore from (5.4), we get:
𝑒 −𝑦 {(𝑒 𝑥+𝑦 + 𝑦𝑒 𝑦 ) 𝑑𝑥 + (𝑥𝑒 𝑦 − 1) 𝑑𝑦} = 0 → (𝒆𝒙 + 𝒚) 𝒅𝒙 + (𝒙 − 𝒆−𝒚 ) 𝒅𝒚 = 𝟎 𝑖𝑠 𝐸𝑥𝑎𝑐𝑡
Test for exactness:
𝜕𝑀(𝑥,𝑦) 𝜕𝑁(𝑥,𝑦)
𝑀(𝑥, 𝑦) = 𝑒 𝑥 + 𝑦 → = 1, 𝑁(𝑥, 𝑦) = 𝑥 − 𝑒 −𝑦 → = 1 → 𝐸𝑥𝑎𝑐𝑡
𝜕𝑦 𝜕𝑥
Solve:
𝜕𝑔(𝑥, 𝑦) 𝜕 𝑥
= 𝑁(𝑥, 𝑦) → {𝑒 + 𝑦𝑥 + ℎ(𝑦)} = 𝑥 − 𝑒 −𝑦 → 𝑥 + ℎ′ (𝑦) = 𝑥 − 𝑒 −𝑦 → ℎ′ (𝑦) = −𝑒 −𝑦
𝜕𝑦 𝜕𝑦
𝑔(𝑥, 𝑦) = 𝑒 𝑥 + 𝑦𝑥 + ℎ(𝑦) → 𝑐 = 𝑒 𝑥 + 𝑦𝑥 + 𝑒 −𝑦 + 𝑐1 → 𝑒 𝑥 + 𝑦𝑥 + 𝑒 −𝑦 = 𝑘 (𝑘 = 𝑐 − 𝑐1 )
Thus:
𝑑(𝑦𝐼)
= 𝐼𝑟
𝑑𝑥
Integrating both sides for dx we get:
𝑦𝐼 = ∫ 𝐼𝑟 𝑑𝑥 + 𝐶 (5.12)
4
Engineering Mathematics I Lecture 5: Exact, Linear, and Prof. Dr. Emad Al-Hemiary
Second Year, First Semester Bernoulli First Order ODE
Let:
𝑢(𝑥 ) = [𝑦(𝑥)]1−𝑛
Results in with substitution of (5.14):
𝑢′ = (1 − 𝑛)𝑦 −𝑛 𝑦 ′ = (1 − 𝑛)𝑦 −𝑛 (𝑔𝑦 𝑛 − 𝑝𝑦)
𝑢′ = (1 − 𝑛)(𝑔 − 𝑝𝑦1−𝑛 ) (5.15)
Since 𝑦1−𝑛 = 𝑢, then:
3 3 1
𝑝(𝑥) = − → 𝐼(𝑥) = 𝑒 ∫ 𝑝(𝑥)𝑑𝑥 = 𝑒 − ∫𝑥𝑑𝑥 = 𝑒 −3𝑙𝑛𝑥 = 3
𝑥 𝑥
𝑟(𝑥) = 𝑥
The solution is as given in 5.12:
𝑦𝐼 = ∫ 𝐼𝑟 𝑑𝑥 + 𝐶
5
Engineering Mathematics I Lecture 5: Exact, Linear, and Prof. Dr. Emad Al-Hemiary
Second Year, First Semester Bernoulli First Order ODE
𝑦 1
= ∫ 𝑑𝑥 + 𝐶
𝑥3 𝑥2
𝑦 1
3
=− +𝐶
𝑥 𝑥
∴ 𝑦(𝑥) = −𝑥 2 + 𝐶𝑥 3
6
Engineering Mathematics I Lecture 5: Exact, Linear, and Prof. Dr. Emad Al-Hemiary
Second Year, First Semester Bernoulli First Order ODE
𝑢𝑒 𝑥 = ∫ 𝑒 𝑥 𝑑𝑥 + 𝐶 → 𝑢 = 1 + 𝐶𝑒 −𝑥