Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
AnnouncementsTopics:
- sections3.1+3.2(DTDSs),3.3(modellingwithDTDSs)*Readthesesectionsandstudysolvedexamplesinyourtextbook!
Homework:- reviewlecturenotesthoroughly- workonpracticeproblemsfromthetextbookandassignmentsfromthecoursepackasassignedonthecoursewebpage(underthe“SCHEDULE+HOMEWORK”link)
DynamicalSystems
• Discrete-timedynamicalsystemsdescribeasequenceofmeasurementsmadeatequallyspacedintervals
• Continuous-timedynamicalsystems,usuallyknownasdifferentialequations,describemeasurementsthatarecollectedcontinuously
Discrete-TimeDynamicalSystems
Adiscrete-timedynamicalsystemconsistsofaninitialvalueandarulethattransformsthesystemfromthepresentstatetoastateonestepintothefuture.
Discrete-TimeDynamicalSystemsandUpdatingFunctions
Letrepresentthemeasurementofsomequantity.Therelationbetweentheinitialmeasurementandthefinalmeasurementisgivenbythediscrete-timedynamicalsystemTheupdatingfunctionacceptstheinitialvalueasinputandreturnsthefinalvalueasoutput.Note:representspresenttimeandrepresentsonetime-stepintothefuture
€
mt+1 = f (mt )€
mt
€
mt+1
€
m
€
f
€
mt
€
mt+1
€
t
€
t +1
Solutions
Definition:Thesequenceofvaluesoffor0,1,2,…isthesolutionofthediscrete-timedynamicalsystemstartingfromtheinitialconditionThegraphofasolutionisadiscretesetofpointswiththetimeonthehorizontalaxisandthemeasurementontheverticalaxis.
€
mt
€
t =
€
mt+1 = f (mt )
€
m0.
€
t
€
mt
Example:ADiscrete-TimeDynamicalSystemfor
aBacterialPopulation
Colony InitialPopulationbt(millions)
FinalPopulationbt+1(millions)
1 0.47 0.94
2 3.30 6.60
3 0.73 1.46
4 2.80 5.60
5 1.50 3.00
6 0.62 1.24
Data:
Example:ADiscrete-TimeDynamicalSystemfor
aTreeGrowth
Tree InitialHeight,ht(m)
FinalHeight,ht+1(m)
1 23.1 23.9
2 18.7 19.5
3 20.6 21.4
4 16.0 16.8
5 32.5 33.3
6 19.8 20.6
Data:
Example:ADiscrete-TimeDynamicalSystemfor
AbsorptionofPainMedicationApatientisonmethadone,amedicationusedtorelievechronic,severepain(forinstance,aftercertaintypesofsurgery).Itisknownthateveryday,thepatient’sbodyabsorbshalfofthemethadone.Inordertomaintainanappropriatelevelofthedrug,anewdosagecontaining1unitofmethadoneisadministeredattheendofeachday.
BasicSolutions
BasicExponentialDiscrete-timeDynamicalSystemIfwithinitialcondition,thenBasicAdditiveDiscrete-timeDynamicalSystemIfwithinitialcondition,then
€
bt+1 = rbt
€
b0
€
bt = b0rt .
€
ht+1 = ht + a
€
h0
€
ht = h0 + at.
CobwebbingCobwebbingisagraphicaltechniqueusedtodeterminethebehaviourofsolutionstoaDTDSwithoutcalculations.Thistechniqueallowsustosketchthegraphofthesolution(asetofdiscretepoints)directlyfromthegraphoftheupdatingfunction.
CobwebbingAlgorithm:1. Graphtheupdatingfunctionandthediagonal.
2. Plottheinitialvaluem0onthehorizontalaxis.Fromthispoint,moveverticallytotheupdatingfunctiontoobtainthenextvalueofthemeasurement.Thecoordinatesofthispointare(m0,m1).
3. Movehorizontallytothepoint(m1,m1)onthediagonal.Plotthevaluem1onthehorizontalaxis.Thisisthenextvalueofthesolution.
4. Fromthepoint(m1,m1)onthediagonal,moveverticallytotheupdatingfunctiontoobtainthepoint(m1,m2)andthenhorizontallytothepoint(m2,m2)onthediagonal.Plotthepointm2onthehorizontalaxis.
5. Continuealternating(or“cobwebbing”)betweentheupdatingfunctionandthediagonaltoobtainasetofsolutionpointsplottedalongthehorizontalaxis.
Cobwebbing
Example:Startingwiththeinitialcondition,sketchthegraphofthesolutiontothesystembycobwebbing3steps. €
b0 =1
€
bt+1 = 2bt
Cobwebbing
B
BB
T��
T
BT�� BT�BT�����F�B��T
Cobwebbing
€
b0€
(b0,b1)
B
BB
T��
T
BT�� BT�BT�����F�B��T
Cobwebbing
€
b0€
(b0,b1)
€
(b1,b1)
B
BB
T��
T
BT�� BT�BT�����F�B��T
€
b1
Cobwebbing
€
b0€
(b0,b1)
€
(b1,b1)€
(b1,b2)
€
b1
B
BB
T��
T
BT�� BT�BT�����F�B��T
Cobwebbing
€
b0€
(b0,b1)
€
(b1,b1)€
(b1,b2)
€
b1
€
(b2,b2)
€
b2
B
BB
T��
T
BT�� BT�BT�����F�B��T
Cobwebbing
€
b0€
(b0,b1)
€
(b1,b1)€
(b1,b2)
€
b1
€
(b2,b2)
€
b2
€
(b2,b3)
B
BB
T��
T
BT�� BT�BT�����F�B��T
Cobwebbing
€
b0€
(b0,b1)
€
(b1,b1)€
(b1,b2)
€
b1
€
(b2,b2)
€
b2
€
(b2,b3)
€
(b3,b3)
€
b3
B
BB
T��
T
BT�� BT�BT�����F�B��T
ASolutionFromCobwebbing
€
b0€
(b0,b1)
€
(b1,b1)€
(b1,b2)
€
b1
€
(b2,b2)
€
b2
€
(b2,b3)
€
(b3,b3)
€
b3
B
BB
T��
T
BT�� BT�BT�����F�B��T
B
T
T
������������������������������������������������
�
�
�
�
Cobwebbing
Example:ConsidertheDTDSforthemethadoneconcentrationinapatient’sblood:Cobwebfor3stepsstartingfrom(i) (ii) (iii)
€
M0 =1
€
Mt+1 =12Mt +1
€
M0 = 5
€
M0 = 2
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
€
M2
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
€
M2
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
€
M2
€
M3
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
€
M2
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
€
M2
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
€
M1
€
M2
€
M3
Cobwebbing-
-
T��
T
-T�� -T�
- T�����F�-��T
€
M0
Equilibria
Definition:ApointiscalledanequilibriumoftheDTDSifGeometrically,theequilibriacorrespondtopointswheretheupdatingfunctionintersectsthediagonal.
€
m*
€
mt+1 = f (mt )
€
f (m*) = m* .
Equilibria
B
BB
T��
T
BT�� BT�BT�����F�B��T
Equilibria
B
BB
T��
T
BT�� BT�BT�����F�B��T
€
b* = 0
Equilibria
-
-
T��
T
-T�� -T�
- T�����F�-��T
Equilibria
€
M* = 2
-
-
T��
T
-T�� -T�
- T�����F�-��T
SolvingforEquilibria
Algorithm:1. Writetheequationfortheequilibrium.2. Solvefor3. Thinkabouttheresults.
€
m*.
SolvingforEquilibria
Examples:Findtheequilibria,iftheyexist,foreachofthefollowingsystems.(a) (b)
€
Mt+1 =12Mt +1
€
xt+1 =axt1+ xt
Cobwebbing
Example:ConsidertheDTDSforapopulationofcodfishwhereisthenumberofcodfishinmillionsandistime.Supposethatinitiallythereare1millioncodfish.Determinetheequilibriaandthebehaviourofthepopulationovertimebycobwebbing.
€
nt+1 = −0.6nt + 5.3
€
nt
€
t
Cobwebbing
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
Cobwebbing
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
€
n0
Cobwebbing
€
n0
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
€
n1
Cobwebbing
€
n0
€
n1
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
Cobwebbing
€
n0
€
n1
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
€
n2
Cobwebbing
€
n0
€
n1
€
n2
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
Cobwebbing
€
n0
€
n1
€
n2
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
€
n3
Cobwebbing
€
n0
€
n1
€
n2
€
n3
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
Cobwebbing
€
n0
€
n1
€
n2
€
n3
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
€
n4
ASolutionFromCobwebbing
€
n0
€
n1
€
n2
€
n3
N
N
T��
T
NT�� NT�
N
T
T
������������������������������������������������������������������������������������
�
�
�
�
�
N�������
Solution:
StabilityofEquilibria
Anequilibriumisstableifsolutionsthatstartneartheequilibriummoveclosertotheequilibrium.
Anequilibriumisunstableifsolutionsthatstartneartheequilibriummoveawayfromtheequilibrium.
MODELLINGWITHDTDSs
BacterialPopulationGrowth:Theparameteriscalledpercapitaproduction.Itrepresentsthenumberofnewbacteriaproducedperbacterium.
€
bt+1 = rbt
€
r
BacterialPopulationGrowthinGeneral
Solution:Assumption:risconstantReality:rmaydependonthesizeofthepopulation (resourcesarelimited)
smallpopulationslesscompetitionhigherrlargepopulationsmorecompetitionlowerr
€
bt = b0rt
€
⇒
€
⇒
€
⇒
€
⇒
MODELLINGWITHDTDSsModelforLimitedBacterialPopulationGrowth:Replacetheconstantrbyafunctionwhichmatchesnaturalobservations:.
€
bt+1 = r(bt ) ⋅ bt
r( )
bt
bt
large pop’n
lowrate
small pop’n
highrate
€
r α 1bt
⇒ r(bt ) = k ⋅ 1bt
MODELLINGWITHDTDSs
ModelforLimitedBacterialPopulationGrowth:Example:
€
r(bt ) =2
1+ 0.001bt
-2000 -1500 -1000 -500 0 500 1000 1500 2000
-16
-8
8
16 €
bt€
r(bt )
MODELLINGWITHDTDSs
ModelforLimitedBacterialPopulationGrowth:Example:Determineequilibriaandbehaviourofnearbysolutionsbycobwebbing.
€
bt+1 =2
1+ 0.001bt
⎛
⎝ ⎜
⎞
⎠ ⎟ ⋅ bt
0 250 500 750 1000 1250 1500 1750 2000 2250
250
500
750
1000
1250
elimination of chemicals
*** filtration by kidneys (kidneys break down constant amount per hour … caffeine) *** breaking down the chemicals using enzymes from the liver (amount of chemical broken down depends on the amount present … alcohol)
SubstanceAbsorption(Elimination)andReplacement(Consumption)Models
AbsorptionofCaffeine:Ourbodieseliminatecaffeineataconstantrateof13%perhour.DTDS:*Similarto“methadone”example
€
ct+1 = 0.87ct + d
amountofcaffeine(mg)1hourlater
amountofcaffeinenow
amountof“new”caffeineconsumedattimet+1
SubstanceAbsorption(Elimination)andReplacement(Consumption)Models
EliminationofAlcohol:Theamountofalcoholthatisbrokendownbytheliverdependsontheamountofalcoholpresentinthebody.Thelargertheamount,thesmallertheproportionofalcoholbeingeliminated.*Similartothelimitedgrowthpopulationmodel
r( )
a t
a t
large amount
lowrate
small amount
highrate
SubstanceAbsorption(Elimination)andReplacement(Consumption)Models
EliminationofAlcohol:DTDS:€
at+1 = at − r(at )at + d
amountofalcohol(g)1hourlater
amountofalcoholnow
amountof“new”alcoholconsumedattimet+1
rateofelimination
SubstanceAbsorption(Elimination)andReplacement(Consumption)Models
EliminationofAlcohol:Example:RateofElimination:DTDS:
€
r(at ) =10.14.2 + at
€
at+1 = at −10.14.2 + at
⎛
⎝ ⎜
⎞
⎠ ⎟ at + d-15 -10 -5 0 5 10 15 20
-5
5
10
€
at€
r(at )
SubstanceAbsorption(Elimination)andReplacement(Consumption)Models
EliminationofAlcohol:Example:RateofElimination:DTDS:
€
r(at ) =10.14.2 + at
€
at+1 = at −10.14.2 + at
⎛
⎝ ⎜
⎞
⎠ ⎟ at + d
€
at
€
r(at )
0 8 16 24 32 40 48 56 64 72
1
2
3
4
5
definition
one drink = 14 grams of alcohol * 5 ounces of wine, or * 12 ounces of beer, or * 1.5 ounces of 80 proof (vodka, rum, gin, etc.)
SubstanceAbsorption(Elimination)andReplacement(Consumption)Models
EliminationofAlcohol:Example:Astandarddrinkcontains14gofalcohol.Comparewhathappensovertimeforthefollowingsituations:(a) Youconsumetwodrinksrightawayandcontinuetohavehalfofadrinkeveryhour(b) Youconsumeonedrinkeveryhour
SubstanceAbsorption(Elimination)andReplacement(Consumption)Models
EliminationofAlcohol:(a) Youconsumetwodrinksrightawayandcontinuetohavehalfofadrinkeveryhour
0 8 16 24 32 40 48 56 64 72
8
16
24
32
40
€
f (at ) = at −10.14.2 + at
⎛
⎝ ⎜
⎞
⎠ ⎟ at + 7, a0 = 28
SubstanceAbsorption(Elimination)andReplacement(Consumption)Models
EliminationofAlcohol:(b)Youconsumeonedrinkeveryhour
0 8 16 24 32 40 48 56 64 72
8
16
24
32
40
€
f (at ) = at −10.14.2 + at
⎛
⎝ ⎜
⎞
⎠ ⎟ at +14, a0 = 0
so … how much alcohol is in the body
** 2 rapid drinks, then 1/2 drink every hour … decreases, stabilizes at 9.5 grams ** one drink every hour … increases, after 5 hours reaches 41 grams. keeps increasing, no limit