Electronics 101 Solving a differential equation Incorporating space
Numerical Methods
Accuracy, stability, speed Robert A. McDougal
Yale School of Medicine
Numerical Methods Accuracy, stability, speed Robert A. McDougal - - PowerPoint PPT Presentation
Electronics 101 Solving a differential equation Incorporating space Numerical Methods Accuracy, stability, speed Robert A. McDougal Yale School of Medicine 21 June 2016 Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space
Yale School of Medicine
Electronics 101 Solving a differential equation Incorporating space
Top: Alan Lloyd Hodgkin; Bottom: Andrew Fielding
Adapted from Pearson Education 2009.
Electronics 101 Solving a differential equation Incorporating space
Top: Alan Lloyd Hodgkin; Bottom: Andrew Fielding
Adapted from Hodgkin and Huxley 1952.
Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space
I1 I2 I3 I4
Wording from https://en.wikipedia.org/wiki/Kirchhoff%27s circuit laws
Electronics 101 Solving a differential equation Incorporating space
I C V R
i1
2
i
3
i
The Hodgkin-Huxley equations account for a pull on ions due to the balance of chemical and electrical gradients. This approximately acts as a battery with potential E associated with each resistor and leads to terms of the form g(V - E).
Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space Separation of Variables
Here we’re assuming g is a constant. This is not true for voltage gated ion channels.
Electronics 101 Solving a differential equation Incorporating space Explicit Euler
dt = f (t, y)
∆tn = f (tn, yn) and thus
1 2 3 0.00 0.20 0.40 0.60 0.80 1.00
Electronics 101 Solving a differential equation Incorporating space Explicit Euler
0.02 x < 0.1 0.20 x > 0.1 1 1 1 1 1/20
V
1
V
2
Electronics 101 Solving a differential equation Incorporating space Implicit Euler
1 2 3 0.00 0.20 0.40 0.60 0.80 1.00
Electronics 101 Solving a differential equation Incorporating space Implicit Euler
1 1 1 1 1/20
V
1
V
2
Electronics 101 Solving a differential equation Incorporating space Implicit Euler
0.2 0.4 0.6 0.8 1 0.5 1 1.5 2
small dt large dt ( ) 0.20
1 1 1 1 1/20
V 1 V 2
Error convergence estimates are true in the limit as dt → 0.
Electronics 101 Solving a differential equation Incorporating space Crank-Nicolson Method
Electronics 101 Solving a differential equation Incorporating space Staggered time steps
0.0 1.0 2.0 1.0 0.0
0.0 1.0 2.0 1.0 0.0
Electronics 101 Solving a differential equation Incorporating space CVode: Variable Time Steps
0.5 1.5 0.2 0.4 0.6 0.8 1 1 2
0.2 0.4 0.6 0.8 1 0.5 1 1.5 2
Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space
Electronics 101 Solving a differential equation Incorporating space
nseg = 1 nseg = 2 nseg = 3
Electronics 101 Solving a differential equation Incorporating space
1 4 2 3 6 8 5 7 9
McDougal et al 2013