What you will learn
Explain units, solve an RC response, implement an Euler step, and defend a simple statistical comparison.
Before you begin: basic arithmetic and curiosity. Scientific notation is explained below.
START WITH A QUESTION
Picture this.
Imagine a neuron receiving two gentle nudges. Far apart, neither does much. Close together, they may add up. Why should timing matter? Something inside the cell carries a little of the past into the present. Our first job is to build a picture of that something. You need arithmetic and curiosity; we will unpack the notation as we use it.
- State
- A quantity carried from one moment to the next, such as membrane voltage.
- Time constant
- A characteristic response timescale, not a timer that marks completion.
- Scientific notation
- A number written as a factor times a power of ten.
Read for the idea first. Work through the numbers next. Try answering the questions before opening the explanations.
Numbers need a name and a unit
Saying a room is 20 tells us very little. Twenty degrees? Twenty meters long? The same is true of a neuron. Voltage describes an electrical potential difference; current describes how quickly charge crosses a boundary. Voltage does not flow. Ions are charged atoms or molecules: sodium ions carry positive charge, for example. A membrane separates two environments with different ion concentrations. That separation, together with selective pathways, helps create electrical behavior. For now, we will model only storage and leakage.
Tiny numbers, without the mystery
A millisecond is one thousandth of a second: 1 ms = 0.001 s = 10⁻³ s. A megaohm is one million ohms; a picofarad is 10⁻¹² farads; a nanoamp is 10⁻⁹ amperes. In Python, 100e6 means 100 × 10⁶, not 100 raised to the sixth power. Multiply the ordinary numbers and add the powers: (100 × 10⁶)(200 × 10⁻¹²) = 20,000 × 10⁻⁶ = 0.020. Keeping units beside numbers catches mistakes a calculator cannot.
A leaky container gives us a first model
Picture a container receiving water while a small outlet drains it. More storage capacity makes its level change slowly. A wider outlet lets the level settle faster. In our electrical picture, capacitance C describes charge storage and resistance R opposes leakage. Larger R or C makes the response slower; their product is the time constant τ. Water is only an analogy: ions, voltage and selective channels require electrical and biological explanations. We use the analogy to predict a trend, then check the equation.
Read an equation as a sentence
In Q = CV, charge equals capacitance times voltage difference. A function such as V(t) simply means voltage depends on time. The symbol Δ means a change: ΔV/Δt is average voltage change divided by elapsed time. The derivative dV/dt asks for the instantaneous rate as the interval becomes very small. You can understand the next model without a calculus course: new value is approximately old value plus rate of change times a short interval. We will test that approximation in Part 6.
A reference point prevents a common mistake
The passive membrane relaxes toward a reference voltage E. With a constant injected current, its final voltage is E + RI, not just RI. If E is −65 mV and RI is 10 mV, the final value is −55 mV. The current produced a 10 mV displacement. After one time constant, a step response has completed about 63% of its eventual displacement; it has not finished. A gradual approach is the first example of state: a stored quantity that makes the present depend on the past.
SEE THE RELATIONSHIPS
From structure to behavior.
MAKE THE IDEA PRECISE
The mathematics.
| Symbol | Meaning |
|---|---|
| τ | Time constant, seconds |
| R | Resistance, ohms |
| C | Capacitance, farads |
| E, V_final | Reference and final membrane voltage, volts |
| I | Constant injected current, amperes |
| ΔQ, ΔV | Changes in stored charge (coulombs) and voltage (volts), at fixed capacitance |
Build the equation, step by step
- Start with Q = CV: at fixed capacitance, doubling the voltage difference doubles the stored charge. Differentiate with respect to time to obtain the capacitive current C dV/dt.
- For the parallel leak pathway, the voltage across the resistor is V − E, so its current is (V − E)/R. Add the two currents and equate their sum to the injected current.
- Multiplying by R gives RC dV/dt = −(V − E) + RI. Define τ = RC. With no input, displacement from E decays exponentially; after one τ, about 36.8% remains.
WORK THROUGH THE NUMBERS
Worked example
Choose an illustrative resistance of 100 megaohms and capacitance of 200 picofarads. Their product is 0.020 seconds = 20 milliseconds. A 0.1-nanoamp current through that resistance gives a 10-millivolt drop. These are chosen example values, not measurements of a particular fly neuron.
A small Python experiment.
Python 3 · Standard library only · Synthetic educational example. Run this in your own notebook or a local file.
R = 100e6 # ohms
C = 200e-12 # farads
I = 0.1e-9 # amperes
print(f"tau = {R*C*1000:.1f} ms")
print(f"I R = {I*R*1000:.1f} mV")Read the code as a story
Read the first three assignments as labeled measurements. Multiplication R*C gives seconds; multiplying by 1000 displays milliseconds. I*R gives volts, so another factor of 1000 displays millivolts. The expression inside braces is calculated before Python prints it; :.1f requests one digit after the decimal point. Nothing here measures a living cell—we chose the inputs.
Expected output
tau = 20.0 ms I R = 10.0 mV
Change one quantity, predict the result, and then run the code again. Explain any difference before adding complexity.
Test your understanding.
Try it: Double C while keeping R and I fixed. Predict which output changes before running the example. Explain why the steady resistor drop does not change.
Self-check: Does doubling R always double the final voltage?
Only the voltage displacement produced by a fixed injected current doubles in this passive model. The reference E remains. If C is fixed, the time constant also doubles, so the approach to equilibrium becomes slower. Real channels may invalidate the constant-resistance assumption.
Where this model stops: A passive circuit cannot generate a biological action potential. A fixed time constant is a modeling choice, not a universal neuron property.
A research question: Which measurements would reveal that a constant-conductance model is inadequate?
Record evidence in your mastery worksheet →PREDICT / TRY / EXPLAIN
Make a prediction table
Use paper, a calculator or the Python example. Write your prediction before checking the result.
- On paper, make columns for R, C, τ and RI. Fill the first row with the worked values.
- Add a row with twice the capacitance and another with twice the resistance. Predict both outputs before editing the code.
- Set E = −65 mV and calculate the final voltage for each row. Sketch three curves starting at E; label their destinations and relative speeds.
Compare with a worked solution
The original row gives 20 ms and 10 mV. Doubling C gives 40 ms and 10 mV: slower, same final −55 mV. Doubling R gives 40 ms and 20 mV: slower, final −45 mV. A curve reaching its destination instantly would contradict this passive model. Keep this sketch for the numerical experiment in Part 6.
CLOSE YOUR NOTES
Can you explain it back?
These questions test the reasoning, not just a remembered phrase. Say your answer out loud or write a sentence first.
01A voltage rises by 4 mV over 2 ms. What is its average rate of change?
Reveal the reasoning for question 1
4/2 = 2 mV per ms. This is an average over the interval; the instantaneous slope could vary inside it.
02Does τ = 20 ms mean all memory disappears after 20 ms?
Reveal the reasoning for question 2
No. In passive decay, about 37% of an initial displacement remains after one τ. The trace approaches its reference gradually. A threshold for 'close enough' must be chosen separately.
TAKE THE IDEA WITH YOU
Three things to remember.
- Attach units before doing arithmetic.
- RI is a displacement from E in the passive membrane model.
- Storage and leakage make the response depend on recent history.
Next we put the electrical model back inside a cell: what does a neuron receive, what changes, and what gets passed onward?
Continue to Part 2 →THE NEXT LAYER
Chapter depth map.
This introduction provides a first model. The following chapters are outlines for deeper future editions; their full treatments have not yet been published.
Physical intuition
1.1 Atoms, ions and electrical quantities · Outline
- 1.1.1 Atoms and valence: Na+, K+, Ca2+ and Cl-
- 1.1.2 Charge and the coulomb
- 1.1.3 Voltage as energy per charge; reference potentials
- 1.1.4 Current as charge flow; conventional current and ion movement
- 1.1.5 Resistance, conductance and dimensional analysis
1.2 Capacitance and the RC circuit · Outline
- 1.2.1 Charge storage and C = Q/V
- 1.2.2 Resistor and capacitor circuit diagrams
- 1.2.3 Kirchhoff current balance
- 1.2.4 Time constant tau = RC and step responses
- 1.2.5 Worked unit conversions: megohms, picofarads, nanoamps and milliseconds
The mathematics of change
1.3 Calculus and differential equations · Outline
- 1.3.1 Functions, graphs, slopes and derivatives
- 1.3.2 Integrals as accumulation
- 1.3.3 First-order differential equations and initial conditions
- 1.3.4 Exponential relaxation and analytic solutions
- 1.3.5 Euler integration, truncation error and timestep convergence
1.4 Vectors, matrices and graphs · Outline
- 1.4.1 Vectors, dot products and norms
- 1.4.2 Matrix multiplication and coordinate transformations
- 1.4.3 Eigenvalues, modes and local stability
- 1.4.4 Directed weighted graphs and adjacency conventions
- 1.4.5 Sparse matrices and algorithmic cost
Uncertainty and scientific computation
1.5 Probability and statistics · Outline
- 1.5.1 Random variables and conditional probability
- 1.5.2 Bayes rule and likelihood
- 1.5.3 Bernoulli, Poisson and Gaussian models
- 1.5.4 Estimation, confidence intervals and effect sizes
- 1.5.5 Independent samples, controls, seeds and reproducible Python
1.6 Dynamical systems and information · Outline
- 1.6.1 State spaces, equilibria and phase portraits
- 1.6.2 Feedback, oscillations and stability
- 1.6.3 Entropy and mutual information with assumptions
- 1.6.4 Sampling, aliasing and temporal resolution
- 1.6.5 Optimization, gradients and constrained model fitting
Read with the original sources.
These readings support the concepts and deeper investigation. The worked numbers and illustrations above are teaching examples.
Author-hosted textbook
Neuronal Dynamics — Gerstner, Kistler, Naud & Paninski (2014) ↗
Use for neuron-model prerequisites and notation; this site provides an original curriculum, not a reproduction of the textbook.
Author-hosted textbook
Gerstner et al. — passive membrane and integrate-and-fire equations ↗
Reference for the passive-membrane approximation and integrate-and-fire conventions.