Skip to main content

Section 15.4 Modeling with Nonlinear Systems

Nonlinear systems exhibit behaviors impossible in linear systems: multiple equilibria, limit cycles, chaos, and extreme sensitivity to initial conditions. While harder to solve analytically, nonlinear models often capture reality more accurately than their linear approximations.
In this section, we’ll model an epidemic outbreak using the SIR modelβ€”a nonlinear system that reveals how diseases spread through populations and how interventions can control outbreaks.

Subsection The Problem: Disease Outbreak and Control

When an infectious disease emerges in a population, public health officials must predict its spread and evaluate intervention strategies. Will it cause an epidemic? How many will be affected? What vaccination level prevents an outbreak?
The SIR (Susceptible-Infected-Recovered) model divides the population into three groups and tracks how individuals move between them.

Subsection Assumptions

  • The population is well-mixed (everyone has equal contact probability).
  • Total population is constant (no births, deaths, or migration).
  • Infection occurs through contact between susceptible and infected individuals.
  • Recovery confers permanent immunity.
  • The disease has a constant transmission rate and recovery rate.

Subsection Building the Model

Let:
  • \(S(t)\) = number of susceptible individuals
  • \(I(t)\) = number of infected individuals
  • \(R(t)\) = number of recovered individuals
  • \(N = S + I + R\) = total population (constant)
SIR Differential Equations:
\begin{align*} \frac{dS}{dt} \amp = -\frac{\beta SI}{N} \\ \frac{dI}{dt} \amp = \frac{\beta SI}{N} - \gamma I \\ \frac{dR}{dt} \amp = \gamma I \end{align*}
Parameters:
  • \(\beta\text{:}\) transmission rate (contacts per day Γ— probability of transmission per contact)
  • \(\gamma\text{:}\) recovery rate (1/day), so \(1/\gamma\) is the average infectious period
  • \(R_0 = \beta/\gamma\text{:}\) basic reproduction number (average number of new infections from one infected person)
Key Insight: An epidemic occurs (infections increase) only if \(R_0 > 1\) and \(S(0)\) is large enough.
Threshold Condition: Infections increase when:
\begin{equation*} \frac{dI}{dt} > 0 \quad \Rightarrow \quad \frac{\beta S}{N} > \gamma \quad \Rightarrow \quad S > \frac{N}{R_0} \end{equation*}

Subsection Phase Plane Analysis

Since \(S + I + R = N\) is constant, we can eliminate \(R\) and analyze the \((S,I)\) phase plane.
Nullclines:
  • \(\frac{dS}{dt} = 0\) when \(I = 0\) or \(S = 0\)
  • \(\frac{dI}{dt} = 0\) when \(I = 0\) or \(S = N/R_0\)
The vertical line \(S = N/R_0\) separates regions where \(I\) increases (left side, epidemic) from regions where \(I\) decreases (right side, no epidemic).

Subsection Simulation Activity

Objective: Explore epidemic dynamics and intervention strategies.
Scenario: Flu Outbreak in a Town
Base Parameters:
  • \(N = 10000\) people
  • \(\beta = 0.5\) /day (so \(R_0 = 2.5\) if \(\gamma = 0.2\))
  • \(\gamma = 0.2\) /day (infectious period = 5 days)
  • Initial: \(S(0) = 9990\text{,}\) \(I(0) = 10\text{,}\) \(R(0) = 0\)
Part 1: Natural Progression
  1. Simulate the system for 100 days.
  2. Plot \(S(t)\text{,}\) \(I(t)\text{,}\) and \(R(t)\) on the same graph.
  3. When does the infection peak? What is the maximum number of infected individuals?
  4. What fraction of the population is eventually infected (final \(R\) value)?
  5. Create a phase plane plot (\(I\) vs. \(S\)).
Part 2: Vaccination Campaign
Vaccinating a fraction \(p\) of the population reduces initial susceptibles: \(S(0) = N(1-p)\text{,}\) \(R(0) = Np\text{.}\)
  1. Test vaccination levels: \(p = 0, 0.2, 0.4, 0.6, 0.8\text{.}\)
  2. For each, simulate and record the peak infection level and final attack rate (total infected).
  3. Calculate the herd immunity threshold: \(p_c = 1 - 1/R_0\text{.}\) Does this match your simulations?
  4. Plot peak infections versus vaccination coverage.
Part 3: Social Distancing
Reducing contact rate decreases \(\beta\text{.}\) Model intervention starting at day 30:
  1. Reduce \(\beta\) from 0.5 to 0.3 at \(t = 30\text{.}\)
  2. Compare with no intervention.
  3. How much does this "flatten the curve"?
  4. What if intervention starts at day 10 instead? Day 50?

Subsection Real-World Data Analysis

Objective: Fit SIR model to actual outbreak data.
Data Sources:
  • COVID-19 data from a specific region (early outbreak phase)
  • Historical flu pandemic data
  • Measles outbreak in an unvaccinated community
Tasks:
  1. Obtain cumulative case data (or infected count) over time.
  2. Estimate population size \(N\text{.}\)
  3. Estimate \(\gamma\) from known infectious period for the disease.
  4. Fit \(\beta\) by comparing model simulations with data (trial and error or optimization).
  5. Calculate \(R_0\) from fitted parameters.
  6. Plot data and model fit together.
  7. Discuss goodness of fit and model limitations.

Subsection Analytical Questions

  1. Show that \(\frac{d}{dt}(S+I+R) = 0\text{,}\) confirming constant total population.
  2. Prove that \(S(t)\) is always decreasing (never increases). What is the physical interpretation?
  3. Derive the final size equation: \(R_\infty = N - S_\infty\) where \(S_\infty\) satisfies \(S_\infty = S_0 e^{-R_0(R_\infty/N)}\text{.}\)
  4. For \(R_0 = 2.5\text{,}\) calculate the herd immunity threshold \(1 - 1/R_0\text{.}\) Why is this the minimum vaccination coverage needed?
  5. How does doubling the infectious period (\(1/\gamma\)) affect \(R_0\) and outbreak dynamics?
  6. The SIR model has no equilibrium with \(I > 0\text{.}\) Why does this mean epidemics are transient, not sustained?

Subsection Extensions: More Complex Models

Explore variations of the SIR model:
  • SEIR model: Add exposed (E) compartment for latent period before infectiousness
  • SIRS model: Allow temporary immunity (R individuals become S again)
  • Age-structured model: Different transmission rates for different age groups
  • Spatial model: Track disease spread across connected regions
  • Stochastic effects: Include randomness in small populations
Implement one extension and analyze how it changes predictions.

Subsection Policy Analysis Activity

You are a public health advisor. A new disease with \(R_0 = 3\) and 7-day infectious period emerges.
  1. What vaccination coverage is needed for herd immunity?
  2. If only 50% coverage is achievable, what contact reduction (decrease in \(\beta\)) is needed to compensate?
  3. Compare two strategies:
    • Strategy A: 60% vaccination, no other measures
    • Strategy B: 40% vaccination + 30% reduction in contacts
    Which prevents more infections?
  4. What is the optimal timing for interventions if they can only be sustained for 60 days?

Subsection Final Report

Submit a comprehensive report (5-6 pages) including:
  1. Derivation of the SIR model from first principles.
  2. Analysis of equilibria and phase plane structure.
  3. Derivation of the epidemic threshold and \(R_0\) interpretation.
  4. Simulation results for natural progression with detailed graphs.
  5. Analysis of vaccination campaign effectiveness with herd immunity calculations.
  6. Social distancing intervention results showing timing effects.
  7. Real-world data fitting with parameter estimates and discussion of fit quality.
  8. Answers to all analytical questions with complete derivations.
  9. Implementation and analysis of at least one model extension.
  10. Policy recommendations from the policy analysis activity with justifications.
  11. Critical discussion of model assumptions and limitations.
  12. Reflection on the role of mathematical modeling in public health decision-making.
Nonlinear systems capture phenomena that linear models cannot: thresholds, tipping points, and irreversible transitions. The SIR model demonstrates how mathematical analysisβ€”even when exact solutions are unavailableβ€”can guide critical decisions affecting millions of lives. Understanding \(R_0\text{,}\) herd immunity thresholds, and intervention timing has been crucial in managing diseases from smallpox to COVID-19. This framework extends beyond epidemiology to any system with thresholds: chemical reactions, opinion dynamics, technology adoption, financial contagion, and neural network activation. Nonlinear dynamics reveal that small changes in parameters or initial conditions can lead to dramatically different outcomesβ€”a lesson essential for navigating complex systems in an uncertain world.
You have attempted of activities on this page.