- A neuron is a cell specialized for information processing.
- Neurons are electrically excitable and connect to each other via specialized membrane junctions called synapses.
- Morphological Types: Neurons can be Unipolar, Pseudo-unipolar, Bipolar, or Multipolar.
- Functional Regions:
- Input: Dendrites receive signals.
- Integrative: The trigger zone (axon hillock) evaluates signals.
- Conductive: The axon propagates the action potential.
- Output: Synapses release neurotransmitters.
The Cell Membrane and Ion Channels

The Cell Membrane (The Boundary)
- What is it? The cell membrane is the outer boundary of the neuron, separating the inside of the cell (cytosol) from the outside environment (extracellular fluid).
- Structure: It is made of a phospholipid bilayer.
- Function: It acts as an electrical isolator. Charged particles (ions) cannot pass freely through this lipid layer on their own.
Ion Channels (The Doors)
Because the membrane is an isolator, the cell needs “doors” to let ions (like Sodium Na+ and Potassium K+) in and out. These doors are called ion channels.
Selectivity: Channels are picky about what they let through. They select ions based on their radius and charge.
Example: K+ ions have a smaller attached water (H2O) cloud, which allows them to pass through specific potassium channels.
Types of Ion Channels:
Ligand-gated: Open when a specific molecule (a ligand or neurotransmitter) binds to them.
Voltage-gated: Open or close in response to changes in the membrane’s electrical potential.
Mechanically-gated: Open in response to physical stretching or changes in the cytoskeleton. Example: The hair cells in the inner ear, which help us hear and keep our balance.
Charged ions (like Sodium and Chloride ) cannot pass through the solid phospholipid bilayer of the membrane on their own.

Diffusive Flow: The introduction of ion channels provides a physical pathway that causes a “diffusive flow”. Because particles naturally want to spread out, ions will flow down their concentration gradient (from an area of high concentration to an area of low concentration).
Reaching Equilibrium: This flow does not continue infinitely. Equilibrium is finally attained when the net flow of ions due to diffusion becomes exactly zero.
Equilibrium Potential (Nernst Equation): Equilibrium is achieved when the electrical force equals the diffusion force, resulting in zero net flow
The Equilibrium Potential for Potassium ()
This slide explains how the Nernst Potential (Equilibrium Potential) is established for potassium ions, bringing together the concepts of diffusion and electrical forces.
- Initially, there is a high concentration of inside the cell and a low concentration outside the cell.
- Opening the Channels: When potassium channels open, ions begin to diffuse out of the cell, driven by the concentration gradient (moving from high to low concentration).
- Reaching Equilibrium: As positive ions leave, the inside of the cell becomes increasingly negative. This negative electrical charge starts pulling the positive ions back in. An equilibrium is reached when ion movement stops because the electrical pull (inward) is exactly as strong as the diffusion push (outward).
Potassium () Calculation: Plugging in the standard values for a neuron (5mM outside, 100mM inside), the Nernst potential for Potassium is calculated as:
The Equilibrium Potential for Sodium ()
- Without ion channels, there is a high concentration of sodium outside the cell and a low concentration inside.
Sodium () Calculation:
Ion Pumps (The Escalators)
- Maintaining the concentration gradient (keeping more K^{+} inside and more Na^{+} outside) requires energy.
- Sodium-Potassium Pumps use ATP (energy) to actively pump ions against their natural flow to maintain this balance.
- Sodium-potassium pumps actively move ions between the cytosol (inside the cell) and the extracellular fluid (outside the cell).
- Resulting Gradient: The pumps continuously work against the natural diffusion flow to keep Potassium () concentrated inside the cell and Sodium () concentrated outside the cell.
The Two Major Ion Pumps
Both of these pumps have one thing in common: they require energy (ATP) because they are actively pushing ions against their natural diffusion gradients. However, they handle entirely different ions and jobs:
1. The Sodium-Potassium Pump (Na+/K+ Pump)
- The Job: Maintains the overall resting membrane potential of the neuron.
- The Action: For every single cycle, it uses one molecule of ATP to push 3 Na+ ions OUT of the cell and pull 2 K+ ions IN.
- The Result: It constantly works to ensure that Potassium (K+) stays highly concentrated inside the cell, and Sodium (Na+) stays highly concentrated outside the cell.
The Na+/K+ pump first binding to Sodium to push it out, and then binding to Potassium to pull it in
2. The Calcium Pump (Ca2+ Pump)
- The Job: Keeps the internal calcium levels almost at zero.
- The Action: It actively transports Calcium (Ca2+) ions OUT of the cell’s fluid (cytosol) across the cell membrane, or pumps them into internal storage units (like the smooth endoplasmic reticulum).
- The Result: Because the resting level of calcium inside the cell is kept so incredibly low, any sudden rush of Ca2+ into the cell (which happens at the synapse) acts as a massive, unmistakable signal to release neurotransmitters.
The Equivalent Circuit: Ion Channels as Electrical Components
Translates the biological components of the cell membrane into an electrical circuit diagram, which is the foundation for single-compartment computational models.
-
1. The Passive Channel (Without Concentration Gradient)
- If there is no difference in ion concentration between the inside and outside of the cell, an ion channel works purely like a passive electrical resistance.
- Conductance: The ease with which ions can flow through the channel is called conductance (). It is the mathematical inverse of the channel’s resistance (), expressed as .
-
2. The Active Channel (With Concentration Gradient)
- In a real neuron, there is a concentration gradient (thanks to the ion pumps). Because of this gradient, the channel acts as both a resistance plus a battery.
- The Battery (): The concentration gradient provides a driving electrical force, which acts exactly like a battery in a circuit. The voltage of this “battery” is equal to the Nernst/equilibrium potential () of that specific ion.
- The Resistor (): The physical channel itself still provides the resistance (or conductance, ) to the flow of current.

To calculate the overall resting membrane potential when multiple ion channels are active simultaneously.
- The Components: The membrane potential is determined by the combined effect of all individual ion channels (like Sodium, Potassium, and Chloride). Each channel has its own specific conductance () and equilibrium/Nernst potential ().
- Total Conductance (Leak Conductance): The total conductance of the membrane () is simply the sum of all individual ion channel conductance’s:
- Calculating the Resting Potential: The steady-state resting membrane potential ( or ) is calculated as a weighted average of the individual Nernst potentials, weighted by their respective conductances:
- ,
- ,
- ,
- Plugging these values into the equation yields a resting membrane potential of -69 mV.
Modeling a neuron as a single, simple electrical compartment, focusing on how the membrane’s physical size affects its electrical properties
Key Variables: - : Membrane potential (Voltage). - : External injected current. - : Electrical charge. - : Neuronal surface area (typically ).
-
Membrane Resistance ():
The total resistance of the membrane depends on its surface area. A larger membrane has more ion channels, which actually lowers the overall resistance.Equation:
(where is the specific membrane resistance, roughly ).- Voltage Change:
Calculated using Ohm’s law:
.
- Voltage Change:
-
Membrane Capacitance ():
-
The lipid bilayer acts as a capacitor (it stores electrical charge). A larger membrane surface area can store more charge.
-
Equation:
(where is the specific membrane capacitance, roughly ). -
Stored Charge:
Calculated as
.
-
Single compartment models
The model represents the neuron as a single electrical circuit where different types of ion channels are connected in parallel.
-
The Core Equation | General Single-Compartment Equation : The change in membrane potential over time is determined by the sum of all currents flowing across the membrane:
-
: Membrane capacitance (how much charge the membrane stores).
-
(or ): The membrane potential.
-
: The individual ionic currents flowing through the various channels.
-
: External injected current (if any).
-
Types of Conductance (): The conductance for different channels behaves differently:
-
Voltage-dependent conductance (): Opens or closes based on the current membrane potential (like the and channels discussed earlier).
-
Synaptic conductance (): Depends on the activity of a pre-synaptic neuron firing and releasing neurotransmitters.
-
-
: The reversal (equilibrium) potential for that specific ion channel branch.
Expanding the Core Equation: The basic equation states that the change in voltage equals the sum of all currents. This slide expands that equation using Ohm’s law to show exactly how those ionic currents () are calculated:
- Basic Equation:
- Expanded Equation: Instead of just writing "" (current), we substitute it with .
- This means the current for any specific ion channel is equal to its conductance () multiplied by the driving force ().
- The driving force is the difference between the current membrane potential () and that specific ion’s equilibrium potential ().
The Action Potential in the Giant Squid Axon
The squid possesses a single, massive axon that is significantly larger than surrounding structures. This massive size allowed researchers to physically insert electrodes into the cell to measure and clamp voltages.

- The Action Potential Curve: This is the total voltage of the cell. It starts near the Potassium equilibrium potential (), rapidly spikes toward the Sodium equilibrium potential (), and then repolarizes back down.
- Once the voltage crosses that threshold, the neuron takes over completely and fires an action potential. This is an active, automatic biological process (an “all-or-nothing” response).
- Conductance (Fast-Acting): The curve for open Sodium channels rises incredibly quickly at the start of the action potential. Crucially, notice how the conductance peaks and immediately begins dropping before the voltage spike even reaches its maximum height. The Sodium channels quickly plug themselves up (inactivate).
- Conductance (Delayed/Slow): The curve for open Potassium channels is much slower. It activates with a delay, reaching its maximum number of open channels during the falling phase of the action potential.
Hodgkin-Huxley Model: The Gating Variables
To explain exactly how the conductances for Sodium () and Potassium () change during an action potential, Hodgkin and Huxley proposed that each channel is controlled by independent “gating particles.”
- The Core Concept: For an ion channel to be fully open and let ions through, all of its specific gates must be open at the exact same time.
- The Probability Variables: The model uses three variables—, , and —to represent the probability (from 0.0 to 1.0) of a specific single gate being open.
The Hodgkin-Huxley equation
1. The Potassium () Channel (Activation)
- The Potassium channel is modeled as having 4 identical activation gates.
- Variable (): Represents the probability of a single activation gate being open.
- The Equation:
- : The actual, real-time conductance of Potassium.
- : The maximum possible conductance (if 100% of the channels were magically forced open).
- : Because there are 4 gates, and they must all be open together, you multiply the probability by itself 4 times ().
- The Potassium Current Equation: The total current flowing through the channels is calculated as: .
2. The Sodium () Channel (Activation & Inactivation)
- The Sodium channel is more complex. It acts like a tube with 3 activation doors and 1 inactivation plug (which stops the flow even if the doors are open).
- Variables: (probability of an activation door opening) and (probability of the inactivation plug being unplugged / open).
- The Equation:
- : The actual, real-time conductance of Sodium.
- : The maximum possible Sodium conductance.
- : The probability of all 3 activation doors opening.
- : The probability of the inactivation plug being open.
3. The Dynamics (How the gates change over time)
-
These probabilities (, , ) are not static; they constantly change based on the cell’s voltage. They are calculated using a first-order differential equation:
-
The Rate Equation:
-
$\Large \frac{dx}{dt} = \alpha_x(V)(1-x) - \beta_x(V)x$ (where $x$ represents $n$, $m$, or $h$)- : The voltage-dependent rate at which closed gates flip to open.
- : The voltage-dependent rate at which open gates flip to closed.
- (Both and have a "" next to them? This proves that the speed at which these gates open and close depends entirely on the current Voltage of the cell!)
- and are transition rate constants that describe how fast the gates are flipping back and forth between open and closed.
-
(Alpha - The Opening Rate): This determines how fast a closed gate flips to an open state.
-
(Beta - The Closing Rate): This determines how fast an open gate flips back to a closed state.
-
The Differential Equation for potassium channel : The rate at which the gates flip between open and closed is given by: . The overall change in open gates = (New gates opening) MINUS (Old gates closing) The “Opening” Half:
- represents the fraction of gates that are currently closed (and therefore available to be opened).
- You multiply the available closed gates by the opening speed (). This tells you exactly how many gates are successfully popping open right now. The “Closing” Half:
- represents the fraction of gates that are currently open (and therefore available to be shut).
- You multiply the currently open gates by the closing speed (). This tells you exactly how many gates are slamming shut right now.
It shows how the opening and closing speeds depend entirely on the membrane voltage ():- (Blue line - Opening Rate): As the voltage depolarizes (becomes more positive, moving towards 0 mV), the rate of gates opening shoots up rapidly.
- (Green line - Closing Rate): As the voltage depolarizes, the rate of gates closing drops.
Potassium channels are called “persistent.” This means that as long as the voltage stays elevated, the gates will stay open
Unlike Potassium channels (which are “persistent” and stay open as long as the voltage is high), Sodium channels are transient. They have an automatic, built-in timer that physically plugs the channel, even if the voltage remains high.

The 4 physical states of the Sodium channel during a sudden jump in voltage (depolarization):
1. Resting State (Closed but Ready)
- Voltage: Resting at -65 mV.
- Channel Status: The main doors (activation gates, ) are closed, preventing ion flow. However, notice the purple “ball” hanging below? That is the inactivation gate (), and it is currently unplugged and ready.
2. Activation (Briefly Open)
- Voltage: Suddenly steps up to -40 mV.
- Channel Status: The main doors quickly snap open. ions rush through the pore (creating the brief downward spike of “Inward current” seen on the graph).
3. Inactivation (Plugged)
- Voltage: Still held high at -40 mV.
- Channel Status: Even though the cell is still depolarized, the inward current stops completely. Why? Because the “ball-and-chain” mechanism (the gate) swings up and physically plugs the bottom of the channel. The channel is now inactivated.
4. Deinactivation (The Reset)
- Voltage: Drops back down to the resting -65 mV.
- Channel Status: You cannot fire another action potential while the channels are plugged. To get the ball to drop out of the pore (to “deinactivate” the channel), the membrane voltage must return to its negative resting state. Once it resets, it is ready for step 1 again.

-
The gate (Activation): The blue line () shoots up incredibly fast as the voltage becomes more positive. This explains why Sodium channels rip open so quickly at the very beginning of an action potential.
-
The gate (Inactivation): The curves for and are compared to . They act in opposite directions to the activation gates.
-
The Blue Line (): Just like Potassium, as the voltage gets more positive, the probability of the activation doors being open approaches 1.0 (100%).
-
The Green Line (): At resting negative voltages (-80mV), is at 1.0 (meaning the plug is open/unplugged). But as the voltage becomes more positive, the probability drops all the way to 0. A positive voltage mathematically forces the plug shut!
-
The Red Line (): This curve represents the actual likelihood of the whole channel being open and letting ions through.
- Because goes up while goes down, they essentially cancel each other out at high voltages.
- If (plugged), then .
- This creates the bell-curve shape: the channel only conducts electricity in that brief middle “window” before the gate shuts the whole operation down.
The Leak Current
- The leak current represents passive ion channels in the neuron’s membrane that are always open.
- They do not have “activation doors” or “inactivation plugs.” They are just open pores.
- They are primarily made up of Chloride () channels and some passive Potassium () channels.
- Their main purpose is to stabilize the cell and pull the voltage back to its normal, negative resting baseline (around -65 mV) when the neuron is just sitting there doing nothing.
Gating Variables as Voltage-Dependent Low-Pass Filters Converting the Hodgkin-Huxley gating variables into voltage-dependent low-pass filters. Instead of looking at the gates as a tug-of-war between opening () and closing () rates, we can mathematically rewrite the equations to act like low-pass filters.
Factor out from the entire right side.
We created two brand new variables that completely define the low-pass filter:
-
The Steady-State Goal (): This is the target percentage of gates that want to be open at the current voltage. If you hold the voltage perfectly still forever, the gates will eventually settle exactly at this number.
-
The Time Constant / Speed Limit ():
- This is how fast the gates can physically move to reach that steady-state goal. A small means the gates snap to their target incredibly fast; a large means they are sluggish and take a long time to get there.
The Time Constants ()

- The Blue Line (): The time constant for Sodium activation () is incredibly small, it never exceeds 1 ms. This proves mathematically why Sodium channels rip open almost instantly when the voltage changes.
- The Green and Red Lines (): These variables show much slower (taller) time constants of roughly equal magnitude. This perfectly explains why Sodium plugging () and Potassium opening () are delayed, and why they happen at roughly the same time during the falling phase of the action potential.
- Because the steady states and time constants for and are so similar in timing and opposite in direction, physicists often use an approximation to simplify the math: .

The Top Row (): INACTIVATED States
- In this entire row, the inactivation plug has swung up and is physically blocking the pore. The Bottom Row (): States WITHOUT Inactivation
- In this entire row, the inactivation plug () is OPEN (unplugged) and out of the way. The Columns ( to ): The Activation Doors
- Moving from left to right tracks how many of the main activation doors are currently open, from zero () up to all three ().
- The Transitions (The Arrows)
- Horizontal arrows:
- The gates opening () or closing (). If the channel is at (0 open doors), there is a chance of moving forward
- multipliers work as you move right-to-left (closing the doors)
- Vertical arrows:
- The plug swinging in () or out (). In that final shaded circle on the bottom right (), two things are happening perfectly at the same time:
- Horizontal arrows:
- : All 3 of the main activation doors are fully open.
- : The inactivation “ball” () is open (unplugged and out of the way)
- The only state where ions can actually flow.
The gating variables () control the currents, which in turn control the voltage.
The Green Line: This shows the membrane potential () of the neuron, which is firing a series of action potentials.
The Blue Line: This represents the external stimulus current (). It starts at zero and then steps up to a constant positive value. This continuous injection of current is what triggers and maintains the firing of the action potentials shown by the green line

- The Rising Phase: The gates open the sodium channel incredibly fast, creating a transient conductance. Because both (activation) and (inactivation) are non-zero at the same time, rushes into the cell (influx), causing the membrane potential to rapidly rise. This influx directly causes the action potential spike.
- The Turning Point: Shortly after, the plug slowly swings in to close the sodium channel.
- The Falling Phase: At roughly the same time, the gates slowly open the potassium channel, creating a persistent conductance. This forces the membrane potential to decrease back down to rest.
- It is the precise combination and timing of these Na and K currents that physically causes the action potential.
The refractory period
If the interval between current pulses is too short, a new action potential cannot be generated.
The gate (the sodium plug) after a spike are all locked shut. The neuron physically cannot fire another spike until it rests at a negative voltage long enough for the plugs to drop back out of the channels.

Rebound Firing
Pushing the cell into deep negative voltages perfectly resets every single plug and slams all the Potassium doors shut. When you suddenly release that negative hold, the Sodium activation doors () snap open so fast that they trigger a spike before the slower gates can catch up and stop it.
Rebound firing is when a neuron fires an action potential immediately after being strongly inhibited.
A neuron needs a strong enough “shock” () to wake up, but it needs a strong enough constant “push” () to keep firing repeatedly.

Propagation of the action potential
Saltatory Conduction : Because the membrane is completely insulated by myelin, the action potential doesn’t have to slowly open and close doors every single millimeter. Instead, the electrical charge rapidly shoots through the insulated sections and successfully triggers the channels only at the bare Nodes of Ranvier.
The only places where the cell membrane is bare and has those ion channels are the tiny gaps called the “Node of Ranvier”.

Assumptions of the Hodgkin-Huxley Model Iso-potential property :
- The model assumes that the membrane potential (voltage) is exactly the same everywhere on the membrane at the exact same time. It completely ignores 3D space and treats the neuron as one tiny, single dot (a “single compartment”).
- Real neurons are huge and branch out, meaning the voltage at the dendrites is different from the voltage at the axon Electrotonic Homogeneity :
- The model assumes that “charge carriers” (which are just the ions, like and ) are perfectly and evenly mixed/distributed inside the neuron. Deterministic Behaviour :
- The model assumes that the ion channels behave in a perfectly predictable, mathematical way without any random influences (no “stochastic behaviour”). The HH model isn’t structurally realistic. Modern electron microscopes have revealed that the Sodium channel is actually formed by 4 activation particles, not 3. Hodgkin and Huxley just used the power of 3 because it made their curves fit the data best at the time.
Noise Even when the neuron is at rest, individual Sodium and Potassium proteins are randomly twitching open and closed for fractions of a millisecond, causing tiny, random fluctuations in the cell’s voltage. To make the computer simulation look like that realistic wobbly graph, we have to inject some randomness (stochastic activity) into the math. A modified, more realistic version of the Hodgkin-Huxley equation that accounts for the random, microscopic popping of ion channels is
The FitzHugh-Nagumo Model
A highly simplified 2D version of the Hodgkin-Huxley equations.
Instead of tracking a bunch of individual ion gates (, , and ), this model groups everything into just two variables:
- (The Excitation Variable): This represents the membrane potential (voltage). It is responsible for the fast, upward spike of the action potential.
- (The Recovery Variable): This single variable takes the jobs of both the slow Potassium opening () and the slow Sodium closing () and clumps them together. It represents the slow forces that pull the voltage back down to rest.
- Voltage Equation:
- This equation has a cubic shape (), which allows for the rapid “explosion” of voltage.
- Recovery Equation:
- This equation is much slower (tuned by the and parameters) and acts as the brakes for the system. Clumps the slow Potassium opening and slow Sodium closing together to act as the “brakes.”
Phase Plane Analysis
This allows us to literally see if a neuron is resting or spiking without having to calculate massive matrices.
Instead of graphing voltage over time, a phase plane graphs the two variables against each other. The x-axis is (voltage) and the y-axis is (the recovery variable).
A nullcline is a line where one specific variable completely stops changing.
- The Magenta S-Curve (-nullcline): Anywhere on this pink line, the voltage stops changing (). It has an S-shape because of the cubic math () in its equation.
- The Red Diagonal (-nullcline): Anywhere on this straight red line, the recovery variable stops changing ().
- The Vector Field (Blue Arrows) : These are the mathematical “ocean currents”. They dictate exactly which direction the math will push the neuron’s state at any given coordinate.
- The Trajectory (The Green Loop) : This bright green line traces the actual journey the neuron took during a simulation.
- The Fixed Point: The exact spot on the left where the pink and red lines cross is the stable resting state of the neuron. The neuron eventually settles down into a stable, resting state where the two lines cross.
To determine if the fixed point (where the nullclines cross) is a stable resting state or an unstable tipping point.
The States (, , , and ) :
- and : These are the current states of the neuron. is the voltage, and is the recovery variable.
- and : The little dots on top mean “rate of change”. This is how fast the voltage and recovery variables are changing at this exact millisecond.
The Functions ( and ) :
- : This represents the entire right side of the voltage equation. If you wrote it out fully, is exactly the same as .
- : This represents the entire right side of the recovery equation. Fully written out, is exactly the same as .
The Distance Vector () : This is a vector that measures the exact distance between where the neuron is right now () and where the perfectly stable resting point is ().
Step 1: Measure the Distance ()
- Once you find the fixed point (), you need to measure how far away the neuron currently is from that perfectly balanced center.
- The vector calculates this exact difference:
Step 2: Linearize (The Matrix)
- Real neuron equations are curvy and non-linear. To make the math solvable, we use a Taylor expansion to first order right at that intersection point. This essentially zooms in so close that the curves look like straight lines.
- We organize this linear math into a matrix using partial derivatives () , , ,
- By finding these four partial derivatives, you build a simple, linear matrix () that tells you exactly how the neuron will behave when it is pushed slightly away from its resting state
This clean, linear matrix equation completely replaces the FitzHugh-Nagumo equations, but only for the tiny area right around our fixed point .
To officially prove if this fixed point is stable (a resting potential) or unstable (a tipping point for a spike), we need to calculate the eigenvalues.
Step 3: The Eigenvalue Shortcut (Trace and Determinant)
- The Trace: The sum of the two eigenvalues equals the sum of the top-left to bottom-right diagonal of the matrix:
- The Determinant: The product of the two eigenvalues equals the cross-multiplication of the matrix: The Rule: For the fixed point to be absolutely stable, both eigenvalues must have real parts smaller than zero (they must be negative).
- Using the shortcut above, you don’t even need to solve for the exact eigenvalues. You just need to prove two things:
- The Trace must be negative:
- The Determinant must be positive:
Levels of Abstraction in Modeling
- Level I: Detailed compartmental models: The most realistic. They take a massively complex branching neuron and chop it up into thousands of tiny electrical circuits to perfectly simulate every single dendrite.
- Level II: Reduced compartmental models: A compromise. They simplify the shape of the neuron down to just the main body (soma) and a few thick branches.
- Level III: Single-compartment models: It treats the entire neuron as a single unified circuit. Using the capacitors () and variable resistors () used in our Hodgkin-Huxley equation.
These top three levels all share the same foundation: they physically represent the neuron using Hodgkin-Huxley style membrane equations to calculate actual ion channel dynamics and synaptic transmission.
- Level IV: Cascade models: Stop trying to simulate the physical ion channels. Instead, use a “Linear-nonlinear cascade”. They take an incoming stimulus , pass it through a linear filter, and then apply a math formula (nonlinearity) to output a response .
- Level V: Black-box models: This is the ultimate mathematical abstraction. The neuron is treated as a literal “black box” marked with a question mark. We don’t care about biology, circuits, or filters. We strictly look at statistics: what is the conditional probability of getting a specific response () depending on a specific stimulus ().
The Leaky Integrate-and-Fire (LIF) Model
It doesn’t care about tracking Sodium or Potassium channels. Instead, it treats the neuron like a leaky bucket filling with water (electricity) until it overflows (spikes). The LIF model trades biological accuracy for mathematical simplicity. By using three simple rules (fill up, hit the line, reset)
The entire model is defined by three strict mathematical rules:
1. The Leak & The Integration (The Build-Up)
- This linear differential equation describes exactly what happens to the membrane potential between spikes.
- “Integrate”: The part represents the incoming current filling up the neuron (like water pouring into a bucket).
- “Leaky”: The part represents the voltage naturally seeping back out toward its resting state (like a hole in the bottom of the bucket). It acts as a mathematical “lowpass filter” dictated by the time constant .
- Rearranging
2. The Fire (The Threshold)
- The Equation:
- The model says that at a specific time (), the voltage () will hit a strict, pre-defined threshold ().
- When it hits this threshold, it fires a spike! But it doesn’t draw a realistic biological wave; it draws a perfectly straight vertical line called a Dirac pulse.
3. The Reset
-
The Equation:
-
This limit equation just says that the very millisecond after the spike fires, the math forcefully resets the neuron’s voltage all the way back down to its resting reset value ().

The Analytical Solution
-
Because this model is built on a simple linear equation, we don’t have to use messy phase planes to predict what it will do.
-
If you inject a constant current (), you can calculate the exact voltage at any exact moment in time by using this solved formula:
-
To find out how fast a neuron is firing, we need to know exactly how much time passes between one spike () and the next spike (). This time difference is .
-
Set the target voltage to equal our firing threshold (): we can rearrange that equation to solve purely for the time difference ():
-
The Firing Rate ()
-
Pure LIF math allows for impossibly fast firing. As you pump in more and more current, the frequency just keeps rocketing upward. To fix this flaw, we program a delay into the LIF model called the absolute refractory time (). Whenever the neuron spikes, the math forces it to sit completely frozen at its reset value () for a set amount of time (like 2ms) before it is allowed to start integrating current again.

Spike rate adaptation Many real neurons show spike rate adaptation, i.e., the firing rate in response to a constant current decreases over time (t=100ms).
In the basic LIF model because the incoming current is constant, the neuron fires like a perfect metronome. The time between every single spike is exactly identical. To make the neuron slow down, we add a new variable to the math: a time-dependent conductance called . Biologically, this represents a special, slow-acting Potassium () channel that opens up more and more as the neuron fires, actively resisting the incoming current.
- The Jump : Every single time the neuron fires a spike (), it permanently adds a constant chunk of resistance () to the pile.
- The Decay : Between spikes, this resistance doesn’t just stay flat; it slowly decays away based on its own time constant ().
- The Modified Main Equation: We plug this adapting resistance directly into our master voltage equation ().
- : The Rate Spike Adaptation Conductance. A variable that tracks how many times the neuron has fired. Every time there is a spike, this number jumps up.
- : The Potassium Reversal Potential. This is a super-low, deeply negative voltage. The adaptation mechanism is specifically modeled as a Potassium () channel, and Potassium always wants to pull the neuron down to this low level.
- : The Driving Force. This calculates how far away the current voltage () is from the deep Potassium floor (). The further away it is, the stronger the pull downward.
- : A specific resistance multiplier for this particular ion channel, used to scale the conductance perfectly into the rest of the voltage equation.
By forcing an absolute freeze (), the firing frequency (red line) completely flattens out. the neuron cannot fire any faster, no matter how much current you add. To create a much more realistic relative refractory period we use the spike rate adaptation, but with a much shorter time constant (t=2ms) and larger increase of the leak conductance following an action potential.
The Exponential Integrate-and-Fire (EIF) Model For more realistic simulations, non-linear extensions of the IF model are used, such as the exponential integrate-and-fire model. Add a non-linear term to simulate the explosive opening of Sodium channels right before a spike.
- (Rheobase threshold): This is the critical voltage zone. As the voltage () gets closer to this number, the exponential term wakes up and starts pulling the voltage up faster and faster.
- (Sharpness parameter): This dictates how “sharp” or sudden the spike initiation is.
Synaptic Transmission
- Information (electrical signals from other cells) is collected by the branch-like structures called the dendritic tree.
- All that collected electrical info pools together in the cell body. If the membrane potential gets high enough, it triggers a full action potential right at the axon hillock
- The action potential is actively moving along the axon.
- When the spike reaches the very end of the axon, it hits the synapse (tiny gap between two neurons).
- The electrical spike forces the cell to spit out chemical messengers called neurotransmitters into that gap.
- Those chemical neurotransmitters float across the gap and physically bind to the next neuron (the postsynaptic cell), forcing its ion channels to open up.
- Because those new ion channels opened, the cell’s conductance changes. This allows ions to flood in or out, which directly changes the membrane potential of that new postsynaptic neuron.
The Mechanism : a three-step sequence of how an electrical signal is converted into a chemical signal, and then back into an electrical one.
-
The Arrival & Calcium Influx : An action potential reaches the presynaptic axon terminal. This sudden electrical jolt forces special Calcium () channels to open up, allowing to flood directly into the cell.
-
Vesicle Fusion & Release : Inside the nerve terminal, chemical neurotransmitters are safely packaged into little spherical bubbles called vesicles. That sudden influx of Calcium acts as a biological trigger. It causes these vesicles to move down, physically fuse with the bottom membrane, and dump all their neurotransmitter contents directly into the empty space (the synaptic cleft).
-
The Reaction : EPSP
- The blue neurotransmitters float across the gap and perfectly plug into green receptor-channels waiting on the postsynaptic cell (the receiving neuron).
- Plugging in the transmitters forces these channels to open, allowing a rush of positively charged Sodium () to enter the receiving cell.
- The EPSP: Because positive charge just entered the cell, the receiving neuron experiences a small, temporary upward bump in its voltage. This is called an Excitatory Postsynaptic Potential (EPSP).

Common neurotransmitters include:
- Glutamate
- GABA
- Acetylcholine
- Dopamine
- Serotonin
Excitatory transmission with Glutamate
The Main Chemical: Glutamate In the brain, the primary excitatory neurotransmitter is glutamate. In the human brain (the Central Nervous System), glutamate handles well over 80% of all the fast excitatory signals.
When glutamate locks into the postsynaptic cell, it opens up channels that let both Sodium () and Potassium () flow through the membrane. The equilibrium point for these specific channels is exactly 0 mV. This means if the cell’s voltage is somehow artificially held at exactly 0 mV, you wouldn’t see any Excitatory Postsynaptic Potential (EPSP) bump
Ionotropic Receptors (The “Direct” Doors) “Ionotropic” just means that the receptor itself is literally the door for the ions. Glutamate acts like the key, turns the lock, and the door immediately opens. There are three main types of these receptors:
- AMPA (-amino-3-hydroxy-5-methylisoxazole-4-propionic acid)
- NMDA (N-methyl-D-aspartate)
- Kainate
The Key (The Neurotransmitter): Glutamate is the physical chemical floating across the gap. It is the key. The Locks (The Receptors): AMPA and NMDA are the different types of locks built into the postsynaptic cell that the Glutamate key fits into.
-
AMPA (The Sprinter): These are incredibly fast. They have a very short time constant of just 2 ms. They open instantly, let ions in, and close almost immediately.
- The purple glutamate (Glu) key binds to the top, the door pops open, Sodium () rushes in, and Potassium () rushes out. Simple and instant

- The purple glutamate (Glu) key binds to the top, the door pops open, Sodium () rushes in, and Potassium () rushes out. Simple and instant
-
NMDA (The Marathoner): These are much slower and more complex.
- Timing: They open fast (rise: 2 ms) but stay open for a long time (decay: 100 ms).
- The Magnesium Block: They are voltage-dependent. At a normal resting voltage (-65 mV), a giant Magnesium ion () literally gets stuck in the channel, blocking it completely. The cell has to be partially depolarized (made more positive by AMPA receptors first) to “spit out” the Magnesium so the door can actually open.
- The Cofactor: It needs both Glutamate (Glu) and the cofactor Glycine (Gly) just to activate.

- Until the cell gets a positive voltage jolt from the AMPA receptors to push that cork out, nothing gets through. *The Calcium Bonus: Once the cork is gone, NMDA doesn’t just let in; it also lets Calcium () rush in. (The Calcium influx is actually the biological basis for how your brain forms new memories)
Metabotropic Receptors (The “Indirect” Doors)
- Hidden at the very bottom is another class of glutamate receptors called metabotropic receptors.
- Instead of being direct doors, these are more like doorbells. When glutamate rings them, they send “second messengers” deep inside the cell to do complex chemical tasks, which eventually open ion channels indirectly.

- There is no hole. When glutamate binds to the top, ions cannot flow through this receptor.
- Instead, the receptor is physically attached to a G protein on the inside of the cell.
- When the glutamate rings the doorbell on the outside, it activates that G protein on the inside, which breaks off and goes to talk to an Effector. This starts a complex chemical chain reaction (second messengers) that will eventually go open other ion channels somewhere else on the cell membrane.
The neurotransmitters (like glutamate) float across the water-filled gap and bump into the next neuron. They act like physical keys and plug into specific locks (like the AMPA and NMDA receptors)
When the chemical key turns the lock, a physical door opens in the cell wall. This allows positively charged ions (like Sodium, ) to rush inside the cell. Because those ions carry an electrical charge, the cell’s voltage suddenly spikes upward.
One single chemical key opening one single door usually only creates a tiny, tiny electrical bump. It is rarely enough to cause a full action potential on its own.
If enough chemical keys open enough doors, the electrical voltage will finally rise high enough to hit the magic threshold (), and then the neuron will explosively fire its own action potential down the line.
Inhibitory Transmitters & Receptors The two main inhibitory messengers in the nervous system are GABA (-aminobutyric acid) and glycine. They mostly open doors for Chloride (). Because Chloride has a negative electrical charge, letting it into the cell makes the overall voltage drop downward. This negative voltage bump is called an IPSP (Inhibitory Postsynaptic Potential). The equilibrium point for these channels is -70 mV. If the cell is already resting exactly at -70 mV, opening these doors won’t change the voltage at all (no visible IPSP)
The Two GABA Receptors GABA has different types of locks it can fit into:
- : This is an ionotropic receptor. When GABA binds to it, it opens directly and lets negative rush in. It stays open for a solid 10 ms (time constant).
- : This is a metabotropic receptor. When GABA rings this doorbell, it starts a chemical chain reaction inside the cell that eventually opens Potassium () channels instead.
- is positive, but it is highly concentrated inside the cell. When the door opens, positive charge rushes out of the cell, leaving the inside even more negative! Its reversal potential is a super-deep -80 mV.
A single Glycine channel has a larger “conductance” (46 pS) than a single GABA channel (30 pS).
Other Transmitters & Neuromodulation
Acetylcholine (ACh) is most famous for being the chemical messenger at the neuromuscular junction. This is the exact synapse where your nervous system plugs into your physical muscle fibers to tell them to contract. ACh has two different types of locks (receptors) it can fit into:
- Nicotinic Receptors : These are ionotropic and excitatory. When ACh binds, the door opens instantly, letting positive Sodium () in and Potassium () out (pushing the voltage up toward a reversal potential of 0 mV). Aside from muscles, you also find these in the autonomic nervous system and the Central Nervous System (CNS).
- Muscarinic Receptors : These are metabotropic. They trigger complex, indirect chain reactions inside the cell and can have totally different effects depending on where they are.
Volume transmission (Neuromodulation) is completely different. Instead of whispering to a single neighbor, specific brain regions act like a sprinkler system, spraying chemicals widely over huge areas of the Central Nervous System (CNS)
- Dopamine (Reward and motivation)
- Serotonin (Mood and sleep)
- Noradrenaline / Norepinephrine (Alertness and fight-or-flight)
- Acetylcholine (Also acts as a neuromodulator in the brain for attention)
**The Electrical Synapse (Gap Junction) **
In a gap junction, there are no chemicals, no vesicles, and no waiting. The two neurons physically plug into each other like extension cords.
The two cell walls get incredibly close together (only 3.5 nm apart). They build physical pores (tunnels) that punch straight through both cell walls. This connects the inside (cytoplasm) of Cell 1 directly to the inside of Cell 2.
These tunnels are built out of specialized proteins. A single puzzle piece is called a Connexin .Six connexins group together in a circle to form a half-pipe called a Connexon.
The two neurons are physically locked together by those Connexon tunnels, they essentially share the same internal fluid. The positively charged ions (like Sodium) that rush into the first cell during an action potential just keep flowing right through the tunnel into the second cell, instantly raising its voltage.
When Cell 1 sticks a Connexon out, and Cell 2 sticks a Connexon out, they snap together perfectly in the middle to form a continuous tube. Because there is a direct physical tube, electrical ions (, , etc.) just flow straight from one cell directly into the next.
Gap junctions are extremely rare between neurons. The vast, vast majority (well over 99%) of your neural connections are chemical synapses.
The Synaptic Leaky Integrate-and-Fire Model
The Synaptic Input (): It represents the neurotransmitters hitting the receptors and opening the doors. It uses a modified version of Ohm’s Law (Current = Conductance Voltage Difference):
- Conductivity (): This represents how “wide open” the doors are. is the base conductance, is the synaptic weight (how strong or “loud” this specific synapse is), and is the fraction of doors currently open.
- Driving Force (): This is the difference between the cell’s current voltage () and the synapse’s reversal potential (). It dictates how hard the ions are being pushed through the open doors.
The Channel Dynamics Equation : To know how many doors are actually open () at any given millisecond
Two different ways to model the electrical current entering the neuron from a synapse.
Current-Based Synapse :
: The total number of synapses (connections) attached to this neuron. : The Synaptic Weight. : This is the Dirac delta function.
- In this simple model, we pretend the synapse just injects a fixed, flat amount of electrical current () every time a spike arrives, completely ignoring what the neuron’s voltage is currently doing.
- Its an okay approximation for Excitatory synapses (like Glutamate). Because their target reversal potential () is so incredibly far away from the resting potential (around -70 mV), the magnetic “pull” on the ions is basically at maximum strength all the time.
Conductance-Based Synapse : The actual electrical current () entering the cell at any given millisecond
- Mandatory for Inhibitory Synapses
- : The maximum conductance (how wide the doors can open).
- : The Driving Force. This is the reversal potential of the synapse () minus the current voltage of the neuron (). This is the crucial part that makes it “realistic”!
- : The sum of all the open channels across all the different synapses connecting to the cell.
- If the cell’s current voltage is already sitting exactly at the target voltage , no ions will flow, even if the doors are wide open.
- Opening a door doesn’t guarantee ions will flow. They only flow if there is a magnetic “pull” or Driving Force making them want to cross. That driving force is the difference between the synapse’s target () and the cell’s current voltage ().
Exactly how many doors are open () at any given moment is given by :