Lec 04 ODE Exact PDF
Lec 04 ODE Exact PDF
(First-order ODEs)
(Exact DEs – Non-Exact DEs)
Test of Exactness
If 𝑴(𝒙, 𝒚) and 𝑵(𝒙, 𝒚) have continuous partial derivatives in a
domain D, then 𝑴 𝒙, 𝒚 𝒅𝒙 + 𝑵 𝒙, 𝒚 𝒅𝒚 = 𝟎 is called an Exact
DE if and only if
𝝏𝑴(𝒙, 𝒚) 𝝏𝑵(𝒙, 𝒚)
=
𝝏𝒚 𝝏𝒙
Sec 2.6: Exact DE
Problem solving procedure:
𝝏𝑴(𝒙,𝒚) 𝝏𝑵(𝒙,𝒚)
1. Check exactness =
𝝏𝒚 𝝏𝒙
𝝏𝑭(𝒙,𝒚)
2. Let = 𝑴(𝒙, 𝒚) and integrate w.r.t. 𝒙 :
𝝏𝒙
𝑭 𝒙, 𝒚 = 𝑴 𝒙, 𝒚 𝒅𝒙 + 𝒈(𝒚)
𝝏𝑭(𝒙,𝒚)
3. Get partial derivatives w.r.t. y ( note that = 𝑵(𝒙, 𝒚) )
𝝏𝒚
𝝏
𝑵 𝒙, 𝒚 = 𝑴 𝒙, 𝒚 𝒅𝒙 + 𝒈′ (𝒚) , then simplify to get 𝒈′ (𝒚) .
𝝏𝒚
4. Integrate 𝒈′ (𝒚) w.r.t. 𝒚 to get 𝒈(𝒚) as a function in 𝒚 only.
5. Substitute in 2 to get 𝑭 𝒙, 𝒚 = 𝑪 as the implicit solution.
𝝏𝑭(𝒙,𝒚)
Note: we can start with = 𝑵(𝒙, 𝒚) and continue the
𝝏𝒚
same procedure with the appropriate variable.
Sec 2.6: Exact DE
Example Solve the following DE
𝒚𝟐 + 𝟐𝒙𝒚𝟐 𝒅𝒙 + 𝟑𝒚𝟐 + 𝟐𝒙𝒚 + 𝟐𝒙𝟐 𝒚 𝒅𝒚 = 𝟎
Solution
1. Let 𝑴 𝒙, 𝒚 = 𝒚𝟐 + 𝟐𝒙𝒚𝟐 , 𝑵 𝒙, 𝒚 = 𝟑𝒚𝟐 + 𝟐𝒙𝒚 + 𝟐𝒙𝟐 𝒚
note that 𝑴𝒚 = 𝟐𝒚 + 𝟒𝒙𝒚 = 𝑵𝒙
𝝏𝑴(𝒙, 𝒚) 𝝏𝑵 𝒙, 𝒚
≠ 𝐨𝐫 (𝑴𝒚 ≠ 𝑵𝒙 )
𝝏𝒚 𝝏𝒙
Instead, try to multiply the DE by an integrating factor
𝝁(𝒙, 𝒚) such that:
Solution
1. Check that the given DE is not Exact.
2. Multiply the given DE by 𝝁 𝒙, 𝒚 = 𝒙𝒚𝟐 to the new Exact DE
𝟐𝒙𝒚𝟑 − 𝟔𝒙𝟐 𝒚𝟐 𝒅𝒙 + 𝟑𝒙𝟐 𝒚𝟐 − 𝟒𝒙𝟑 𝒚 𝒅𝒚 = 𝟎 (check𝑴𝒚 = 𝑵𝒙 )
3. Apply the procedure of solving the Exact DE to get:
→ 𝑭 𝒙, 𝒚 = 𝒙𝟐 𝒚𝟑 − 𝟐𝒙𝟑 𝒚𝟐 = 𝑪.
How to get the suitable integrating factor ?!
Sec 2.6: Non-Exact DE
We have two special cases:
𝑴𝒚 −𝑵𝒙
𝑴𝒚 −𝑵𝒙 𝒅𝒙
1. If = 𝒇(𝒙) only, then take 𝝁 𝒙 = 𝒆 𝑵
𝑵
or
𝑵𝒙 −𝑴𝒚
𝑵𝒙 −𝑴𝒚 𝒅𝒚
2. If = 𝒇(𝒚) only, then take 𝝁 𝒚 = 𝒆 𝑴
𝑴
Notes:
• Both 𝒇(𝒙) and 𝒇(𝒚) are continuous functions.
• The general case is to find an integrating factor 𝝁 𝒙, 𝒚 ,
however there is no formal procedure to get that one.
Sec 2.6: Non-Exact DE
Example
Solve the DE: 𝒙𝒚 − 𝟐 𝒅𝒙 + 𝒙𝟐 − 𝒙𝒚 𝒅𝒚 = 𝟎
Solution
1. Let 𝑴 𝒙, 𝒚 = 𝒙𝒚 − 𝟐 , 𝑵 𝒙, 𝒚 = 𝒙𝟐 − 𝒙𝒚 note that:
𝑴𝒚 = 𝒙 ≠ 𝑵𝒙 = 𝟐𝒙 − 𝒚 → Non-Exact.
𝑴𝒚 −𝑵𝒙 −𝟏
−𝒙+𝒚 −𝟏 𝒅𝒙 𝟏
1. = = = 𝒇(𝒙) → 𝝁 𝒙 = 𝒆 𝒙 = (case 1)
𝑵 𝒙𝟐 −𝒙𝒚 𝒙 𝒙
𝟐
2. The new Exact DE becomes: 𝒚 − 𝒅𝒙 + 𝒙 − 𝒚 𝒅𝒚 = 𝟎
𝒙