Modeling with Systems
To model things that affect each other, write one rate equation per quantity: what flows in minus what flows out, in terms of the other quantities. Then the equilibria, where every rate is zero, and the eigenvalues tell you what the model does in the long run.
What the symbols mean
- Prey
Grows on its own at rate a, eaten at a rate proportional to encounters xy.
- Predators
Die off at rate c without prey, grow from eating at rate d·xy.
What the symbols mean
- Transmission rate
How fast contacts between S and I create new infections.
- Recovery rate
1/γ is the average infectious period.
Explanation
Modeling with systems is simply writing down, for each quantity, how fast it changes because of everything else in the model. It's how you turn a story like "foxes eat rabbits" or "sick people infect healthy ones" into equations you can solve. The predator–prey equations , look like alphabet soup, but each term is one small idea: (rabbits breed on their own), (rabbits get eaten when they meet foxes), (foxes die off without food) and (foxes thrive by eating). The terms count encounters, since meetings happen more often when there are more of both. It's just a few simple stories added up; bear with it.
Equilibria of nonlinear systems: set every rate to zero and solve together. That's where nothing changes, so it's the natural first question to ask of any model. For Lotka–Volterra the coexistence point is , and populations cycle around it. You saw those loops in the direction field at the start of this unit.
Epidemics. In the SIR model, , and are the fractions of people who are susceptible, infected and recovered. (with near 1) is the number of people each case infects at the start. Think about why: a case infects people at rate for an average time , so the total is . The epidemic grows when ; vaccinating a fraction above prevents it, because then each case meets too few susceptible people to replace itself.
Linear compartments. Tanks connected by pipes give linear systems whose eigenvalues are decay rates. Each tank's salt changes by what flows in minus what flows out, and the outflow is the concentration (salt divided by volume) times the flow rate. Everything from the earlier lessons in this unit applies directly.
A common mistake. It's tempting to write a tank's outflow as just the flow rate, like g/min for L/min, because that's the number given in the problem. It isn't: what leaves is salt, not water, so the outflow is times the flow rate. For a L tank at L/min that's .
See it
Worked examples
Find the coexistence equilibrium of , .
- 1
Coexistence means both populations are nonzero. Then needs , and needs .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find the coexistence equilibrium of , .
For an epidemic with and per day, find .
What fraction must be immune to prevent an outbreak with ?
Fresh water flows into tank 1 (100 L) at 10 L/min; tank 1 drains into tank 2 (100 L) at 10 L/min, and tank 2 drains out at 10 L/min. Give the matrix for the salt amounts, row by row.
What is the (repeated) eigenvalue of that matrix?
The hardest one here. Get it, and you've got this lesson.
Two L tanks trade water: L/min flows from tank 1 to tank 2 and L/min flows back, with nothing else going in or out. Tank 1 starts with g of salt and tank 2 with none. Find the salt in tank 1.
Where it's used
Public-health agencies forecast outbreaks with SIR-type systems, fisheries model predator–prey interactions, and pharmacologists track drugs through body compartments with linear systems.