S1519 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S15 · Lesson 19 · Biopotential lab

Resting potentials from the Goldman equation under changing potassium, a finite-difference cable solved against its exact cosh profile, electrode impedances turning common-mode voltage into differential error, and all six limb leads with the axis from two

Biopotentials start as ion gradients across membranes, spread along cells as through a leaky cable, reach the skin as millivolt patterns, and enter an amplifier through electrodes that are anything but ideal. Lessons 10 to 18 took each step in turn. In this lab you'll compute each one numerically: the resting potential as concentrations change, the voltage along a finite nerve fiber, the interference an electrode mismatch lets in, and the full set of limb leads from the two an ECG actually measures.

  • The solid curve is the resting potential from the Goldman equation (PK:PNa:PCl = 1 : 0.04 : 0.45) against extracellular potassium; the dashed curve is the potassium Nernst potential.
  • At normal potassium (4 mM) the membrane sits 20 mV above EK, pulled up by sodium. As potassium rises, both rise, but the resting potential less steeply.
  • Raising the sodium permeability pulls the resting potential further from EK.

Predict

Extracellular potassium doubles from 4 to 8 mM. The potassium Nernst potential rises 18.5 mV. The resting potential rises by

Name it

What the lab computes

  • Goldman: V=kTqln⁡PK[K]o+PNa[Na]o+PCl[Cl]iPK[K]i+PNa[Na]i+PCl[Cl]o, at 37 °C unless told otherwise.
  • The cable: a steady voltage V0 held at one end of a fiber of length L sealed at the other obeys λ2V′′=V, with exact solution V0cosh⁡((L−x)/λ)/cosh⁡(L/λ). On a grid of spacing h, λ2(Vi−1−2Vi+Vi+1)/h2=Vi is a tridiagonal system, solved in one forward and one backward sweep; the sealed end uses a mirror node, Vn+1=Vn−1.
  • Electrodes: each is Rs+Rd/(1+jωRdCd). A common-mode voltage vcm reaching an amplifier with input impedance Zin through electrodes Z1 and Z2 becomes a differential error vcm[Zin/(Zin+Z1)−Zin/(Zin+Z2)], about vcm|Z1−Z2|/Zin.
  • Leads: III = II − I, aVR = −(I + II)/2, aVL = I − II/2, aVF = II − I/2, and the frontal axis from I and aVF: tan⁡θ=(2/3)aVF/I.

Check

Write ghk(K, Na, Cl, P=(1, 0.04, 0.45), T=310.15), where each ion is an (inside, outside) pair in mM, returning millivolts.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write cable(V0, lam, L, n): the steady voltage at the n + 1 grid points along a fiber of length L sealed at its far end, with V0 held at x = 0, by finite differences.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write electrode_z(Rs, Rd, Cd, f) returning a complex impedance, and cm_error(vcm, Z1, Z2, Zin), the magnitude of the differential error.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write limb_leads(I, II) returning a dict of all six limb leads, and axis(I, II) in degrees.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does a short nerve fiber sealed at its far end hold more of an applied voltage there than an infinitely long fiber would?