Professional Documents
Culture Documents
O.D.E. Lecture 4 PDF
O.D.E. Lecture 4 PDF
Lecture (4)
First Order Differential equations
where 𝑎0 (𝑥) ≠ 0
𝑑𝑦
⇒ + 𝑝(𝑥)𝑦 = 𝑄(𝑥) …………. (2)
𝑑𝑥
𝑎1 (𝑥) 𝑎2 (𝑥)
Where 𝑝(𝑥) = 𝑎𝑛𝑑𝑄(𝑥) =
𝑎0 (𝑥) 𝑎0 (𝑥)
The equation (2) is the standard form of the linear differential equation in the dependent variable
y and independent variable x.
every first-order linear differential equation can be solved in a similar fashion by multiplying
both sides of Equation 2 by 𝜇 a suitable function called an integrating factor which is always a
function of independent variable alone.
Suppose that there exist for equation (2) an integrating factor 𝜇(𝑥),a function of x alone, then
𝑑𝑦
𝜇(𝑥) ( + 𝑝(𝑥)𝑦) = 𝜇(𝑥)𝑄(𝑥)
𝑑𝑥
Or
𝜇(𝑥)𝑑𝑦 + (𝜇(𝑥)𝑝(𝑥)𝑦 − 𝜇(𝑥)𝑄(𝑥))𝑑𝑥 = 0 …………. (3)
Must be an exact equation. So, we have
and
𝜕𝑀
𝑀(𝑥, 𝑦) = 𝜇(𝑥)𝑝(𝑥)𝑦 − 𝜇(𝑥)𝑄(𝑥) ⇒ = 𝜇(𝑥)𝑝(𝑥)
𝜕𝑦
Thus, a formula for the general solution to Equation (2) is provided by Equation (6), where
𝜇(𝑥) is given by Equation (5).
Solution:
𝒅𝒚 𝟐
A) + 𝒚=𝒙
𝒅𝒙 𝒙
2
𝑝(𝑥) = 𝑄(𝑥) = 𝑥
𝑥
2
𝜇(𝑥) = 𝑒 ∫ 𝑝(𝑥)𝑑𝑥 = 𝑒 ∫𝑥 𝑑𝑥 = 𝑥 2
1 1 1 1 𝑥4 1 𝑐
𝑦= [∫ 𝜇(𝑥)𝑄(𝑥) dx] = [ 𝑥 2 (𝑥)dx] =
2 ∫
[ 𝑥 3 dx] =
2 ∫ 2
[ + 𝑐] = 𝑥 2 +
𝜇(𝑥) 𝑥 𝑥 𝑥 4 4 𝑥2
𝒅𝒙
𝑩) + 𝟐𝒕𝒙 = 𝒙 + 𝟒𝒕 − 𝟐
𝒅𝒕
𝑑𝑥
+ (2𝑡 − 1)𝑥 = 4𝑡 − 2
𝑑𝑡
1
𝑥= [∫ 𝜇(𝑡)𝑄(𝑡) dt]
𝜇(𝑡)
1 2 −𝑡 1 2 −𝑡 1 2 −𝑡
𝑥= 2 [∫ 𝑒 𝑡 (4𝑡 − 2)dt] = 2 [2 ∫(2𝑡 − 1)𝑒 𝑡 dt] = 2 [2𝑒 𝑡 + 𝑐]
𝑒 𝑡 −𝑡 𝑒 𝑡 −𝑡 𝑒 𝑡 −𝑡
2
Example 2: find the general solution of the equation 𝑦𝑑𝑥 + (3 − 𝑦)𝑥𝑑𝑦 = − 𝑑𝑦.
𝑦
Solution:
Since the product 𝑦 𝑑𝑦 appear here, the equation is not linear in y. it is however linear in x.
Now
3 2
𝑝(𝑦) = ( − 1) , 𝑄(𝑦) = −
𝑦 𝑦2
3
∫(𝑦−1)𝑑𝑦
𝜇(𝑦) = 𝑒 ∫ 𝑝(𝑦)𝑑𝑦 = 𝑒 = 𝑒 3 ln(𝑦)−𝑦 = 𝑦 3 𝑒 −𝑦
1
𝑥= [∫ 𝜇(𝑦)𝑄(𝑦) dy]
𝜇(𝑦)
1 3 −𝑦
2 1
= 3 −𝑦
[∫ 𝑦 𝑒 (− 2
) dy] = 3 −𝑦
[−2 ∫ 𝑦𝑒 −𝑦 𝑑𝑦]
𝑦 𝑒 𝑦 𝑦 𝑒
Let 𝑢 = 𝑦 → 𝑑𝑢 = 𝑑𝑦
𝑑𝑣 = 𝑒 −𝑦 𝑑𝑦 → 𝑣 = −𝑒 −𝑦
1 1
⇒𝑥 = [−2(−𝑦𝑒 −𝑦 + ∫ 𝑒 −𝑦 𝑑𝑦)] = [−2(−𝑦𝑒 −𝑦 − 𝑒 −𝑦 + 𝑐)]
𝑦 3 𝑒 −𝑦 𝑦 3 𝑒 −𝑦
1 2 2 𝐶
= [(2𝑦𝑒 −𝑦 + 2𝑒 −𝑦 + 𝐶] = + +
𝑦 3 𝑒 −𝑦 𝑦2 𝑦3 𝑦 3 𝑒 −𝑦
7. Bernoulli’s Equation
The first order first degree differential equation of the form
𝑑𝑦
+ 𝑝𝑦 = 𝑄𝑦 𝑛 , 𝑛 ≠ 0,1 …………. (1)
𝑑𝑥
𝑑𝑦
When n = 0, it reduces to a linear differential equation( + 𝑝(𝑥)𝑦 = 𝑄(𝑥)) when n = 1, it
𝑑𝑥
𝑑𝑦
reduces to variable separable type( = (−𝑝(𝑥) + 𝑄(𝑥)𝑦)). For any other value of n, the
𝑑𝑥
Which is linear equation with dependent variable u and hence can be solved.
𝑑𝑦
Example (1): solve cos(𝑥) − sin(𝑥) 𝑦 = 𝑦 3 𝑐𝑜𝑠 2 (𝑥) .
𝑑𝑥
Solution:
𝑑𝑦
cos(𝑥) − sin(𝑥) 𝑦 = 𝑦 3 𝑐𝑜𝑠 2 (𝑥)
𝑑𝑥
Let 𝒖 = 𝒚−𝟐
𝒅𝒖 𝒅𝒚 𝒅𝒚 𝟏 𝒅𝒖
∴ = −𝟐𝒚−𝟑 ⟹ 𝒚−𝟑 =−
𝒅𝒙 𝒅𝒙 𝒅𝒙 𝟐 𝒅𝒙
= 𝑐𝑜𝑠 2 (𝑥) [−2 ∫(𝑐𝑜𝑠(𝑥))−1 𝑑𝑥] = 𝑐𝑜𝑠 2 (𝑥) [−2 ∫ 𝑠𝑒𝑐(𝑥) 𝑑𝑥]
∴ equation becomes
𝑑𝑣
+ 𝑝(𝑥)𝑣 = 𝑄(𝑥)
𝑑𝑥
which is linear differential equation with dependent variable v and hence can be solved.
𝑑𝑦 2
Example (1): solve 2𝑦𝑐𝑜𝑠(𝑦 2 ) − sin(𝑦 2 ) = (1 + 𝑥)2
𝑑𝑥 𝑥+1
Solution:
𝑑𝑦 2
2𝑦𝑐𝑜𝑠(𝑦 2 ) − sin(𝑦 2 ) = (1 + 𝑥)2
𝑑𝑥 𝑥+1
Let 𝒗 = 𝒔𝒊𝒏(𝒚𝟐 )
𝒅𝒗 𝒅𝒚
⇒ = 𝟐𝒚𝒄𝒐𝒔(𝒚𝟐 )
𝒅𝒙 𝒅𝒙
∴ equation becomes
𝑑𝑣 2
− 𝑣 = (1 + 𝑥)2
𝑑𝑥 𝑥+1
2) 𝑦 ′ − sin(2𝑥) = 𝑦𝑐𝑜𝑡(𝑥) 4) (𝑥 + 2𝑦 2 )
𝑑𝑦
=𝑦
𝑑𝑥
𝑑𝑦
5) (1 + 𝑥 2 )𝑡𝑎𝑛−1 (𝑥) + 𝑦 = 𝑥 given that 𝑦 = −1 when 𝑥 = −1
𝑑𝑥
References
Dennis G. Zill, (2016), A First Course in Differential Equations with Modeling Application
(11𝑡ℎ Edition).
William E. Boyce, Richard C. Diprima, Douglas B. Meade, (2017) Elementary Differential
Equations and Boundary Value Problems (11𝑡ℎ Edition)