Professional Documents
Culture Documents
Chapter Two - 2
Chapter Two - 2
Chapter Two
Differential Equations
2-1 Introduction:-
A differential equation is an equation involving one or more derivatives
of an unknown function. The unknown function is denoted by y = y(x). The
order of a differential equation is the order of highest derivative that it
contains. The variable x is called independent variable while y is called
dependent variable. The exponent of the highest-order derivative is called the
degree of the differential equation. For example:
′ 2
𝑑2𝑦 𝑑𝑦
𝑦 = 𝑥 + 5𝑦 𝑜𝑟𝑑𝑒𝑟 (1), − 3 + 5𝑦 = 0 𝑜𝑟𝑑𝑒𝑟 (2)
𝑑𝑥 2 𝑑𝑥
The differential equation which involves one or several derivatives of an
unspecified function y of x, is called ordinary differential equation. The
equation which involve partial derivative with respect to two or more
independent variables, is called the partial differential equation. For example:
6
𝜕4𝑧 𝜕2𝑧
+( ) =𝑥
𝜕𝑥 4 𝜕𝑥𝜕𝑦
An equation which is linear in the dependent variable and its derivatives
is called a linear differential equation. The ordinary linear differential
equation of order n is of the form,
𝑝0 (𝑥)𝑦 (𝑛) + 𝑝1 (𝑥)𝑦 (𝑛−1) + ⋯ + 𝑝𝑛−1 (𝑥)𝑦 ′ + 𝑝𝑛 (𝑥)𝑦 = 𝑟(𝑥) … … (∗)
Then, a differential equation which is not linear is said to be nonlinear
differential equation, i.e. cannot be put in the form (*).
𝑦 ′′ − 4𝑦 ′ − 5𝑦 = 𝑒 3𝑥 𝑙𝑖𝑛𝑒𝑎𝑟, 𝑦 ′′ + sin(𝑦) = 0 𝑛𝑜𝑛𝑙𝑖𝑛𝑒𝑎𝑟
Solution of a differential equation
Solution of DE is a relation between the variables which is free of
derivatives and which satisfies the differential equation identically.
1
Chapter Two Differential Equations
2
Chapter Two Differential Equations
H.W.
𝑑𝑦
1) (4𝑥 + 𝑥𝑦 2 )𝑑𝑥 + (𝑦 + 𝑥 2 𝑦)𝑑𝑦 = 0 2) 𝑦 ′ − 2𝑦 = 5 3)𝑥 +𝑦 =𝑥
𝑑𝑥
3
Chapter Two Differential Equations
𝜕𝑀(𝑥, 𝑦) 𝜕𝑁(𝑥, 𝑦)
= 𝑇ℎ𝑒 𝐷𝐸 𝑖𝑠 𝑒𝑥𝑎𝑐𝑡
𝜕𝑦 𝜕𝑥
By integrating (1) with respect to x:
𝜕𝑢(𝑥, 𝑦) 𝜕 𝜕𝑘(𝑦)
𝑢(𝑥, 𝑦) = [∫ 𝑀(𝑥, 𝑦)𝑑𝑥] + 𝑘(𝑦) → = [ ∫ 𝑀(𝑥, 𝑦)𝑑𝑥] +
𝜕𝑦 𝜕𝑦 𝜕𝑦
𝜕𝑘(𝑦) 𝜕
∴ = 𝑁(𝑥, 𝑦) − ∫ 𝑀(𝑥, 𝑦)𝑑𝑥]
𝜕𝑦 𝜕𝑦
𝜕
∴ 𝑘(𝑦) = ∫ {𝑁(𝑥, 𝑦) − ∫ 𝑀(𝑥, 𝑦)𝑑𝑥]} 𝑑𝑦
𝜕𝑦
Or by integrating (2) with respect to y:
𝜕
∴ 𝑘(𝑥) = ∫ {𝑀(𝑥, 𝑦) − ∫ 𝑁(𝑥, 𝑦)𝑑𝑦]} 𝑑𝑥
𝜕𝑥
Example:- Solve the equation
(3𝑥 2 𝑦 + 8𝑥𝑦 2 )𝑑𝑥 + (𝑥 3 + 8𝑥 2 𝑦 + 12𝑦 2 )𝑑𝑦 = 0
Sol.n:-
𝑀(𝑥, 𝑦) = 3𝑥 2 𝑦 + 8𝑥𝑦 2 , 𝑁(𝑥, 𝑦) = 𝑥 3 + 8𝑥 2 𝑦 + 12𝑦 2
4
Chapter Two Differential Equations
𝜕𝑀(𝑥, 𝑦) 𝜕𝑁(𝑥, 𝑦)
= 3𝑥 2 + 16𝑥𝑦 , = 3𝑥 2 + 16𝑥𝑦 → 𝐷𝐸 𝑖𝑠 𝑒𝑥𝑎𝑐𝑡
𝜕𝑦 𝜕𝑥
= 𝑥 3 𝑦 + 4𝑥 2 𝑦 2 + 𝑘(𝑦)
𝜕𝑢(𝑥, 𝑦) 𝜕𝑘(𝑦)
= 𝑥 3 + 8𝑥 2 𝑦 + = 𝑁(𝑥, 𝑦) = 𝑥 3 + 8𝑥 2 𝑦 + 12𝑦 2
𝜕𝑦 𝜕𝑦
𝜕𝑘(𝑦)
∴ = 12𝑦 2 → 𝑘(𝑦) = ∫ 12𝑦 2 𝑑𝑦 = 4𝑦 3
𝜕𝑦
𝑢(𝑥, 𝑦) = 𝑥 3 𝑦 + 4𝑥 2 𝑦 2 + 4𝑦 3 → 𝑥 3 𝑦 + 4𝑥 2 𝑦 2 + 4𝑦 3 = 𝐶 𝐺. 𝑆.
H.W.
𝑑𝑦 1+𝑦 2 +3𝑥 2 𝑦
1) (3𝑦 + 𝑒 𝑥 )𝑑𝑥 + (3𝑥 + cos(𝑦))𝑑𝑦 = 0 2) =
𝑑𝑥 1−2𝑥𝑦−𝑥 3
(1+𝑥 2 )
3) 𝑒 𝑥 (𝑦𝑑𝑥 + 𝑑𝑦) + 𝑒 𝑦 (𝑑𝑥 + 𝑥𝑑𝑦) = 0 4) 2𝑥 ln(𝑦) 𝑑𝑥 + 𝑑𝑦 = 0
𝑦
𝜕𝑢 𝜕𝑘(𝑦)
= 𝑁(𝑥, 𝑦) = cos(𝑦) = → 𝑘(𝑦) = sin(𝑦) + 𝑐1
𝜕𝑦 𝜕𝑦
∴ 𝑢(𝑥, 𝑦) = 2 sin(𝑥) + sin(𝑦) + 𝑐1 → 2 sin(𝑥) + sin(𝑦) = 𝐾 𝐺. 𝑆.
5
Chapter Two Differential Equations
H.W.
1) 𝑥𝑑𝑦 − 𝑦𝑑𝑥 = 0 2) 𝑥𝑐𝑜𝑠ℎ(𝑦)𝑑𝑦 − sinh(𝑦) 𝑑𝑥 = 0 3)2𝑑𝑥 − 𝑒 𝑦−𝑥 𝑑𝑦 = 0
4) 𝑥𝑦 ′ + 𝑦 = 𝑥𝑦𝑦 ′ 5) 𝑦 ′ (𝑥𝑦 − 𝑦) = 1 6) 𝑦 = (𝑦𝑒 𝑦 − 2𝑥)𝑦 ′
7) 𝑦 − 𝑥𝑦 = 𝑦𝑦 ′ 8) (𝑥𝑦 2 + 𝑦) + (𝑥 2 𝑦 − 𝑥)𝑦 ′ = 0
9) 3(𝑦 4 + 1)𝑑𝑥 + 4𝑥𝑦 3 𝑑𝑦 = 0 10) 2𝑦𝑑𝑥 + (3𝑦 − 2𝑥)𝑑𝑦 = 0
2-2-5 Linear Differential Equations:-
A first-order DE is said to be linear if it can be written as:
𝑦 ′ + 𝑓(𝑥)𝑦 = 𝑟(𝑥)
• If r(x) = 0, the DE is said to be homogeneous linear DE
• If r(x) 0, the DE is said to be non-homogeneous linear DE
2-2-5-1 Homogeneous Linear DE
It can be solve by separating variables,
𝑑𝑦 𝑑𝑦
+ 𝑓(𝑥)𝑦 = 0 → ∫ = − ∫ 𝑓(𝑥)𝑑𝑥 + 𝑐 → ln(𝑦) = − ∫ 𝑓(𝑥)𝑑𝑥 + 𝑐
𝑑𝑥 𝑦
𝑦(𝑥) = 𝑒 − ∫ 𝑓(𝑥)𝑑𝑥 𝑒 𝑐 → 𝑦(𝑥) = 𝑘𝑣(𝑥) 𝐺. 𝑆. , 𝑤ℎ𝑒𝑟𝑒 𝑣(𝑥) = 𝑒 − ∫ 𝑓(𝑥)𝑑𝑥
2-2-5-2 Non-Homogeneous Linear DE
There are two methods to solve this type of DE:
By Integrating Factor
𝑦 ′ + 𝑓(𝑥)𝑦 = 𝑟(𝑥) → 𝑑𝑦 + {𝑓(𝑥)𝑦 − 𝑟(𝑥)}𝑑𝑥 = 0 … (1)
𝜕𝑀 𝜕𝑁
𝑀(𝑥, 𝑦) = 𝑓(𝑥)𝑦 − 𝑟(𝑥) , 𝑁(𝑥, 𝑦) = 1 → = 𝑓(𝑥), = 0 → 𝑛𝑜𝑡 𝑒𝑥𝑎𝑐𝑡
𝜕𝑦 𝜕𝑥
Multiplying (1) by integrating factor to convert DE to exact:
𝐹(𝑥)𝑑𝑦 + 𝐹(𝑥){𝑓(𝑥)𝑦 − 𝑟(𝑥)}𝑑𝑥 = 0
𝜕𝑀 𝜕𝑁 𝜕𝐹(𝑥) 𝜕𝐹(𝑥)
= 𝐹(𝑥)𝑓(𝑥) , = → = 𝑓(𝑥)𝑑𝑥 →
𝜕𝑦 𝜕𝑥 𝜕𝑥 𝐹(𝑥)
2
𝑥 2 cos(3𝑥) 𝑥2
𝑦(𝑥) = 𝑥 ∫ 2
𝑑𝑥 + 𝑐𝑥 = sin(3𝑥) + 𝑐𝑥 2
2
𝐺. 𝑆.
𝑥 3
H.W.
1) 𝑥𝑦 ′ + (1 − 𝑥)𝑦 = 𝑥𝑒 𝑥 2) (𝑥 2 − 1)𝑦 ′ + 2y = (𝑥 + 1)2
3) 𝑦 ′ + 𝑦 = cos(𝑒 𝑥 ) 4) 𝑦 ′ + 𝑦 𝑡𝑎𝑛(𝑥) = sec(𝑥)
7
Chapter Two Differential Equations
Let 𝑦 −1 = 𝑤 → −𝑦 −2 𝑦 ′ = 𝑤 ′
sin(𝑥) sin(𝑥)
−𝑤 ′ − [3 − ] 𝑤 = −1 → 𝑤 ′ + [3 − ]𝑤 = 1
2 + cos(𝑥) 2 + cos(𝑥)
H.W.: Complete the solution
8
Chapter Two Differential Equations
9
Chapter Two Differential Equations
1 1
𝑚1 = [(1 − 𝑎) + √(1 − 𝑎)2 − 4𝑏] , 𝑚2 = [(1 − 𝑎) − √(1 − 𝑎)2 − 4𝑏]
2 2
Case 1 𝑚1 ≠ 𝑚2 → 𝑦(𝑥) = 𝑘1 𝑥 𝑚1 + 𝑘2 𝑥 𝑚2 𝐺. 𝑆.
(1−𝑎)2
Case 2 𝑚1 = 𝑚2 (double roots) → 𝑏 =
4
1−𝑎 1−𝑎
𝑚1 = → 𝑦1 (𝑥) = 𝑥 = 𝑥 2 )
𝑚1 (
2
𝑦2 (𝑥) = 𝑢(𝑥)𝑦1 (𝑥) → 𝑦2 ′ = 𝑢𝑦1 ′ + 𝑢′ 𝑦1 → 𝑦2 ′′ = 𝑢𝑦1 ′′ + 2𝑢′ 𝑦1 ′ + 𝑢′′ 𝑦1
Into equ. (1):
𝑥 2 [𝑢𝑦1 ′′ + 2𝑢′ 𝑦1 ′ + 𝑢′′ 𝑦1 ] + 𝑎𝑥[𝑢𝑦1 ′ + 𝑢′ 𝑦1 ] + 𝑏𝑢𝑦1 = 0
′′
𝑢[𝑥 2 𝑦1 + 𝑎𝑥𝑦1 ′ + 𝑏𝑦1 ] + 𝑢′ [2𝑥 2 𝑦1 ′ + 𝑎𝑥𝑦1 ] + 𝑥 2 𝑢′′ 𝑦1 = 0
′′
𝑥 2 𝑦1 + 𝑎𝑥𝑦1 ′ + 𝑏𝑦1 because 𝑦1 is the 1st solution of the DE and satisfies the
equation
2 ′
1 − 𝑎 (−1−𝑎) 2 (
1−𝑎
) (
3−𝑎
)
2𝑥 𝑦1 + 𝑎𝑥𝑦1 = 2𝑥 ( )𝑥 2 + 𝑎𝑥𝑥 2 =𝑥 2
2
3−𝑎 5−𝑎 3−𝑎
( ) ( ) ( )
∴𝑥 2 𝑢′ +𝑥 2 𝑢" =0 ÷𝑥 2 𝑢′ → 𝑢′ + 𝑥𝑢′′ = 0
𝑑𝑧 −𝑑𝑥 1
𝑙𝑒𝑡 𝑢′ = 𝑧 → 𝑢′′ = 𝑧 ′ → 𝑧 + 𝑥𝑧 ′ = 0 → = → ln(𝑧) = ln ( )
𝑧 𝑥 𝑥
1 𝑑𝑥 1−𝑎
∴𝑧= = 𝑢′ → 𝑑𝑢 = → 𝑢 = ln(𝑥) → 𝑦2 = ln (𝑥)𝑥 ( 2 )
𝑥 𝑥
1−𝑎
𝑦(𝑥) = 𝑥 ( )
2 [𝑘1 + 𝑘2 ln(𝑥)] 𝐺. 𝑆.
Or
𝑎𝑥 2 𝑦 ′′ + 𝑏𝑥𝑦 ′ + 𝑐𝑦 = 𝑔(𝑥) … (1) 𝐶𝑎𝑢𝑐ℎ𝑦 − 𝐸𝑢𝑙𝑒𝑟 𝐷. 𝐸.
Let 𝑥 = 𝑒 𝑡 ⟹ 𝑡 = 𝑙𝑛(𝑥)
𝑑𝑥 𝑑𝑥
= 𝑒𝑡 ⟹ =𝑥 ………..(1)
𝑑𝑡 𝑑𝑡
𝑑𝑦 𝑑𝑦 𝑑𝑥 𝑑𝑦
= ⟹ = 𝑦′ . 𝑥 = 𝑦̇
𝑑𝑡 𝑑𝑥 𝑑𝑡 𝑑𝑡
𝑑 𝑑𝑦 𝑑
( ) ⟹ (𝑦′ . 𝑥) 2𝑛𝑑 𝐷𝑒𝑟𝑖𝑣𝑎𝑡𝑖𝑣𝑒
𝑑𝑡 𝑑𝑡 𝑑𝑡
11
Chapter Two Differential Equations
𝑑 ′ 𝑑𝑥
(𝑦 . 𝑥 )
𝑑𝑥 𝑑𝑡
𝑦̈ = (𝑦′ + 𝑥 𝑦′′ ). 𝑥 ⟹ 𝑦̈ = (𝑦′ 𝑥 + 𝑥 2 𝑦′′ ) ⟹ 𝑦̈ = 𝑦̇ + 𝑥 2 𝑦′′
𝑥 2 𝑦′′ = 𝑦̈ − 𝑦̇
𝑎(𝑦̈ − 𝑦̇ ) + 𝑏(𝑦̇ ) + 𝑐𝑦 = 𝑔(𝑥)
𝑦̈ − 𝑦̇ + 3𝑦̇ + 𝑦 = 0 ⟹ 𝑦̈ + 2𝑦̇ + 𝑦 = 0
r1,2=-1
𝑦 = 𝑐1 𝑒 −𝑡 + 𝑐2 𝑡𝑒 −𝑡 ⟹ 𝑐1 𝑒 −𝑙𝑛(𝑥) + 𝑐2 𝑙𝑛(𝑥)𝑒 −𝑙𝑛(𝑥)
𝑐1 𝑐2
𝐺. 𝑠 𝑦 = + 𝑙𝑛(𝑥)
𝑥 𝑥
12
Chapter Two Differential Equations
Example:- Solve 𝑦 ′′ + 4𝑦 ′ + 4𝑦 = 8𝑥 − 10
Sol.n:- 𝜆2 + 4𝜆 + 4 = 0 → (𝜆 + 2)(𝜆 + 2) = 0 → 𝜆1 = 𝜆2 = −2
𝑦ℎ (𝑥) = 𝑘1 𝑒 −2𝑥 + 𝑘2 𝑥𝑒 −2𝑥
Let 𝑦𝑝 (𝑥) = 𝐴1 𝑥 + 𝐴0 → 𝑦𝑝 ′ = 𝐴1 → 𝑦𝑝 ′′ = 0
4𝐴1 + 4𝐴1 𝑥 + 4𝐴0 = 8𝑥 − 10 → 4𝐴1 𝑥 + (4𝐴1 + 4𝐴0 ) = 8𝑥 − 10
4𝐴1 = 8 → 𝐴1 = 2, 4𝐴1 + 4𝐴0 = −10 → 𝐴0 = −4.5
𝑦(𝑥) = 𝑘1 𝑒 −2𝑥 + 𝑘2 𝑥𝑒 −2𝑥 + 2𝑥 − 4.5 𝐺. 𝑆.
13
Chapter Two Differential Equations
14
Chapter Two Differential Equations
15
Chapter Two Differential Equations
𝑑 2 𝑦 𝑑𝑦 𝑑𝑦 𝑑2𝑦
∴ 2− + + 4𝑦 = 1 → + 4𝑦 = 1
𝑑𝑧 𝑑𝑧 𝑑𝑧 𝑑𝑧 2
1
The general solution is 𝑦(𝑧) = 𝑘1 cos(2𝑧) + 𝑘2 sin(2𝑧) +
4
1
𝑦(𝑥) = 𝑘1 cos(2ln (𝑥)) + 𝑘2 sin(2ln (𝑥)) +
4
𝜆1 = 𝜆2 = 0, 𝜆3 = 𝜆4 = 𝜆5 = 1
𝑦(𝑥) = 𝑘1 + 𝑘2 𝑥 + 𝑘3 𝑒 𝑥 + 𝑘4 𝑥𝑒 𝑥 + 𝑘5 𝑥 2 𝑒 𝑥
H.W.
1) 𝑦 (4) − 𝑦 = 0 2) (𝐷5 − 𝐷2 − 𝐷 + 1)𝑦 = 0
3) (𝐷 − 7)(2𝐷2 + 5𝐷 + 2)𝑦 = 0 4) (𝐷3 − 3𝐷2 + 9𝐷 + 13)𝑦 = 0
17