Lecture 17
Lecture 17
Many complicated processes can be broken down into distinct stages and the entire system
modeled by describing the interactions between the various stages. Such systems are called
compartmental.
The basic one-compartment system consists of a function x(t) that represents the amount
of a substance in the compartment at time t, an input rate at which the substance enters the
compartment, and an output rate at which the substance leaves the compartment
Mixing problem.
Example 1. A brine solution of salt flows at a constant rate of 8L/min into a large tank
tat initially held 100L of brine solution in which was dissolved 0.5kg of salt. The solution inside
the tank is kept well stirred and flows out of the tank in the same rate. If the concentration
of salt in the brine entering the tank is 0.05kg/L, determine the mass of salt in the salt after t
min. When will the concentration of salt in the tank reach 0.02kg/L?
SOLUTION. Let x(t) denote the mass of salt in the tank at time t, we can determine the
concentration of salt in the tank by dividing x(t) by the volume of fluid in the tank at time t.
First, we must determine the rate at which salt enters the tank. We are given that brine
flows into the tank at a rate of 8L/min. Since the concentration is 0.05kg/L, we conclude that
the input rate of salt into the tank is
(8L/min)(0.05kg/L) = 0.4kg/min.
We must now determine the output rate of salt from the tank. The brine solution in the
tank is well stirred, so let’s assume that the concentration of salt in the tank is uniform. So,
the concentration of salt in any part of the tank at time t is just x(t) divided by the volume of
fluid in the tank. Because the tank initially contains 100L and the rate of flow into the tank is
the same as the rate of flow out, the volume is a constant 100L¿ Hence, the output rate is
x(t) 2x(t)
(8L/min) kg/L = kg/min.
100 25
The tank initially contains 0.5kg of salt, so we set x(0) = 0.5. The initial value problem
dx 2x(t)
= input rate − output rate = 0.4 − , x(0) = 0.5,
dt 25
is a mathematical model for the mixing problem.
Separating the variables and integrating gives
1 dx 1
= dt,
25−x 25
Z Z
1 dx 1
= dt,
2 5−x 25
1 t
− ln |5 − x| = + c,
2 25
2t
5 − x = c1 e− 25 ,
2t
x(t) = 5 − c1 e− 25 .
Substituting into initial conditions gives
x(0) = 5 − c1 = 0.5,
c1 = 4.5
and the solution to the given initial problem is
2t
x(t) = 5 − 4.5e− 25 .
To determine when the concentration of salt is 0.02kg/L, we have to solve for t an equation
2t
5 − 4.5e− 25 = 0.02,
8
2t
e− 25 = ,
75
25 8
t = − ln .
2 75
Population models
Let p(t) be the population of bacteria at time t. In our model we assume that the growth
rate is proportional to the population present. We also assume that the death rate is zero. The
mathematical model for population of bacteria is
dp
= k1 p, p(0) = p0 ,
dt
where k1 > 0 is the proportionality constant for the growth rate and p0 is the population
at time t = 0.
For human population the assumption that the death rate is zero is wrong! If we assume that
the people die only of natural causes, we might expect the death rate also to be proportional
to the size of the population. So, we can rewrite formula
dp
= k1 p − k2 p = (k1 − k2 )p = kp,
dt
where k = k1 − k2 and k2 is the proportionality constant for the death rate. Let’s assume
that k1 > k2 so that k > 0. This gives the mathematical model
dp
= kp, p(0) = p0 ,
dt
which is called the Malthusian or exponential, law of population growth.
The solution to this initial value problem is
p(t) = p0 ekt .
What about premature death? We might assume that another component of the death
is proportional to the number of two-party interactions. There are p(p − 1)/2 such possible
interactions for a population of size p. Thus, if we combine the birth rate with the death rate
and rearrange constants, we get the logistic model
dp
= −Ap(p − p1 ), p(0) = p0 ,
dt
where A = k3 /2 and p1 = (2k1 /k3 ) + 1.
This equation has two constant (equilibrium) solutions p(t) = p1 and p(t) = 0. The nonequi-
librium solutions can be found by separating variables
Z Z
dp
= −A dt
p(p − p1 )
or
1 p − p1
ln = −At + c
p1 p
1 − p1 = ce−Ap1 t .
p
If p(0) = p0 , and c3 = 1 − p1 /p0 , then solving for p(t), we find
p1 p0 p1
p(t) = = .
1 − c3 e−Ap1 t p0 + (p1 − p0 )e−Ap1 t