Lesson 14 of 15
Stability Analysis
Stability Analysis
Finding an equilibrium is only half the story. We also need to know: will the system stay near the equilibrium, or drift away?
Linearization
For near an equilibrium :
since . The small perturbation satisfies:
This is just exponential growth/decay! The solution is .
Stability Criterion
| Condition | Behavior | Classification |
|---|---|---|
| Perturbations decay | Stable | |
| Perturbations grow | Unstable | |
| Need higher-order analysis | Neutral |
Example
For logistic growth :
- At : → unstable (population grows away from 0)
- At : → stable (population returns to carrying capacity)
Numerical Derivative
We estimate using the central difference:
Your Task
Implement stability(f, x_eq, eps=1e-5) that classifies an equilibrium as "stable", "unstable", or "neutral".
Pyodide loading...
Loading...
Click "Run" to execute your code.