Lesson 6 of 15
Logistic Growth
Logistic Growth
Pure exponential growth is unrealistic — populations cannot grow forever. The logistic equation adds a carrying capacity :
- When : growth is approximately exponential ()
- When : growth stops ()
- When : growth is negative (population declines toward )
Exact Solution
The solution forms an S-shaped curve (sigmoid), starting slow, accelerating, then leveling off at .
Applications
- Population ecology: bacteria, fish stocks, human populations
- Epidemiology: spread of diseases before herd immunity
- Technology adoption: product diffusion models (Bass model)
- Neural networks: sigmoid activation function
Equilibria
The logistic equation has two equilibria:
- : unstable (any small population grows)
- : stable (perturbations return to carrying capacity)
Your Task
Implement logistic(r, K, y0, t_end, n) using Euler's method.
Pyodide loading...
Loading...
Click "Run" to execute your code.