Lesson 3 of 15
Fixed Points and Stability
Fixed Points and Stability
A fixed point (or equilibrium) of a dynamical system is a state that does not change over time. Understanding their stability tells us whether the system returns to equilibrium after a small perturbation.
1D Systems
For , a fixed point satisfies .
Stability criterion:
- → stable (perturbations decay)
- → unstable (perturbations grow)
We estimate the derivative numerically using the central difference:
2D Systems
For and , stability is determined by the Jacobian matrix at the fixed point:
The eigenvalues of determine the behaviour. From the characteristic polynomial (where is the trace and is the determinant):
| Condition | Classification |
|---|---|
| Saddle point (always unstable) | |
| Stable node | |
| Stable spiral | |
| Unstable | |
| Centre (neutrally stable) |
Your Task
Implement:
numerical_derivative(f_func, x, h=1e-6)— central difference approximation ofis_stable_1d(f_func, x_star)— returnsTrueif the fixed point is stablejacobian_eigenvalues(J11, J12, J21, J22)— returns(lambda1, lambda2)as real floats (the real parts, sorted descending); for complex eigenvalues return the real part
Python runtime loading...
Loading...
Click "Run" to execute your code.