Where the models stop

The delay a chain adds

A chain of one-pole stages leaves its flat band as the square root of the number of stages, and it leaves its settling time faster: four stages take 10.0 time constants to settle within 1 per cent against one stage's 4.61, sixteen take 26.7 — 5.81 times one stage, where the frequency rule allows 4.02. The difference is a delay. The chain's step is the sum of N exponential lags, so it is an edge of mean N time constants and spread √N; the magnitude response sees only the spread. At a thousand stages the 1 per cent time is 1.074 of the delay. A chain budgeted to stay flat to 1 per cent settles to 1 per cent 45 per cent late.

Assumes: Every model has an edge · One step, computed twice

The edge of a chain found that stages each inside their own edge are not, together, inside theirs: the stages share one error budget. Four ×10 stages from a 1 MHz amplifier are 1 per cent from ideal at 7.06 kilohertz rather than the single stage’s 14.2, and the chain’s edge moves as the number of stages to the power minus a half, because each stage’s error grows as the square of the frequency. It closed on the chain in time: a cascade’s step settles to a tolerance more slowly than any stage’s, and settling time has its own law.

It has, and it is not the frequency edge’s law turned upside down. The magnitude response that edge was read from is a statement about how much of a sine gets through, and it is blind to when. A chain of stages delays as well as filters, and the delay adds up linearly with the number of stages while the filtering adds up as the square root. A step sees both. The result is that the chain’s settling time grows faster than its bandwidth shrinks, and a chain designed to the frequency rule is late.

A chain of identical one-pole stages: the time its step takes to settle within 1%, against the number of stages. computed by solving, not by drawing: the chain's step response is the Erlang distribution's, and its 1% settling bisected on it, held against a fourth-order march of the chain at one, four and sixteen stages. One stage settles in 4.61τ, the familiar ln 100; four in 10.0τ, sixteen in 26.7τ, a thousand and twenty-four in 1099.9τ. The frequency edge's rule, √N stretched by the bandwidth that holds 1% (faint), says sixteen stages need 4.02 times one stage's time; they need 5.81. For a long chain the settling time approaches the delay, N time constants (dashed): 1.074 of it at 1024 stages. For one stage (τ = 1.59 µs at 100 kHz) the 1% time is 7.33 µs.
Fig. 1 A chain of identical one-pole stages: the time its step takes to settle within 1 per cent, against the number of stages. One stage settles in 4.61 time constants, four in 10.0, sixteen in 26.7 and 1024 in 1,100. The frequency edge’s rule (faint) asks sixteen stages for 4.02 times one stage’s time; they need 5.81. For a long chain the settling time approaches the delay, N time constants (dashed): at 1024 stages it is 1.074 of it.

The chain, and its step in closed form

The chain is the amplifier chain of the earlier essay with its gain divided out: N identical stages, each a single pole at the closed-loop bandwidth, a hundred kilohertz for a ×10 stage from a 1 MHz amplifier, so a time constant of 1.59 microseconds. Each stage’s step response is 1−e−t/τ1 - e^{-t/\tau}, and a chain of N of them has a step response with a closed form that turns up far from circuits:

yN(t)=1−e−t/τ∑k=0N−1(t/τ)kk!.y_N(t) = 1 - e^{-t/\tau}\sum_{k=0}^{N-1}\frac{(t/\tau)^k}{k!}.

That is the cumulative distribution of the Erlang distribution — the time for N independent exponential waits to finish — and it is the chain’s step because each stage’s impulse response is an exponential delay and the chain’s is their convolution. The settling time to a tolerance is the time after which 1−yN1 - y_N stays below it; the response rises without overshoot, so that is a single crossing and it is bisected.

The second route is to march the chain: N first-order lags in a row, each one’s output the next one’s input, stepped forward by fourth-order Runge–Kutta from rest, with the settling time read off the last stage’s trace. At one, four and sixteen stages the march and the closed form agree to two parts in a thousand, which is the march’s own resolution. Above sixteen the closed form is the only practical route, and it has to be evaluated in logarithms: at a thousand stages e−t/τe^{-t/\tau} and (t/τ)k/k!(t/\tau)^k/k! underflow and overflow long before their product does, and summed directly they report a thousand stages settling in 745 time constants — before their own delay, which no chain can do.

The frequency rule, and how far short it falls

One stage settles within 1 per cent in ln⁡100=4.61\ln 100 = 4.61 time constants, 7.33 microseconds. Two take 6.64, four 10.0, sixteen 26.7. The frequency edge’s rule for the same chain says that N stages stay within 1 per cent of flat up to a frequency smaller than one stage’s by ((1.01)2/N−1)/((1.01)2−1)\sqrt{((1.01)^{2/N} - 1)/((1.01)^2 - 1)}, which for sixteen stages is a factor of 4.02. Read as a time — a slower edge settles proportionally later — it would put sixteen stages at 4.02 times one stage’s settling. They take 5.81.

The gap grows with the chain. At four stages the frequency rule says 2.01 and the step needs 2.18; at sixteen, 4.02 against 5.81; and the hero figure’s long chains show where it ends up. A thousand and twenty-four stages take 1,100 time constants to settle, where the frequency rule would allow about 148: the settling time is heading not for N\sqrt N times one stage’s but for N time constants, the chain’s delay.

The delay the magnitude cannot see

The step responses of chains of one, two, four, eight and sixteen identical one-pole stages. computed by solving, not by drawing: the Erlang step responses. Each added stage delays the response by one time constant and widens its rise: the 10–90% rise is 2.20τ, 3.36τ, 4.94τ, 7.11τ, 10.2τ. Each reaches 99% at 4.61τ, 6.64τ, 10.0τ, 16.0τ, 26.7τ (dots). The curves are the same shape slid to the right and stretched, and the slide is what a magnitude edge cannot see.
Fig. 2 The step responses of chains of one, two, four, eight and sixteen identical one-pole stages. Each added stage delays the response by one time constant and widens its rise: the 10–90 per cent rise is 2.20, 3.36, 4.94, 7.11 and 10.2 time constants. Each reaches 99 per cent at 4.61, 6.64, 10.0, 16.0 and 26.7 (dots).

The step responses show the two things a chain does to an edge. Each added stage slides the edge one time constant to the right — the centre of each curve is at N time constants — and each widens it, so that the 10–90 per cent rise goes from 2.20 time constants for one stage to 10.2 for sixteen. The widening is what the frequency edge measured: a slower rise is a narrower band. The slide is what it could not measure, because a pure delay has a magnitude of exactly one at every frequency and changes no magnitude response at all.

The delay that is a centre of mass found that a filter’s group delay at zero frequency is exactly the centroid of its impulse response. Each stage here contributes one time constant of that centroid, so N stages contribute N, and the centroid of the chain’s impulse response sits at NτN\tau whatever else happens. The settling time cannot be less than about that, because the response cannot have settled before most of its impulse response has arrived. That is a floor linear in N, and the frequency rule’s N\sqrt N has nothing to say about it.

A delay that adds and a spread that adds in quadrature

The Erlang distribution has a mean of NτN\tau and a standard deviation of N τ\sqrt N\,\tau, and for many stages it becomes a normal distribution with those two numbers. That turns the chain’s step into something that can be read off a table.

The spread of a chain's step: its 10–90% rise and its 1% settling beyond the delay, each divided by √N. computed by solving, not by drawing. The rise over √N goes from 2.197 for one stage to 2.563 at 1024, approaching 2.563 — twice the normal distribution's 90th percentile — and the settling beyond N time constants, over √N, from 3.605 to 2.372, approaching 2.326, its 99th. A chain's step is a sum of N independent exponential delays, so it tends to a normal edge of mean Nτ and spread √N τ: the delay adds, the spread adds in quadrature.
Fig. 3 The chain’s 10–90 per cent rise, and its 1 per cent settling beyond the delay of N time constants, each divided by the square root of N. The rise goes from 2.197 for one stage to 2.563 at 1024 — twice the normal distribution’s 90th percentile — and the settling beyond the delay from 3.605 to 2.372, approaching 2.326, the normal distribution’s 99th percentile.

The rise over N\sqrt N climbs from 2.197 time constants for one stage — the single exponential’s ln⁡9\ln 9 — to 2.563 at a thousand stages, which is twice the 90th percentile of a normal distribution, 2 × 1.2816. And the settling time beyond the delay, divided by N\sqrt N, falls from 3.605 for one stage to 2.372 at a thousand, approaching 2.326, the normal distribution’s 99th percentile. So for a long chain the 1 per cent settling time is very nearly Nτ+2.326N τN\tau + 2.326\sqrt N\,\tau: a delay that adds stage by stage and a spread that adds in quadrature, exactly as the times of N independent waits do.

That is the whole law, and it explains the hero figure’s shape. For a few stages the spread term dominates and the settling time grows roughly as N\sqrt N; for many the delay dominates and it grows as N; in between it follows neither, and a power law fitted across one to sixteen stages returns whatever exponent the mixture gives.

Why the spread is a square root

The square root in the spread has the same origin as every other square root in measurement. Each stage’s impulse response is an exponential delay of mean τ\tau and variance τ2\tau^2, and the chain’s impulse response is the distribution of the sum of N such delays. Means add, so the chain’s centroid is at NτN\tau; variances add, so its spread is N τ\sqrt N\,\tau. The window the square-root law has found that averaging N readings divides the noise by N\sqrt N only when the readings are independent, and here the condition holds by construction, because the stages are buffered and each one’s delay is its own.

The normal limit then follows from the central limit theorem, and the hero figure shows how slowly it arrives. At sixteen stages the 1 per cent time is 26.7 time constants against the normal estimate’s 16+2.326×4=25.316 + 2.326 \times 4 = 25.3; at a thousand it is 1,100 against 1,098. The approach is slow because an exponential delay is skewed, with a long tail on the late side, and the skew of a sum of N falls only as 1/N1/\sqrt N. A tight tolerance is read in exactly that tail, which is why the tolerance figure’s exponents are lowest where the tail matters most.

The exponent depends on the tolerance

How settling time grows with the number of stages, as an exponent, against the tolerance it settles to. computed by solving, not by drawing: the settling time of chains of one to sixteen stages fitted to a power of N at each tolerance. 10%: 0.803, 3%: 0.701, 1%: 0.638, 0.3%: 0.586, 0.1%: 0.549, 1e-4: 0.489, 1e-5: 0.444, 1e-6: 0.410. A tight tolerance gives a long single-stage tail, ln(1/ε), and the chain's extra delay is a smaller fraction of it; a loose one is reached on the chain's rising edge, which the delay moves directly. The frequency edge's exponent was ½ at 1%; in time it is 0.638, and only near a part in ten thousand is it ½.
Fig. 4 The exponent of settling time in the number of stages, fitted over one to sixteen stages, against the tolerance. At 10 per cent it is 0.803; at 1 per cent 0.638; at 0.1 per cent 0.549; at a part in ten thousand 0.489; at a part per million 0.410. The frequency edge’s exponent at 1 per cent was a half.

The exponent is not a property of the chain alone. Settling to ten per cent, a chain’s time grows as N to the 0.803; to one per cent, 0.638; to a part in ten thousand, 0.489; to a part per million, 0.410. A loose tolerance is reached on the rising edge, which the delay moves directly, so the delay’s linear growth shows strongly. A tight tolerance is reached deep in the tail, and a single stage’s tail is already long — ln⁡(1/ε)\ln(1/\varepsilon) time constants, 13.8 for a part per million — so the chain’s extra delay is a smaller fraction of the total and the exponent falls. Over one to sixteen stages, only near a part in ten thousand does the time-domain exponent happen to equal the frequency edge’s half.

A boundary is a model and a tolerance found that every edge is computed from a fraction of error nobody states, and that the edge’s dependence on the tolerance is its own exponent. The chain in time adds a second dependence: the tolerance does not only move the edge, it changes how the edge scales with the number of stages. A specification that quotes settling “to within 1 per cent” and one that quotes “to 16 bits” are not the same measurement scaled.

What a designer has to give each stage

The useful form of all this is a bandwidth budget. If a chain of N stages must settle as fast as one stage would, every stage’s bandwidth must rise by the ratio of the chain’s settling time to one stage’s.

The bandwidth each stage of a chain needs for the chain to settle as fast as one stage, against the number of stages. computed by solving, not by drawing: the settling times' ratio, which is the factor every stage's bandwidth must rise by. To settle within 1% in one stage's time, sixteen stages need 5.81 times the bandwidth each, four need 2.18; within 0.01%, 3.83 and 1.73. The frequency edge's rule for staying 1% flat asks for 4.02 and 2.01 (faint): a chain budgeted in frequency settles late in time at 1%, by 45 per cent at sixteen stages.
Fig. 5 The bandwidth each stage of a chain needs for the chain to settle as fast as one stage, against the number of stages. Within 1 per cent, sixteen stages need 5.81 times each and four need 2.18; within 0.01 per cent, 3.83 and 1.73. The frequency edge’s rule for staying flat to 1 per cent asks for 4.02 and 2.01: a chain budgeted in frequency settles to 1 per cent 45 per cent late at sixteen stages.

To settle within 1 per cent in one stage’s time, four stages need 2.18 times the bandwidth each and sixteen need 5.81. The frequency rule, which keeps the chain flat to 1 per cent, asks for 2.01 and 4.02. A designer who gives each stage the bandwidth the flatness rule demands and expects the chain to settle in one stage’s time is 45 per cent late at sixteen stages. At a tolerance of 0.01 per cent the same budget asks for less — 1.73 and 3.83 — because the single stage’s own tail is long and the chain’s delay a smaller part of it.

In the example the earlier essay used, a single ×10 stage from a 1 MHz amplifier settles to 1 per cent in 7.33 microseconds. Four such stages, to settle in the same time, need amplifiers of 2.18 MHz; sixteen need 5.81 MHz. A data acquisition chain of input buffer, gain stage, filter and driver is four stages, and its settling budget is two and a fifth times what any one of them would need alone.

Chains this subject already contains

The law applies wherever a signal passes through stages that each delay it, and several of the subject’s own objects are such chains. A filter built as a cascade of sections is one: the corner error a filter hides in its sections found the sections’ individual errors cancelling in the magnitude, and in time the sections’ delays do not cancel at all. A converter’s input path is another: a buffer, a gain stage, an anti-alias filter and a driver, each comfortably fast alone. Settling to half a least significant bit of sixteen bits is a tolerance of 7.6 parts per million, where one stage needs 11.8 time constants, two need 14.5, four need 19.0 and eight need 26.5 — 1.61 times one stage’s time for four stages, a smaller factor than at 1 per cent because the tail dominates, and still a factor nobody gets by reading each stage’s data sheet alone.

A stage that rings is the case the law does not cover, and it is where the cliff before the fastest settling lives: a second-order stage’s settling time jumps discontinuously with its damping, because the last excursion outside the tolerance band appears or disappears whole. A chain of such stages inherits a cliff from each, and where the cliffs of different stages fall decides the chain’s settling as much as their delays do.

The delay inside a loop

A chain’s delay matters most when the chain sits inside a feedback loop, because there the delay is not a lateness but a phase. Each stage contributes arctan⁡(f/fb)\arctan(f/f_b) of lag at a frequency ff, so N stages contribute N times that, and far below their bandwidth the total is very nearly 2πfNτ2\pi f N\tau — the phase of a pure delay of NτN\tau. A loop that crosses unity at a tenth of the stages’ bandwidth loses 5.7 degrees of margin to each stage, 23 to four of them and 91 to sixteen. What is left at crossover measured a loop’s margin as the phase remaining where its gain reaches one; a chain in the loop takes that phase linearly in its length, where the flatness it costs grows only as the square root.

So the two readings of a chain diverge furthest where it matters most. Measured as a flat band, sixteen stages are four times narrower than one. Measured as a phase at a fixed frequency, they are sixteen times worse. A designer who reads a chain’s magnitude response and judges it fast enough to sit inside a loop has read the half of the chain that grows slowly.

What the closed form assumes

Every stage is a single real pole with no overshoot, identical to the others and buffered from them. Real amplifier stages have second poles and overshoot, and an overshooting stage’s step settles later than its time constant suggests while also being partly corrected by the next; a chain of overshooting stages can settle faster or slower than this law, according to whether the overshoots reinforce. Stages of unequal bandwidth have a delay equal to the sum of their time constants and a spread equal to the root of the sum of their squares, which is the same law with the slowest stages carrying most of the spread.

And the settling here is linear. A stage that slews on a large step adds a delay proportional to the step’s size, a nonlinear term on top of the linear delay; how long a large step takes to settle measured it for one amplifier, and the step that is too big found where it begins. In a chain only the stages that see a large step slew, which is usually the last, since the earlier ones carry the signal before the gain.

The number to keep

A chain of N identical one-pole stages has a step that is the Erlang distribution’s, with a delay of N time constants and a spread of N\sqrt N. Its 1 per cent settling time is 4.61 time constants for one stage, 10.0 for four and 26.7 for sixteen, and tends to Nτ+2.326N τN\tau + 2.326\sqrt N\,\tau. Over one to sixteen stages it grows as N to the 0.638 at 1 per cent, against the frequency edge’s half; for sixteen stages to settle as fast as one, each needs 5.81 times the bandwidth, where the flatness rule gives 4.02.

Still open: unequal stages, a stage that overshoots, and errors that cancel

Unequal stages. A chain whose stages have different bandwidths has a delay that is the sum of its time constants and a spread that is the root of their squares. Which stage to make fastest, for a fixed total of bandwidth, is a budget question with a closed answer in the normal limit and an Erlang-like one for a few stages, and the two may not agree.

A stage that overshoots. A second-order stage with a little overshoot settles a single step later than its rise suggests, but in a chain its overshoot is filtered by the next stage. Whether a chain of slightly underdamped stages settles faster than the same chain of single poles of equal bandwidth is the measurement that would decide how the chain’s stages should be compensated.

Errors that cancel. A chain that alternates stages whose amplitude errors have opposite signs can be flatter than any of its stages, which the frequency edge would reward. In time the delays do not cancel; whether a flatter chain also settles faster is the comparison that would say which of the two edges a designer can trade against the other.

Part 7 on model edges

One argument about Model edges, and one of 8 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

Where a chain of 4 stages stops obeying its model, against where one stage does. computed by solving, not by drawing. amplifier, 1%: one stage 14.2 kHz, 4 stages 7.06 kHz, a ratio of 0.498; Kirchhoff, 1°: one stage 3.97 MHz, 4 stages 993 kHz, a ratio of 0.250; small-signal, 1%: one stage 7.30 mV, 4 stages 7.26 µV, a ratio of 0.000995. The amplifier's edge moves as N to the −½ because its error grows as the square of frequency; the board's as N to the −1 because a phase grows in proportion; and the small-signal edge collapses, because the last stage sees the gain of all the others. The edge of a chain Part 6 — A system built from stages that are each inside their own edge is not inside its own: the stages share one error budget. Four ×10 stages from a 1 MHz amplifier are 1% from ideal at 7.06 kHz, not at the single stage's 14.2 kHz — the edge moves as N to the −0.502. A signal path through four ten-centimetre boards is a degree long at 993 kHz, a quarter of one board's edge, as N to the −1. The chain's exponent is minus the edge's own exponent in its tolerance, measured on the line y = −x. And the small-signal edge of a chain with gain belongs to its last stage: four junction stages of ten are 1% off at 7.26 µV, a thousandth of one stage's 7.30 mV. Eight stages of damping 0.8 against eight one-pole stages of the same bandwidth: settled within 1% at 18.75τ against 16.00τ, with 2.02% of overshoot. computed by solving, not by drawing: the step of eight identical second-order stages of damping ζ = 0.8, each with its half-power bandwidth at ω = 1, marched (solid), against eight one-pole stages with the same bandwidth from the closed Erlang step (dashed). Within 1% at 18.75τ against 16.00τ, the overshoot being 2.02% and each stage's delay 1.393 against one. At ζ = 1 the march agrees with the Erlang step of order sixteen. The stage that overshoots a little Part 8 — A stage with a little overshoot settles sooner than a one-pole stage of the same bandwidth, 3.53 time constants against 4.61 within one per cent, and a chain of them should do better still, since a stage at the right damping adds almost no spread. It does not. The saving is 17 per cent at two stages, 11 at four and 2 at eight, and at sixteen the chain is 5 per cent slower than the one-pole chain, because a stage's extra delay adds as the number of stages and the spread it removes adds only as the root. The best damping stays near 0.83 at every length, just short of letting the overshoot out of the band. In frequency the same stages are five times flatter at their best, at a different damping, and so the two edges of a chain ask for two different stages.

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

The objects named here

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

Design tradeoffGain–bandwidth productGroup delayModel rangePower law fitRise timeSettling timeStep response