Frequency, which is the same solve

The phase the magnitude already knows

For one class of network the phase is not an independent measurement: it is fixed everywhere by the magnitude, through an integral Bode wrote down in 1945. Fed nothing but the magnitudes of a solved lead network, that integral returns 39.289 degrees at the corner against a solved 39.289, and tracks the whole curve to two hundredths of a degree. Cascade an all-pass and the magnitudes agree to the last bits of a double while the phases part by 180 degrees — so the recovery is exact for one of the two and cannot see the other at all.

Assumes: One solve, read four ways · The same part written two ways

Everybody who has drawn a Bode plot knows the rule: twenty decibels per decade of slope goes with ninety degrees of phase. Forty with a hundred and eighty. It is used to read a phase margin off a magnitude plot, and it works often enough that the question of why rarely comes up.

The answer is that for a large and useful class of networks the phase is not an independent thing at all. Given the magnitude at every frequency, the phase at every frequency follows — completely, with nothing left over. The rule of thumb is one line of that statement.

And the interesting part is the class. It is not “all networks”, and the ones outside it are not exotic.

One magnitude curve, two phase curves, and the one of them the magnitude decidescomputed by solving, not by drawing. A passive lead network — a resistor with a capacitor across it, over a second resistor, its zero at 1.00 kHz — and the same network followed by a first-order all-pass. The two magnitudes agree to the last bits of a double at every one of the 1601 frequencies sampled, and the phases differ by as much as 180°. Bode's gain–phase integral, fed the magnitudes alone with their phases discarded, returns 39.29° at the corner against a solved 39.29°, and tracks the minimum-phase curve to 0.02° across the band — while being wrong about the second network by the all-pass's own phase, which is what excess phase means. The edge here is the span of the sweep rather than a frequency of the circuit: ±3 decades of magnitude carries 99.92% of the integral's weight, and what is left out is the tail of a logarithm.-20-100gain (decibels) — both networksone curve — both networks are on it-180-90045101001k10k100kfrequency (hertz)phase (degrees)minimum phase, solved — and recovered on top of itwith an all-pass: same magnitude, more phasesweep used±3 decadesweight captured99.919%recovered at the corner39.289°solved at the corner39.289°worst gap, drawn band0.019°excess phase at 10 fc-179.6°magnitudes agree to1 bit in 10¹⁶solved, then checked — a phase computed from magnitudes alone±3 decades holds 99.9% of the weight
Fig. 1 Two networks. The upper panel is their magnitude — one curve, because both are on it to the last bits of a double at every frequency sampled. The lower panel is their phase, and there are three curves there: the two networks’ phases, which differ by up to 180°, and the phase reconstructed from the magnitudes alone, which lies on one of them.

The network, and why it is a lead rather than a low-pass

The network is a resistor with a capacitor across it, feeding a second resistor: nine kilohms and 17.68 nanofarads in parallel, over one kilohm. It has a zero at 1.00 kHz and a pole at 10.0 kHz, so its magnitude runs flat at −20 dB, rises at twenty decibels per decade for one decade, and goes flat again at 0 dB.

A low-pass would have done, and this is better, because its phase goes up and comes back:

frequency gain phase
10 Hz −20.000 dB 0.52°
100 Hz −19.957 dB 5.14°
1 kHz −17.033 dB 39.29°
3.16 kHz −9.998 dB 54.90°
10 kHz −2.967 dB 39.29°
100 kHz −0.043 dB 5.14°

The peak is 54.903°, at the geometric mean of the pole and the zero, and it is arcsin(9/11)\arcsin(9/11) to three decimals — the closed form for a lead of ten to one. A reconstruction that reproduces a hump with a maximum in the middle of it is saying considerably more than one that reproduces a monotone fall.

The integral, and what its weighting function looks like

Bode’s relation is

φ(ω0)=1πdMdulncothu2du\varphi(\omega_0) = \frac{1}{\pi}\int_{-\infty}^{\infty} \frac{dM}{du}\,\ln\coth\frac{|u|}{2}\,du

where M=lnHM = \ln|H| and u=ln(ω/ω0)u = \ln(\omega/\omega_0). In words: the phase at a frequency is a weighted average of the slope of the log-magnitude, taken over all frequencies, with the weight lncoth(u/2)\ln\coth(|u|/2) centred on the frequency being asked about.

Two things about that weight matter, and both are measurable.

It has a logarithmic singularity at the centre. The slope near the frequency of interest counts for much more than the slope far away, which is why the rule of thumb works locally.

Its tails are long. The weight falls off, but slowly, and it never stops. Half a decade either side captures 74.07 per cent of it; one decade, 91.89; two decades, 99.19; three, 99.92.

The total weight on one side is exactly π2/4\pi^2/4, and that number is where the rule of thumb comes from. If the slope is a constant n-n over all frequencies — nn times twenty decibels per decade — then the integral is 1π(n)π22=nπ/2\tfrac{1}{\pi}\cdot(-n)\cdot\tfrac{\pi^2}{2} = -n\pi/2, which is n-n times ninety degrees. The famous rule is the constant-slope case of the integral, not a separate fact, and everything that makes it inaccurate is the difference between a real magnitude curve and a straight line.

A single-pole low-pass with its corner at 995 Hz. Solved at 209 frequencies. The straight-line sketch, drawn faintly, is 3.01 dB wrong at the corner and within a tenth of a decibel only below 152 Hz. The phase is already −5.7° a decade before the corner and −84° a decade after it.
Fig. 2 The straight-line sketch drawn against the response it approximates, from this field’s first essay. It is 3.01 dB wrong at the corner. The rule of thumb above is the same approximation applied to the phase, and the integral is what it is an approximation to.

What the reconstruction actually does here

The figure samples the solved network’s magnitude on a grid of a hundred points per decade over sixteen decades, throws the phase away, and evaluates the integral by convolution: the weight of each cell depends only on its offset from the frequency being asked about, so it is computed once and reused.

The weight is integrated in closed form rather than sampled, and that was not optional. Expanding lncoth(u/2)\ln\coth(u/2) as ln(1+eu)ln(1eu)\ln(1+e^{-u}) - \ln(1-e^{-u}) and integrating term by term gives

F(a)=0alncothu2du=π242k oddekak2F(a) = \int_0^a \ln\coth\frac{u}{2}\,du = \frac{\pi^2}{4} - 2\sum_{k\ \mathrm{odd}} \frac{e^{-ka}}{k^2}

so each cell’s weight is a difference of two of those. A midpoint rule that samples the weight instead loses the mass under the singularity: at four thousand cells it returned −44.96° where the answer is −45.00°, and the error fell as 1/n1/n rather than 1/n21/n^2 — which is the signature of a singularity being sampled rather than integrated, and is the kind of thing that reads as a small physical discrepancy if nobody checks the convergence rate.

With the weights exact, the recovered phase at the corner is 39.289° and the solved phase is 39.289°. The worst disagreement anywhere in the three decades drawn is 0.019°.

The edge, and it is not a frequency

Every figure in this collection carries the frequency, amplitude or size at which its model stops being true. This one carries something else: the span of the measurement.

The integral runs over all frequencies. A real magnitude sweep does not. So the recovery is wrong by whatever the truncated tails were carrying, and because the weight is known that error is computable before any data is collected:

sweep used weight captured worst error in the recovered phase
±0.5 decades 74.07% 7.90°
±1 decade 91.89% 2.44°
±1.5 decades 97.44% 0.77°
±2 decades 99.19% 0.24°
±3 decades 99.92% 0.019°
±4 decades 99.99% 0.001°

A degree of phase margin is worth having, so the practical reading of that table is: about two decades either side of the frequency in question, and three if the number matters. Which is a statement about how much of a network has to be measured before its phase can be inferred, and it is the sort of requirement that is invisible until the weighting function is written down.

One magnitude curve, two phase curves, and the one of them the magnitude decides. computed by solving, not by drawing. A passive lead network — a resistor with a capacitor across it, over a second resistor, its zero at 1.00 kHz — and the same network followed by a first-order all-pass. The two magnitudes agree to the last bits of a double at every one of the 1601 frequencies sampled, and the phases differ by as much as 180°. Bode's gain–phase integral, fed the magnitudes alone with their phases discarded, returns 38.51° at the corner against a solved 39.29°, and tracks the minimum-phase curve to 2.44° across the band — while being wrong about the second network by the all-pass's own phase, which is what excess phase means. The edge here is the span of the sweep rather than a frequency of the circuit: ±1 decades of magnitude carries 91.89% of the integral's weight, and what is left out is the tail of a logarithm.
Fig. 3 The same reconstruction with only one decade of magnitude either side. It is 2.44° out at worst and its shape is right — the error is a smooth deficit rather than a distortion, because what has been left out is a symmetric pair of tails.
One magnitude curve, two phase curves, and the one of them the magnitude decides. computed by solving, not by drawing. A passive lead network — a resistor with a capacitor across it, over a second resistor, its zero at 1.00 kHz — and the same network followed by a first-order all-pass. The two magnitudes agree to the last bits of a double at every one of the 1601 frequencies sampled, and the phases differ by as much as 180°. Bode's gain–phase integral, fed the magnitudes alone with their phases discarded, returns 32.26° at the corner against a solved 39.29°, and tracks the minimum-phase curve to 7.90° across the band — while being wrong about the second network by the all-pass's own phase, which is what excess phase means. The edge here is the span of the sweep rather than a frequency of the circuit: ±0.5 decades of magnitude carries 74.07% of the integral's weight, and what is left out is the tail of a logarithm.
Fig. 4 And half a decade, which captures three quarters of the weight and is 7.90° out. Notice that the recovery is always short: leaving out the tails of a positive-slope curve leaves out phase lead, so a truncated recovery under-reports the phase rather than scattering it.

The networks the magnitude cannot see

The second curve in the figure is the same lead network followed by a first-order all-pass — a network whose magnitude is exactly one at every frequency and whose phase runs from zero to −180°.

The all-pass here is built as 2vCvin2v_C - v_{\mathrm{in}}, from an RC low-pass and two dependent sources, which is (1sRC)/(1+sRC)(1-sRC)/(1+sRC) exactly and therefore of unit magnitude by construction rather than by adjustment. There is a buffer in front of it, and it matters: without one, the all-pass’s input resistor loads the lead network and the two magnitudes are no longer the same response at all. The first version of this figure measured them 35% apart and the difference was entirely that.

With the buffer, the two networks’ magnitudes agree to the last bits of a double — the worst relative difference over sixteen decades and 1,601 sampled frequencies is 101510^{-15} — while their phases differ by as much as 180°.

So no procedure that reads only the magnitude can tell them apart. The reconstruction lands on the minimum-phase network and is wrong about the other by exactly the all-pass’s own phase, which is not an error: that difference is the definition of excess phase. A network’s phase is its minimum-phase part, which the magnitude determines, plus an excess part, which the magnitude cannot see at all.

An all-pass of Q = 2: no magnitude anywhere, and a delay with a peak. computed by solving, not by drawing across six decades. The magnitude is 1 to within 9e-16 at every frequency tested, so this section cannot change any filter's magnitude response. Its phase falls through 360° — twice what its pole pair alone would give, because its zeros are the mirror image of its poles — and its group delay peaks at 1290.5 µs at 981 Hz. That peak is the only tool available for flattening somebody else's delay curve, and it is made of delay.
Fig. 5 An all-pass on its own, from the filters field. Flat magnitude, and a phase that runs through 360° for the second-order section drawn here. Everything it does is invisible to a magnitude measurement, which is the whole of why it is useful and the whole of why the recovery above cannot include it.
One magnitude curve, two phase curves, and the one of them the magnitude decides. computed by solving, not by drawing. A passive lead network — a resistor with a capacitor across it, over a second resistor, its zero at 1.00 kHz — and the same network followed by a first-order all-pass. The two magnitudes agree to the last bits of a double at every one of the 1601 frequencies sampled, and the phases differ by as much as 180°. Bode's gain–phase integral, fed the magnitudes alone with their phases discarded, returns 39.25° at the corner against a solved 39.29°, and tracks the minimum-phase curve to 0.77° across the band — while being wrong about the second network by the all-pass's own phase, which is what excess phase means. The edge here is the span of the sweep rather than a frequency of the circuit: ±1.5 decades of magnitude carries 97.44% of the integral's weight, and what is left out is the tail of a logarithm.
Fig. 6 A span of a decade and a half either side, which carries 97.44% of the weight in the integral. The recovered phase is 39.25° against the network’s 39.29° at the corner, with a worst gap of 0.77° across the band. The networks the magnitude cannot see are the all-pass ones, and none of them is in this integral at all.

Why there is a relation at all

It is worth saying where the integral comes from, because it is not a fact about circuits.

A network’s transfer function H(s)H(s) is analytic in the right half of the complex plane for the plainest possible reason: a response that started before its cause would need a pole there. Analytic functions are not free to have arbitrary real and imaginary parts — Cauchy’s theorem ties the two together — and applying that to lnH=lnH+jφ\ln H = \ln|H| + j\varphi relates the log-magnitude and the phase. Bode’s integral is that relation written for a logarithmic frequency axis.

Two consequences follow immediately and neither is obvious from the circuit.

The relation is about causality, not about components. The same integral holds for a refractive index and its absorption, where it is called the Kramers–Kronig relation and is used for exactly the same purpose: measure one, infer the other. Nothing in the derivation knows what a resistor is.

The zeros are the loophole. lnH\ln H is analytic in the right half-plane only if HH has no zeros there — a zero of HH is a pole of lnH\ln H. So a right-half-plane zero is precisely the thing that breaks the tie, which is why “minimum-phase” is defined by where the zeros are and not by anything one can see on a plot.

That is also why the loophole cannot be closed by measuring more carefully. The magnitude of a network with a right-half-plane zero is identical to the magnitude of the network with that zero mirrored into the left half-plane, and the two are different circuits with different phases. There is no additional magnitude information anywhere to distinguish them, at any frequency, to any precision.

Which real networks are minimum-phase, and which are not

The name is not a description of behaviour; it is a statement about where the zeros are. A network is minimum-phase when all of its transfer function’s zeros are in the left half-plane, and it is called that because among all networks with a given magnitude it is the one with the least phase lag.

Ladders of passive elements are minimum-phase. Every filter in this collection’s filters field qualifies, which is why a filter’s phase can be read off its magnitude and why the group-delay figures there are not carrying independent information about the components.

A bridged or lattice structure need not be. The all-pass above is the extreme case, and a real lattice equaliser is the same idea applied on purpose.

Anything with a forward path that can cancel is not. A common-emitter stage has a right-half-plane zero at exactly the transconductance over the collector-base capacitance, produced by the signal arriving at the collector through the capacitance and through the transistor with opposite signs. Its phase is therefore more lagging than its magnitude implies — which is a stability problem and is invisible on a magnitude plot.

Anything with a delay in it is not. A propagation delay is esτe^{-s\tau}: unit magnitude, unbounded phase. A metre of cable in a feedback loop contributes nothing whatever to the magnitude and all of the phase that closes the loop the wrong way.

One magnitude curve, two phase curves, and the one of them the magnitude decides. computed by solving, not by drawing. A passive lead network — a resistor with a capacitor across it, over a second resistor, its zero at 1.00 kHz — and the same network followed by a first-order all-pass. The two magnitudes agree to the last bits of a double at every one of the 1601 frequencies sampled, and the phases differ by as much as 180°. Bode's gain–phase integral, fed the magnitudes alone with their phases discarded, returns 39.29° at the corner against a solved 39.29°, and tracks the minimum-phase curve to 0.00° across the band — while being wrong about the second network by the all-pass's own phase, which is what excess phase means. The edge here is the span of the sweep rather than a frequency of the circuit: ±4 decades of magnitude carries 99.99% of the integral's weight, and what is left out is the tail of a logarithm.
Fig. 7 Four decades: 99.99% of the weight, 39.29° recovered against 39.29°, worst gap 0.00°. Which real networks are minimum-phase is decided by whether they have right-half-plane zeros, and every ladder of passive components without a bridging path is.
One magnitude curve, two phase curves, and the one of them the magnitude decides. computed by solving, not by drawing. A passive lead network — a resistor with a capacitor across it, over a second resistor, its zero at 1.00 kHz — and the same network followed by a first-order all-pass. The two magnitudes agree to the last bits of a double at every one of the 1601 frequencies sampled, and the phases differ by as much as 180°. Bode's gain–phase integral, fed the magnitudes alone with their phases discarded, returns 39.29° at the corner against a solved 39.29°, and tracks the minimum-phase curve to 0.00° across the band — while being wrong about the second network by the all-pass's own phase, which is what excess phase means. The edge here is the span of the sweep rather than a frequency of the circuit: ±6 decades of magnitude carries 100.00% of the integral's weight, and what is left out is the tail of a logarithm.
Fig. 8 Six decades: 100.00% of the weight and no measurable gap anywhere. Across the spans drawn — 0.5, 1, 1.5, 3, 4 and 6 decades — the weight captured runs to 100% and the worst gap to zero, so the integral is not an approximation that improves; it is exact for a minimum-phase network and the only question is how much of the magnitude one has.

What this buys, and where it stops

The practical consequence is worth stating plainly, because it is the reason the relation is used rather than admired.

A magnitude measurement of a minimum-phase network is a complete measurement. If a network is known to be minimum-phase, its phase margin can be computed from a magnitude sweep, and a swept-magnitude instrument is very much easier to build than a phase-accurate one.

The rule of thumb is the same statement, done badly. Reading a slope off a plot and multiplying by ninety degrees is the constant-slope case, evaluated by eye. It is exactly right at a frequency where the slope is constant over the several decades the weight reaches, and near a corner — which is where a phase margin is read — it is not.

And it is wrong, silently, for anything that is not minimum-phase. The failure mode is the worst kind: a magnitude plot that looks fine, a phase margin computed from it that looks comfortable, and a loop that oscillates. The right-half-plane zero and the transport delay are the two common causes and neither appears on the magnitude at all.

Both causes are ordinary rather than exotic, and this collection meets each of them in a circuit nobody would flag. The frequency a device sets for itself finds a right-half-plane zero in a common-emitter stage — the plainest amplifier there is — arriving with the two picofarads between collector and base, and notes that the Miller approximation has no room for it at all while predicting 643 kHz against a solved 504. A magnitude sweep of that stage is a complete measurement of its magnitude and an incomplete measurement of the stage.

The staircase in time is the other cause in its purest form: a metre of cable is 4.83 nanoseconds during which the source has no information about what is on the far end. A delay has unit magnitude at every frequency and phase proportional to frequency without limit, so it is invisible to this integral by construction — and it is the reason a loop closed through any length of wire has a phase margin that no magnitude measurement of the loop can report.

The practical rule that follows is narrower than “check whether the network is minimum-phase”, which is not a question a bench can ask. It is this: the class is closed under series and parallel connection of passive elements and under feedback around them, and it is left by exactly three things — a delay, a controlled source with the wrong sign somewhere in its path, and an all-pass section somebody fitted on purpose. A network built only of resistors, capacitors, inductors and couplings is minimum-phase and the integral applies; anything containing a transistor, a length of transmission line or an equaliser needs the phase measured.

What would falsify it

The check the figure makes is unusually strong for this collection, because it is a comparison between two quantities that share no arithmetic at all. One route solves a matrix at 1,601 frequencies and takes the argument of a complex number. The other takes the magnitudes of those same solves, discards the arguments, and evaluates an integral whose weights come from a series expansion of a hyperbolic cotangent.

If the network were not minimum-phase, they would disagree by the excess phase — which is why the figure draws a non-minimum-phase network beside it and reports 180° of disagreement as a result rather than as a failure. If the sweep were too narrow, they would disagree by the truncated tails, which the slider walks from 7.90° down to nothing. And if the quadrature were wrong, they would disagree by a fixed fraction of a degree that does not move when the network changes — which is what the first version did, at 0.04°, until the weights were integrated rather than sampled.

Three ways to be wrong, three signatures, and all three are on the same axes.

What the relation is worth to the rest of the collection

A phase that is determined by a magnitude is not a curiosity about one network; it decides what several measurements elsewhere on this site are entitled to claim, and in two cases it explains a result that was otherwise a coincidence.

The straight lines, and where they are not the curve is the closest relative and the sharpest illustration. A two-slope sketch is a statement about a magnitude, and every reader who draws one also draws the phase sketch beside it — two decades wide, 45° at the corner — as though it were a second approximation. It is not a second approximation. Given the magnitude asymptotes, the phase is whatever the integral on this page returns, so a sketch that is 3.0103 decibels wrong at the corner has a phase error that follows from that and cannot be chosen independently. The two sketches are one sketch, and its two errors are one error.

The ideal amplifier, and where it stops being one is where the same identity does real work. An amplifier’s gain–bandwidth roll-off is minimum phase, so the lag it contributes at any frequency is not a second specification to be looked up — it is the magnitude specification restated. That is why the frequency that is not the formula can compute an oscillator’s frequency error from a gain–bandwidth ratio alone, and why the Q the amplifier decides finds a filter section’s quality factor high by exactly the fraction its pole frequency is low: two numbers moving together because there is only one number.

And the exception matters as much as the rule. Flat delay, bought with more delay is built entirely out of the class this integral cannot see — an all-pass section whose magnitude is one to 9×10169\times10^{-16} over six decades and whose phase does whatever the design asks. That is the 180° of disagreement in this essay’s own figure, put to use: the only way to change a filter’s delay without touching its magnitude is to leave the minimum-phase class, and everything that can be done inside the class is already decided by the magnitude somebody has already specified.

Which is the useful way to hold the relation. It is not a computational shortcut — a solver has both quantities and needs neither integral — but a statement about how many independent design decisions a network contains. Choosing a magnitude response chooses a phase response, so the two cannot be traded against each other, and a specification that asks for both is asking for one thing twice or for something impossible. The only way to get a third decision is to leave the class, which costs an all-pass section and its delay, and that is a purchase rather than an adjustment.

Part 1 on Minimum-phase

One argument about Minimum-phase, and one of 3 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down, the 8 sharing most with it of 11.

What this makes readable

Essays that name this one as a prerequisite.

The objects named here

The third axis, after the field and the idea: the things themselves, and every essay that touches each one.

All-passAsymptotic approximationBode plotExcess phaseGain phase relationGroup delayMinimum-phase