Types of Differential Equations
Types of Differential Equations
“Ordinary Differential
Equations” (ODEs)
have a single independent
variable
Differential
Equations
“Partial Differential
Equations” (PDEs)
have two or more
independent variables
[email protected] 1
ODE 1st order: direct integration & SoVA 1/27/2022
first derivative
second derivative of 𝑦 𝑥 function of one
of 𝑦 𝑥 independent variable, 𝑦 𝑥
𝑑2 𝑦 𝑑𝑦
2
+ 2𝑥 + 𝑦 = 𝑒 2𝑥
𝑑𝑥 𝑑𝑥
independent variable: 𝑥
dependent variable: 𝑦
Classification of ODE
order
degree
Ordinary Differential
Equations
linearity
homogeneity
[email protected] 2
ODE 1st order: direct integration & SoVA 1/27/2022
constant 𝑑2𝑦 𝑑𝑦
coefficients + 4 − 5y = 0
𝑑𝑥 2 𝑑𝑥 Linear
differential
coefficients which
2
𝑑2 𝑦 𝑑𝑦 equation
depend on the 𝑥 2
+𝑥 = 𝑠𝑖𝑛(𝑥)
independent variable 𝑑𝑥 𝑑𝑥
[email protected] 3
ODE 1st order: direct integration & SoVA 1/27/2022
𝑑𝑦 𝑦
=𝐹
𝑑𝑥 𝑥
Example 1
𝑑𝑦 3𝑦 2 + 𝑥𝑦
=
𝑑𝑥 𝑥2 Single denominator
𝑑𝑦 3𝑦 2 𝑥𝑦
= 2 + 2
𝑑𝑥 𝑥 𝑥
𝑑𝑦 𝑦2 𝑦 𝑦 2 𝑦
Rewrite =3 2 + =3 +
𝑑𝑥 𝑥 𝑥 𝑥 𝑥
𝑑𝑦 𝑦 The differential equation
=𝐹 is homogeneous.
𝑑𝑥 𝑥
[email protected] 4
ODE 1st order: direct integration & SoVA 1/27/2022
Example 2
𝑑2 𝑦
2
𝑑𝑦 Linear
3𝑥 + 2𝑙𝑛 𝑥 + 𝑒 𝑥 𝑦 = 3𝑥𝑠𝑖𝑛 𝑥
𝑑𝑥 2 𝑑𝑥 Non homogeneous
𝑑3 𝑦 𝑑𝑦 Non Linear
+ + 𝑒 𝑦 = 𝑐𝑜𝑠 𝑥
𝑑𝑥 3 𝑑𝑥 Non homogeneous
4
𝑑3𝑦 𝑑𝑦 Non Linear
3
+ + 6𝑦 = 0
𝑑𝑥 𝑑𝑥 Homogeneous
[email protected] 5
ODE 1st order: direct integration & SoVA 1/27/2022
[email protected] 6
ODE 1st order: direct integration & SoVA 1/27/2022
𝑑𝑦
Equations of the form = 𝑓(𝑥)
𝑑𝑥
[email protected] 7
ODE 1st order: direct integration & SoVA 1/27/2022
Example 3
𝑑𝑦 2
= 𝑥2 𝟒
𝑑𝑥 1.5
𝑪=
𝟑 2
𝑑𝑦 𝑪=𝟏
න 𝑑𝑥 = න 𝑥 2 𝑑𝑥
1
1.5
𝟐
𝑑𝑥 𝑪=
𝟑
𝑪=
𝟏
0.5
𝟑 1 𝟐
𝑪=
3
𝑥 𝑪=𝟎
𝟑
𝑦 + 𝑐1 = + 𝑐2 0
0.5
3 -1.5 -1 -0.5 0 0.5 1 1.5
𝑥3 -0.5
-1.5 -1 -0.5
0
0 0.5 1 1.5
𝑦= +𝑪
3 -1
-0.5
1 3 𝑥3 2
1= +𝑪 𝑦= +
3 3 3
Particular
2
𝑪= solution
3
Example 4
𝑑𝑦
𝑥 = 2 − 4𝑥 3
𝑑𝑥
𝑑𝑦 2
= − 4𝑥 2
𝑑𝑥 𝑥
𝑑𝑦 2
න 𝑑𝑥 = න − 4𝑥 2 𝑑𝑥
𝑑𝑥 𝑥
4
𝑦 = 2 𝑙𝑛 𝑥 − 𝑥 3 + 𝑪
3
General solution
[email protected] 8
ODE 1st order: direct integration & SoVA 1/27/2022
Example 5
𝑑𝜃
2𝑡 𝑡 − =5 where 𝜃 = 2 when 𝑡 = 1
𝑑𝑡
𝑑𝜃 5 Initial condition:
=𝑡−
𝑑𝑡 2𝑡 1 2 5
𝟐= − 𝑙𝑛 1 + 𝑪
the 2 2
solution is
𝑑𝜃 5
න 𝑑𝑡 = න 𝑡 − 𝑑𝑡 3
given by 𝑑𝑡 2𝑡 𝑪=
2
𝑡2 5
𝜃= − 𝑙𝑛 𝑡 + 𝑪
2 2 𝑡2 5 3
𝜃= − 𝑙𝑛 𝑡 +
General solution 2 2 2
Particular solution
𝑑𝑦
Equations of the form = 𝑓(𝑥)
𝑑𝑥
𝑑𝑦
Equations of the form = 𝑓(𝑦)
𝑑𝑥
𝑑𝑦
A differential equation of the above form is solved න 𝑑𝑥 = න
𝑓(𝑦)
[email protected] 9
ODE 1st order: direct integration & SoVA 1/27/2022
Example 6
𝑑𝑦
5 = 𝑠𝑖𝑛2 (3𝑦)
𝑑𝑥 trigonometric identity
5 1
𝑐𝑠𝑐 𝑥 =
𝑑𝑥 = 2
𝑑𝑦 𝑠𝑖𝑛(𝑥)
𝑠𝑖𝑛 (3𝑦)
න 𝑑𝑥 = 5 න 𝑐𝑠𝑐 2 3𝑦 𝑑𝑦
1
𝑥 = 5 − 𝑐𝑜𝑡(3𝑦) + 𝑪
3
5
𝑥 = − 𝑐𝑜𝑡 3𝑦 + 𝑪
3
General solution
𝑑𝑦
Equations of the form = 𝑓(𝑥)
𝑑𝑥
𝑑𝑦
Equations of the form = 𝑓(𝑦)
𝑑𝑥
𝑑𝑦
A differential equation of the above form is solved න 𝑑𝑥 = න
𝑓(𝑦)
𝑑𝑦 𝑑𝑦 𝑓(𝑥)
Equations of the form = 𝑓(𝑥)𝑔(𝑦) and = 𝑔(𝑦)
𝑑𝑥 𝑑𝑥
When two variables are rearranged into two separate groups, each
containing only one variable, the variables are said to be separable. The
solution is obtained by integrating both sides.
𝑑𝑦
න = න 𝑓 𝑥 𝑑𝑥 and න 𝑔(𝑦)𝑑𝑦 = න 𝑓(𝑥)𝑑𝑥
𝑔(𝑦)
[email protected] 10
ODE 1st order: direct integration & SoVA 1/27/2022
Example 7
𝑑𝑦 u-substitution 𝒖 = 𝑦2 − 1
4𝑥𝑦 = 𝑦2 − 1 𝑑𝒖
𝑑𝑥 𝑑𝑦
= 2𝑦
2 𝑙𝑛 𝑦 2 − 1 + 𝑪𝟏 = 𝑙𝑛 𝑥 + 𝑪𝟐
2 𝑙𝑛 𝑦 2 − 1 = 𝑙𝑛 𝑥 + 𝑪 General solution
Example 7 … continue
General
2 𝑙𝑛 𝑦 2 − 1 = 𝑙𝑛 𝑥 + 𝑪
solution
Applying property of
log: 𝑘𝑙𝑛𝑀 = 𝑙𝑛𝑀𝑘 𝑙𝑛 𝑦 2 − 1 2
− 𝑙𝑛 𝑥 = 𝑪
Applying property of 𝑦2 − 1 2
𝑀 𝑙𝑛 =𝑪
log: 𝑙𝑛𝑀 − 𝑙𝑛𝑁 = 𝑙𝑛
𝑁 𝑥
2
To remove 𝑙𝑛 we use 𝑦 2 −1
𝑙𝑛
the property: 𝑒 𝑙𝑛 𝑥 = 𝑥 𝑒 𝑥 = 𝑒𝑪
𝑦2 − 1 2
General
= 𝑒𝑪 solution
𝑥
[email protected] 11
ODE 1st order: direct integration & SoVA 1/27/2022
Example 7 … continue
𝑦2 − 1 2
General
= 𝑒𝑪 solution
𝑥
𝑦2 − 1 2
=𝐴
𝑥
General
𝑦2 − 1 2
= 𝐴𝑥
solution
Example 8
𝑑𝜃
= 2𝑒 3𝑡−2𝜃 where 𝑡 = 0 when 𝜃 = 0
𝑑𝑡
𝑑𝜃 Initial condition:
= 2𝑒 3𝑡 𝑒 −2𝜃
𝑑𝑡 1 𝟎 2 𝟎
separate the variables 𝑒 = 𝑒 +𝑪
2 3
and integrate 1
𝑪=−
6
න 𝑒 2𝜃 𝑑𝜃 = න 2𝑒 3𝑡
1 2𝜃 2 3𝑡 1 2𝜃 2 3𝑡 1
𝑒 = 𝑒 +𝑪 𝑒 = 𝑒 −
2 3 2 3 6
General solution Particular solution
[email protected] 12
ODE 1st order: direct integration & SoVA 1/27/2022
Example 9
One model for the spread of rumour is that
the rate of spread is proportional to the
product of the portion 𝑦 of the population
who have heard the rumour and the
portion who have not heard the rumour.
𝑑𝑦
= 𝑘𝑦 1 − 𝑦
𝑑𝑡
Example 9 … continue
[email protected] 13
ODE 1st order: direct integration & SoVA 1/27/2022
Example 9 … continue
Example 9 … continue
[email protected] 14
ODE 1st order: direct integration & SoVA 1/27/2022