1 R.V k V k 1 / I.k/ here; we ll stimulate the action potential another way.) Note that this further simplifies to. m 3 k h k.

Size: px
Start display at page:

Download "1 R.V k V k 1 / I.k/ here; we ll stimulate the action potential another way.) Note that this further simplifies to. m 3 k h k."

Transcription

1 1. The goal of this problem is to simulate a propagating action potential for the Hodgkin-Huxley model and to determine the propagation speed. From the class notes, the discrete version (i.e., after breaking it up into compartments of length x and radius a) of the cable equation in the constant diameter case is C m dv k dt D 1 R.V kc1 V k / 1 R.V k V k 1 / I.k/ m ; where R D r L x=a 2, C m D 2axc m, I m.n/ D 2axi m.x n /. (We won t use any electrode current here; we ll stimulate the action potential another way.) Note that this further simplifies to dv k dt D a 2r L c m x 2.V kc1 2V k C V k 1 / i m.x k / c m As before, i m.x k / D g L.V k E L / C g Na m 3 k h k.v k E Na / C g K n 4 k.v k E K / with g L D 03 ms/cm 2, g Na D 120 ms/cm 2, g K D 36 ms/cm 2, E L D mv, E Na D 50 mv, and E K D 77 mv. The gating variables m k, h k and n k (note we need one set of them for each compartment, hence the subscript k) are determined by equations of the form dz dt D z.v /.1 z/ ˇz.V /z ; where z denotes one of them. For the gating variables m k, h k, and n k use the rate functions m.v / D 01.V C 40/ 1 exp. 01.V C 40// ; ˇm.V / D 4 exp Œ.V C 65/=18 h.v / D 007 exp Œ 005.V C 65/ ; n.v / D ˇh.V / D 10 1 C exp Œ 01.V C 35/ 001.V C 55/ 1 exp Œ 01.V C 55/ ; ˇn.V / D 0125 exp Œ V C 65/ In addition, use c m D 1 F/cm 2 and for the squid axon take r L D 354 -cm. (Note these units are not all compatible with one another; some conversion of units will be necessary.) One way to simulate the propagating action potential is to use Matlab s ode15s. This is a solver for stiff sets of equations, i.e., ones with wide ranges of time scales. (If you know another method that will work to solve these equations, you are free to use it.) The solver ode15s works like ode45, so you will a function that takes as input the time and a big column vector comprised of N voltages V k, followed by N gating variables m k, then N gating variables h k and finally N gating variables n k. (So the overall vector has 4N components.) That function will need to return a big vector, the first N components of which are dv k =dt, followed by the N components dm k =dt, then the N components dh k =dt and finally the N components dn k =dt. The equations for the gating variables can be done using single formulas, if one uses Matlab s dot notation to operate on vector elements term-by-term, e.g., alpha_m = 0.1(V+35)./(1-exp(-0.1(V+35))).

2 The only other issue is how to handle the cable part of the equation, the term D.V kc1 2V k C V k 1 /, where D D a=.2r L c m x 2 /. For this, note that if we make a big tri-diagonal matrix 2 A D D then D.V kc1 2V k C V k 1 / D A EV, where EV is the column vector with components V 1, V 2,... V N ; thus, this term can be determined with simple matrix multiplication. Also, since most of the matrix elements are zero, it saves memory to represent it as a low-storage sparse matrix (where only the non-zero terms are stored). If one makes a vector of all ones using e = ones(n,1); then the matrix A can be constructed using the Matlab code A = D*spdiags([e -2e e],[-11],n,n); One final thing if one looks at the k D 1 term in the product A EV, the V 0 term is missing (and similarly for V N C1 ). This is equivalent to saying V D 0 at the ends of the x interval. This can cause problems, and it s better to assume D 0. One can do this relatively easily by instead assuming that V 0 D V 2, and similarly that V N C1 D V N 1. (Note if V 0 D V 2 then EV is symmetric about k D 1.) One can then implement this by modifying A after it s been created with spdiags using the lines A(1,2)=A(1,2)*2; and A(N,N-1)=A(N,N-1)*2;. Instead, then, one will have the matrix A D D This completes the basic instructions to set up your Matlab program. Here s the explicit part about what to do Run your code using a axon radius of cm (i.e., 238 m), a spacing x D 025 cm, and N D 201 points (so, the total length is 50 cm). Use an initial voltage of -65 mv, an initial m value of 0.05, an initial h value of 0.6 and an initial n value of 0.3, except stimulate the left-most 1 cm of the axon by setting the initial voltage in that section to 0 mv. This should be sufficient to generate a propagating action potential. You should plot the shape of the propagating action potential at the middle point of the region, and determine the action potential s velocity. One way to do the latter is to use an event function that records the times at which different sections of the cable (say, at 25 cm and 40 cm) first reach 0 mv. (You can stop the simulation when the second event happens.) The velocity, of course, will be the distance traveled divided by the time interval the event function gives

3 The ion channel models we are using come from Hodgkin and Huxley s original paper. 1 These models were fit to data measured at 63 ı C. In their paper, they also report the propagation velocity at 18.5 ı C. In addition to showing the shape and determining the propagation velocity at 63 ı C, also do this at 18.5 ı C. To change the model to work at different temperatures, all of the ion channel rates (i.e., the s and the ˇs) must be multiplied by a temperature-dependent factor the ion channels speed up at higher temperatures..t 63/=10 The appropriate factor is Q where T is the temperature and Q D 3. (In other words, it was determined experimentally that the ion channels speed up by a factor of 3 for every 10 ı C.) Using an appropriately modified version of your code, plot the propagating action potential shape and determine its velocity at 18.5 ı C. How well do your results agree with Hodgkin and Huxley s prediction of 18.8 m/s? (Or their experimentally determined velocity of 21.2 m/s?) 2. (This is a problem due to Dayan and Abbott.) A Hopfield associated memory has firing rates or activities for a set of networked neurons, v k for k D 1, 2,..., N (or collectively, a vector of activities v), that take values of either C1 or 1, and are updated at discrete time steps according to the rule 0 1 NX v i.tc1/ D M ij v j.t/ A ; (1) where j D1 8 < C1 if z 0 sgn.z/ D 1 if z < 0 The matrix M of synaptic weights is constructed from P memory vectors v m (m D 1, 2,..., P ) that are also composed of elements that are either C1 or 1. M is determined through the sum of outer products M ij D.1 ı ij / PX v m i v m j (2) Here ı ij D 1 if i D j and 0 otherwise, and this makes the diagonal elements of M zero. Consider a 100-element network (N D 100) and construct P memory states by randomly assigning +1 and -1 values with equal probabilities to the N elements of each v m. Using these memory vectors, set the matrix of synaptic weights according to equation (2). Then, study the behavior of the network by iterating equation (1). To measure how close the state of the network at time t, v.t/, is to a particular memory state, say v 1, define the overlap function q.t/ D.v 1 v.t//=n. Note this will be equal to 1 if v.t/ D v 1, is near zero if v.t/ is unrelated to v 1, and is equal to -1 if v.t/ D v 1. Set the initial state v.0/ so that it has a positive overlap, q.0/ D q 0 > 0, with memory state v 1, and determine the probability that this memory state is recovered perfectly as a function of the number P of stored memory vectors. Do this by computing the final overlap q.final/ (when the memory state stops changing) for a number of different random sets of memory vectors v m (m D 1, 2,..., P ) and different 1 A quantitative description of membrane current and its application to conduction and excitation in nerve, J. Physiol. 117 (1952) pp md1

4 random initial vectors v.0/ with q.0/ D q 0 D 09 always the same value. The probability of perfect recall will be the fraction of times q.final/ is equal to 1. The goal of this assignment Your task is to produce a plot of the estimated probability that q.final/ D 1 as a function of P, for P between 1 and 30. A plot of the probability of perfect recall is a way to assess the storage capacity of the network. Here are some hints that will help you do this with Matlab (a) You can generate a matrix whose P columns are the memory vectors with a single Matlab statement V=2*randi(2,N,P)-3;. The randi generates a random matrix of integers between 1 and 2 (i.e., either 1 or 2) of size N xp, multiplying by 2 gives either 2 or 4, and subtracting 3 gives -1 or 1. [Hint try this by typing it in the command window without the semicolon with, say P=2 and N=5, to see what it is doing. You can run it several times to make sure you always get patterns of +1 and -1 that are different each time.] (b) If V is the matrix whose columns are the P memory vectors, then the Matlab statements M=V*V, followed by M=M-diag(diag(M)) gives the synaptic connectivity matrix. The Matlab command diag extracts the diagonal of a matrix as a vector, or turns a vector into a diagonal matrix. [Hint you can run this by hand using the smaller V you generated above to make sure you understand how this removes the diagonal terms from the matrix.] (c) With a random synaptic connectivity matrix and a set of random initial vectors the results will vary from trial to trial. It is therefore helpful to repeat the iteration with a number of initial random vectors, and also to use a number of different random sets of memory vectors making up the matrix M. The parallel capabilities of Matlab can help with some of this if one constructs v so it has K different columns, one can update all K columns simultaneously using the same iteration as described above. A way to make K copies of v 1 in Matlab is with the command v=repmat(v(,1),1,k);. Here repmat is the command to replicate and tile an array. [Hint Again, you can try this by hand to understand what it does.] (d) The Matlab sgn function isn t the same as the one above in the iteration given by Equation (1), since sgn(0)=0. One way to fix this is to do vnew=sgn(m*v); zero_entries=find(vnew==0); vnew(zero_entries)=1; [Hint The Matlab find function is very useful for working with selected elements of vectors and matrices. It is worth spending some time to understand how it works.] (e) The random initial vectors should all have the same q 0. One way to do this is the have L elements or components of the initial v different from v 1 and N L elements the same. For each component that is different, q.t/ D.v 1 v.t//=n will decrease by 2=N. (When a component is the same, the product of that component with the same component in v 1 will give C1, and when it is different it gives 1.) You can randomly flip L elements of each column of v with the code snippet

5 for j=1k flip=randperm(n,l); v(flip,j)=-v(flip,j); end Here randperm(n,l) selects random set of L N numbers from 1; 2; N without replacement. (There might be some way to do this without a for loop, but this way is easy to understand.) Pick L so that the initial q.0/ D 09. [Hint you can also type these lines into the command window to understand them. Matlab will not execute the commands inside the for loop until you type the end.] (f) The above iteration, equation (1), has been written as a parallel update. This speeds up the simulation a lot compared with one-at-a-time asynchronous updates, but the iteration with parallel updates does not always converge sometimes one gets oscillations with a period of 2, i.e., the iteration goes back and forth between two different vectors. As a result, you should stop the iteration if the iteration two steps ago is the same as the new one. (Note this also works if one gets to a steady state where there is no oscillation.) One way to do this is to have three variables vold, v and vnew, and after each iteration check to see if vnew is identical to vold; One checks to see if vectors are identical in Matlab with the test isequal(vnew,vold). If the test is true one stops the iteration, otherwise one sets vold=v and v=vnew (in that order you should understand why the order is important) and then continues the iteration. It s also always a good idea to have a limit on the total number of iterations, so that if something doesn t work as expected your program doesn t get stuck in an infinite loop. A way to do this is using a for loop with a maximum number of iterations. In this case, the way to exit the loop if the test is true is with a Matlab break statement. (g) For each value of P (the number of stored vectors) you want to calculate q=v *V(,1)/N and determine the fraction of the q.final/ values that are equal to 1. This is an estimate of the probability that q.final/ D 1. Make sure you use a sufficient number of different sets of random memory vectors and number K of randomly permuted initial vectors so that the resulting plot of the estimated probability as a function of P is relatively smooth. (h) How many memory vectors can be stored when N D 100 so that one has at least a 90% chance of perfect recall? This is one measure of the storage capacity of a Hopfield network of 100 neurons.

Electronics 101 Solving a differential equation Incorporating space. Numerical Methods. Accuracy, stability, speed. Robert A.

Electronics 101 Solving a differential equation Incorporating space. Numerical Methods. Accuracy, stability, speed. Robert A. Numerical Methods Accuracy, stability, speed Robert A. McDougal Yale School of Medicine 21 June 2016 Hodgkin and Huxley: squid giant axon experiments Top: Alan Lloyd Hodgkin; Bottom: Andrew Fielding Huxley.

More information

Topics in Neurophysics

Topics in Neurophysics Topics in Neurophysics Alex Loebel, Martin Stemmler and Anderas Herz Exercise 2 Solution (1) The Hodgkin Huxley Model The goal of this exercise is to simulate the action potential according to the model

More information

Voltage-clamp and Hodgkin-Huxley models

Voltage-clamp and Hodgkin-Huxley models Voltage-clamp and Hodgkin-Huxley models Read: Hille, Chapters 2-5 (best Koch, Chapters 6, 8, 9 See also Hodgkin and Huxley, J. Physiol. 117:500-544 (1952. (the source Clay, J. Neurophysiol. 80:903-913

More information

Voltage-clamp and Hodgkin-Huxley models

Voltage-clamp and Hodgkin-Huxley models Voltage-clamp and Hodgkin-Huxley models Read: Hille, Chapters 2-5 (best) Koch, Chapters 6, 8, 9 See also Clay, J. Neurophysiol. 80:903-913 (1998) (for a recent version of the HH squid axon model) Rothman

More information

Mathematical Foundations of Neuroscience - Lecture 3. Electrophysiology of neurons - continued

Mathematical Foundations of Neuroscience - Lecture 3. Electrophysiology of neurons - continued Mathematical Foundations of Neuroscience - Lecture 3. Electrophysiology of neurons - continued Filip Piękniewski Faculty of Mathematics and Computer Science, Nicolaus Copernicus University, Toruń, Poland

More information

On Parameter Estimation for Neuron Models

On Parameter Estimation for Neuron Models On Parameter Estimation for Neuron Models Abhijit Biswas Department of Mathematics Temple University November 30th, 2017 Abhijit Biswas (Temple University) On Parameter Estimation for Neuron Models November

More information

In biological terms, memory refers to the ability of neural systems to store activity patterns and later recall them when required.

In biological terms, memory refers to the ability of neural systems to store activity patterns and later recall them when required. In biological terms, memory refers to the ability of neural systems to store activity patterns and later recall them when required. In humans, association is known to be a prominent feature of memory.

More information

Beam Propagation Method Solution to the Seminar Tasks

Beam Propagation Method Solution to the Seminar Tasks Beam Propagation Method Solution to the Seminar Tasks Matthias Zilk The task was to implement a 1D beam propagation method (BPM) that solves the equation z v(xz) = i 2 [ 2k x 2 + (x) k 2 ik2 v(x, z) =

More information

Basic Linear Algebra in MATLAB

Basic Linear Algebra in MATLAB Basic Linear Algebra in MATLAB 9.29 Optional Lecture 2 In the last optional lecture we learned the the basic type in MATLAB is a matrix of double precision floating point numbers. You learned a number

More information

7.2 Linear equation systems. 7.3 Linear least square fit

7.2 Linear equation systems. 7.3 Linear least square fit 72 Linear equation systems In the following sections, we will spend some time to solve linear systems of equations This is a tool that will come in handy in many di erent places during this course For

More information

Dynamical Systems in Neuroscience: Elementary Bifurcations

Dynamical Systems in Neuroscience: Elementary Bifurcations Dynamical Systems in Neuroscience: Elementary Bifurcations Foris Kuang May 2017 1 Contents 1 Introduction 3 2 Definitions 3 3 Hodgkin-Huxley Model 3 4 Morris-Lecar Model 4 5 Stability 5 5.1 Linear ODE..............................................

More information

Single-Compartment Neural Models

Single-Compartment Neural Models Single-Compartment Neural Models BENG/BGGN 260 Neurodynamics University of California, San Diego Week 2 BENG/BGGN 260 Neurodynamics (UCSD) Single-Compartment Neural Models Week 2 1 / 18 Reading Materials

More information

Linear Systems of Equations. ChEn 2450

Linear Systems of Equations. ChEn 2450 Linear Systems of Equations ChEn 450 LinearSystems-directkey - August 5, 04 Example Circuit analysis (also used in heat transfer) + v _ R R4 I I I3 R R5 R3 Kirchoff s Laws give the following equations

More information

BME 5742 Biosystems Modeling and Control

BME 5742 Biosystems Modeling and Control BME 5742 Biosystems Modeling and Control Hodgkin-Huxley Model for Nerve Cell Action Potential Part 1 Dr. Zvi Roth (FAU) 1 References Hoppensteadt-Peskin Ch. 3 for all the mathematics. Cooper s The Cell

More information

Q520: Answers to the Homework on Hopfield Networks. 1. For each of the following, answer true or false with an explanation:

Q520: Answers to the Homework on Hopfield Networks. 1. For each of the following, answer true or false with an explanation: Q50: Answers to the Homework on Hopfield Networks 1. For each of the following, answer true or false with an explanation: a. Fix a Hopfield net. If o and o are neighboring observation patterns then Φ(

More information

From neuronal oscillations to complexity

From neuronal oscillations to complexity 1/39 The Fourth International Workshop on Advanced Computation for Engineering Applications (ACEA 2008) MACIS 2 Al-Balqa Applied University, Salt, Jordan Corson Nathalie, Aziz Alaoui M.A. University of

More information

STUDENT PAPER. Santiago Santana University of Illinois, Urbana-Champaign Blue Waters Education Program 736 S. Lombard Oak Park IL, 60304

STUDENT PAPER. Santiago Santana University of Illinois, Urbana-Champaign Blue Waters Education Program 736 S. Lombard Oak Park IL, 60304 STUDENT PAPER Differences between Stochastic and Deterministic Modeling in Real World Systems using the Action Potential of Nerves. Santiago Santana University of Illinois, Urbana-Champaign Blue Waters

More information

Computational Neuroscience Summer School Neural Spike Train Analysis. An introduction to biophysical models (Part 2)

Computational Neuroscience Summer School Neural Spike Train Analysis. An introduction to biophysical models (Part 2) Computational Neuroscience Summer School Neural Spike Train Analysis Instructor: Mark Kramer Boston University An introduction to biophysical models (Part 2 SAMSI Short Course 2015 1 Goal: Model this,

More information

Lecture 3: Special Matrices

Lecture 3: Special Matrices Lecture 3: Special Matrices Feedback of assignment1 Random matrices The magic matrix commend magic() doesn t give us random matrix. Random matrix means we will get different matrices each time when we

More information

Artificial Intelligence Hopfield Networks

Artificial Intelligence Hopfield Networks Artificial Intelligence Hopfield Networks Andrea Torsello Network Topologies Single Layer Recurrent Network Bidirectional Symmetric Connection Binary / Continuous Units Associative Memory Optimization

More information

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511)

GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511) GAUSSIAN ELIMINATION AND LU DECOMPOSITION (SUPPLEMENT FOR MA511) D. ARAPURA Gaussian elimination is the go to method for all basic linear classes including this one. We go summarize the main ideas. 1.

More information

Solving Dense Linear Systems I

Solving Dense Linear Systems I Solving Dense Linear Systems I Solving Ax = b is an important numerical method Triangular system: [ l11 l 21 if l 11, l 22 0, ] [ ] [ ] x1 b1 = l 22 x 2 b 2 x 1 = b 1 /l 11 x 2 = (b 2 l 21 x 1 )/l 22 Chih-Jen

More information

Notes for CS542G (Iterative Solvers for Linear Systems)

Notes for CS542G (Iterative Solvers for Linear Systems) Notes for CS542G (Iterative Solvers for Linear Systems) Robert Bridson November 20, 2007 1 The Basics We re now looking at efficient ways to solve the linear system of equations Ax = b where in this course,

More information

Matrix-Vector Operations

Matrix-Vector Operations Week3 Matrix-Vector Operations 31 Opening Remarks 311 Timmy Two Space View at edx Homework 3111 Click on the below link to open a browser window with the Timmy Two Space exercise This exercise was suggested

More information

Lecture Notes 8C120 Inleiding Meten en Modelleren. Cellular electrophysiology: modeling and simulation. Nico Kuijpers

Lecture Notes 8C120 Inleiding Meten en Modelleren. Cellular electrophysiology: modeling and simulation. Nico Kuijpers Lecture Notes 8C2 Inleiding Meten en Modelleren Cellular electrophysiology: modeling and simulation Nico Kuijpers nico.kuijpers@bf.unimaas.nl February 9, 2 2 8C2 Inleiding Meten en Modelleren Extracellular

More information

Data Mining Part 5. Prediction

Data Mining Part 5. Prediction Data Mining Part 5. Prediction 5.5. Spring 2010 Instructor: Dr. Masoud Yaghini Outline How the Brain Works Artificial Neural Networks Simple Computing Elements Feed-Forward Networks Perceptrons (Single-layer,

More information

Calculations to predict motion or move objects (done repetitively in a loop)

Calculations to predict motion or move objects (done repetitively in a loop) Lab 2: Free Fall 1 Modeling Free Fall Now that you ve done experimental measurements of an object in free fall, you will model the motion of an object in free fall using numerical methods and compare your

More information

Dynamical systems in neuroscience. Pacific Northwest Computational Neuroscience Connection October 1-2, 2010

Dynamical systems in neuroscience. Pacific Northwest Computational Neuroscience Connection October 1-2, 2010 Dynamical systems in neuroscience Pacific Northwest Computational Neuroscience Connection October 1-2, 2010 What do I mean by a dynamical system? Set of state variables Law that governs evolution of state

More information

6. Iterative Methods for Linear Systems. The stepwise approach to the solution...

6. Iterative Methods for Linear Systems. The stepwise approach to the solution... 6 Iterative Methods for Linear Systems The stepwise approach to the solution Miriam Mehl: 6 Iterative Methods for Linear Systems The stepwise approach to the solution, January 18, 2013 1 61 Large Sparse

More information

Astronomy 8824: Numerical Methods Notes 2 Ordinary Differential Equations

Astronomy 8824: Numerical Methods Notes 2 Ordinary Differential Equations Astronomy 8824: Numerical Methods Notes 2 Ordinary Differential Equations Reading: Numerical Recipes, chapter on Integration of Ordinary Differential Equations (which is ch. 15, 16, or 17 depending on

More information

SUPPLEMENTARY INFORMATION

SUPPLEMENTARY INFORMATION SUPPLEMENTARY INFORMATION Supplementary Figure S1. Pulses >3mJ reduce membrane resistance in HEK cells. Reversal potentials in a representative cell for IR-induced currents with laser pulses of 0.74 to

More information

Bo Deng University of Nebraska-Lincoln UNL Math Biology Seminar

Bo Deng University of Nebraska-Lincoln UNL Math Biology Seminar Mathematical Model of Neuron Bo Deng University of Nebraska-Lincoln UNL Math Biology Seminar 09-10-2015 Review -- One Basic Circuit By Kirchhoff's Current Law 0 = I C + I R + I L I ext By Kirchhoff s Voltage

More information

MATH 3104: THE HODGKIN-HUXLEY EQUATIONS

MATH 3104: THE HODGKIN-HUXLEY EQUATIONS MATH 3104: THE HODGKIN-HUXLEY EQUATIONS Parallel conductance model A/Prof Geoffrey Goodhill, Semester 1, 2009 So far we have modelled neuronal membranes by just one resistance (conductance) variable. We

More information

Matrix-Vector Operations

Matrix-Vector Operations Week3 Matrix-Vector Operations 31 Opening Remarks 311 Timmy Two Space View at edx Homework 3111 Click on the below link to open a browser window with the Timmy Two Space exercise This exercise was suggested

More information

Neural Modeling and Computational Neuroscience. Claudio Gallicchio

Neural Modeling and Computational Neuroscience. Claudio Gallicchio Neural Modeling and Computational Neuroscience Claudio Gallicchio 1 Neuroscience modeling 2 Introduction to basic aspects of brain computation Introduction to neurophysiology Neural modeling: Elements

More information

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.] Math 43 Review Notes [Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty Dot Product If v (v, v, v 3 and w (w, w, w 3, then the

More information

5.2 Infinite Series Brian E. Veitch

5.2 Infinite Series Brian E. Veitch 5. Infinite Series Since many quantities show up that cannot be computed exactly, we need some way of representing it (or approximating it). One way is to sum an infinite series. Recall that a n is the

More information

Week 4: Hopfield Network

Week 4: Hopfield Network Week 4: Hopfield Network Phong Le, Willem Zuidema November 20, 2013 Last week we studied multi-layer perceptron, a neural network in which information is only allowed to transmit in one direction (from

More information

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3 Linear Algebra Row Reduced Echelon Form Techniques for solving systems of linear equations lie at the heart of linear algebra. In high school we learn to solve systems with or variables using elimination

More information

Dynamic Systems: Ordinary Differential Equations. Ordinary Differential Equations

Dynamic Systems: Ordinary Differential Equations. Ordinary Differential Equations Dynamic Systems: Ordinary Differential Equations Adapted From: Numerical Methods in Biomedical Engineering Stanley M. Dunn, Alkis Constantinides, Prabhas V. Moghe Chapter 7 Kim Ferlin and John Fisher Ordinary

More information

Review for Exam 1. Erik G. Learned-Miller Department of Computer Science University of Massachusetts, Amherst Amherst, MA

Review for Exam 1. Erik G. Learned-Miller Department of Computer Science University of Massachusetts, Amherst Amherst, MA Review for Exam Erik G. Learned-Miller Department of Computer Science University of Massachusetts, Amherst Amherst, MA 0003 March 26, 204 Abstract Here are some things you need to know for the in-class

More information

GENERAL ARTICLE Noisy Neurons

GENERAL ARTICLE Noisy Neurons Noisy Neurons Hodgkin Huxley Model and Stochastic Variants Shruti Paranjape Shruti Paranjape is a fourth year student at IISER Pune, majoring in Physics. This is an article based on what she worked on

More information

Modeling Action Potentials in Cell Processes

Modeling Action Potentials in Cell Processes Modeling Action Potentials in Cell Processes Chelsi Pinkett, Jackie Chism, Kenneth Anderson, Paul Klockenkemper, Christopher Smith, Quarail Hale Tennessee State University Action Potential Models Chelsi

More information

Math 345 Intro to Math Biology Lecture 20: Mathematical model of Neuron conduction

Math 345 Intro to Math Biology Lecture 20: Mathematical model of Neuron conduction Math 345 Intro to Math Biology Lecture 20: Mathematical model of Neuron conduction Junping Shi College of William and Mary November 8, 2018 Neuron Neurons Neurons are cells in the brain and other subsystems

More information

Linear Algebra Review

Linear Algebra Review Chapter 1 Linear Algebra Review It is assumed that you have had a course in linear algebra, and are familiar with matrix multiplication, eigenvectors, etc. I will review some of these terms here, but quite

More information

CS1800: Sequences & Sums. Professor Kevin Gold

CS1800: Sequences & Sums. Professor Kevin Gold CS1800: Sequences & Sums Professor Kevin Gold Moving Toward Analysis of Algorithms Today s tools help in the analysis of algorithms. We ll cover tools for deciding what equation best fits a sequence of

More information

Groups. s t or s t or even st rather than f(s,t).

Groups. s t or s t or even st rather than f(s,t). Groups Definition. A binary operation on a set S is a function which takes a pair of elements s,t S and produces another element f(s,t) S. That is, a binary operation is a function f : S S S. Binary operations

More information

1 Determinants. 1.1 Determinant

1 Determinants. 1.1 Determinant 1 Determinants [SB], Chapter 9, p.188-196. [SB], Chapter 26, p.719-739. Bellow w ll study the central question: which additional conditions must satisfy a quadratic matrix A to be invertible, that is to

More information

3.3 Simulating action potentials

3.3 Simulating action potentials 6 THE HODGKIN HUXLEY MODEL OF THE ACTION POTENTIAL Fig. 3.1 Voltage dependence of rate coefficients and limiting values and time constants for the Hodgkin Huxley gating variables. (a) Graphs of forward

More information

MOL410/510 Problem Set 1 - Linear Algebra - Due Friday Sept. 30

MOL410/510 Problem Set 1 - Linear Algebra - Due Friday Sept. 30 MOL40/50 Problem Set - Linear Algebra - Due Friday Sept. 30 Use lab notes to help solve these problems. Problems marked MUST DO are required for full credit. For the remainder of the problems, do as many

More information

Math 132. Population Growth: Raleigh and Wake County

Math 132. Population Growth: Raleigh and Wake County Math 132 Population Growth: Raleigh and Wake County S. R. Lubkin Application Ask anyone who s been living in Raleigh more than a couple of years what the biggest issue is here, and if the answer has nothing

More information

Simulating Hodgkin-Huxley-like Excitation using Comsol Multiphysics

Simulating Hodgkin-Huxley-like Excitation using Comsol Multiphysics Presented at the COMSOL Conference 2008 Hannover Simulating Hodgkin-Huxley-like Excitation using Comsol Multiphysics Martinek 1,2, Stickler 2, Reichel 1 and Rattay 2 1 Department of Biomedical Engineering

More information

Simulation of Cardiac Action Potentials Background Information

Simulation of Cardiac Action Potentials Background Information Simulation of Cardiac Action Potentials Background Information Rob MacLeod and Quan Ni February 7, 2 Introduction The goal of assignments related to this document is to experiment with a numerical simulation

More information

Lecture 7 Artificial neural networks: Supervised learning

Lecture 7 Artificial neural networks: Supervised learning Lecture 7 Artificial neural networks: Supervised learning Introduction, or how the brain works The neuron as a simple computing element The perceptron Multilayer neural networks Accelerated learning in

More information

Electrophysiology of the neuron

Electrophysiology of the neuron School of Mathematical Sciences G4TNS Theoretical Neuroscience Electrophysiology of the neuron Electrophysiology is the study of ionic currents and electrical activity in cells and tissues. The work of

More information

Lecture 10 : Neuronal Dynamics. Eileen Nugent

Lecture 10 : Neuronal Dynamics. Eileen Nugent Lecture 10 : Neuronal Dynamics Eileen Nugent Origin of the Cells Resting Membrane Potential: Nernst Equation, Donnan Equilbrium Action Potentials in the Nervous System Equivalent Electrical Circuits and

More information

Linear System of Equations

Linear System of Equations Linear System of Equations Linear systems are perhaps the most widely applied numerical procedures when real-world situation are to be simulated. Example: computing the forces in a TRUSS. F F 5. 77F F.

More information

9 Generation of Action Potential Hodgkin-Huxley Model

9 Generation of Action Potential Hodgkin-Huxley Model 9 Generation of Action Potential Hodgkin-Huxley Model (based on chapter 12, W.W. Lytton, Hodgkin-Huxley Model) 9.1 Passive and active membrane models In the previous lecture we have considered a passive

More information

Class Notes: Solving Simultaneous Linear Equations by Gaussian Elimination. Consider a set of simultaneous linear equations:

Class Notes: Solving Simultaneous Linear Equations by Gaussian Elimination. Consider a set of simultaneous linear equations: METR/OCN 465: Computer Programming with Applications in Meteorology and Oceanography Dr Dave Dempsey Dept of Geosciences, SFSU Class Notes: Solving Simultaneous Linear Equations by Gaussian Elimination

More information

Numerical Methods Lecture 2 Simultaneous Equations

Numerical Methods Lecture 2 Simultaneous Equations CGN 42 - Computer Methods Numerical Methods Lecture 2 Simultaneous Equations Topics: matrix operations solving systems of equations Matrix operations: Adding / subtracting Transpose Multiplication Adding

More information

Electricity in biology

Electricity in biology Electricity in biology Maintaining an osmotic balance Different strategies Animal: pumping ions out Plants/some bacteria: using a rigid shell Amoeba: extruding water bubble periodically Animal Plant/Bacteria

More information

TOPIC 2 Computer application for manipulating matrix using MATLAB

TOPIC 2 Computer application for manipulating matrix using MATLAB YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 2 Computer application for manipulating matrix using MATLAB Definition of Matrices in MATLAB

More information

Nonlinear Observer Design and Synchronization Analysis for Classical Models of Neural Oscillators

Nonlinear Observer Design and Synchronization Analysis for Classical Models of Neural Oscillators Nonlinear Observer Design and Synchronization Analysis for Classical Models of Neural Oscillators Ranjeetha Bharath and Jean-Jacques Slotine Massachusetts Institute of Technology ABSTRACT This work explores

More information

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations Lab 2 Worksheet Problems Problem : Geometry and Linear Equations Linear algebra is, first and foremost, the study of systems of linear equations. You are going to encounter linear systems frequently in

More information

MATH 723 Mathematical Neuroscience Spring 2008 Instructor: Georgi Medvedev

MATH 723 Mathematical Neuroscience Spring 2008 Instructor: Georgi Medvedev MATH 723 Mathematical Neuroscience Spring 28 Instructor: Georgi Medvedev 2 Lecture 2. Approximate systems. 2. Reduction of the HH model to a 2D system. The original HH system consists of 4 differential

More information

Consider the following example of a linear system:

Consider the following example of a linear system: LINEAR SYSTEMS Consider the following example of a linear system: Its unique solution is x + 2x 2 + 3x 3 = 5 x + x 3 = 3 3x + x 2 + 3x 3 = 3 x =, x 2 = 0, x 3 = 2 In general we want to solve n equations

More information

ECE 204 Numerical Methods for Computer Engineers MIDTERM EXAMINATION /8:00-9:30

ECE 204 Numerical Methods for Computer Engineers MIDTERM EXAMINATION /8:00-9:30 ECE 204 Numerical Methods for Computer Engineers MIDTERM EXAMINATION 2007-10-23/8:00-9:30 The examination is out of 67 marks. Instructions: No aides. Write your name and student ID number on each booklet.

More information

Power System Analysis Prof. A. K. Sinha Department of Electrical Engineering Indian Institute of Technology, Kharagpur. Lecture - 21 Power Flow VI

Power System Analysis Prof. A. K. Sinha Department of Electrical Engineering Indian Institute of Technology, Kharagpur. Lecture - 21 Power Flow VI Power System Analysis Prof. A. K. Sinha Department of Electrical Engineering Indian Institute of Technology, Kharagpur Lecture - 21 Power Flow VI (Refer Slide Time: 00:57) Welcome to lesson 21. In this

More information

Grade 8 Chapter 7: Rational and Irrational Numbers

Grade 8 Chapter 7: Rational and Irrational Numbers Grade 8 Chapter 7: Rational and Irrational Numbers In this chapter we first review the real line model for numbers, as discussed in Chapter 2 of seventh grade, by recalling how the integers and then the

More information

Math in systems neuroscience. Quan Wen

Math in systems neuroscience. Quan Wen Math in systems neuroscience Quan Wen Human brain is perhaps the most complex subject in the universe 1 kg brain 10 11 neurons 180,000 km nerve fiber 10 15 synapses 10 18 synaptic proteins Multiscale

More information

Phys 102 Lecture 9 RC circuits

Phys 102 Lecture 9 RC circuits Phys 102 Lecture 9 RC circuits 1 Recall from last time... We solved various circuits with resistors and batteries (also capacitors and batteries) ε R 1 R 2 R 3 R 1 ε 1 ε 2 R 3 What about circuits that

More information

Final Project Descriptions Introduction to Mathematical Biology Professor: Paul J. Atzberger. Project I: Predator-Prey Equations

Final Project Descriptions Introduction to Mathematical Biology Professor: Paul J. Atzberger. Project I: Predator-Prey Equations Final Project Descriptions Introduction to Mathematical Biology Professor: Paul J. Atzberger Project I: Predator-Prey Equations The Lotka-Volterra Predator-Prey Model is given by: du dv = αu βuv = ρβuv

More information

Section 20: Arrow Diagrams on the Integers

Section 20: Arrow Diagrams on the Integers Section 0: Arrow Diagrams on the Integers Most of the material we have discussed so far concerns the idea and representations of functions. A function is a relationship between a set of inputs (the leave

More information

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1 1 Rows first, columns second. Remember that. R then C. 1 A matrix is a set of real or complex numbers arranged in a rectangular array. They can be any size and shape (provided they are rectangular). A

More information

Topic 15 Notes Jeremy Orloff

Topic 15 Notes Jeremy Orloff Topic 5 Notes Jeremy Orloff 5 Transpose, Inverse, Determinant 5. Goals. Know the definition and be able to compute the inverse of any square matrix using row operations. 2. Know the properties of inverses.

More information

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4

Linear Algebra Section 2.6 : LU Decomposition Section 2.7 : Permutations and transposes Wednesday, February 13th Math 301 Week #4 Linear Algebra Section. : LU Decomposition Section. : Permutations and transposes Wednesday, February 1th Math 01 Week # 1 The LU Decomposition We learned last time that we can factor a invertible matrix

More information

Nerve Excitation. L. David Roper This is web page

Nerve Excitation. L. David Roper  This is web page Nerve Excitation L. David Roper http://arts.bev.net/roperldavid This is web page http://www.roperld.com/science/nerveexcitation.pdf Chapter 1. The Action Potential A typical action potential (inside relative

More information

Math 471 (Numerical methods) Chapter 3 (second half). System of equations

Math 471 (Numerical methods) Chapter 3 (second half). System of equations Math 47 (Numerical methods) Chapter 3 (second half). System of equations Overlap 3.5 3.8 of Bradie 3.5 LU factorization w/o pivoting. Motivation: ( ) A I Gaussian Elimination (U L ) where U is upper triangular

More information

Quadratic Sinusoidal Analysis of Neurons in Voltage Clamp

Quadratic Sinusoidal Analysis of Neurons in Voltage Clamp Quadratic Sinusoidal Analysis of Neurons in Voltage Clamp Christophe Magnani and L.E.Moore CESeM - CNRS UMR 8194 - Université Paris Descartes 45 rue des Saints-Pères - 75270 PARIS Cedex 6 Keywords: Electrophysiology;

More information

Sin, Cos and All That

Sin, Cos and All That Sin, Cos and All That James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University March 9, 2017 Outline 1 Sin, Cos and all that! 2 A New Power Rule 3

More information

22A-2 SUMMER 2014 LECTURE 5

22A-2 SUMMER 2014 LECTURE 5 A- SUMMER 0 LECTURE 5 NATHANIEL GALLUP Agenda Elimination to the identity matrix Inverse matrices LU factorization Elimination to the identity matrix Previously, we have used elimination to get a system

More information

v = ( 2)

v = ( 2) Chapter : Introduction to Vectors.. Vectors and linear combinations Let s begin by saying what vectors are: They are lists of numbers. If there are numbers in the list, there is a natural correspondence

More information

Vector, Matrix, and Tensor Derivatives

Vector, Matrix, and Tensor Derivatives Vector, Matrix, and Tensor Derivatives Erik Learned-Miller The purpose of this document is to help you learn to take derivatives of vectors, matrices, and higher order tensors (arrays with three dimensions

More information

Phys 201. Matrices and Determinants

Phys 201. Matrices and Determinants Phys 201 Matrices and Determinants 1 1.1 Matrices 1.2 Operations of matrices 1.3 Types of matrices 1.4 Properties of matrices 1.5 Determinants 1.6 Inverse of a 3 3 matrix 2 1.1 Matrices A 2 3 7 =! " 1

More information

PageRank: The Math-y Version (Or, What To Do When You Can t Tear Up Little Pieces of Paper)

PageRank: The Math-y Version (Or, What To Do When You Can t Tear Up Little Pieces of Paper) PageRank: The Math-y Version (Or, What To Do When You Can t Tear Up Little Pieces of Paper) In class, we saw this graph, with each node representing people who are following each other on Twitter: Our

More information

Linear Systems of n equations for n unknowns

Linear Systems of n equations for n unknowns Linear Systems of n equations for n unknowns In many application problems we want to find n unknowns, and we have n linear equations Example: Find x,x,x such that the following three equations hold: x

More information

Channels can be activated by ligand-binding (chemical), voltage change, or mechanical changes such as stretch.

Channels can be activated by ligand-binding (chemical), voltage change, or mechanical changes such as stretch. 1. Describe the basic structure of an ion channel. Name 3 ways a channel can be "activated," and describe what occurs upon activation. What are some ways a channel can decide what is allowed to pass through?

More information

Compartmental Modelling

Compartmental Modelling Modelling Neurons Computing and the Brain Compartmental Modelling Spring 2010 2 1 Equivalent Electrical Circuit A patch of membrane is equivalent to an electrical circuit This circuit can be described

More information

A First Course on Kinetics and Reaction Engineering Example 38.2

A First Course on Kinetics and Reaction Engineering Example 38.2 Example 38.2 Problem Purpose This example illustrates some limitations to the use of the effectiveness factor and shows how to model an isothermal packed bed reactor by writing mole balances separately

More information

Differential Equations

Differential Equations This document was written and copyrighted by Paul Dawkins. Use of this document and its online version is governed by the Terms and Conditions of Use located at. The online version of this document is

More information

Deconstructing Actual Neurons

Deconstructing Actual Neurons 1 Deconstructing Actual Neurons Richard Bertram Department of Mathematics and Programs in Neuroscience and Molecular Biophysics Florida State University Tallahassee, Florida 32306 Reference: The many ionic

More information

Numerical Methods Lecture 2 Simultaneous Equations

Numerical Methods Lecture 2 Simultaneous Equations Numerical Methods Lecture 2 Simultaneous Equations Topics: matrix operations solving systems of equations pages 58-62 are a repeat of matrix notes. New material begins on page 63. Matrix operations: Mathcad

More information

Lecture 11 : Simple Neuron Models. Dr Eileen Nugent

Lecture 11 : Simple Neuron Models. Dr Eileen Nugent Lecture 11 : Simple Neuron Models Dr Eileen Nugent Reading List Nelson, Biological Physics, Chapter 12 Phillips, PBoC, Chapter 17 Gerstner, Neuronal Dynamics: from single neurons to networks and models

More information

Lecture 12 (Tue, Mar 5) Gaussian elimination and LU factorization (II)

Lecture 12 (Tue, Mar 5) Gaussian elimination and LU factorization (II) Math 59 Lecture 2 (Tue Mar 5) Gaussian elimination and LU factorization (II) 2 Gaussian elimination - LU factorization For a general n n matrix A the Gaussian elimination produces an LU factorization if

More information

Chapter 1 Review of Equations and Inequalities

Chapter 1 Review of Equations and Inequalities Chapter 1 Review of Equations and Inequalities Part I Review of Basic Equations Recall that an equation is an expression with an equal sign in the middle. Also recall that, if a question asks you to solve

More information

Introduction and the Hodgkin-Huxley Model

Introduction and the Hodgkin-Huxley Model 1 Introduction and the Hodgkin-Huxley Model Richard Bertram Department of Mathematics and Programs in Neuroscience and Molecular Biophysics Florida State University Tallahassee, Florida 32306 Reference:

More information

A Review of Linear Algebra

A Review of Linear Algebra A Review of Linear Algebra Gerald Recktenwald Portland State University Mechanical Engineering Department gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab: Implementations

More information

Hopfield Neural Network and Associative Memory. Typical Myelinated Vertebrate Motoneuron (Wikipedia) Topic 3 Polymers and Neurons Lecture 5

Hopfield Neural Network and Associative Memory. Typical Myelinated Vertebrate Motoneuron (Wikipedia) Topic 3 Polymers and Neurons Lecture 5 Hopfield Neural Network and Associative Memory Typical Myelinated Vertebrate Motoneuron (Wikipedia) PHY 411-506 Computational Physics 2 1 Wednesday, March 5 1906 Nobel Prize in Physiology or Medicine.

More information

Math 98 - Introduction to MATLAB Programming. Spring Lecture 3

Math 98 - Introduction to MATLAB Programming. Spring Lecture 3 Reminders Instructor: Chris Policastro Class Website: https://math.berkeley.edu/~cpoli/math98/fall2016.html Assignment Submission: https://bcourses.berkeley.edu Homework 2 1 Due September 8th by 11:59pm

More information

Some tools and methods for determination of dynamics of hydraulic systems

Some tools and methods for determination of dynamics of hydraulic systems Some tools and methods for determination of dynamics of hydraulic systems A warm welcome to the course in Hydraulic servo-techniques! The purpose of the exercises given in this material is to make you

More information