CST-3021 - Ch2
CST-3021 - Ch2
CST - 3021
Faculty of Computing
Introduction
Suppose on a windless day someone standing on a bridge holds a ball over the side
and tosses the ball straight up into the air. After reaching its highest point, the ball falls,
eventually landing in the water. The ball’s height in meters (m) above the water (y) is a
function (s) of time (t) in seconds (s), or y = s(t).
a. Determine the average velocity with units of the ball from t = 1 s to t = 2 s if s(1) =21.1 m
b. Determine the average velocity with units of the ball from t = 1 s to t = 3 s if s(1) = 21.1 m
c. Using the notation of the definition of average velocity, for Part b determine the following,
including units: b, s(b), Δt, b – Δt, s(b – Δt), Δs.
average velocity = ?
average velocity
average velocity = ?
average velocity
For Eg,
a quantity ( mass ) of radioactive carbon – 14 at time t
Differential Equation
Malthusian model for unconstrained population growth, where the rate of change of the
population is directly proportional (∝) to the number of individuals in the population.
Where the growth rate (or) instantaneous growth rate (or) continuous growth rate
with
growth =
Computer programs and system dynamics tools employ such finite difference
equations to solve differential equations.
a. Using delta notation, give a finite difference equation corresponding to the differential
equation.
b. At time t = 9.0 s, give the time at the previous time step, where
Δt = 0.5 s.
c. If Q(t – Δt) = 199.32 and Q(t) = 199.28, give ΔQ.
(c)
Evaluate population(0.045), the population at the next time interval after the end of
Table 2.2.1, to six decimal places.
Table 2.2.1
Table of Estimated Populations, Where the Initial Population is 100, the Continuous
Growth Rate is 10% per Hour, and the Time Step is 0.005 h
Solution
Unconstrained Decay
The rate of change of the mass of a radioactive substance is proportional to the
mass of the substance, and the constant of proportionally is negative.
Solution
the age of the mummy=?
Let Q = the amount of carbon-14 in a mummy
= the amount of carbon-14 in living human
Q =20%=0.20
Q =
0.20
Radium-226 has a continuous decay rate of about 0.0427869% per year. Determine its
half-life in whole years.
Solution
for Q =
0.5
Definition
The carrying capacity (M) for an organism in an area is the maximum number of
organisms that the area can support.
For an initial population much lower than the carrying capacity, we want the population to
increase in approximately the same exponential fashion as in the earlier unconstrained model.
The population size gets closer and closer to the carrying capacity, the number of deaths should
be almost equal to the number of birth, so that the population remains roughly constant.
To accomplish this dampening of growth, compute the number of deaths as a changing fraction of
the number of birth, as .
When the population is very small, we want the fraction to be almost zero, indicating that few
individuals are dying.
When the population is close to the carrying capacity, the fraction should be almost .
For population larger than the carrying capacity, the fraction should be even larger so that the
population decreases in size through deaths. Such a fraction is P/M.
For example,
If the population P is 10 and the carrying capacity M is 1000,
then = 10/1000 = 0.01 = 1%.
For a population P = 995 close to the carrying capacity, P/M = 995/1000 = 0.995
= 99.5 %;
for the excessive P = 1400, P/M = 1400/1000 = 1.400 = 140%
The differential equation for the instantaneous rate of change of the population subtracts this
value from the instantaneous rate of change of the number of births, as follows:
births deaths
Solution
c. individuals,
individuals(nearest integer)
Equilibrium and Stability
Definitions
An equilibrium solution for a different equation is a solution where the derivative is
always zero. An equilibrium solution for a different equation is a solution where the change is
always zero.
Definitions
Suppose that q is an equilibrium solution for a differential equation or a difference
equation . The solution q is stable if there is an interval containing q, such that if the initial
population is in that interval, then
This tutorial introduces the following functions and concepts, subsequent modules
employ for model formulation and solution using your system dynamics tool:
Built-in functions and constants, such as the if-then-else construct, absolute value, initial
value, exponential function, sine, pulse function, time step, and
Relational and logical operators
Comparative graphs
Graphical input
Conveyors, an optional topic useful for some of the later projects
There are prescribed dosages for various drug, but how do we determine what
the correct/ effective dosage is? There are quite a number of factors that are considered,
including drug absorption, distribution, metabolism, and elimination. These factors are
components of the quantitative science of pharmacokinetics.
• The flow from aspirin_in_plasma (elimination) is proportional to the amount present in the
system, aspirin_in_plasma.
• Thus, the rate of change of the drug leaving the system is proportional to the quantity of drug in
the system (aspirin_in_plasma, or Q in the following equation):
The constant of proportionality K earlier and elimination constant in the system dynamics
software model have the following relationship to the drug’s half-life
Q
Determine the elimination constant with units for aspirin, assuming a half-life of 3.2 h.
Solution
In terms of the variables in the model of Figure 2.5.1, give the equation for plasma_
concentration.
• Because of the periodic nature of the dosage, we employ a pulse function with
converters/variables for the dose (dosage), time of the initial dose (start), and time interval
between doses (interval).
• Only a fraction (absorption_fraction) actually enters the system, we multiply this constant
(0.12) and the pulse value together for the equation of entering.
Solution
entering = absorption_fraction * (pulse of amount dosage beginning at start every interval
hours)
• At the end of 8-h about 77.72% of the drug remains in the system.
Suppose
Thus, assuming 77.72% of the drug remains in the system at the end of an 8-h interval
immediately before a dose, we have the following:
After 8-h,
After 16-h,
After 24-h,
Suppose a patient takes a 200-mg tablet once a day, and within 24 h, 75% of the drug is
eliminated from the body. With being the quantity of the drug in the body after the dose,
determine the following:
a. expressed as a sum
b. expressed as a sum
c. expressed as a sum
d. expressed as a sum
Solution
= the quantity of the drug in the body after the dose
The drug eliminated from the body = 75%
The drug remained in the body = 25% = 0.25
Using the drug of QRQ 4 and the formula for the sum of a finite geometric
series, evaluate the following:
Solution
Using the drug of QRQ 4 and 5, determine the quantity of drug after the
when the patient has been taking the drug for a long time
Solution