Table of Contents

The Physics of the ECG: From the Electric Dipole to the Cardiac Vector

阅读中文版 →

Chapter 1: Physical Foundations

From the Electric Dipole
to Reading the ECG

As medical students we know ECG rules like "the P wave represents atrial depolarization," but behind those rules sits a more basic question: how does the electrochemical storm inside cardiac muscle cells cross the surrounding tissue and end up drawing a regular tracing on paper at the body surface? To answer it, we do not need more physiology. We need to go back to a field that seems far away but turns out to be essential: the theory of electric fields in classical physics.

01. What Is an Electric Dipole?

To decode the heart's electrical signal, we have to start from a basic physical model: the electric dipole. In physics, it is defined as a system of two point charges of equal magnitude (\(q\)) and opposite sign (\(+, -\)), held a very small distance apart (\(d\)).

You can think of it as a tiny battery, with a positive pole at one end and a negative pole at the other. To describe this system, physicists use a vector, the electric dipole moment, written \(\vec{P}\), which captures both the strength and the direction of the dipole.

Definition Formula

$$ \vec{P} = q \cdot \vec{d} $$
  • \(\vec{P}\): the electric dipole moment vector; its magnitude and direction are what matter.
  • \(q\): the charge, which sets the strength of the dipole.
  • \(\vec{d}\): the displacement vector pointing from the negative charge to the positive charge.
⚠️ Mind the direction convention:
Physics defines the direction of the dipole moment strictly as from the negative charge to the positive charge (\( - \to + \)). Cardiac vector theory inherits this convention unchanged: the arrow of the vector always points toward the positive end of the field.
- + P⃗
Figure 1: A simple electric dipole. It sets up an electric field in the surrounding space, and the potential at any point is determined by that point's position relative to the dipole.

Why this physical model matters for medicine

This abstract-looking model matters because the electric dipole is the source of an electric field. It produces a measurable field in the space around it, which in the body means the conductive fluids and tissues. If we place electrodes at any two points in that field (say, on the wrist and the ankle), there will be a potential difference, that is, a voltage, between them.

Seen this way, an ECG machine is essentially a very sensitive voltmeter. Its core job is to measure, precisely, the tiny potential differences that cardiac activity produces at different sites on the body surface.


1.5 Derivation: How Does a Voltmeter "See" a Vector?

"Where the cardiac vector points, the lead facing it shows a tall wave" is a useful rule of thumb. But to really master quantitative ECG analysis, such as judging axis deviation precisely, we need to go beyond intuition, return to the superposition principle of physics, and derive step by step the projection formula that ultimately determines the waveform.

Step one: from field strength to potential

  1. Electric field strength (E): a point charge \(q\) produces, at distance \(r\), a field of magnitude:
    $$ E = k \cdot \frac{q}{r^2} $$
    This is the force per unit positive charge at that point.
  2. Electric potential (V): the potential is defined as the work done by the field in moving a unit positive charge from that point to infinity. Integrating gives:
    $$ V = \int_r^\infty E dr = \int_r^\infty k \frac{q}{r^2} dr = k \cdot \frac{q}{r} $$
Key point: Potential is a scalar and has no direction. This means the total potential at a point in space is simply the algebraic sum of the potentials produced there by each individual charge. That property greatly simplifies the analysis of complex charge systems such as a dipole, and it is the mathematical basis for everything that follows.

Stage one: set up the geometry

Let us build an analytical model. Consider a dipole whose negative charge \(-q\) and positive charge \(+q\) are separated by \(d\). Our goal is to compute the potential at an arbitrary point A whose distance from the center of the dipole is \(r\).

Center O -q+q A (probe) r₂ r₁ r θ
Figure 2-1: Geometry of a dipole and a distant measurement point A.

Stage two: the far-field approximation

In the real ECG setting, the size of the heart (corresponding to \(d\)) is much smaller than its distance to the surface electrodes (corresponding to \(r\)). This physical fact (\(r \gg d\)) lets us use a mathematical simplification called the "far-field approximation."

By the superposition principle, the total potential at A, \(V_A\), is the algebraic sum of the contributions from the two charges:

$$ V_A = V_+ + V_- = k \cdot \frac{q}{r_1} + k \cdot \frac{-q}{r_2} = kq \left( \frac{1}{r_1} - \frac{1}{r_2} \right) $$

When \(r\) is large enough, the lines from the two charges to A are nearly parallel. From the geometry we get:

  • \( r_1 \approx r - \frac{d}{2}\cos\theta \)
  • \( r_2 \approx r + \frac{d}{2}\cos\theta \)

Substituting these into the expression and simplifying (dropping higher-order terms) gives:

$$ \frac{1}{r_1} - \frac{1}{r_2} \approx \frac{r_2 - r_1}{r^2} \approx \frac{d \cos\theta}{r^2} $$
Path diff ≈ d·cosθDistance d
"The geometric heart of the far-field approximation is that, when the observation point is very far away, the two rays from the positive and negative charges are almost parallel. The difference in their path lengths to the observation point is then just the projection of the dipole length \(d\) onto the ray direction, namely \(d \cos\theta\)."
Figure 2-2: The geometry behind the far-field approximation.

Result: the projection law

Finally, substituting the definition of the dipole moment, \(P = qd\), into the simplified expression gives the central equation of ECG physics:

The Core ECG Equation

$$ V \propto \frac{P \cdot \cos\theta}{r^2} $$

In clinical practice, the distance \(r\) between an exploring electrode and the heart can be treated as roughly constant. The formula therefore leads to an important conclusion: the voltage (amplitude) a lead records at any instant is proportional to the projection of the heart's total dipole moment vector \(\vec{P}\) onto that lead's axis.


02. The Heart: A System of Billions of Moving Dipoles

So far we have built a dry physical model. The real challenge is to connect it to wet, living, moving tissue. To do that we need a thought experiment that zooms in on a single cardiac muscle cell and answers a basic question: from a physicist's point of view, why can a living cell be treated as an electric dipole?

2.1 The microscopic view: how a single cell creates a field

We do not need complicated biochemistry to answer this. We can look at the charge distribution of the cell in its different physiological states from a purely physical angle, as a boundary problem in electrostatics.

State one: rest (the silent cylinder)

Physiologically, cardiac myocytes use active transport such as the sodium-potassium pump (Na⁺-K⁺ pump) to keep pumping positive ions (mainly Na⁺) out of the cell while maintaining a high intracellular K⁺ concentration. This creates stable ion gradients across the membrane, which show up as a resting potential that is negative inside and positive outside.

In a physical model, the myocyte can be treated as a uniformly charged, infinitely long cylindrical shell. By Gauss's law, for a system with cylindrical symmetry, the field outside is the same as if all the charge were concentrated on the central axis. At rest, the positive charge layer on the outer surface of the membrane and the negative layer on the inner surface share the same axis and carry equal amounts of charge.

+++ +++ --- --- GAUSSIAN SURFACE Net Enclosed Charge = 0
$$ \oint_S \vec{E} \cdot d\vec{A} = \frac{Q_{encl}}{\varepsilon_0} = 0 \implies \vec{E}_{total} = 0 $$
Conclusion: Because the charge layers inside and outside the cell cancel each other out symmetrically at the macroscopic level, the net enclosed charge is zero for any observation point outside the cylinder. So a resting cell produces no measurable field in the space outside it, and the ECG records a flat baseline.

State two: a propagating action potential and the "moving dipole"

When a myocyte is stimulated, its Na⁺ channels open and positive charge floods into the cell. In a single long cylindrical cell, this depolarization does not happen everywhere at once; it travels from one end to the other like a row of falling dominoes.

While it travels, the cell is divided into an excited (depolarized) region and a resting (not yet depolarized) region. What matters is the boundary between them, the wavefront:

A calculus view of the physics

Let the cell axis be \(x\) and the extracellular potential be \(\Phi_e\). At the wavefront, the potential jumps sharply from low to high. From basic calculus:

$$ E(x) = -\frac{d\Phi_e}{dx} $$

Because \(\Phi_e\) changes most steeply with distance at the wavefront, the potential gradient is largest there. In this narrow transition zone the symmetry is broken, and a microscopic electric field radiates out into the surrounding space.

The source and the sink of the field

To avoid the heavy volume-conductor equations, we can understand this "wavefront battery" with a minimal model:

  • Current sink: the depolarized region. Behind the wave, Na⁺ has just flowed in, so the density of positive charge outside the membrane drops sharply. This acts as a low-potential "negative pole" (\(\Phi_{sink}\)).
  • Current source: the resting region. Ahead of the wave, the cell has not yet been reached by the stimulus, and the outside of the membrane still carries a high density of positive charge. This acts as a high-potential "positive pole" (\(\Phi_{source}\)).

The reasoning: The fiber may be long, but a significant potential difference \(\Delta \Phi = \Phi_{source} - \Phi_{sink} > 0\) exists only near the wavefront, where the jump occurs. Physically, this narrow voltage drop is exactly equivalent to a moving electric dipole. Its strength reflects how sharply the local voltage changes, and its vector points from negative (sink) to positive (source), that is, always in the direction the wave is traveling.

1. Extracellular charge distribution Wavefront - - -- - -Low \(\Phi\) + + ++ + +High \(\Phi\) 2. Equivalent physical model -Sink (-q) +Source (+q) P = q·d Conclusion: the vector ( → ) points the same way as the depolarization wave ( → )
Figure 2.2: The equivalent dipole generator. The resting region ahead of the depolarization wave (high potential) and the depolarized region behind it (low potential) together form an equivalent electric dipole whose vector points in the direction the wave travels.
The reasoning: why does the vector point "forward"?

"A depolarization vector heading toward the positive electrode gives an upward deflection" is a golden rule of ECG reading. It is not something to memorize, though. It follows necessarily from three steps of reasoning:

  1. Physics definition: By convention, the dipole moment vector \(\vec{P}\) always points from the center of negative charge to the center of positive charge.
  2. Physiological state: At the depolarization wavefront, the region behind the wave is depolarized, with low extracellular potential, so it is the effective negative pole. The region ahead of the wave is still resting, with high extracellular potential, so it is the effective positive pole.
  3. Conclusion: Putting the two together, the vector \(\vec{P}\) must point from behind (negative) to ahead (positive). Therefore, the direction of the depolarization vector is exactly the direction in which the depolarization wave travels through the tissue.
💡 Question to think about: What about repolarization?
During repolarization, the region behind the wave returns to rest first (outside becomes positive), while the region ahead is still depolarized (outside negative). The field is now "negative ahead, positive behind," so by definition the dipole vector points from front (negative) to back (positive). This is why the direction of repolarization waves (such as the T wave) is more complicated than that of depolarization waves.

2.2 The central paradox: why do we only measure the external field?

Thinking further, we run into a tricky physical problem. As the depolarization wave travels, two circuits with opposite directions actually form, one inside the cell and one outside. To understand what the ECG machine is really measuring, we need to turn the biological picture into a physical circuit model.

Fig. 2-3: Membrane Charges and Opposing Dipoles External Dipole (P_out) - - - - + + + + + + + + - - - - + + + + - - - - Internal Dipole (P_in) DEPOLARIZED RESTING - - - - + + + + Wavefront Propagation →
Figure 2-3: Charge distribution and dipole directions at the action potential wavefront. Note that the intracellular field (red) points from high to low potential (to the right), while the extracellular field (blue), because the induced charges are arranged the opposite way, points in the opposite direction (to the left).

To understand what the signal measured at the body surface physically is, we can turn this biological picture into a classic physical circuit: a three-rail "ladder" equivalent circuit.

Fig. 2-4: Three-Rail Equivalent Circuit Model Layer 3: Body Fluid R_ext (fluid resistance) V ECG machine Layer 2: Extracellular + - External Source (P_out) R_mem R_mem Layer 1: Intracellular - + Internal Source (P_in) Current Loop Restricted by R_mem
Figure 2-4: The three-rail "ladder" equivalent circuit for ECG generation.

Derivation: why is the ECG signal so small?

The circuit in Figure 2-4 shows the physical mechanism that generates the ECG:

  • Bottom rail (intracellular, Layer 1): This is where the electrical energy originates (\(P_{in}\)). The source voltage created by the jump away from the resting potential is large, on the order of 100 mV.
  • Vertical paths (cell membrane, R_mem): For current to flow from inside the cell to the body surface, it first has to force its way across the lipid bilayer. Because the membrane is an insulator, \(R_{mem}\) here is enormous (typically in the megaohm range).
  • Top rail (body surface, Layer 3): Our voltmeter (the ECG machine) measures the voltage drop across the conductive body-fluid resistance \(R_{ext}\).

Derivation of Surface Potential

By the voltage-divider rule for resistors in series, the potential measured at the surface, \(V_{measure}\), relates to the source voltage \(V_{source}\) as:

$$ V_{measure} \approx V_{source} \times \frac{R_{ext}}{2R_{mem} + R_{ext}} $$

In living tissue, the membrane resistance \(R_{mem}\) is far larger than the body-fluid resistance \(R_{ext}\) (the denominator is huge). This means:

The signal the ECG picks up at the body surface is, in essence, the potential difference produced by the "extracellular dipole," carried directly by the extracellular space (the body-fluid conductor).

This resolves the "central paradox" raised above. The energy of the ECG comes from inside the cell, but because of this voltage-divider effect, what we actually measure is the "extracellular projection," an indirect view of the electrical storm inside the cell.


2.3 The macroscopic field: from microscopic summation to surface projection

We now have a physical model for the electrical activity of a single cell. Next we need to zoom out from the microscopic to the macroscopic scale and understand how the whole heart, billions of myocytes working together, produces regular voltage fluctuations in the volume conductor around it that an instrument can record.

1. The core idea: why does the sum of billions of signals still obey the projection law?

A natural question: the heart is made of billions of microscopic dipoles. Is the potential measured at the surface just a messy algebraic sum of all their signals? Or is there an elegant mathematical way in which these microscopic vectors "condense" into one?

The answer lies in the principle of linear superposition. The total potential \(V\) at any point on the body surface is indeed the sum of the potentials \(V_i\) produced there by all the microscopic dipoles \(\vec{p}_i\). Using the core formula we derived, this means: $$ V = \sum V_i \propto \frac{1}{r^2} \sum (p_i \cdot \cos\theta_i) $$

Geometrically, \(p_i \cdot \cos\theta_i\) is exactly the projection of the microscopic vector \(\vec{p}_i\) onto the direction of observation (the lead axis). A basic linear property of vector algebra then gives a neat result: the algebraic sum of the projections of all the microscopic vectors is exactly equal to the projection of their sum (the total vector \(\vec{P}\)).

Visual Proof Logic

This figure shows geometrically that the vector sum and the potential sum are equivalent.

  • Blue vectors: the dipole produced by each microscopic myocyte, $\vec{p}_i$
  • Black vector: the total cardiac vector formed by adding all the microscopic dipoles, $\vec{P}$
  • Red projection: the voltage the surface electrodes actually record along this lead axis, $V$
"The lengths of the 'shadows' all the small arrows cast on the axis add up to exactly the length of the 'shadow' cast by the one big arrow."
Illustration: summing vectors and taking projections are equivalent. Mathematically, adding up the projections is the same as adding the vectors first and then projecting.

Conclusion: what the surface voltage physically is

This derivation means that although the heart's electrical activity comes from the complex cooperation of billions of cells, at the scale of macroscopic physical measurement we do not need to track every microscopic event. The heart's overall electrical activity at any given instant can be reduced exactly to a single equivalent "net dipole" vector \(\vec{P}\).

The potential differences we measure at the body surface are therefore not random noise. They reflect the field that this macroscopic net vector \(\vec{P}\) sets up in space. Every rise and fall of the ECG is a faithful record, over time, of the geometric projection of this net vector onto a particular lead axis.

2. Applying the projection principle: the standard ECG, frame by frame

We can now apply all of these physical principles to a complete cardiac cycle and see exactly where each part of the standard ECG comes from. The figure below shows how the net cardiac vector changes as different regions of the heart depolarize and recover, and how its projection onto a lead axis produces the familiar P-QRS-T complex.

ECG waveform generation from cardiac vectors
Figure 3: The cardiac electrical cycle and the corresponding ECG waveform. Each wave arises from the net vector created by a specific physiological event and its projection onto a one-dimensional lead axis.

Let us go through the process step by step:

Atrial depolarization → P wave

The cardiac cycle begins when the sinoatrial node fires and a depolarization wave spreads across the atria. The net vector it produces points roughly from upper right to lower left. As the figure shows, this vector points toward the positive end of the lead axis, so its projection is positive and is recorded as an upright, rounded P wave.

Ventricular depolarization → QRS complex

Ventricular depolarization is more complicated. It can be divided in time into three main phases, which together make up the QRS complex:

  1. Septal depolarization: The impulse first travels down the bundle of His to the interventricular septum, where depolarization spreads from left to right. This produces a brief, small vector pointing up and to the right. It points away from the positive end of the lead axis, and its negative projection forms the initial downward Q wave.
  2. Depolarization of the main ventricular mass: Next, depolarization spreads rapidly through the Purkinje network into the walls of both ventricles. Because the left ventricular wall is much thicker, its dipoles far outweigh those of the right ventricle, so the net vector is a large one pointing down and to the left. It produces a large positive projection on the lead axis, forming the tall R wave.
  3. Basal depolarization: Finally, the base of the ventricles (the region near the atrioventricular ring) depolarizes. Here the wave travels upward, so the net vector points up, again away from the positive end of the lead axis. Its negative projection forms the downward S wave after the R wave.
Ventricular repolarization → T wave

After depolarization, the ventricles repolarize. As discussed in the "question to think about" above, ventricular repolarization runs in the opposite order to depolarization (from epicardium to endocardium). As a result, the equivalent dipole vector of repolarization points in roughly the same direction as the depolarization (R-wave) vector. This repolarization vector, pointing down and to the left, also produces a positive projection on the lead axis and is recorded as a broader T wave.


Key Points

Working from first principles as above, we can distill the complexity of the ECG into a few core physical principles:

  • The dipole is the basic unit: The basic physical model of cardiac electrical activity is the electric dipole, whose vector points from negative charge to positive charge.
  • A moving boundary creates the signal: Only at the advancing front of a depolarization or repolarization wave is the symmetry of the charge distribution broken, producing a net dipole moment that can be measured at the macroscopic scale.
  • The ECG is a one-dimensional projection: In essence, the ECG observes and records the heart's complex, changing three-dimensional electrical vector as projected onto a particular one-dimensional lead axis.
  • The projection determines the waveform: How the magnitude and direction of the net cardiac vector change over time, as projected onto a one-dimensional lead axis, determines precisely the polarity, amplitude, and shape of the P-QRS-T complex.