Engineering Analysis: Faculty of Engineering Petroleum Engineering
Engineering Analysis: Faculty of Engineering Petroleum Engineering
Faculty of Engineering
Petroleum Engineering
Fourth year
seven semesters
Engineering analysis Lecture 3
or
𝝁(𝑀𝑦 + 𝑁𝑥 ) = 𝜇𝑦 M + 𝝁𝒙 𝑁 ….……... (4)
Or
𝑑𝜇 𝑀𝑦 −𝑁𝑥
= 𝑑𝑥 = 𝑓(𝑥)𝑑𝑥
𝜇 𝑁
𝜇 = 𝑒 ∫ 𝑓(𝑥)𝑑𝑥
𝒅𝝁
If 𝝁 depends only on y. Then, 𝝁𝒚 = and 𝜇𝑥 = 0, so (4) can be written as
𝒅𝒚
13
Engineering analysis Lecture 3
𝑑𝜇 −(𝑀𝑦 −𝑁𝑥 )
= 𝜇
𝑑𝑦 𝑀
Or
𝑑𝜇 −(𝑀𝑦 −𝑁𝑥 )
= 𝑑𝑦 = −𝑔(𝑦)𝑑𝑦
𝜇 𝑀
𝜇 = 𝑒 − ∫ 𝑔(𝑦)𝑑𝑦 .
Example(1): Solve 3𝑥 2 𝑦 𝑑𝑥 + 2𝑥 3 𝑑𝑦 = 0.
𝜕𝑁
𝑁(𝑥, 𝑦) = 2𝑥 3 ⇒ = 6𝑥 2
𝜕𝑥
𝜕𝑀
𝑀(𝑥, 𝑦) = 3𝑥 2 𝑦 ⇒ = 3𝑥 2
𝜕𝑦
𝜕𝑀(𝑥,𝑦) 𝜕𝑁(𝑥,𝑦)
≠
𝜕𝑦 𝜕𝑥
1 𝜕𝑀 𝜕𝑁 −3𝑥 2 3
𝑓(𝑥) = ( − ) = =−
𝑁 𝜕𝑦 𝜕𝑥 2𝑥 3 2𝑥
3 −3
𝜇 = 𝑒 ∫ 𝑓(𝑥)𝑑𝑥 = 𝑒 ∫ −2𝑥 𝑑𝑥 = 𝑥 2
1 3
3𝑥 2 𝑦 𝑑𝑥 + 2𝑥 2 𝑑𝑦 = 0
1
𝜕𝑀 𝜕𝑁
= 3𝑥 2 =
𝜕𝑦 𝜕𝑥
𝜕𝑢
= 𝑁(𝑥, 𝑦)
𝜕𝑦
3
∫ 𝑑𝑢 = ∫ (2𝑥 ) 𝑑𝑦 2
3
𝑢(𝑥, 𝑦) = 2𝑥 2 𝑦 + 𝑔(𝑥). . . . . . . . . (∗)
1 1
𝜕𝑢
= 3𝑥 2 + 𝑔′ (𝑥) = 𝑀(𝑥, 𝑦) = 3𝑥 2 𝑦
𝜕𝑥
𝑔′ (𝑥) = 0
𝑔′ (𝑥) = 0
14
Engineering analysis Lecture 3
Solution:
𝑥𝑦 𝑑𝑥 + (2𝑥 2 + 3𝑦 2 − 20)𝑑𝑦 = 0
𝜕𝑀
𝑀(𝑥, 𝑦) = 𝑥𝑦 ⇒ =𝑥
𝜕𝑦
𝜕𝑁
𝑁(𝑥, 𝑦) = 2𝑥 2 + 3𝑦 2 − 20 ⇒ = 4𝑥
𝜕𝑥
𝜕𝑀(𝑥,𝑦) 𝜕𝑁(𝑥,𝑦)
≠
𝜕𝑦 𝜕𝑥
1 𝜕𝑀 𝜕𝑁 −3𝑥 3
𝑔(𝑦) = ( − 𝜕𝑥 ) = =−
𝑀 𝜕𝑦 𝑥𝑦 𝑦
3
− ∫ − 𝑑𝑦
𝜇 = 𝑒 − ∫ 𝑔(𝑦)𝑑𝑦 = 𝑒 𝑦 = 𝑦3
𝑥𝑦 4 𝑑𝑥 + (2𝑥 2 𝑦 3 + 3𝑦 5 − 20𝑦 3 )𝑑𝑦 = 0
𝜕𝑀 𝜕𝑁
= 4𝑥 2 𝑦 3 =
𝜕𝑦 𝜕𝑥
𝜕𝑢
= 𝑀(𝑥, 𝑦)
𝜕𝑥
∫ 𝑑𝑢 = ∫(𝑥𝑦 4 )𝑑𝑥
𝑥2
𝑢(𝑥, 𝑦) = 𝑦 4 + ℎ(𝑦). . . . . . . . . (∗)
2
𝜕𝑢
= 2𝑥 𝑦 + ℎ′ (𝑦) = 𝑁(𝑥, 𝑦)
2 3
𝜕𝑦
ℎ′ (𝑦) = 3𝑦 5 − 20𝑦 3
1
ℎ(𝑦) = 𝑦 6 − 5𝑦 4
2
15
Engineering analysis Lecture 3
Example (3): verify that the given differential equation is not exact. Multiply the
given differential equation by the indicated integrating factor 𝜇(𝑥, 𝑦) and verify that
the new equation is exact. Solve it.
𝑦𝑠𝑖𝑛(𝑦) 𝑑𝑥 + 𝑥(𝑠𝑖𝑛(𝑦) − 𝑦𝑐𝑜𝑠(𝑦)) 𝑑𝑦 = 0
Solution:
𝜕𝑀
𝑀(𝑥, 𝑦) = 𝑦𝑠𝑖𝑛(𝑦) ⇒ = sin(𝑦) + 𝑦𝑐𝑜𝑠(𝑦)
𝜕𝑦
𝜕𝑁
𝑁(𝑥, 𝑦) = 𝑥(sin(𝑦) − 𝑦𝑐𝑜𝑠(𝑦)) ⇒ = sin(𝑦) − 𝑦𝑐𝑜𝑠(𝑦)
𝜕𝑥
𝜕𝑀(𝑥,𝑦) 𝜕𝑁(𝑥,𝑦)
≠
𝜕𝑦 𝜕𝑥
1 𝜕𝑀 𝜕𝑁 2cos (𝑦)
ℎ(𝑥) = ( − 𝜕𝑥 ) =
𝑀 𝜕𝑦 sin (𝑦)
−2cos (𝑦)
− ∫ ℎ(𝑦)𝑑𝑦 ∫ 𝑑𝑦 1
𝜇=𝑒 = 𝑒 sin (𝑦) =
𝑠𝑖𝑛2 (𝑦)
1
𝑠𝑖𝑛2 (𝑦)
[𝑦𝑠𝑖𝑛(𝑦) 𝑑𝑥 + 𝑥(𝑠𝑖𝑛(𝑦) − 𝑦𝑐𝑜𝑠(𝑦))𝑑𝑦] = 0
𝑦 1 𝑦𝑐𝑜𝑠(𝑦)
𝑑𝑥 + 𝑥 ( − ) 𝑑𝑦 = 0
𝑠𝑖𝑛(𝑦) 𝑠𝑖𝑛(𝑦) 𝑠𝑖𝑛2 (𝑦)
𝜕𝑀 1 𝑦𝑐𝑜𝑠(𝑦) 𝜕𝑁
= − =
𝜕𝑦 𝑠𝑖𝑛(𝑦) 𝑠𝑖𝑛2 (𝑦) 𝜕𝑥
𝜕𝑢 𝑦
= 𝑀(𝑥, 𝑦) =
𝜕𝑥 𝑠𝑖𝑛(𝑦)
𝑦
𝑢(𝑥, 𝑦) = 𝑥 + ℎ(𝑦). . . . . . . . . (∗)
𝑠𝑖𝑛(𝑦)
𝜕𝑢 1 𝑐𝑜𝑠(𝑦)
=𝑥 − 𝑥𝑦 + ℎ′ (𝑦) = 𝑁(𝑥, 𝑦)
𝜕𝑦 𝑠𝑖𝑛(𝑦) 𝑠𝑖𝑛2 (𝑦)
ℎ′ (𝑦) = 0
ℎ(𝑦) = 0
Sub h(y) in eq (*), we get
𝑦
𝑢(𝑥, 𝑦) = 𝑥=𝑐
𝑠𝑖𝑛(𝑦)
16
Engineering analysis Lecture 3
Exercise:
1) verify that the given differential equation is not exact. Multiply the given
differential equation by the indicated integrating factor 𝑀(𝑥, 𝑦) and verify that
the new equation is exact. Solve
1. cos(𝑥) cos(𝑦) 𝑑𝑥 + (sin(𝑥) cos(𝑦) − sin(𝑥) sin(𝑦) + 𝑦)𝑑𝑦 = 0
𝑑𝑦 −𝑦 2
2. =
𝑑𝑥 𝑥𝑦 2 +3𝑥𝑦+1⁄𝑦
2) find the value of k so that the given differential equation is exact.
(𝑦 3 + 𝑘𝑥𝑦 4 − 2𝑥)𝑑𝑥 + (3𝑥𝑦 2 + 20𝑦 3 𝑥 2 )𝑑𝑦 = 0
3) determine whether the given differential equation is exact or not, solve it.
𝑒 𝑥𝑦 (cos(𝑥) − sin(𝑥))𝑑𝑥 + 𝑥𝑒 𝑥𝑦 cos(𝑥) 𝑑𝑦 = 0
17
Engineering analysis Lecture 3
18
Engineering analysis Lecture 3
1 (𝑣−1) −2
𝑑𝑥 = (𝑣+1) 𝑑𝑣 = (1 + (𝑣+1)) 𝑑𝑣
𝑥
ln(𝑥) = 𝑣 − 2 ln(𝑣 + 1) + 𝑐
𝑦
⸪𝑦 = 𝑣𝑥 ⇒ 𝑣 =
𝑥
19