Академический Документы
Профессиональный Документы
Культура Документы
or
N(t + 1) − N(t)
= λ N(t)
1
Introduction to continuous models
Example: Growth of microorganisms
Or if we consider the change over 30 sec = 0.5 min,
N(t + 0.5) − N(t)
= λ N(t)
0.5
or for an arbitrary time change h,
N(t + h) − N(n)
= λ N(t)
h
for h → 0,
N(t + h) − N(t)
lim = N 0 (t) = λ N(n)
h→0 h
Introduction to continuous models
Example: Growth of microorganisms
Thus for this example we get the following differential equation
that models the bacteria growth on a nutrient medium:
dN(t)
= K N(t)
dt
du
= tu 2
dt
Partial Differential Equation (PDE): the unknown
function depends on more than on variable. Example:
consider u = u(x, t),
∂u ∂ 2u
= 2
∂t ∂t
Classification of Differential Equations
dµ(t)
= p(t)µ(t)
dt
Method of Integrating Factor
So we have:
dµ(t)
= p(t)dt
µ(t)
Z Z
dµ(t)
= p(t)dt
µ(t)
Z
ln µ(t) = p(t)dt + C
Z
µ(t) = exp p(t)dt
7 1
So the general solution is y (t) = − + t + ce 2t
4 2
Example (Method of Integrating Factor):
dy
Solve the equation dt
− 2y = 4 − t. The integrating factor is
µ(t) = e −2t :
dy
− 2y = 4 − t
dt
dy
e −2t − e −2t 2y = e −2t (4 − t)
dt
d
(−e −2t y ) = 4e −2t − te −2t
dt
Integrating the both sides of this equation we have:
1 1
−e −2t y = −2e −2t + e −2t + e −2t + c
2 4
7 1
So the general solution is y (t) = − + t + ce 2t
4 2
Numerical Approximations: Euler’s Method
Initial Value Problem
Suppose that f is a continuous function, then the following
initial value problem (IVP) has unique solution:
dy
= f (t, y ) , y (t0 ) = y0
dt
Until now we saw ways to easily solve linear first order ODE’s.
But modelling the real world can be much more nonlinear and
obtaining a analytic solution can be a hard work.
y = y1 + f (t1 , y1 )(t − t1 )
yn+1 = yn + kf (tn , yn ) , n = 0, 1, 2, . . .
Example (Euler’s Method): Verhulst equation
Let us come back to the bacteria’s problem using Verhulst.
Considder that in the initial time t = 0 the bacteria’s density
is N(0) = 0.1, the intrinsic growth rate λ = 1 and the carrying
capacity K = 2.
dN N
= λN 1 − = f (N)
dt K
The Euler’s method is given by Nn+1 = Nn + ∆t f (Nn ),
n = 0, 1, . . ..
Supose that we want to study the behavior of the IVP on the
interval I = [0, 1] and partitioning it by the points
P = {t0 = 0, t1 = 0.25, t2 = 0.5, t3 = 0.75, t4 = 1}.
So our time step will be ∆t = 0.25.
Example (Euler’s Method): Verhulst equation
dy ∂G ∂G
= x(t) + y (t)
dt ∂x X̄ ,Ȳ ∂y X̄ ,Ȳ
or in a matrix notation
dx/dt ∂F /∂x ∂F /∂y x(t)
=
dy /dt ∂G /∂x ∂G /∂y X̄ ,Ȳ y (t)
Application: Epidemiology
An simple model to describe an infectious disease on a
population is described by the system:
dS
= −βSI + γI
dt
dI
= βSI − γI
dt
where S is the susceptible and I is the infected population.
We consider a small period of time such that the total
population is constant. We also have the parameters:
β : rate of transmission of the disease;
γ : rate of recuperation from the disease.
Application: Epidemiology
We can find the steady states by setting
0 = −β S̄ I¯ + γ I¯
0 = β S̄ I¯ − γ I¯
3. http://mathworld.wolfram.com/LogisticEquation