---
title: The electrocardiogram
heading: The heart's conduction system and the waves of the ECG, the heart vector, Einthoven's limb leads and his law, the augmented leads and the hexaxial reference system, finding the electrical axis, and reading rate and intervals from the trace
eyebrow: S15 · Lesson 12 · The electrocardiogram
xp: 50
---

::: hook
Each heartbeat starts at a small cluster of pacemaker cells and spreads through the atria, pauses at the atrioventricular node, then races down specialized fibers into the ventricles. At every instant the wavefront of depolarizing muscle acts like one large current dipole, the heart vector, and lesson 11's volume conduction carries its potential to the skin. Einthoven's insight, in 1903, was that potential differences between the arms and leg project that vector onto three fixed directions. From those projections a clinician reads the heart's rate, rhythm, conduction times and electrical axis.
:::

::: play
- The heart vector of size M at angle θ in the frontal plane (0° points to the patient's left, +90° straight down), and the three limb-lead axes: I at 0°, II at 60°, III at 120°.
- Each lead records the vector's projection onto its axis: $V = M\cos(\theta - \varphi_\text{lead})$.
- The readouts obey Einthoven's law, I + III = II, at every angle.
:::

```sim plot
view: complex
range: 2
slider: M = 0.2..2 step 0.05 = 1.2
slider: t = -90..180 step 5 = 60
curve: u*exp(-j*0) | over: u = -1.8..1.8 | dashed | color: ch3
curve: u*exp(-j*60*pi/180) | over: u = -1.8..1.8 | dashed | color: ch4
curve: u*exp(-j*120*pi/180) | over: u = -1.8..1.8 | dashed | color: ch5
curve: u*M*exp(-j*t*pi/180) | over: u = 0..1
dot: M*exp(-j*t*pi/180) | label: heart vector
readout: lead I, mV = M*cos(t*pi/180) | digits: 3
readout: lead II, mV = M*cos((t - 60)*pi/180) | digits: 3
readout: lead III, mV = M*cos((t - 120)*pi/180) | digits: 3
```

::: predict
## At the peak of the QRS complex, lead I reads 0.6 mV and lead II reads 1.2 mV. What does lead III read?

- [ ] 1.8 mV
- [x] 0.6 mV
- [ ] −0.6 mV
- [ ] 1.2 mV

::: reveal
Lead I is $\Phi_{LA} - \Phi_{RA}$, lead II is $\Phi_{LL} - \Phi_{RA}$ and lead III is $\Phi_{LL} - \Phi_{LA}$, so I + III = II identically: III = 1.2 − 0.6 = 0.6 mV. Only two of the three limb leads carry independent information.
:::
:::

::: nameit
## The heartbeat and its waves

The sinoatrial node fires; atrial depolarization gives the **P wave**. Conduction pauses in the atrioventricular node (the flat PR segment), then the His bundle and Purkinje fibers spread excitation through the ventricles, giving the large, fast **QRS complex**. Ventricular repolarization gives the **T wave**. Typical adult values: PR interval 0.12 to 0.20 s, QRS under 0.12 s, peak amplitudes around 1 mV. Diagnostic ECGs record 0.05 to 150 Hz; monitors use a narrower band.

## Limb leads and Einthoven's law

With electrodes on the right arm (RA), left arm (LA) and left leg (LL):

$$\text{I} = \Phi_{LA} - \Phi_{RA}, \qquad \text{II} = \Phi_{LL} - \Phi_{RA}, \qquad \text{III} = \Phi_{LL} - \Phi_{LA}, \qquad \text{I} + \text{III} = \text{II}$$

Treating the electrodes as corners of an equilateral triangle around the heart, lead I lies at 0°, II at 60° and III at 120°, and each records $M\cos(\theta - \varphi)$.

## Augmented leads

Each **augmented lead** compares one limb with the average of the other two: $aVR = -(\text{I} + \text{II})/2$, $aVL = (\text{I} - \text{III})/2$ and $aVF = (\text{II} + \text{III})/2$, along −150°, −30° and +90°. Projected, they read $\frac{\sqrt{3}}{2}M\cos(\theta - \varphi)$. With the limb leads they make the six-axis **hexaxial** system. The precordial leads V1 to V6 measure chest electrodes against the average of the three limbs (Wilson's central terminal) and see the horizontal plane.

## The electrical axis

From I = M cos θ and II = M cos(θ − 60°):

$$\tan\theta = \frac{2\,\text{II} - \text{I}}{\sqrt{3}\,\text{I}}$$

Normal adult axes fall between about −30° and +90°.

## Rate and intervals

At the standard 25 mm/s paper speed, an R-to-R spacing of D millimeters means a heart rate of 1500/D per minute. The QT interval shortens as the rate rises, so it's corrected, for instance by Bazett's formula $QT_c = QT/\sqrt{RR}$ with RR in seconds.
:::

::: example
## Finish the predict question: the augmented leads, the axis and the size of the heart vector.

::: solution
1. **Lead III.**
   $$\begin{aligned} \text{III} &= \text{II} - \text{I} \\ &= 0.6\ \text{mV} \end{aligned}$$
2. **Augmented leads.**
   $$\begin{aligned} \text{aVF} &= (1.2 + 0.6)/2 \\ &= 0.9\ \text{mV} \\ \text{aVL} &= (0.6 - 0.6)/2 \\ &= 0 \\ \text{aVR} &= -(0.6 + 1.2)/2 \\ &= -0.9\ \text{mV} \end{aligned}$$
3. **Axis.**
   $$\begin{aligned} \tan\theta &= \frac{2.4 - 0.6}{\sqrt{3} \times 0.6} \\ &= \sqrt{3} \end{aligned}$$
   so θ = 60°.
4. **Size of the heart vector.**
   $$\begin{aligned} M &= \frac{0.6}{\cos 60°} \\ &= 1.2\ \text{mV} \end{aligned}$$
   pointing straight along lead II.
5. **Check against the leads.** That's why II is the largest and aVL, perpendicular to it, is zero.

**Answer:** III = 0.6 mV, aVF = 0.9 mV, aVL = 0 and aVR = −0.9 mV; the axis is 60°, and the heart vector is 1.2 mV, along lead II.
:::
:::

::: example
## R waves are 20 mm apart at 25 mm/s and the QT interval is 0.36 s. Find the rate and the corrected QT.

::: solution
1. **RR interval.**
   $$\begin{aligned} RR &= \frac{20\ \text{mm}}{25\ \text{mm/s}} \\ &= 0.8\ \text{s} \end{aligned}$$
2. **Rate.**
   $$\begin{aligned} \text{rate} &= \frac{60}{0.8} \\ &= \frac{1500}{20} \\ &= 75\ \text{per minute} \end{aligned}$$
3. **Corrected QT.**
   $$\begin{aligned} QT_c &= \frac{0.36}{\sqrt{0.8}} \\ &= 0.402\ \text{s} \end{aligned}$$
   within the normal range (roughly up to 0.44 to 0.46 s).

**Answer:** the rate is 75 per minute, and the corrected QT is 0.402 s, within the normal range.
:::
:::

::: example
## A 24-hour Holter recorder stores three ECG channels at 250 samples a second and 12 bits each. How much data does it collect, and what compression ratio would fit it in 32 MB?

::: solution
1. **Data per day.**
   $$\begin{aligned} N &= 3 \times 250 \times 12 \times 86\,400 \\ &= 7.78 \times 10^8\ \text{bits} \\ &= 97.2\ \text{MB} \end{aligned}$$
2. **Compression needed.**
   $$\frac{97.2\ \text{MB}}{32\ \text{MB}} \approx 3$$
   so fitting 32 MB needs about 3:1 compression.
3. **Why lossless methods get there.** Successive ECG samples differ little, so storing differences instead of values cuts most samples to a few bits.
4. **Sample rate.** The 250 Hz rate covers monitoring bandwidth; diagnostic recordings sample at 500 Hz or more to keep the 150 Hz band and the fine detail of pacemaker spikes.

**Answer:** the recorder collects 7.78 × 10⁸ bits, 97.2 MB, a day, so fitting it in 32 MB needs about 3:1 compression.
:::
:::

::: check
given: a = 0.3 | 0.8; b = 0.5 | 1.4
answer: b - a
unit: mV
tolerance: 0.5%

## Lead I reads {a} mV and lead II reads {b} mV. What does lead III read?

::: right
Right. III = II − I = {answer} mV.
:::

::: misses
- [a + b] Einthoven's law is I + III = II.
- [any] Not yet. Einthoven's law.
:::
:::

::: check
given: a = 0.3 | 0.8; b = 0.5 | 1.4
answer: (2*b - a)/2
unit: mV
tolerance: 0.5%

## With lead I = {a} mV and lead II = {b} mV, what does aVF read?

::: right
Right. aVF = (II + III)/2 = (2 II − I)/2 = {answer} mV.
:::

::: misses
- [b/2] Include lead III, which is II − I.
- [any] Not yet. aVF averages leads II and III.
:::
:::

::: check
given: a = 0.4 | 0.8; b = 0.3 | 0.7 | 1.2
answer: atan((2*b - a)/(sqrt(3)*a))*180/pi
unit: °
tolerance: 0.5%

## Lead I reads {a} mV and lead II reads {b} mV. What's the electrical axis?

::: right
Right. $\tan^{-1}[(2\,\text{II} - \text{I})/(\sqrt{3}\,\text{I})]$ = {answer}°.
:::

::: misses
- [atan(b/a)*180/pi] Lead II isn't perpendicular to lead I; it's at 60°.
- [any] Not yet. Solve I = M cos θ and II = M cos(θ − 60°).
:::
:::

::: check
given: M = 0.8 | 1.5; t = 20 | 75; f = -30 | 60 | 120
answer: M*cos((t - f)*pi/180)
unit: mV
tolerance: 0.5%

## A heart vector of {M} mV points at {t}°. What does a lead along {f}° record?

::: right
Right. $M\cos(\theta - \varphi)$ = {answer} mV.
:::

::: misses
- [M*cos(t*pi/180)] That's lead I's projection; use the lead's own angle.
- [any] Not yet. Project the vector onto the lead axis.
:::
:::

::: check
given: D = 12 | 20 | 30; s = 25 | 50
answer: 60*s/D
tolerance: 0.5%

## R waves are {D} mm apart on a trace recorded at {s} mm/s. What's the heart rate per minute?

::: right
Right. $60s/D$ = {answer} per minute.
:::

::: misses
- [60*D/s] RR = D/s seconds; the rate is 60/RR.
- [any] Not yet. Find RR in seconds first.
:::
:::

::: check
given: q = 0.32 | 0.38 | 0.44; r = 0.6 | 0.8 | 1.2
answer: q/sqrt(r)
unit: s
tolerance: 0.5%

## A QT interval of {q} s is measured at RR = {r} s. What's Bazett's corrected QT?

::: right
Right. $QT/\sqrt{RR}$ = {answer} s.
:::

::: misses
- [q/r] Bazett divides by the square root of RR.
- [any] Not yet. Bazett's formula.
:::
:::

::: check
kind: parts
given: c = 2 | 3 | 12; f = 250 | 500 | 1000; b = 12 | 16 | 24; h = 24 | 48

## A recorder stores {c} ECG channels at {f} samples a second, {b} bits each, for {h} hours.

::: part
answer: c*f*b*h*3600/8/1e6
unit: MB
tolerance: 0.5%

### How much data does it collect?

::: misses
- [c*f*b*h*3600/1e6] Divide bits by 8 for bytes.
- [any] Channels × rate × bits × seconds.
:::
:::

::: part
answer: c*f*b*h*3600/8/1e6/64
tolerance: 0.5%

### What compression ratio fits it into 64 MB?

::: misses
- [any] Raw size over 64 MB.
:::
:::
:::

::: check
kind: derivation
vars: a = -2..2, b = -2..2

## Lead I reads a and lead II reads b.

::: step
answer: b - a

### What does lead III read?
:::

::: step
answer: -(a + b)/2

### What does aVR read?
:::

::: step
answer: a - b/2

### What does aVL read?
:::

::: right
Right. Two leads fix the frontal-plane vector, so the other four are combinations of them.
:::
:::

::: explain
## Why do the three limb leads carry only two independent signals, and what does that say about the heart vector?

::: model
The three limb leads are differences between the same three electrode potentials, so they're linearly dependent: lead I plus lead III equals lead II at every instant. In Einthoven's model the frontal-plane heart vector has two components, so two leads at different angles are enough to determine it completely, and every other frontal lead, including the augmented ones, is a combination of those two. The redundancy is still useful: it lets a clinician see the projection that best shows a particular wave, and it gives a check on electrode placement. To capture the third, front-to-back component, the precordial chest leads are needed.
:::
:::

::: practice

::: check
given: a = 0.1 | 1.2; b = 0.2 | 1.8
answer: atan((2*b - a)/(sqrt(3)*a))*180/pi
unit: °
tolerance: 0.5%

## Axis: I = {a} mV, II = {b} mV?

::: misses
- [any] $\tan^{-1}[(2\,\text{II} - \text{I})/(\sqrt{3}\,\text{I})]$.
:::
:::

::: check
given: M = 0.3 | 2.5; t = -30 | 110; f = -150 | 120
answer: M*cos((t - f)*pi/180)
unit: mV
tolerance: 0.5%

## Projection: M = {M} mV at {t}°, lead at {f}°?

::: misses
- [any] $M\cos(\theta - \varphi)$.
:::
:::

::: check
given: D = 8 | 45; s = 25 | 50
answer: 60*s/D
tolerance: 0.5%

## Rate: {D} mm at {s} mm/s?

::: misses
- [any] $60s/D$.
:::
:::
:::
