---
title: "Problem set 5: biopotentials, electrodes and amplifiers"
heading: "Problem set 5: Goldman and Nernst potentials, membrane charge, cables and conduction, dipoles in a volume conductor, limb leads and the axis, electrode impedance and noise, instrumentation and isolation amplifiers, the driven right leg, floating monitors, averaging and spike detection"
eyebrow: S15 · Problem set 5
type: problems
---

::: hook
These problems cover lessons 10 to 19, from the ion gradients that make biopotentials to the amplifiers that record them: membranes and cables, the ECG's leads, electrodes and their noise, instrumentation and isolation amplifiers, interference and its rejection, and the signal processing that pulls small signals out of noise.
:::

::: pool
pick: 12

::: check
kind: parts
given: K = 4 | 6; N = 135 | 145; p = 0.02 | 0.05; c = 0.3 | 0.6

## A membrane has $P_K : P_{Na} : P_{Cl}$ = 1 : {p} : {c}, with K⁺ 140/{K} mM, Na⁺ 12/{N} mM and Cl⁻ 4/120 mM (inside/outside), at 37 °C.

::: part
answer: 26.73*ln((K + p*N + c*4)/(140 + p*12 + c*120))
unit: mV
tolerance: 0.5%

### What is its resting potential?

::: misses
- [26.73*ln((K + p*N + c*120)/(140 + p*12 + c*4))] Chloride is an anion: its inside concentration goes in the numerator.
- [any] The Goldman equation.
:::
:::

::: part
answer: 26.73*ln(N/12) - 26.73*ln((K + p*N + c*4)/(140 + p*12 + c*120))
unit: mV
tolerance: 0.5%

### How far is it below the sodium Nernst potential (the driving force on Na⁺)?

::: misses
- [any] $E_{Na} - V$.
:::
:::
:::

::: check
kind: parts
given: o = 1.2 | 2.5; i = 0.0001 | 0.0005; V = -90 | -60

## Calcium is {o} mM outside a cell and {i} mM inside; the membrane sits at {V} mV, at 37 °C.

::: part
answer: 26.73/2*ln(o/i)
unit: mV
tolerance: 0.5%

### What is calcium's Nernst potential?

::: misses
- [26.73*ln(o/i)] Calcium carries two charges.
- [any] $(RT/2F)\ln([Ca]_o/[Ca]_i)$.
:::
:::

::: part
answer: 26.73/2*ln(o/i) - V
unit: mV
tolerance: 0.5%

### What driving force pushes calcium inward?

::: misses
- [any] $E_{Ca} - V$.
:::
:::
:::

::: check
kind: parts
given: C = 1 | 1.5; V = 100 | 120; d = 1 | 10

## An action potential swings a membrane of {C} µF/cm² by {V} mV, in a cell {d} µm across (a sphere).

::: part
answer: C*1e-6*V*1e-3/1.602176634e-19
unit: ions/cm^2
tolerance: 0.5%

### How many monovalent ions per square centimeter must cross?

::: misses
- [any] $C\Delta V/q$.
:::
:::

::: part
answer: C*1e-6*V*1e-3*pi*(d*1e-4)^2/1.602176634e-19
tolerance: 0.5%

### How many ions in all, for the whole cell?

::: misses
- [any] Per area times the sphere's area $\pi d^2$.
:::
:::
:::

::: check
kind: parts
given: d = 0.5 | 2 | 10; M = 5000 | 20000; R = 70 | 150; L = 1 | 4

## An unmyelinated fiber {d} µm across has $R_m$ = {M} Ω·cm² and $R_i$ = {R} Ω·cm; it's {L} mm long and sealed at its far end.

::: part
answer: sqrt(M*d*1e-4/(4*R))*10
unit: mm
tolerance: 0.5%

### What is its length constant?

::: misses
- [any] $\sqrt{R_md/(4R_i)}$.
:::
:::

::: part
answer: 1/cosh(L/(sqrt(M*d*1e-4/(4*R))*10))
tolerance: 0.5%

### What fraction of a steady voltage held at one end reaches the sealed end?

::: misses
- [exp(-L/(sqrt(M*d*1e-4/(4*R))*10))] That's for an infinite fiber; the sealed end gives $1/\cosh(L/\lambda)$.
- [any] $1/\cosh(L/\lambda)$.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 4; b = 9 | 15; L = 0.3 | 0.6

## A nerve's myelinated fibers range from {a} to {b} µm across, at 6 m/s per micrometer; a recording site is {L} m from the stimulus.

::: part
answer: L/(6*b)*1e3
unit: ms
tolerance: 0.5%

### When does the response begin?

::: misses
- [any] The fastest fibers set the onset.
:::
:::

::: part
answer: (L/(6*a) - L/(6*b))*1e3
unit: ms
tolerance: 0.5%

### Over how long is the volley dispersed?

::: misses
- [any] Slowest minus fastest travel time.
:::
:::
:::

::: check
kind: parts
given: p = 1 | 3; s = 0.2 | 0.5; r = 10 | 20; t = 0 | 45 | 70

## A current dipole of {p} × 10⁻⁵ A·m sits in tissue of {s} S/m.

::: part
answer: p*1e-5*cos(t*pi/180)/(4*pi*s*(r*1e-2)^2)*1e3
unit: mV
tolerance: 0.5%

### What potential does it produce {r} cm away at {t}° to its axis?

::: misses
- [p*1e-5*cos(t*pi/180)/(4*pi*s*(r*1e-2))*1e3] A dipole's potential falls as 1/r².
- [any] $p\cos\theta/(4\pi\sigma r^2)$.
:::
:::
:::

::: check
kind: parts
given: a = 0.4 | 0.9; b = 0.3 | 1.2; D = 15 | 20 | 30; q = 0.34 | 0.4

## Lead I reads {a} mV and lead II {b} mV; R waves are {D} mm apart at 25 mm/s, and the QT interval is {q} s.

::: part
answer: atan((b - a/2)*2/sqrt(3)/a)*180/pi
unit: °
tolerance: 0.5%

### What is the electrical axis?

::: misses
- [any] $\tan\theta = (2/\sqrt3)\,\text{aVF}/\text{I}$, with aVF = II − I/2.
:::
:::

::: part
answer: q/sqrt(D/25)
unit: s
tolerance: 0.5%

### What is Bazett's corrected QT?

::: misses
- [q*sqrt(D/25)] Divide by the square root of RR.
- [any] QT/√RR with RR in seconds.
:::
:::
:::

::: check
kind: parts
given: s = 0.5 | 2; R = 20 | 200; C = 0.5 | 2; f = 10 | 60

## An electrode has $R_s$ = {s} kΩ, $R_d$ = {R} kΩ and $C_d$ = {C} µF.

::: part
answer: sqrt((s + R/(1 + (2*pi*f*R*1e3*C*1e-6)^2))^2 + (R*2*pi*f*R*1e3*C*1e-6/(1 + (2*pi*f*R*1e3*C*1e-6)^2))^2)
unit: kΩ
tolerance: 0.5%

### What is its impedance's magnitude at {f} Hz?

::: misses
- [s + R] That's its DC resistance; the capacitance shunts $R_d$ at higher frequencies.
- [any] $|R_s + R_d/(1 + j\omega R_dC_d)|$.
:::
:::
:::

::: check
kind: parts
given: R = 5 | 22; F = 25 | 50; k = 10 | 50; c = 1 | 10; M = 90 | 110

## An instrumentation amplifier has $R_1$ = {R} kΩ, $R_2$ = {F} kΩ and a second stage of gain {k}, with {M} dB of CMRR; {c} mV of common mode is present.

::: part
answer: (1 + 2*F/R)*k
tolerance: 0.5%

### What is its gain?

::: misses
- [(1 + F/R)*k] The two feedback resistors give 1 + 2R₂/R₁.
- [any] $(1 + 2R_2/R_1)k$.
:::
:::

::: part
answer: c*1e-3/10^(M/20)*1e6
unit: µV
tolerance: 0.5%

### What input-referred error does the common mode cause?

::: misses
- [any] $v_{cm}/\text{CMRR}$.
:::
:::
:::

::: check
kind: parts
given: e = 5 | 20; i = 0.05 | 1; R = 20 | 200; B = 150 | 500

## An amplifier's noise is {e} nV/√Hz and {i} pA/√Hz, and each input sees {R} kΩ at 37 °C, over {B} Hz.

::: part
answer: sqrt(e^2 + (i*R)^2 + 4*1.380649e-23*310.15*R*1e3*1e18)*sqrt(B)/1e3
unit: µV
tolerance: 0.5%

### What total input noise results?

::: misses
- [any] Add the three densities in power, then multiply by √B.
:::
:::
:::

::: check
kind: parts
given: C = 5 | 20 | 50; V = 120 | 230; f = 50 | 60; M = 120 | 140

## An isolated input's barrier has {C} pF and {M} dB of IMRR; {V} V at {f} Hz stands across it.

::: part
answer: 2*pi*f*C*1e-12*V*1e6
unit: µA
tolerance: 0.5%

### What leakage flows?

::: misses
- [any] $2\pi fCV$.
:::
:::

::: part
answer: V/10^(M/20)*1e6
unit: µV
tolerance: 0.5%

### What input-referred error does the isolation-mode voltage cause?

::: misses
- [any] $V/\text{IMRR}$.
:::
:::
:::

::: check
kind: parts
given: o = 1 | 5; F = 2 | 5; a = 25 | 50; i = 0.1 | 0.5

## A driven-right-leg circuit has $R_o$ = {o} MΩ, $R_f$ = {F} MΩ and $R_a$ = {a} kΩ, with {i} µA of displacement current.

::: part
answer: o/(1 + 2*F/(a*1e-3))*1e3
unit: kΩ
tolerance: 0.5%

### What effective resistance ties the patient to the circuit?

::: misses
- [o*1e3] The feedback divides $R_o$ by $1 + 2R_f/R_a$.
- [any] $R_o/(1 + 2R_f/R_a)$.
:::
:::

::: part
answer: i*1e-6*o*1e6/(1 + 2*F/(a*1e-3))*1e3
unit: mV
tolerance: 0.5%

### What common-mode voltage results?

::: misses
- [any] Displacement current times that resistance.
:::
:::
:::

::: check
kind: parts
given: c = 1 | 3; C = 100 | 500; V = 120 | 230; Z = 20 | 100

## A battery-powered monitor's common has {C} pF to earth; the patient couples {c} pF to a {V} V, 60 Hz line, and the reference electrode is {Z} kΩ.

::: part
answer: V*2*pi*60*c*C/(c + C)*1e-12*Z*1e3*1e3
unit: mV
tolerance: 0.5%

### What common-mode voltage reaches the amplifier?

::: misses
- [V*c/(c + C)*1e3] That's how far the whole floating system sits from earth, which the amplifier doesn't see.
- [any] The displacement current times the reference electrode's impedance.
:::
:::
:::

::: check
kind: parts
given: s = 1 | 5; n = 10 | 50; t = 3 | 10; B = 16 | 24; R = 2 | 5

## An evoked response of {s} µV sits in {n} µV RMS of EEG, recorded by a {B}-bit converter spanning ±{R} V after a gain of 1000.

::: part
answer: (t*n/s)^2
unit: sweeps
tolerance: 0.5%

### How many sweeps reach a signal-to-noise ratio of {t}?

::: misses
- [t*n/s] Averaging gains as the square root of the sweeps.
- [any] $(tn/s)^2$.
:::
:::

::: part
answer: 2*R/2^B/1000*1e6
unit: µV
tolerance: 0.5%

### What step does the converter resolve at the electrodes?

::: misses
- [R/2^B/1000*1e6] The range is ±R: 2R in all.
- [any] $2R/2^B$ over the gain.
:::
:::
:::

::: check
kind: parts
given: B = 3000 | 8000; k = 3.5 | 4.5; r = 5 | 50

## A spike detector's noise is flat from 0 to {B} Hz, with its threshold at {k} standard deviations; the neuron fires {r} times a second.

::: part
answer: B/sqrt(3)*exp(-k^2/2)
unit: Hz
tolerance: 0.5%

### How often does noise alone cross the threshold?

::: misses
- [any] $\frac B{\sqrt3}e^{-k^2/2}$.
:::
:::

::: part
answer: B/sqrt(3)*exp(-k^2/2)/(B/sqrt(3)*exp(-k^2/2) + r)
tolerance: 0.5%

### What fraction of detected events are false?

::: misses
- [any] False rate over total rate, assuming every spike is caught.
:::
:::
:::
:::
