ODE Saha Formation
ODE Saha Formation
Equations
Dr. Litan Kumar Saha
Professor
Department of Applied Mathematics
University of Dhaka
Ordinary Differential Equations
2
Where do ODE’s arise
3
Example – Newton’s Law of
Cooling
◼ This is a model of how the
temperature of an object changes as
it loses heat to the surrounding
atmosphere:
Temperature of the object: TObj Room Temperature: TRoom
d 2
ml 2 = − mgl sin
2
dt
rearrange and divide
through by ml 2
l
where
d
2
2 =
g
2
+ 2
sin = 0 l
dt
mg
This equation is very difficult to solve.
5
1.1 Definitions and Terminology
❖Introduction: differential equations means that
equations contain derivatives, eg:
dy/dx = 0.2xy (1)
DEFINITION 1.1
Differential equation (DE)
An equation contains the derivates of one or more dependent
variables with respect to one or more independent variables.
Ch01_6
❖Partial DE: An equation contains partial derivates of
one or more dependent variables of two or more
independent variables.
2u 2u 2u 2u u
+ 2 = 0, 2 = 2 − 2 (3)
x y
2
x t t
Ch01_7
Order of the Differential Equation
◼ The order of a differential
equation is just the order of
highest derivative used.
d 2 y dy
.
2
+ =0 2nd order
dt dt
dx d 3x
=x 3 3rd order
dt dt
8
Order of the Differential Equation
The order of a differential equation is the order of the
highest order derivative occurring in the differential
equation.
3 2
2 2
d y dy d y dy
Example : 3 = =
dx2 dx 2 dx
dx
The order of the highest order derivative
d2 y
is 2.
2
dx
Therefore, order is 2
9
Degree
10
Degree of the Differential
Equation
The degree of a differential equation is the degree of the
highest order derivative, when differential coefficients
are made free from fractions and radicals.
3
2 3
2 2
d y
2
dy 2
d2 y dy
Example : + 1+ =0 = 1+
dx2 dx 2 dx
dx
2
The degree of the highest order derivative y is 2.
d
dx2
Therefore, degree is 2.
11
Example - 1
Determine the order and degree of the differential
2
dy dy
equation: y=x + a 1+ .
dx dx
12
Example - 2
Determine the order and degree of the differential
3
d4 y dy 2
2
equation: = c +
dx 4 dx
3
2 3
2 2
4
d y dy 2 d4 y dy
Solution: We have = c + = c +
dx 4 dx dx4 dx
d4 y
Here, the order of the highest order 4
is 4
dx
d4 y
and, the degree of the highest order 4 is 2
dx
14
Linearity
◼ The important issue is how the unknown y
appears in the equation. A linear equation
involves the dependent variable (y) and its
derivatives by themselves. There must be
no "unusual" nonlinear functions of y or its
derivatives.
15
Linearity - Examples
dy
+ y = 0 is linear
dt
dx
+ x 2 = 0 is non-linear
dt
dy 2
+t = 0 is linear
dt
dy 2
y + t = 0 is non-linear
dt
16
Linearity – Summary
Linear Non-linear
2y y2 or sin( y)
dy dy
y
dt dt
(2 + 3sin t) y (2 − 3 y 2 ) y
2
dy dy
t
dt dt
17
1.2 Initial-value Problems
❖Introduction: We are often interested in a solution
y(x) of a DE satisfying an initial condition.
❖Example: on some interval I containing xo,
n
d y ( n −1)
solve
n
= f ( x , y , y ' , , y )
dx
subjecty (tox ) = y , y ' ( x ) = y , , y ( n−1) ( x ) = y
0 0 0 1 0 n−1
(1)
This is called an Initial-Value Problem (IVP).
( n−1)
❖y(xo) = yo , y(xo) = y1 , y ( x0 ) = yn−1
are called initial conditions.
Ch01_18
❖First and Second Order IVPs
dy
solve : = f ( x, y )
dx (2)
subject to : y ( x0 ) = y0
and
d2y
solve : 2
= f ( x, y , y ' )
dx (3)
subject to : y ( x0 ) = y0 , y ' ( x0 ) = y1
Ch01_19
Fig1.7 Fig1.8
Ch01_20
Initial Value/Boundary value
problems
◼ Problems that involve time are represented
by an ODE together with initial values.
21
Example
dv ◼ 1st order
= g ◼ Linear
dt ◼ Nonhomogeneous
v(0) = v0 ◼ Initial value problem
◼ 2nd order
d 2M
2
=w ◼ Linear
dx ◼ Nonhomogeneous
M (0) = 0 ◼ Boundary value
and problem
M (l ) = 0
22
Example
◼ 2nd order
d 2
2
+ 2
sin = 0 ◼ Nonlinear
dt
◼ Homogeneous
d
θ( 0 ) = θ0 , (0) = 0 ◼ Initial value problem
dt
◼ 2nd order
d 2
2
+ 2
=0 ◼ Linear
dt ◼ Homogeneous
d
θ( 0 ) = θ0 , (0) = 0 ◼ Initial value problem
dt
23
DEFINITION 1.2
Solution of ODE
Any function , defined on an interval I, possessing at
least n derivatives that are continuous on I, when
replaced into an n-th order ODE, reduces the equation
into an identity, is said to be a solution of the equation on I.
DEFINITION 1.3
Implicit solution of an ODE
G(x, y) = 0 is said to be an implicit solution of (4) on I,
provided there exists at least one function y = (x)
satisfying the relationship as well as the DE on I.
x2 + y2 = 25 is an implicit solution of
dy/dx = −x/y (8)
on the interval -5 < x < 5.
Since
dx2/dx + dy2/dx = (d/dx)(25)
then
2x + 2y(dy/dx) = 0 and dy/dx = -x/y
solution curve is shown in Fig1.2
Ch01_28
Fig1.2
Ch01_29
❖Families of solutions: A solution containing an
arbitrary constant c is called a one-parameter family
of solutions. A solution containing n arbitrary
constants c1, c2, …, cn is called a n-parameter family
of solutions.
❖Particular solution: A solution free of arbitrary
parameters. eg: y = cx – x cos x is a solution of
xy’ – y = x2 sin x on (-, ), y = x cos x is a
particular solution corresponding to c = 0. See Fig1.3
Ch01_30
Fig1.3
Ch01_31
Example 4
Ch01_32
❖Singular solution: A solution can not be obtained by
particularly setting any parameters.
y = (x2/4 + c)2 is the family solution of dy/dx = xy1/2 ,
however, y = 0 is also a solution of the above DE.
❖We cannot set any value of c to obtain the solution y
= 0, so we call y = 0 is a singular solution.
Ch01_33
Example 1
We know y = cex is the solutions
of y’ = y on (-, ). If y(0) = 3,
then 3 = ce0 = c. Thus y = 3ex is a
solution of this initial-value
problem.
Fig1.9
Ch01_34
Example 3
Solution:
Substitute x(/2) = − 2 into x = c1cos 4t + c2sin 4t, we
find c1 = −2. In the same manner, from x(/2) = 1 we
have c2 = ¼.
Ch01_35
Formation of Differential Equations
Assume the family of straight lines represented by
y = mx
Y
dy dy y
=m = y = mx
dx dx x
dy m = tan
X
x =y O
dx
dy
= − A sin ( x + B ) ... (ii ) [Differentiating (i) w.r.t. x]
dx
d2 y
and 2
= − A cos ( x + B ) [Differentiating (ii) w.r.t. x]
dx
Formation of Differential Equations
d2 y
= −y [Using (i)]
2
dx
d2 y
+y=0
2
dx
is a differential equation of second order