Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
Public worksheets for UCLA's Mathematics for Life Scientists course
Project: LS 30 Materials
Views: 10255Kernel: SageMath 9.0
In [11]:
Uptake of lactose by E. coli
Lactose can diffuse into cell, but having a channel is much faster.
The protein lactose permease creates a channel to import lactose.
BUT channel proteins like this take a lot of resources to build.
Solution: Build them only when there's plenty of lactose around.
So here are the assumptions of our model:
Let lactose concentration in cell.
Lactose in the cell is metabolized at a constant per-mass rate .
Rate of import of lactose is equal to the production rate of lactose permease. The production rate of lactose permease is low when is low, and higher when is high.
But the cell can only produce so much lactose permease at a time. So the production rate ( = import rate of lactose) only increases up to some maximum, and then levels off. We will use a sigmoid function for this. (See below.)
In [24]:
So the resulting differential equation is
In other words, using the formula for the sigmoid function above:
Here is that same graph, showing the import rate in black, and the metabolization rate in orange.
Remember the parameter represents the per-mass metabolization rate.
In this graph, we're using (that is, 40%).
In [20]:
In a graph like the one above, you can see the equilibrium points as the values of the points where the two curves cross. And you can determine their stability using the over-under method.
The interactive below lets you manipulate the parameter , and see the resulting equilibrium points and their stability. Pay particular attention to what happens as you increase (that is, make the orange line steeper).
In [22]:
The bifurcation diagram of the lac operon model:
To build a bifurcation diagram, we put the parameter ( in this case) on the horizontal axis, and the state variable () on the vertical axis. So each specific value of corresponds to a vertical slice of the diagram. We construct the diagram so that each of those vertical slices is a phase portrait of the model for that value, consisting of just the equilibrium points, colored to show their stability.
The interactive below lets you do the same thing as the one above, but for each value you choose, it adds a vertical slice to the bifurcation diagram on the right.
In [36]:
Note: If you want to produce a more detailed diagram, you can change the sensitivity of the slider above by changing the 0.05
to something smaller, like 0.02
. This is in the line that starts
The completed bifurcation diagram of the lac operon model:
In [29]:
The bifurcation seen here is called a saddle-node bifurcation. It happens when either
A pair of equilibrium points, one stable and one unstable, get closer and closer together until they collide and both disappear, or
Two completely new equilibrium points appear in a part of the state space where there were none before. The new pair consists of one stable and one unstable point, and as the parameter is increased they move farther apart.
(Note that the second case above is just the reverse of the first case. That is, the reverse of what we see in the lac operon model.)
Bifurcations in the population of spruce budworms
Spruce budworms (genus Choristoneura) are insects that feed on conifererous trees, such as spruce trees. Their population has a curious behavior: most of the time, the population remains at relatively low, manageable levels. (We will refer to this as the population being in refuge.) But sometimes, as a result of particularly good conditions in their environment (i.e., high carrying capacity), there is a sudden and massive growth in the spruce budworm population. (We will refer to this as a population outbreak.) The curious part is that, after such an outbreak, even after the environment returns to normal (i.e., after the carrying capacity drops back to its previous level), the spruce budworm population remains high! That is, it remains in outbreak.
Scientists have found that what keeps the population in refuge under normal conditions is that they are preyed upon by birds, most notably the Cape May warbler (Setophaga tigrina).
We will model the spruce budworm population using the following assumptions:
Let the spruce budworm population.
In the absence of predation by birds, the population grows logistically, with a natural per-capita growth rate of , and a carrying capacity of .
The warbler population remains constant, as they have other food sources. But the warblers prey on the budworms at a rate that increases with the budworm population, but only up to a certain level: the warblers can only eat so much. Eventually, they get full. This means the predation rate will be a sigmoid function:
So the resulting differential equation is
In everything below, we will assume is constant, and we will only vary . Specifically, we will assume .
To study the equilibrium points, we will use a little trick. Start, as usual, with
Note that we can factor out from this:
This means that, in this model, we will always have one equilibrium point at .
For the other factor, we have
We can rewrite this as
and then use the over-under method on this, to deal with the remaining equilibrium points.
The interactive below shows the over-under method for this model.
In [30]:
The bifurcation diagram of the spruce budworm model
Once again, to build a bifurcation diagram, we put the parameter on the horizontal axis, and the state variable on the vertical axis. We construct the diagram so that each vertical slice of it is a phase portrait of the model, for a specific value of .
The interactive below lets you do the same thing as the one above, but for each value you choose, it adds a vertical slice to the bifurcation diagram on the right.
In [37]:
The completed bifurcation diagram of the spruce budworm model:
In [32]:
In this diagram we see two saddle-node bifurcations. One is just like in the lac operon model, where two equilibrium points get closer and closer together, until they collide and disappear. The other is the reverse kind, where two new equilibrium points appear out of nowhere.
Other types of bifurcations besides saddle–node
Consider the model .
In this model, the state variable can be any real number (positive or negative). Likewise, the parameter can be any real number.
The interactive below lets you do the over-under method on this model, with as the rate of increase (in black) and as the rate of decrease (in orange).
In [38]:
The bifurcation diagram of the model we just saw
In [43]:
The completed bifurcation diagram of this model:
In [44]:
This is called a pitchfork bifurcation.
(More specifically, it's a supercritical pitchfork bifurcation.)
This can also happen with the stabilities exactly reversed:
This is called a subcritical pitchfork bifurcation.
In [46]:
Of course, it can also happen as decreases instead of increases.
In [47]:
In [49]:
One more example: The logistic model with the Allee effect
Recall that this model was
We will fix and , and vary the parameter . There's not really an obvious way to use the over-under method here. But you can use the interactive below to see what happens as you vary the carrying capacity .
In [53]:
Pay particular attention to what happens as you decrease . This time, see if you can figure out what the bifurcation diagram should look like on your own, before scrolling down.
The bifurcation diagram of the Allee effect model
In [51]:
This is called a transcritical bifurcation.
In [0]: