The historical folder title is retained, but these scripts correspond to the book's type-1 onset material. They reduce the RTM neuron to two variables and show its fixed points, invariant cycles, and saddle-node-on-invariant-circle (SNIC) onset geometry.
In a two-dimensional reduction, fixed points are intersections of nullclines and their Jacobian eigenvalues classify stability. A periodic orbit is an invariant cycle. At type-1 onset, a saddle and node meet on the cycle, so the orbit spends an increasingly long time near the collision and its firing rate approaches zero.
The reduced RTM dynamics use instantaneous activation and the approximation
Here
Both examples now live in one notebook, chapter12.ipynb:
simulate_rtm_2d_fp scans applied current, finds reduced RTM fixed
points, and classifies their Jacobian eigenvalues; plot_rtm_2d_invariant_cycle
plots trajectories and crossings around the RTM invariant cycle and its
onset geometry.
RTM_2D_FP separates branches by stability and eigenvalue type. In
RTM_2D_INVARIANT_CYCLE, compare trajectories at and around the critical
current: motion slows near the saddle-node region, which is the phase-plane
signature behind the low-frequency type-1 onset.
- Run
RTM_2D_FPto locate and classify equilibria. - Run
RTM_2D_INVARIANT_CYCLEto see how trajectories use those structures. - Continue to Chapter 17 to measure the resulting frequency-current curve.
Chapter 10 introduces reductions and nullclines, and Chapter 11 introduces saddle-node collisions. Chapter 14 contrasts type-2 onset; Chapter 17 turns these onset mechanisms into firing-rate curves.
Open chapter12.ipynb in Jupyter, or via the Colab
badge at the top of the notebook, and run all cells top to bottom.