calculus for the life sciences icalculus for the life sciences i lecture notes – linear discrete...

167
Lung Diseases and Modeling Breathing Discrete Model for Breathing Qualitative Analysis of Discrete Dynamical Models Malthusian Growth with Immigration or Emigration Cobwebbing Calculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, [email protected]Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research Center San Diego State University San Diego, CA 92182-7720 http://www-rohan.sdsu.edu/jmahaffy Spring 2013 Joseph M. Mahaffy, [email protected]Lecture Notes – Linear Discrete Dynamical Mod — (1/48)

Upload: others

Post on 08-Oct-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Calculus for the Life Sciences I

Lecture Notes – Linear Discrete Dynamical Models

Joseph M. Mahaffy,〈[email protected]

Department of Mathematics and StatisticsDynamical Systems Group

Computational Sciences Research Center

San Diego State University

San Diego, CA 92182-7720

http://www-rohan.sdsu.edu/∼jmahaffy

Spring 2013

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (1/48)

Page 2: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Outline

1 Lung Diseases and Modeling Breathing

2 Discrete Model for Breathing

3 Qualitative Analysis of Discrete Dynamical Models

Equilibria

Stability of a Linear Discrete Dynamical Model

General Stability

4 Malthusian Growth with Immigration or Emigration

5 Cobwebbing

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (2/48)

Page 3: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 1

Pulmonary Ventilation or Breathing

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (3/48)

Page 4: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 2

Pulmonary ventilation or breathing brings oxygen tothe cells of the body and removes metabolic waste product,carbon dioxide

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (4/48)

Page 5: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 2

Pulmonary ventilation or breathing brings oxygen tothe cells of the body and removes metabolic waste product,carbon dioxide

Inspiration or inflow of fresh air results from thecontracting the muscles of the diaphragm

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (4/48)

Page 6: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 2

Pulmonary ventilation or breathing brings oxygen tothe cells of the body and removes metabolic waste product,carbon dioxide

Inspiration or inflow of fresh air results from thecontracting the muscles of the diaphragm

Relaxation of these muscles or contraction of theabdominals causes expiration of air with the wasteproduct CO2

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (4/48)

Page 7: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 2

Pulmonary ventilation or breathing brings oxygen tothe cells of the body and removes metabolic waste product,carbon dioxide

Inspiration or inflow of fresh air results from thecontracting the muscles of the diaphragm

Relaxation of these muscles or contraction of theabdominals causes expiration of air with the wasteproduct CO2

Normal respiration in the lungs exchanges about 500 mlof air 12 times a minute

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (4/48)

Page 8: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 2

Pulmonary ventilation or breathing brings oxygen tothe cells of the body and removes metabolic waste product,carbon dioxide

Inspiration or inflow of fresh air results from thecontracting the muscles of the diaphragm

Relaxation of these muscles or contraction of theabdominals causes expiration of air with the wasteproduct CO2

Normal respiration in the lungs exchanges about 500 mlof air 12 times a minute

Tidal volume is the normal volume of air inspired orexpired

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (4/48)

Page 9: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 2

Pulmonary ventilation or breathing brings oxygen tothe cells of the body and removes metabolic waste product,carbon dioxide

Inspiration or inflow of fresh air results from thecontracting the muscles of the diaphragm

Relaxation of these muscles or contraction of theabdominals causes expiration of air with the wasteproduct CO2

Normal respiration in the lungs exchanges about 500 mlof air 12 times a minute

Tidal volume is the normal volume of air inspired orexpired

The inspiratory reserve volume is about 3000 ml thatcan be inspired above the tidal volume

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (4/48)

Page 10: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 3

The expiratory reserve volume is about 1100 ml, which canbe forcefully expired

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (5/48)

Page 11: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 3

The expiratory reserve volume is about 1100 ml, which canbe forcefully expired

The vital capacity, including all of the above, is about 4600 ml

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (5/48)

Page 12: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 3

The expiratory reserve volume is about 1100 ml, which canbe forcefully expired

The vital capacity, including all of the above, is about 4600 ml

Well-trained athletes may have values 30-40% higher

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (5/48)

Page 13: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 3

The expiratory reserve volume is about 1100 ml, which canbe forcefully expired

The vital capacity, including all of the above, is about 4600 ml

Well-trained athletes may have values 30-40% higher

Females have 20-25% less for the quantities listed above

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (5/48)

Page 14: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 3

The expiratory reserve volume is about 1100 ml, which canbe forcefully expired

The vital capacity, including all of the above, is about 4600 ml

Well-trained athletes may have values 30-40% higher

Females have 20-25% less for the quantities listed above

The lungs contain surfactants, which prevent them from totallycollapsing

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (5/48)

Page 15: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 3

The expiratory reserve volume is about 1100 ml, which canbe forcefully expired

The vital capacity, including all of the above, is about 4600 ml

Well-trained athletes may have values 30-40% higher

Females have 20-25% less for the quantities listed above

The lungs contain surfactants, which prevent them from totallycollapsing

Expelling all air requires too much energy to reinflate themfrom the collapsed statePremature babies born before their genes for producingsurfactants have turned on use more energy to breath thanthey derive from the process of breathing

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (5/48)

Page 16: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 3

The expiratory reserve volume is about 1100 ml, which canbe forcefully expired

The vital capacity, including all of the above, is about 4600 ml

Well-trained athletes may have values 30-40% higher

Females have 20-25% less for the quantities listed above

The lungs contain surfactants, which prevent them from totallycollapsing

Expelling all air requires too much energy to reinflate themfrom the collapsed statePremature babies born before their genes for producingsurfactants have turned on use more energy to breath thanthey derive from the process of breathing

The residual volume is the amount of air that cannot beexpelled and averages about 1200 ml

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (5/48)

Page 17: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 4

Pulmonary Ventilation or Breathing

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (6/48)

Page 18: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 5

The body needs oxygen for the tissues, which depends onrespiration through the lungs

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (7/48)

Page 19: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 5

The body needs oxygen for the tissues, which depends onrespiration through the lungsSeveral respiratory diseases jeopardize the vital function ofthe lungs

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (7/48)

Page 20: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 5

The body needs oxygen for the tissues, which depends onrespiration through the lungsSeveral respiratory diseases jeopardize the vital function ofthe lungs

The respiratory muscles damaged by spinal paralysis orpoliomyelitis decreases the vital capacity to as low as 500 mlThe pulmonary compliance reduces vital capacity indiseases like tuberculosis, emphysema, chronic asthma, lungcancer, chronic bronchitis, cystic fibrosis, or fibrotic pleurisySeveral of the diseases above and heart disease can causepulmonary edema, decreasing vital capacity from fluid buildup

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (7/48)

Page 21: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 5

The body needs oxygen for the tissues, which depends onrespiration through the lungsSeveral respiratory diseases jeopardize the vital function ofthe lungs

The respiratory muscles damaged by spinal paralysis orpoliomyelitis decreases the vital capacity to as low as 500 mlThe pulmonary compliance reduces vital capacity indiseases like tuberculosis, emphysema, chronic asthma, lungcancer, chronic bronchitis, cystic fibrosis, or fibrotic pleurisySeveral of the diseases above and heart disease can causepulmonary edema, decreasing vital capacity from fluid buildup

The alveoli are where the oxygen actually enters the blood

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (7/48)

Page 22: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 5

The body needs oxygen for the tissues, which depends onrespiration through the lungsSeveral respiratory diseases jeopardize the vital function ofthe lungs

The respiratory muscles damaged by spinal paralysis orpoliomyelitis decreases the vital capacity to as low as 500 mlThe pulmonary compliance reduces vital capacity indiseases like tuberculosis, emphysema, chronic asthma, lungcancer, chronic bronchitis, cystic fibrosis, or fibrotic pleurisySeveral of the diseases above and heart disease can causepulmonary edema, decreasing vital capacity from fluid buildup

The alveoli are where the oxygen actually enters the blood

When the alveoli are damaged or filled with fluid (oneresult of smoking), the exchange of oxygen is inhibited

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (7/48)

Page 23: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 6

Alveoli and O2 Exchange

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (8/48)

Page 24: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 7

The vital capacity and residual volume help physiologistsdetermine the health of the pulmonary system

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (9/48)

Page 25: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 7

The vital capacity and residual volume help physiologistsdetermine the health of the pulmonary system

The vital capacity is easily measured by taking a deepbreath and expiring into a spirometer

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (9/48)

Page 26: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 7

The vital capacity and residual volume help physiologistsdetermine the health of the pulmonary system

The vital capacity is easily measured by taking a deepbreath and expiring into a spirometer

Some of the diseases, like emphysema, are determined bythe tidal volume and the functional residual capacity, theaverage or minute respiratory volume

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (9/48)

Page 27: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Pulmonary Ventilation 7

The vital capacity and residual volume help physiologistsdetermine the health of the pulmonary system

The vital capacity is easily measured by taking a deepbreath and expiring into a spirometer

Some of the diseases, like emphysema, are determined bythe tidal volume and the functional residual capacity, theaverage or minute respiratory volume

When the ratio of the tidal volume to the functionalresidual capacity becomes too low, then there is insufficientexchange of air to maintain adequate supplies of oxygen tothe body

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (9/48)

Page 28: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 1

Tidal volume and the functional residual capacity is foundby breathing a mixture including an inert gas

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (10/48)

Page 29: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 1

Tidal volume and the functional residual capacity is foundby breathing a mixture including an inert gas

The subject breathes the mixture until the lungs areessentially filled with this mixture

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (10/48)

Page 30: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 1

Tidal volume and the functional residual capacity is foundby breathing a mixture including an inert gas

The subject breathes the mixture until the lungs areessentially filled with this mixtureA physiologist measures the amount of the inert gas in aseries of breaths after the subject is removed from the gasmixture to normal air

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (10/48)

Page 31: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 1

Tidal volume and the functional residual capacity is foundby breathing a mixture including an inert gas

The subject breathes the mixture until the lungs areessentially filled with this mixtureA physiologist measures the amount of the inert gas in aseries of breaths after the subject is removed from the gasmixture to normal air

The mathematical model for this experiment is a discretedynamical system

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (10/48)

Page 32: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 2

Professor Bruce Wingerd ran dilution experiments with theinert gas argon (Ar)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (11/48)

Page 33: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 2

Professor Bruce Wingerd ran dilution experiments with theinert gas argon (Ar)

Argon is a noble gas, so is totally non-reactive

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (11/48)

Page 34: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 2

Professor Bruce Wingerd ran dilution experiments with theinert gas argon (Ar)

Argon is a noble gas, so is totally non-reactiveIt is the third most common gas, comprising 0.93% ofEarth’s atmosphere (dry air has N2 78%, O2 21%, withCO2 a distant fourth, 0.03%

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (11/48)

Page 35: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 2

Professor Bruce Wingerd ran dilution experiments with theinert gas argon (Ar)

Argon is a noble gas, so is totally non-reactiveIt is the third most common gas, comprising 0.93% ofEarth’s atmosphere (dry air has N2 78%, O2 21%, withCO2 a distant fourth, 0.03%

The subjects breathe an air mixture with 10% Ar

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (11/48)

Page 36: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 2

Professor Bruce Wingerd ran dilution experiments with theinert gas argon (Ar)

Argon is a noble gas, so is totally non-reactiveIt is the third most common gas, comprising 0.93% ofEarth’s atmosphere (dry air has N2 78%, O2 21%, withCO2 a distant fourth, 0.03%

The subjects breathe an air mixture with 10% Ar

Then the subjects resume breathing normal air at a normalrate

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (11/48)

Page 37: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 3

Normal Subject Subject with EmphysemaTidal Volume=550 ml Tidal Volume=250 ml

Breath PercentNumber Ar

0 0.1001 0.0842 0.0703 0.0594 0.0505 0.0436 0.037

Breath PercentNumber Ar

0 0.1001 0.0882 0.0783 0.0694 0.0615 0.0556 0.049

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (12/48)

Page 38: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 4

Health of the Patient

Vital capacity of the lungs is determined by a spirometer

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (13/48)

Page 39: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 4

Health of the Patient

Vital capacity of the lungs is determined by a spirometer

The experimental data are used to determine thefunctional reserve volume for the subjects

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (13/48)

Page 40: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 4

Health of the Patient

Vital capacity of the lungs is determined by a spirometer

The experimental data are used to determine thefunctional reserve volume for the subjects

Develop a model to analyze the data

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (13/48)

Page 41: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 4

Health of the Patient

Vital capacity of the lungs is determined by a spirometer

The experimental data are used to determine thefunctional reserve volume for the subjects

Develop a model to analyze the data

A physiologist uses this information to find the health of asubject’s lungs

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (13/48)

Page 42: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 5

Breathing Experiment

This breathing experiment is a dynamic exchange of gases,which occurs at discrete intervals of time

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (14/48)

Page 43: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 5

Breathing Experiment

This breathing experiment is a dynamic exchange of gases,which occurs at discrete intervals of time

Suggests a discrete dynamical model tracking theconcentration of Ar in the lungs

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (14/48)

Page 44: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 5

Breathing Experiment

This breathing experiment is a dynamic exchange of gases,which occurs at discrete intervals of time

Suggests a discrete dynamical model tracking theconcentration of Ar in the lungs

If cn is the concentration of Ar at the end of the nth

inspiration cycle, we write a dynamical model

cn+1 = f(cn)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (14/48)

Page 45: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 6

Modeling Assumptions

The concentration at the end of the (n + 1)st inspirationcycle depends on remaining air in the lungs from theprevious cycle and inhaling fresh air from the atmosphere

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (15/48)

Page 46: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 6

Modeling Assumptions

The concentration at the end of the (n + 1)st inspirationcycle depends on remaining air in the lungs from theprevious cycle and inhaling fresh air from the atmosphere

Assume the gases become well-mixed during this process,which ignores some of the complications caused by theactual physiological structures in the lungs, such as the“anatomical dead space” in the pharynx, trachea, and largerbronchi or weak mixing from slow gas flow in the alveoli

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (15/48)

Page 47: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 6

Modeling Assumptions

The concentration at the end of the (n + 1)st inspirationcycle depends on remaining air in the lungs from theprevious cycle and inhaling fresh air from the atmosphere

Assume the gases become well-mixed during this process,which ignores some of the complications caused by theactual physiological structures in the lungs, such as the“anatomical dead space” in the pharynx, trachea, and largerbronchi or weak mixing from slow gas flow in the alveoli500 ml of fresh air enters by inspiration, but only 350 mlreaches the alveoli, i.e., less than 1/7 exchange of gases witha normal breath

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (15/48)

Page 48: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 7

Physiological Parameters for Model

Vi for the tidal volume (air normally inhaled and exhaled)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (16/48)

Page 49: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 7

Physiological Parameters for Model

Vi for the tidal volume (air normally inhaled and exhaled)

Vr for the functional residual volume

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (16/48)

Page 50: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 7

Physiological Parameters for Model

Vi for the tidal volume (air normally inhaled and exhaled)

Vr for the functional residual volume

γ for the concentration of Ar in the atmosphere

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (16/48)

Page 51: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 7

Physiological Parameters for Model

Vi for the tidal volume (air normally inhaled and exhaled)

Vr for the functional residual volume

γ for the concentration of Ar in the atmosphere

The fraction of atmospheric air exchanged in each breath is

q =Vi

Vi + Vr

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (16/48)

Page 52: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 7

Physiological Parameters for Model

Vi for the tidal volume (air normally inhaled and exhaled)

Vr for the functional residual volume

γ for the concentration of Ar in the atmosphere

The fraction of atmospheric air exchanged in each breath is

q =Vi

Vi + Vr

The residual air fraction is

1 − q =Vr

Vi + Vr

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (16/48)

Page 53: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 8

Model Development

Upon exhaling, there remains behind the functionalresidual volume with the amount of Ar given by Vrcn

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (17/48)

Page 54: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 8

Model Development

Upon exhaling, there remains behind the functionalresidual volume with the amount of Ar given by Vrcn

The inhaled air during this cycle contains the amount of Argiven by Viγ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (17/48)

Page 55: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 8

Model Development

Upon exhaling, there remains behind the functionalresidual volume with the amount of Ar given by Vrcn

The inhaled air during this cycle contains the amount of Argiven by Viγ

The amount of Ar in the next breath is given by

Vrcn + Viγ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (17/48)

Page 56: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 8

Model Development

Upon exhaling, there remains behind the functionalresidual volume with the amount of Ar given by Vrcn

The inhaled air during this cycle contains the amount of Argiven by Viγ

The amount of Ar in the next breath is given by

Vrcn + Viγ

The concentration of Ar is found by dividing by the totalvolume, Vi + Vr

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (17/48)

Page 57: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 9

Discrete Model for Breathing

From definitions above,

cn+1 =Vrcn

Vi + Vr

+Viγ

Vi + Vr

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (18/48)

Page 58: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 9

Discrete Model for Breathing

From definitions above,

cn+1 =Vrcn

Vi + Vr

+Viγ

Vi + Vr

Use definitions of q = Vi

Vi+Vrand 1 − q

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (18/48)

Page 59: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 9

Discrete Model for Breathing

From definitions above,

cn+1 =Vrcn

Vi + Vr

+Viγ

Vi + Vr

Use definitions of q = Vi

Vi+Vrand 1 − q

Linear Discrete Dynamical Model for Breathing anInert Gas

cn+1 = (1 − q)cn + qγ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (18/48)

Page 60: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 10

Graph of the data above with the best fitting model forbreathing

0 1 2 3 4 5 6 7 80

0.01

0.02

0.03

0.04

0.05

0.06

0.07

0.08

0.09

0.1

Emphysema Patient

Normal Subject

Breath Number

Con

cent

ratio

n of

Arg

on

Model for Breathing

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (19/48)

Page 61: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 11

Finding Functional Reserve Capacity

The diseased states are often characterized by a decreasedratio between the tidal volume and the functional reservecapacity

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (20/48)

Page 62: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 11

Finding Functional Reserve Capacity

The diseased states are often characterized by a decreasedratio between the tidal volume and the functional reservecapacity

Emphysema is characterized by a loss of elasticity in thelungs and a decrease in the alveolar surface/volume ratio

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (20/48)

Page 63: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 11

Finding Functional Reserve Capacity

The diseased states are often characterized by a decreasedratio between the tidal volume and the functional reservecapacity

Emphysema is characterized by a loss of elasticity in thelungs and a decrease in the alveolar surface/volume ratio

The discrete dynamical model for breathing an inert gas issolved for the parameter q

q =cn − cn+1

cn − γ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (20/48)

Page 64: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 65: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Normal Patient

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 66: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Normal Patient

From data, q = 0.1−0.084

0.1−0.0093= 0.18

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 67: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Normal Patient

From data, q = 0.1−0.084

0.1−0.0093= 0.18

WithVi = 550, then Vr = 0.82

0.18550 = 2500 ml

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 68: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Normal Patient

From data, q = 0.1−0.084

0.1−0.0093= 0.18

WithVi = 550, then Vr = 0.82

0.18550 = 2500 ml

Ratio of tidal volume to functional reserve capacity is 0.22

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 69: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Normal Patient

From data, q = 0.1−0.084

0.1−0.0093= 0.18

WithVi = 550, then Vr = 0.82

0.18550 = 2500 ml

Ratio of tidal volume to functional reserve capacity is 0.22

Patient with Emphysema

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 70: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Normal Patient

From data, q = 0.1−0.084

0.1−0.0093= 0.18

WithVi = 550, then Vr = 0.82

0.18550 = 2500 ml

Ratio of tidal volume to functional reserve capacity is 0.22

Patient with Emphysema

From data, q = 0.1−0.088

0.1−0.0093= 0.13

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 71: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Normal Patient

From data, q = 0.1−0.084

0.1−0.0093= 0.18

WithVi = 550, then Vr = 0.82

0.18550 = 2500 ml

Ratio of tidal volume to functional reserve capacity is 0.22

Patient with Emphysema

From data, q = 0.1−0.088

0.1−0.0093= 0.13

WithVi = 250, then Vr = 0.87

0.13250 = 1670 ml

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 72: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Discrete Model for Breathing 12

Finding Functional Reserve Capacity

Given tidal volume, Vi and q, the functional reservecapacity satisfies

Vr =1 − q

qVi

Normal Patient

From data, q = 0.1−0.084

0.1−0.0093= 0.18

WithVi = 550, then Vr = 0.82

0.18550 = 2500 ml

Ratio of tidal volume to functional reserve capacity is 0.22

Patient with Emphysema

From data, q = 0.1−0.088

0.1−0.0093= 0.13

WithVi = 250, then Vr = 0.87

0.13250 = 1670 ml

Ratio of tidal volume to functional reserve capacity is 0.15

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (21/48)

Page 73: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 1

Example: A subject with an unknown lung ailment enters the labfor testing. She is given a supply of air that has an enriched amountof argon gas (Ar). After breathing this supply of enriched gas, twosuccessive breaths are measured with c1 = 0.0736 and c2 = 0.0678 ofAr. The model for breathing is given by

cn+1 = (1 − q)cn + qγ,

where γ = 0.0093.

Skip Example

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (22/48)

Page 74: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 1

Example: A subject with an unknown lung ailment enters the labfor testing. She is given a supply of air that has an enriched amountof argon gas (Ar). After breathing this supply of enriched gas, twosuccessive breaths are measured with c1 = 0.0736 and c2 = 0.0678 ofAr. The model for breathing is given by

cn+1 = (1 − q)cn + qγ,

where γ = 0.0093.

Find the fraction of air breathed, q

Skip Example

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (22/48)

Page 75: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 1

Example: A subject with an unknown lung ailment enters the labfor testing. She is given a supply of air that has an enriched amountof argon gas (Ar). After breathing this supply of enriched gas, twosuccessive breaths are measured with c1 = 0.0736 and c2 = 0.0678 ofAr. The model for breathing is given by

cn+1 = (1 − q)cn + qγ,

where γ = 0.0093.

Find the fraction of air breathed, q

What is the concentration of argon remaining in her lungs after 5breaths?

Skip Example

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (22/48)

Page 76: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 1

Example: A subject with an unknown lung ailment enters the labfor testing. She is given a supply of air that has an enriched amountof argon gas (Ar). After breathing this supply of enriched gas, twosuccessive breaths are measured with c1 = 0.0736 and c2 = 0.0678 ofAr. The model for breathing is given by

cn+1 = (1 − q)cn + qγ,

where γ = 0.0093.

Find the fraction of air breathed, q

What is the concentration of argon remaining in her lungs after 5breaths?

Assume that her tidal volume is measured to be Vi = 220. Findthe functional reserve volume, Vr, where q = Vi

V i+V r

Skip Example

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (22/48)

Page 77: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 2

Solution: Since we are given γ and the two consecutive valuesc1 and c2, we can find q

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (23/48)

Page 78: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 2

Solution: Since we are given γ and the two consecutive valuesc1 and c2, we can find q

c2 = (1 − q)c1 + qγ

0.0678 = (1 − q)(0.0736) + 0.0093q

q = 0.0902

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (23/48)

Page 79: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 2

Solution: Since we are given γ and the two consecutive valuesc1 and c2, we can find q

c2 = (1 − q)c1 + qγ

0.0678 = (1 − q)(0.0736) + 0.0093q

q = 0.0902

The concentration after 5 breaths is found by simulation

c2 = 0.0678

c3 = (1 − 0.0902)c2 + 0.0093(0.0902) = 0.06252

c4 = 0.9098(0.06252) + 0.000839 = 0.05772

c5 = 0.9098(0.05772) + 0.000839 = 0.05336

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (23/48)

Page 80: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 3

Solution (cont): To find the functional reserve we recall

q =Vi

Vi + Vr

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (24/48)

Page 81: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 3

Solution (cont): To find the functional reserve we recall

q =Vi

Vi + Vr

0.0902 =220

220 + Vr

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (24/48)

Page 82: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 3

Solution (cont): To find the functional reserve we recall

q =Vi

Vi + Vr

0.0902 =220

220 + Vr

This gives the functional reserve volume, Vr = 2219

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (24/48)

Page 83: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 3

Solution (cont): To find the functional reserve we recall

q =Vi

Vi + Vr

0.0902 =220

220 + Vr

This gives the functional reserve volume, Vr = 2219

This functional reserve is approximately normal.

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (24/48)

Page 84: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Lung Disease 3

Solution (cont): To find the functional reserve we recall

q =Vi

Vi + Vr

0.0902 =220

220 + Vr

This gives the functional reserve volume, Vr = 2219

This functional reserve is approximately normal.

The woman has a very low q, so the woman probably has sometype of respiratory muscle disorder or neurological problem

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (24/48)

Page 85: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibria - Breathing Model

The discrete dynamical model for breathing shows theconcentration of Ar decreasing

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (25/48)

Page 86: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibria - Breathing Model

The discrete dynamical model for breathing shows theconcentration of Ar decreasing

If the simulation for the normal individual is carried out forabout 3 minutes or 36 breaths, it can be seen that theconcentration of Ar drops to 0.0094, which is within 1% ofthe atmospheric concentration

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (25/48)

Page 87: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibria - Breathing Model

The discrete dynamical model for breathing shows theconcentration of Ar decreasing

If the simulation for the normal individual is carried out forabout 3 minutes or 36 breaths, it can be seen that theconcentration of Ar drops to 0.0094, which is within 1% ofthe atmospheric concentration

Since Ar is an inert gas, we expect that after breathing anenriched source of Ar, then the concentration should returnto the same value as normally found in the atmosphere

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (25/48)

Page 88: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibria - Breathing Model

The discrete dynamical model for breathing shows theconcentration of Ar decreasing

If the simulation for the normal individual is carried out forabout 3 minutes or 36 breaths, it can be seen that theconcentration of Ar drops to 0.0094, which is within 1% ofthe atmospheric concentration

Since Ar is an inert gas, we expect that after breathing anenriched source of Ar, then the concentration should returnto the same value as normally found in the atmosphere

This value is the equilibrium value of Ar for the model

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (25/48)

Page 89: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibria

Equilibria for Discrete Dynamical Models

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (26/48)

Page 90: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibria

Equilibria for Discrete Dynamical Models

Consider a discrete dynamical system given by the equation

xn+1 = f(xn)

where f(xn) is any function describing the dynamics of themodel

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (26/48)

Page 91: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibria

Equilibria for Discrete Dynamical Models

Consider a discrete dynamical system given by the equation

xn+1 = f(xn)

where f(xn) is any function describing the dynamics of themodel

An equilibrium, xe, for this discrete dynamical system isachieved if xn+1 = xn = xe

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (26/48)

Page 92: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibria

Equilibria for Discrete Dynamical Models

Consider a discrete dynamical system given by the equation

xn+1 = f(xn)

where f(xn) is any function describing the dynamics of themodel

An equilibrium, xe, for this discrete dynamical system isachieved if xn+1 = xn = xe

The dynamic variable settles into a constant value for all n

whenxe = f(xe)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (26/48)

Page 93: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibrium - Breathing Model

Equilibrium for Discrete Breathing Model

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (27/48)

Page 94: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibrium - Breathing Model

Equilibrium for Discrete Breathing Model

Consider the discrete breathing model

cn+1 = (1 − q)cn + qγ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (27/48)

Page 95: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibrium - Breathing Model

Equilibrium for Discrete Breathing Model

Consider the discrete breathing model

cn+1 = (1 − q)cn + qγ

An equilibrium, ce, for this model satisfies cn+1 = cn = ce or

ce = (1 − q)ce + qγ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (27/48)

Page 96: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibrium - Breathing Model

Equilibrium for Discrete Breathing Model

Consider the discrete breathing model

cn+1 = (1 − q)cn + qγ

An equilibrium, ce, for this model satisfies cn+1 = cn = ce or

ce = (1 − q)ce + qγ

Solving this

qce = qγ

ce = γ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (27/48)

Page 97: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Equilibrium - Breathing Model

Equilibrium for Discrete Breathing Model

Consider the discrete breathing model

cn+1 = (1 − q)cn + qγ

An equilibrium, ce, for this model satisfies cn+1 = cn = ce or

ce = (1 − q)ce + qγ

Solving this

qce = qγ

ce = γ

Intuitively, this is the natural equilibrium, since eventually theconcentration of an inert gas in the lungs will equalize to theatmospheric concentrationJoseph M. Mahaffy, 〈[email protected]

Lecture Notes – Linear Discrete Dynamical Models— (27/48)

Page 98: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 1

General Linear Discrete Dynamical Model

yn+1 = a yn + b

for constants a and b

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (28/48)

Page 99: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 1

General Linear Discrete Dynamical Model

yn+1 = a yn + b

for constants a and b

The equilibrium, ye, for this discrete dynamical model is

ye =b

1 − a

provided a 6= 1

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (28/48)

Page 100: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 1

General Linear Discrete Dynamical Model

yn+1 = a yn + b

for constants a and b

The equilibrium, ye, for this discrete dynamical model is

ye =b

1 − a

provided a 6= 1

The equilibrium is positive provided

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (28/48)

Page 101: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 1

General Linear Discrete Dynamical Model

yn+1 = a yn + b

for constants a and b

The equilibrium, ye, for this discrete dynamical model is

ye =b

1 − a

provided a 6= 1

The equilibrium is positive provided

a < 1 and b > 0 or

a > 1 and b < 0

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (28/48)

Page 102: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 2

Since the equilibrium satisfies

ye =b

1 − a

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (29/48)

Page 103: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 2

Since the equilibrium satisfies

ye =b

1 − a

The equilibrium is negative provided

a < 1 and b < 0 or

a > 1 and b > 0

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (29/48)

Page 104: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 2

Since the equilibrium satisfies

ye =b

1 − a

The equilibrium is negative provided

a < 1 and b < 0 or

a > 1 and b > 0

Linear discrete dynamical models have a single uniqueequilibrium if the slope of the linear function, a 6= 1

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (29/48)

Page 105: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 2

Since the equilibrium satisfies

ye =b

1 − a

The equilibrium is negative provided

a < 1 and b < 0 or

a > 1 and b > 0

Linear discrete dynamical models have a single uniqueequilibrium if the slope of the linear function, a 6= 1

If a = 1, then

There are no equilibria when b 6= 0, or

All points are equilibria when b = 0

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (29/48)

Page 106: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 3

Stability of a Linear Discrete Dynamical Model

yn+1 = a yn + b

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (30/48)

Page 107: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 3

Stability of a Linear Discrete Dynamical Model

yn+1 = a yn + b

An equilibrium of a linear discrete dynamical model isstable if either of the following conditions hold:

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (30/48)

Page 108: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 3

Stability of a Linear Discrete Dynamical Model

yn+1 = a yn + b

An equilibrium of a linear discrete dynamical model isstable if either of the following conditions hold:

Successive iterations of the model approach theequilibrium

The slope |a| is less than 1

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (30/48)

Page 109: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 3

Stability of a Linear Discrete Dynamical Model

yn+1 = a yn + b

An equilibrium of a linear discrete dynamical model isstable if either of the following conditions hold:

Successive iterations of the model approach theequilibrium

The slope |a| is less than 1

An equilibrium of a linear discrete dynamical model isunstable if either of the following conditions hold:

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (30/48)

Page 110: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Linear Discrete Dynamical Model 3

Stability of a Linear Discrete Dynamical Model

yn+1 = a yn + b

An equilibrium of a linear discrete dynamical model isstable if either of the following conditions hold:

Successive iterations of the model approach theequilibrium

The slope |a| is less than 1

An equilibrium of a linear discrete dynamical model isunstable if either of the following conditions hold:

Successive iterations of the model move away from theequilibrium

The slope |a| is greater than 1

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (30/48)

Page 111: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 1

Example: Consider the linear discrete dynamical model

yn+1 = 1.05 yn − 200, y0 = 2000

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (31/48)

Page 112: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 1

Example: Consider the linear discrete dynamical model

yn+1 = 1.05 yn − 200, y0 = 2000

Find the first 3 iterations, y1, y2, y3

Determine the equilibrium value

Find the stability of the equilibrium

Skip Example

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (31/48)

Page 113: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 2

Solution: Let y0 = 2000

y1 = 1.05 y0 − 200 = 1.05(2000) − 200 = 1900

y2 = 1.05 y1 − 200 = 1.05(1900) − 200 = 1795

y3 = 1.05 y2 − 200 = 1.05(1795) − 200 = 1684.75

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (32/48)

Page 114: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 2

Solution: Let y0 = 2000

y1 = 1.05 y0 − 200 = 1.05(2000) − 200 = 1900

y2 = 1.05 y1 − 200 = 1.05(1900) − 200 = 1795

y3 = 1.05 y2 − 200 = 1.05(1795) − 200 = 1684.75

The equilibrium satisfies

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (32/48)

Page 115: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 2

Solution: Let y0 = 2000

y1 = 1.05 y0 − 200 = 1.05(2000) − 200 = 1900

y2 = 1.05 y1 − 200 = 1.05(1900) − 200 = 1795

y3 = 1.05 y2 − 200 = 1.05(1795) − 200 = 1684.75

The equilibrium satisfies

ye = 1.05 ye − 200

0.05 ye = 200

ye = 4000

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (32/48)

Page 116: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 2

Solution: Let y0 = 2000

y1 = 1.05 y0 − 200 = 1.05(2000) − 200 = 1900

y2 = 1.05 y1 − 200 = 1.05(1900) − 200 = 1795

y3 = 1.05 y2 − 200 = 1.05(1795) − 200 = 1684.75

The equilibrium satisfies

ye = 1.05 ye − 200

0.05 ye = 200

ye = 4000

The equilibrium is unstable, since iterations are movingaway from the equilibrium and the slope a = 1.05 > 1.

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (32/48)

Page 117: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 1

Example: Consider the linear discrete dynamical model

yn+1 = 0.6 yn + 50, y0 = 100

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (33/48)

Page 118: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 1

Example: Consider the linear discrete dynamical model

yn+1 = 0.6 yn + 50, y0 = 100

Find the first 3 iterations, y1, y2, y3

Determine the equilibrium value

Find the stability of the equilibrium

Skip Example

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (33/48)

Page 119: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 2

Solution: Let y0 = 100

y1 = 0.6 y0 + 50 = 0.6(100) + 50 = 110

y2 = 0.6 y1 + 50 = 0.6(110) + 50 = 116

y3 = 0.6 y2 + 50 = 0.6(116) + 50 = 119.6

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (34/48)

Page 120: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 2

Solution: Let y0 = 100

y1 = 0.6 y0 + 50 = 0.6(100) + 50 = 110

y2 = 0.6 y1 + 50 = 0.6(110) + 50 = 116

y3 = 0.6 y2 + 50 = 0.6(116) + 50 = 119.6

The equilibrium satisfies

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (34/48)

Page 121: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 2

Solution: Let y0 = 100

y1 = 0.6 y0 + 50 = 0.6(100) + 50 = 110

y2 = 0.6 y1 + 50 = 0.6(110) + 50 = 116

y3 = 0.6 y2 + 50 = 0.6(116) + 50 = 119.6

The equilibrium satisfies

ye = 0.6 ye + 50

0.4 ye = 50

ye = 125

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (34/48)

Page 122: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Example – Linear Discrete Dynamical Model 2

Solution: Let y0 = 100

y1 = 0.6 y0 + 50 = 0.6(100) + 50 = 110

y2 = 0.6 y1 + 50 = 0.6(110) + 50 = 116

y3 = 0.6 y2 + 50 = 0.6(116) + 50 = 119.6

The equilibrium satisfies

ye = 0.6 ye + 50

0.4 ye = 50

ye = 125

The equilibrium is stable, since iterations are movingtowards the equilibrium and the slope a = 0.6 < 1.

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (34/48)

Page 123: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Stability of Discrete Dynamical Model

A discrete dynamical model is given by the equation

xn+1 = f(xn)

for some updating function, f(xn). Suppose that this model hasan equilibrium, xe, so xe = f(xe).

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (35/48)

Page 124: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Stability of Discrete Dynamical Model

A discrete dynamical model is given by the equation

xn+1 = f(xn)

for some updating function, f(xn). Suppose that this model hasan equilibrium, xe, so xe = f(xe).

The equilibrium, xe, is said to be stable if one starts with somex0 “near” the equilibrium, then subsequent iterations of themodel have xn approaching the equilibrium.

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (35/48)

Page 125: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

EquilibriaStability of a Linear Discrete Dynamical ModelGeneral Stability

Stability of Discrete Dynamical Model

A discrete dynamical model is given by the equation

xn+1 = f(xn)

for some updating function, f(xn). Suppose that this model hasan equilibrium, xe, so xe = f(xe).

The equilibrium, xe, is said to be stable if one starts with somex0 “near” the equilibrium, then subsequent iterations of themodel have xn approaching the equilibrium.

The equilibrium, xe, is said to be unstable if one starts withsome x0 “near” the equilibrium, then subsequent iterations ofthe model have xn moving away from the equilibrium.

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (35/48)

Page 126: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Immigration or Emigration 1

Population Growth Models

The discrete Malthusian growth model worked for the U. S.population over only a limited time

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (36/48)

Page 127: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Immigration or Emigration 1

Population Growth Models

The discrete Malthusian growth model worked for the U. S.population over only a limited time

Malthusian model doesn’t account for time-varying effects,resource limitation, immigration, etc.

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (36/48)

Page 128: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Immigration or Emigration 1

Population Growth Models

The discrete Malthusian growth model worked for the U. S.population over only a limited time

Malthusian model doesn’t account for time-varying effects,resource limitation, immigration, etc.

Time-varying model substantially improved, but difficult toanalyze

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (36/48)

Page 129: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Immigration or Emigration 1

Population Growth Models

The discrete Malthusian growth model worked for the U. S.population over only a limited time

Malthusian model doesn’t account for time-varying effects,resource limitation, immigration, etc.

Time-varying model substantially improved, but difficult toanalyze

Through much of the 20th century, the government hasregulated legal immigration to 250, 000 people per year

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (36/48)

Page 130: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Immigration or Emigration 1

Population Growth Models

The discrete Malthusian growth model worked for the U. S.population over only a limited time

Malthusian model doesn’t account for time-varying effects,resource limitation, immigration, etc.

Time-varying model substantially improved, but difficult toanalyze

Through much of the 20th century, the government hasregulated legal immigration to 250, 000 people per year

Models with immigration or emigration are not closedsystems

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (36/48)

Page 131: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Emigration 2

Malthusian Growth with Emigration

Pn+1 = (1 + r)Pn − µ

where r is a rate of growth and µ is a constant populationemigrating in each time interval

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (37/48)

Page 132: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Emigration 2

Malthusian Growth with Emigration

Pn+1 = (1 + r)Pn − µ

where r is a rate of growth and µ is a constant populationemigrating in each time interval

Given an initial population, P0

P1 = (1 + r)P0 − µ,

P2 = (1 + r)P1 − µ = (1 + r)((1 + r)P0 − µ) − µ,

= (1 + r)2P0 − ((1 + r) + 1)µ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (37/48)

Page 133: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Emigration 3

Continuing the iterations

P3 = (1 + r)3P0 − ((1 + r)2 + (1 + r) + 1)µ,

......

Pn = (1 + r)nP0 − ((1 + r)n−1 + ... + (1 + r) + 1)µ,

which simplifies to

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (38/48)

Page 134: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Emigration 3

Continuing the iterations

P3 = (1 + r)3P0 − ((1 + r)2 + (1 + r) + 1)µ,

......

Pn = (1 + r)nP0 − ((1 + r)n−1 + ... + (1 + r) + 1)µ,

which simplifies to

Pn = (1 + r)nP0 −((1 + r)n − 1)

rµ.

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (38/48)

Page 135: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Malthusian Growth with Emigration 3

Continuing the iterations

P3 = (1 + r)3P0 − ((1 + r)2 + (1 + r) + 1)µ,

......

Pn = (1 + r)nP0 − ((1 + r)n−1 + ... + (1 + r) + 1)µ,

which simplifies to

Pn = (1 + r)nP0 −((1 + r)n − 1)

rµ.

Though complicated, this is a closed form solutiondepending only upon P0, r, n, and µ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (38/48)

Page 136: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 1

Example of Malthusian Growth with Immigration:Assume that a population of animals in a lake satisfies

Pn+1 = (1 + r)Pn + µ

where r is a rate of growth and µ is a constant populationimmigrating to the lake in each time interval

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (39/48)

Page 137: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 1

Example of Malthusian Growth with Immigration:Assume that a population of animals in a lake satisfies

Pn+1 = (1 + r)Pn + µ

where r is a rate of growth and µ is a constant populationimmigrating to the lake in each time interval

Assume a census for 3 successive weeks gives populations,P0 = 500, P1 = 670, and P2 = 874

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (39/48)

Page 138: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 1

Example of Malthusian Growth with Immigration:Assume that a population of animals in a lake satisfies

Pn+1 = (1 + r)Pn + µ

where r is a rate of growth and µ is a constant populationimmigrating to the lake in each time interval

Assume a census for 3 successive weeks gives populations,P0 = 500, P1 = 670, and P2 = 874

Find the rate of growth r and immigration rate µ, thendetermine the populations expected in the next two weeks

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (39/48)

Page 139: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 2

Solution: From the data with the model

P1 = (1 + r)P0 + µ and P2 = (1 + r)P1 + µ

670 = (1 + r)500 + µ and 874 = (1 + r)670 + µ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (40/48)

Page 140: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 2

Solution: From the data with the model

P1 = (1 + r)P0 + µ and P2 = (1 + r)P1 + µ

670 = (1 + r)500 + µ and 874 = (1 + r)670 + µ

Subtract the first equation from the second equation

204 = (1 + r)(670 − 500)

1 + r =204

170= 1.2

r = 0.2

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (40/48)

Page 141: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 2

Solution: From the data with the model

P1 = (1 + r)P0 + µ and P2 = (1 + r)P1 + µ

670 = (1 + r)500 + µ and 874 = (1 + r)670 + µ

Subtract the first equation from the second equation

204 = (1 + r)(670 − 500)

1 + r =204

170= 1.2

r = 0.2

From the model

670 = 1.2(500) + µ

µ = 670 − 600 = 70

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (40/48)

Page 142: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 3

Solution (cont): The model is given by

Pn+1 = 1.2 Pn + 70

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (41/48)

Page 143: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 3

Solution (cont): The model is given by

Pn+1 = 1.2 Pn + 70

Since P2 = 874,

P3 = 1.2 P2 + 70 = 1.2(874) + 70 = 1118.8

P4 = 1.2(1118.8) + 70 = 1412.56

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (41/48)

Page 144: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Example – Malthusian Growth with Immigration 3

Solution (cont): The model is given by

Pn+1 = 1.2 Pn + 70

Since P2 = 874,

P3 = 1.2 P2 + 70 = 1.2(874) + 70 = 1118.8

P4 = 1.2(1118.8) + 70 = 1412.56

This model has no positive equilibrium, and it growsunbounded (almost exponentially)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (41/48)

Page 145: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Solution of Linear Discrete Model

Consider the linear discrete model

yn+1 = a yn + b

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (42/48)

Page 146: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Solution of Linear Discrete Model

Consider the linear discrete model

yn+1 = a yn + b

The general solution is given by

yn = any0 +(an − 1)

(a − 1)b

(a 6= 1)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (42/48)

Page 147: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Solution of Linear Discrete Model

Consider the linear discrete model

yn+1 = a yn + b

The general solution is given by

yn = any0 +(an − 1)

(a − 1)b

(a 6= 1)

Solution depends on parameters a and b, initial condition y0,and time, n

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (42/48)

Page 148: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 1

Consider the discrete dynamical model

xn+1 = f(xn)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (43/48)

Page 149: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 1

Consider the discrete dynamical model

xn+1 = f(xn)

There is an easy way to graphically view the local dynamics ofthis model

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (43/48)

Page 150: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 1

Consider the discrete dynamical model

xn+1 = f(xn)

There is an easy way to graphically view the local dynamics ofthis model

The state of the model xn+1 is a function of the state xn

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (43/48)

Page 151: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 1

Consider the discrete dynamical model

xn+1 = f(xn)

There is an easy way to graphically view the local dynamics ofthis model

The state of the model xn+1 is a function of the state xn

Create a graph with the variable xn+1 on the vertical axis andxn on the horizontal axis

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (43/48)

Page 152: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 1

Consider the discrete dynamical model

xn+1 = f(xn)

There is an easy way to graphically view the local dynamics ofthis model

The state of the model xn+1 is a function of the state xn

Create a graph with the variable xn+1 on the vertical axis andxn on the horizontal axis

Draw the graph of the updating function, f(xn) and theidentity map

xn+1 = f(xn) and xn+1 = xn

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (43/48)

Page 153: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 2

Graphically, any intersection of the updating function andthe identity map

xn+1 = f(xn) and xn+1 = xn

produces an equilibrium

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (44/48)

Page 154: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 2

Graphically, any intersection of the updating function andthe identity map

xn+1 = f(xn) and xn+1 = xn

produces an equilibrium

The process of cobwebbing shows the dynamics of thisdiscrete dynamical model

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (44/48)

Page 155: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 2

Graphically, any intersection of the updating function andthe identity map

xn+1 = f(xn) and xn+1 = xn

produces an equilibrium

The process of cobwebbing shows the dynamics of thisdiscrete dynamical model

Start at some point x0 on the horizontal axis, then govertically to f(x0) to find x1

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (44/48)

Page 156: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 2

Graphically, any intersection of the updating function andthe identity map

xn+1 = f(xn) and xn+1 = xn

produces an equilibrium

The process of cobwebbing shows the dynamics of thisdiscrete dynamical model

Start at some point x0 on the horizontal axis, then govertically to f(x0) to find x1

Next go horizontally to the line xn+1 = xn

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (44/48)

Page 157: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 2

Graphically, any intersection of the updating function andthe identity map

xn+1 = f(xn) and xn+1 = xn

produces an equilibrium

The process of cobwebbing shows the dynamics of thisdiscrete dynamical model

Start at some point x0 on the horizontal axis, then govertically to f(x0) to find x1

Next go horizontally to the line xn+1 = xn

Go vertically to f(x1) to find x2

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (44/48)

Page 158: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing 2

Graphically, any intersection of the updating function andthe identity map

xn+1 = f(xn) and xn+1 = xn

produces an equilibrium

The process of cobwebbing shows the dynamics of thisdiscrete dynamical model

Start at some point x0 on the horizontal axis, then govertically to f(x0) to find x1

Next go horizontally to the line xn+1 = xn

Go vertically to f(x1) to find x2

The process is repeated to give a geometric interpretationof the dynamics of the discrete model

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (44/48)

Page 159: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing – Breathing Model Example 1

Cobwebbing – Breathing Model Example

The model for a normal subject breathing an air mixtureenriched with Ar satisfies the model

cn+1 = (1 − q)cn + qγ = 0.82 cn + 0.0017

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (45/48)

Page 160: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing – Breathing Model Example 1

Cobwebbing – Breathing Model Example

The model for a normal subject breathing an air mixtureenriched with Ar satisfies the model

cn+1 = (1 − q)cn + qγ = 0.82 cn + 0.0017

This model has a stable equilibrium (ce = γ = 0.0093)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (45/48)

Page 161: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing – Breathing Model Example 1

Cobwebbing – Breathing Model Example

The model for a normal subject breathing an air mixtureenriched with Ar satisfies the model

cn+1 = (1 − q)cn + qγ = 0.82 cn + 0.0017

This model has a stable equilibrium (ce = γ = 0.0093)

Initially, there was 10% Ar in the mixture, so c0 = 0.1, andsubsequent breaths had the concentration of Ar tending to γ

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (45/48)

Page 162: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing – Breathing Model Example 2

Cobwebbing – Breathing Model ExampleBelow shows the cobwebbing process for this example

0 0.02 0.04 0.06 0.08 0.10

0.02

0.04

0.06

0.08

0.1

c n+1 =

c n

c0

c1

c2

c3

c4

c5

c6

cn

c n+1 =

(1−

q)c n+

qγCobwebbing

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (46/48)

Page 163: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing – Population Model with Emigration 1

Cobwebbing – Population Model with Emigration

The model for a population with Emigration satisfies the model

Pn+1 = (1 + r)Pn − µ = 1.2 Pn − 500

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (47/48)

Page 164: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing – Population Model with Emigration 1

Cobwebbing – Population Model with Emigration

The model for a population with Emigration satisfies the model

Pn+1 = (1 + r)Pn − µ = 1.2 Pn − 500

This model has an unstable equilibrium (Pe = µr

= 2500)

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (47/48)

Page 165: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing – Population Model with Emigration 1

Cobwebbing – Population Model with Emigration

The model for a population with Emigration satisfies the model

Pn+1 = (1 + r)Pn − µ = 1.2 Pn − 500

This model has an unstable equilibrium (Pe = µr

= 2500)

If the population begins below 2500, then the populationgoes to extinction

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (47/48)

Page 166: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing – Population Model with Emigration 1

Cobwebbing – Population Model with Emigration

The model for a population with Emigration satisfies the model

Pn+1 = (1 + r)Pn − µ = 1.2 Pn − 500

This model has an unstable equilibrium (Pe = µr

= 2500)

If the population begins below 2500, then the populationgoes to extinction

If the population begins above 2500, then the populationgrows almost exponentially

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (47/48)

Page 167: Calculus for the Life Sciences ICalculus for the Life Sciences I Lecture Notes – Linear Discrete Dynamical Models Joseph M. Mahaffy, hmahaffy@math.sdsu.edui Department of Mathematics

Lung Diseases and Modeling BreathingDiscrete Model for Breathing

Qualitative Analysis of Discrete Dynamical ModelsMalthusian Growth with Immigration or Emigration

Cobwebbing

Cobwebbing –Population Model with Emigration 2

Cobwebbing – Population Model with EmigrationBelow shows the cobwebbing process for this example

0 1000 2000 3000 4000 5000 6000

0

1000

2000

3000

4000

5000

6000

P n+1 =

P n

Pe = 2500

Pn

Pn+

1

Pn+1

= 1.2 Pn −500

Joseph M. Mahaffy, 〈[email protected]〉Lecture Notes – Linear Discrete Dynamical Models— (48/48)