Upload
others
View
2
Download
0
Embed Size (px)
Citation preview
AnnouncementsTopics:
- section3.2(cobwebbing,equilibria),3.3(modellingwithDTDSs);6.7+6.8(stabilityofdynamicalsystems)
*Readthesesectionsandstudysolvedexamplesinyourtextbook!
Homework:- reviewlecturenotesthoroughly- workonpracticeproblemsfromthetextbookandassignmentsfromthecoursepackasassignedonthecoursewebpage(underthe“SCHEDULE+HOMEWORK”link)
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
The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.
€
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:rwilldependonthesizeofthepopulation (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.)
effects depend on many factors (body mass, constitution, gender, age, etc.)
10 g … slight impairment 40 g … driving while intoxicated (DWI) limit; blunted feelings, disinhibition; impaired reasoning 60 g … emotional swings; staggering, slurred speech, reaction time slows down 100 g … loss of understanding, impaired sensations, memory blackout 150 g … serious breathing problems, irregular heart rate, unconsciousness 200 g … possible coma, death
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
CheckingStabilityofEquilibria
Todeterminestability,wecanuse:1. Cobwebbing2. “GraphicalCriteria”(ifthetheupdating
functionisincreasingattheequilibrium)3. “SlopeCriteria”i.e.theStabilityTheorem
(providedtheslopeattheequilibriumisn’texactly-1or1)
StabilityTheoremforDTDSs
• Anequilibriumisstableiftheabsolutevalueofthederivativeoftheupdatingfunctionis<1attheequilibrium,i.e.,
Example:
€
Mt+1 =12Mt +1
-
-
T��
T
-T�� -T�
TF�-�������-����T
€
f '(m*) <1
StabilityTheoremforDTDSs
• Anequilibriumisstableiftheabsolutevalueofthederivativeoftheupdatingfunctionis<1attheequilibrium,i.e.,
Example:
€
f '(m*) <1
€
nt+1 = −0.6nt + 5.3
N
N
T��
T
NT�� NT�
T�F�N���� ���N������T
StabilityTheoremforDTDSs
• Anequilibriumisunstableiftheabsolutevalueofthederivativeoftheupdatingfunctionis>1attheequilibrium,i.e.,
Example:
€
bt+1 = 2bt
B
BB
T��
T
BT�� BT�
T�F�B�����BT
€
f '(m*) >1
StabilityTheoremforDTDSs
• Iftheslopeoftheupdatingfunctionisexactly1or-1attheequilibrium,i.e.,
thentheequilibriumcouldbestable,unstable,orhalf-stable.
Example:
€
f '(m*) =1
StabilityTheoremforDTDSs
Example:DTDSforalimitedpopulation
€
xt+1 =2xt
1+ 0.001xt
StabilityTheoremforDTDSs
Example:DTDSforalimitedpopulation
-5000 0 5000 1!104
1.5!104
2!104
2.5!104
3!104
-1!104
-5000
5000
1!104
€
xt+1 =2xt
1+ 0.001xt
-1000 0 1000 2000 3000 4000 5000 6000 7000 8000
-2000
-1000
1000
2000
ZoomIn
StabilityTheoremforDTDSs
Example:logisticdynamicalsystem
€
xt+1 = rxt (1− xt )
StabilityTheoremforDTDSs
Example:logisticdynamicalsystem
€
xt+1 =1.5xt (1− xt )
€
xt+1 = 3.5xt (1− xt )
-0.25 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2
-0.25
0.25
0.5
0.75
1
-0.25 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2
-0.25
0.25
0.5
0.75
1
GraphicalCriterionforStabilityofEquilibriaforaDTDSwithanIncreasingUpdatingFunction
• Anequilibriumisstableifthegraphofthe(increasing)updatingfunctioncrossesthediagonalfromabovetobelow.
Example:
-
-
T��
T
-T�� -T�
TF�-�������-����T
€
Mt+1 =12Mt +1
GraphicalCriterionforStabilityofEquilibriaforaDTDSwithanIncreasingUpdatingFunction
• Anequilibriumisunstableifthegraphofthe(increasing)updatingfunctioncrossesthediagonalfrombelowtoabove.
Example:
B
BB
T��
T
BT�� BT�
T�F�B�����BT
€
bt+1 = 2bt
GraphicalCriterionforStabilityofEquilibriaforaDTDSwithanIncreasingUpdatingFunction
Example:DTDSforalimitedpopulation
-5000 0 5000 1!104
1.5!104
2!104
2.5!104
3!104
-1!104
-5000
5000
1!104
€
xt+1 =2xt
1+ 0.001xt
-1000 0 1000 2000 3000 4000 5000 6000 7000 8000
-2000
-1000
1000
2000
ZoomIn