Frequency, which is the same solve

The straight lines, and where they are not the curve

Two straight lines through a corner is the most-used approximation in this subject and almost the only one with no number attached. It has one, and it is exact: at a single real pole the sketch is 3.0103 decibels high at the corner and nowhere worse, and its error is the same a factor above the corner as the same factor below — a symmetry the construction does not suggest. A pole pair has no such bound at all, and the best any two-slope sketch can do on one is 0.770 decibels, at a quality factor of 0.9152.

Assumes: One solve, read four ways · Resonance, and the bandwidth it sets exactly

Almost every response in this subject gets sketched before it gets computed. Flat, then falling at twenty decibels a decade past the corner; a second corner, forty; a zero, back to twenty. The construction is so cheap and so useful that it has outlived the slide rule it was invented for, and it is a model like any other model here, which means it has a range and the range has a number.

The number turns out to be exact, and the exactness is worth the essay on its own.

A pair at Q = 0.7071: the sketch is -3.01 dB out at the cornercomputed by solving, not by drawing. The solved magnitude against the two straight lines that stand in for it. At a conjugate pair the error at the corner is 20 log Q = -3.010 dB, which is unbounded in both directions, and the worst error anywhere is 3.010 dB at 1.00× the corner. No damping brings it inside 0.770 dB: that is the minimax, at Q = 0.9152, where the corner error and an interior maximum are equal.-60-40-200201101001k10k100k1Mfrequency (hertz)gain (decibels), and the sketch that stands in for it-3.010 dB at the cornerworst 3.010 dBpolesa pair at Q = 0.7071error at the corner-3.0104 dBclosed form20 log Q = -3.0104worst error anywhere3.0104 dBand where1.000× the cornerone decade out0.0004 dBbest any pair can do0.7698 dBat a damping ofQ = 0.9152solved, then checked — the sketch against the solve0.77 dB is the best any pair allows
Fig. 1 The solved magnitude of a second-order response against the two straight lines that stand in for it, with the error at the corner marked. The slider is the quality factor of the pole pair, and what it moves is not only the size of the error but where the worst of it is.

One real pole: three decibels, and never more

Take a resistor and a capacitor. The asymptotic sketch is a horizontal line at unity up to f0=1/2πRCf_0 = 1/2\pi RC and a line falling at twenty decibels a decade after it. The true magnitude is 1/1+(f/f0)21/\sqrt{1 + (f/f_0)^2}.

At the corner the true value is 1/21/\sqrt2 and the sketch says 11, so the sketch is high by

20log102=10log102=3.0103 dB20\log_{10}\sqrt2 = 10\log_{10}2 = 3.0103\ \text{dB}

which the figure asserts against the solved network to nine decimal places. That is the whole of the one-pole answer, because the error is largest at the corner and falls away on both sides.

The measured departures are 0.969 dB at twice the corner, 0.458 dB at three times, 0.170 dB at five times and 0.0432 dB at ten. So a decade away from a corner the sketch is right to a twentieth of a decibel, which is better than most measurements of a real circuit, and the whole of the approximation’s badness is packed into about a decade either side of each corner.

The symmetry, which the construction does not suggest

Look again at those numbers, and then at the same distances on the other side.

At half the corner the error is 0.969 dB. At a third, 0.458. At a fifth, 0.170. At a tenth, 0.0432. They are the same numbers, and not approximately — the figure asserts the pairs agree to 10910^{-9} dB across four factors.

That is not obvious from the construction. Above the corner the sketch is a sloping line and the true curve is asymptotic to it; below the corner the sketch is a horizontal line and the true curve is asymptotic to that. Two different geometries, and the same error. The reason is that the magnitude in decibels,

10log10 ⁣(1+(f/f0)2),-10\log_{10}\!\left(1 + (f/f_0)^2\right),

minus the sketch, is an even function of log(f/f0)\log(f/f_0): substitute ff02/ff \to f_0^2/f and the expression maps to itself. The corner is a mirror.

It has a practical consequence that is used constantly and derived rarely. Anyone reading a gain margin or a crossover frequency off a sketch is making an error that depends only on how many corners are nearby and how far, and the “how far” is symmetric — so a corner just below the frequency of interest is exactly as bad as one the same factor above it, and the two do not cancel, they add.

One pole: the sketch is 3.0103 dB above the response at the corner and nowhere worse. computed by solving, not by drawing. The solved magnitude against the two straight lines that stand in for it. At one real pole the construction is exactly 10 log 2 = 3.0103 dB above the solved response at the corner, and its error is an even function of log frequency about that corner — 0.4576 dB at three times the corner and the same at a third of it. A decade out it is 0.0432 dB.
Fig. 2 The one-pole case on its own. The error is 3.0103 dB at the corner, 0.969 dB at twice it and at half it, and 0.0432 dB a decade out in either direction. Inside a tenth of a decibel the sketch is right from 0.153 times the corner to 6.55 times it, which is the same interval read from both ends.
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. 3 The response the sketch is a sketch of, from the essay that opened this field. One solve read four ways: the magnitude that the straight lines approximate is one of the four, and the phase they also approximate is another.

The phase asymptote is exact where the magnitude one is worst

The phase gets a straight-line construction too — zero up to a tenth of the corner, ninety degrees past ten times it, and a straight line between them on a logarithmic axis — and it behaves in exactly the opposite way.

At the corner the true phase is 45°-45° and the straight line is at its midpoint, which is 45°-45°. The construction is exact there, to the last bits of the arithmetic. Its worst error is at the two ends: 5.7106°5.7106° at a tenth of the corner and the same at ten times it, with the sign reversed.

So the two constructions have their errors in disjoint places. The magnitude sketch is worst at the corner and negligible a decade away; the phase sketch is exact at the corner and worst a decade away. That is a useful thing to hold, because a stability reading takes the magnitude from one place and the phase from another, and knowing which of the two is trustworthy where is the difference between a margin read to a degree and a margin read to ten.

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.24° 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: ±2 decades of magnitude carries 99.19% of the integral's weight, and what is left out is the tail of a logarithm.
Fig. 4 The stronger statement about the same pair. For a minimum-phase network the phase is not independent of the magnitude at all — it is recoverable from it by an integral — so the two sketches are two approximations to one object, and their errors are not independent either.

A pole pair has no bound

Everything above concerns a real pole. The moment two poles become a conjugate pair the situation changes in kind, not in degree.

The asymptotic sketch of a second-order lowpass is flat, then falling at forty decibels a decade past f0f_0, and it says nothing about the damping because the damping does not appear in either asymptote. The true magnitude at f0f_0 is exactly QQ. So the sketch’s error at the corner is

20log10Q20\log_{10} Q

which the figure asserts against the solve at every value of the slider, and which is unbounded in both directions. At Q=10Q = 10 the sketch is twenty decibels low. At Q=0.3Q = 0.3 it is ten and a half decibels high. There is no worst case at all: the same two straight lines describe a response that peaks by forty decibels and one that is nearly critically damped, and the construction cannot tell them apart because neither asymptote contains the information.

A pair at Q = 10: the sketch is 20.00 dB out at the corner. computed by solving, not by drawing. The solved magnitude against the two straight lines that stand in for it. At a conjugate pair the error at the corner is 20 log Q = 20.000 dB, which is unbounded in both directions, and the worst error anywhere is 20.000 dB at 1.00× the corner. No damping brings it inside 0.770 dB: that is the minimax, at Q = 0.9152, where the corner error and an interior maximum are equal.
Fig. 5 A pole pair at a quality factor of ten, where the sketch is 20.00 dB below the response at the corner and the two asymptotes are unchanged from the case below. Nothing in the construction knows the difference.
A pair at Q = 0.3: the sketch is -10.46 dB out at the corner. computed by solving, not by drawing. The solved magnitude against the two straight lines that stand in for it. At a conjugate pair the error at the corner is 20 log Q = -10.458 dB, which is unbounded in both directions, and the worst error anywhere is 10.458 dB at 1.00× the corner. No damping brings it inside 0.770 dB: that is the minimax, at Q = 0.9152, where the corner error and an interior maximum are equal.
Fig. 6 And at 0.3, where it is 10.46 dB above. The two panels are the same two straight lines drawn over two responses that differ by thirty decibels at the corner.

The best a pair allows, which is not zero

If the error at the corner is 20logQ20\log Q, then Q=1Q = 1 makes it vanish, and it is tempting to stop there. The figure does not, because the corner is not where the worst error is once QQ is above about 0.93.

At Q=1Q = 1 the corner error is exactly zero and the worst error anywhere is 1.249 dB, at 1.413 times the corner. The curve crosses the sketch at the corner and departs from it on the skirt, where the true response is still falling more slowly than forty decibels a decade.

So the honest question is the minimax: over all QQ, what is the smallest the worst error can be made? The figure golden-sections it on the solved response and gets

Q=0.9152,worst error 0.7698 dB at 1.576f0Q^\star = 0.9152, \qquad \text{worst error } 0.7698\ \text{dB at } 1.576 f_0

and the two errors are equal there — 20log10(0.9152)=0.77020\log_{10}(0.9152) = -0.770 dB at the corner, and +0.770+0.770 dB at 1.576 times it. An equal-ripple condition, arrived at by a search that knew nothing about equal ripple.

There is therefore no damping at which a two-slope sketch of a pole pair is inside three quarters of a decibel. The Butterworth pair that every reader has met, at Q=0.7071Q = 0.7071, is 3.0103 dB out at its own corner — numerically the same as one real pole, and for a different reason, which is a coincidence worth noticing and not reading anything into.

The band of damping over which the sketch is inside two decibels everywhere is 0.794<Q<1.1290.794 < Q < 1.129, and inside three decibels, 0.708<Q<1.3050.708 < Q < 1.305. Outside that the sketch is not a description of the response; it is a description of where the response is going.

A pair at Q = 0.5: the sketch is -6.02 dB out at the corner. computed by solving, not by drawing. The solved magnitude against the two straight lines that stand in for it. At a conjugate pair the error at the corner is 20 log Q = -6.021 dB, which is unbounded in both directions, and the worst error anywhere is 6.021 dB at 1.00× the corner. No damping brings it inside 0.770 dB: that is the minimax, at Q = 0.9152, where the corner error and an interior maximum are equal.
Fig. 7 A quality factor of a half. The asymptotes are 6.021 dB out at the corner and that is the worst anywhere — the error is exactly 6 dB, because at Q = 0.5 the pair is two coincident real poles and each contributes its own 3.01 dB.
A pair at Q = 3: the sketch is 9.54 dB out at the corner. computed by solving, not by drawing. The solved magnitude against the two straight lines that stand in for it. At a conjugate pair the error at the corner is 20 log Q = 9.542 dB, which is unbounded in both directions, and the worst error anywhere is 9.651 dB at 0.96× the corner. No damping brings it inside 0.770 dB: that is the minimax, at Q = 0.9152, where the corner error and an interior maximum are equal.
Fig. 8 A quality factor of three: the asymptotes are 9.542 dB out at the corner and 9.651 dB out at 0.96 times it — the worst point is no longer at the corner. The best a pair allows, which is not zero, is at Q = 1/√2, where the error at the corner is 3.01 dB; there is no quality factor at which straight lines are the curve.

Several corners at once, and why the errors add

A real response has more than one corner, and the sketch is built by adding straight-line segments, so the errors add too — but only in the ordinary sense of adding, which is worth saying because there is a tempting wrong version.

Two well-separated real poles, a decade apart, give a sketch that is 3.0103 dB out at the first corner plus whatever the second corner contributes there, which by the numbers above is 0.0432 dB. So the error at the first corner is 3.054 dB rather than 3.010. A decade of separation is enough to treat the corners independently to better than a twentieth of a decibel.

Two coincident real poles are the other extreme: the sketch is flat then falling at forty decibels a decade, and the error at the corner is exactly 2×3.0103=6.0212 \times 3.0103 = 6.021 dB, because the magnitudes multiply and the decibels add. That is also, exactly, 20log10Q20\log_{10} Q for Q=0.5Q = 0.5 — which is what a coincident real pair is. The pair formula and the repeated-pole formula are the same statement, and the figure runs continuously between them as the slider crosses 0.5.

The tempting wrong version is to suppose that many corners make the sketch worse without limit. They do not, in the place it matters: on a falling skirt far from every corner the sketch converges on the response from both sides, and an eighth-order filter’s stopband asymptote is as good as a first order’s. The error lives at corners and stays there.

Where this costs something

The asymptotic sketch is used for three things, and it is dangerous in exactly one of them.

Reading a bandwidth. Safe. The corner is read as the intersection of the two lines, which is f0f_0 by construction, and the 3.01 dB is the difference between the intersection and the half-power point rather than an error in locating it. The two definitions coincide for a single real pole and the sketch gets the right one.

Reading a roll-off. Safe, and this is what the sketch is genuinely for. Twenty decibels a decade per pole is exact asymptotically and the approach is fast.

Reading a stability margin. Not safe, and this is where the whole of the error lands. A phase margin is read at the frequency where the loop gain crosses unity, and that frequency is read off the sketch’s sloping line. With a real pole a factor of two above crossover the lines cross unity at 500 Hz where the loop crosses at 455, 0.041 of a decade apart, and the margin they report is 2.10° short; with the pole a factor of two below, 2.00 kHz against 1.88 and 1.46° short. The worst a single real pole does is with crossover on the corner itself, where the lines report 45.00° for a loop that has 51.83°. For real poles the error is always on the safe side, for a reason the margin the straight lines report makes exact — and it stops being safe the moment a pole pair peaks.

And that is with a real pole. With a resonant pair near crossover the sketch’s error is 20logQ20\log Q and the crossover frequency it predicts can be wrong by a factor, which is not a correction but a different circuit.

What a sketch is still for

None of this is an argument against the construction. It is an argument for knowing its number, and the number is good news twice over.

Away from corners the sketch is excellent — a twentieth of a decibel a decade out — so for the question it is usually asked, which is “what is the slope here and roughly how much gain is left”, it is right to a precision nothing downstream can use. The subject’s habit of sketching first is well founded.

Near corners it is wrong by an amount that is completely known: 3.01 dB at a real one, 20logQ20\log Q at a pair, and an even function of log frequency about the corner in the first case. Those are corrections a reader can carry in their head, and carrying them turns a sketch that is wrong by an unknown amount into a sketch that is right to a fraction of a decibel.

What the construction cannot be repaired for is the resonant case, because the missing information is not a correction, it is a parameter. The two lines are the same for every QQ, and no annotation of them recovers a number they never contained. That is the boundary in its sharpest form: the asymptotic sketch is a model of the poles’ magnitudes and not of their angles, and everything it gets wrong is a consequence of the angle.

Which is why the parameter it discards is the one three fields of this collection spend their time measuring. Where the behaviour is written down is the statement in its general form: two numbers in the complex plane contain everything a second-order circuit will ever do, their distance from the origin is the natural frequency and the cosine of their angle is the damping — so a sketch that keeps the distance and discards the angle has kept the half that every design decision is made about. The cliff before the fastest settling shows how sharply that half matters: settling time against damping is not a smooth curve with a minimum but a step, falling by a third in one increment of five thousandths, with a design a hundredth of a damping ratio to the left of the optimum settling forty-eight per cent slower and looking no different. Two measurements of one margin is the same parameter read from a loop, where it is called a phase margin and inverted out of an overshoot to a tenth of a degree.

And the frequency field’s own resonance essay puts a number on the width of the region the sketch gets wrong. Resonance, and the bandwidth it sets exactly measures the half-power bandwidth as f0/Qf_0/Q to every digit the arithmetic has, so the band over which the two asymptotes are seriously in error is 1/Q1/Q of a decade wide and 20logQ20\log Q deep — narrow and tall at high Q, broad and shallow at low. A sketch is therefore worst exactly where it is smallest, which is why the error is easy to overlook on a plot and expensive in a design.

The other constructions quoted instead of solving

A straight-line construction 3.01 dB wrong at every corner it describes is one of three shortcuts this collection measures rather than repeats. A sum that is exact, and the estimate that is not is exact about one quantity and an estimate about another. The one current a constant is right at is a constant standing in for a logarithm. Where the behaviour is written down is where the curve this construction approximates is a pair of numbers, and The phase the magnitude already knows is the reading the construction handles worst.

What is checked

Four assertions, and each is made against the solve rather than against the expression it quotes.

That the one-pole sketch is 3.0103 dB above the response at the corner, to a part in a billion, computed as 10log10210\log_{10}2 and compared with a network solved at that frequency.

That the error is even in log frequency about the corner — the departures at kk times and 1/k1/k times the corner agreeing to 10910^{-9} dB at four values of kk. That is the claim of this essay that is least likely to be believed on sight and easiest to check.

That the pair’s corner error is 20logQ20\log Q at every setting of the slider, which is what makes the error unbounded rather than large.

And that no damping brings the worst error below three quarters of a decibel: the minimax found by golden section on the solved response, asserted to lie between 0.7 and 0.85 dB. That is the refusal that keeps the essay from being read as “and Q=1Q = 1 fixes it”.

The phase sketch, which is not a second approximation

Every reader who draws the two-slope magnitude sketch also draws the phase sketch beside it — nought degrees a decade below the corner, 45° at it, ninety a decade above, joined by a straight line on a logarithmic axis — and treats the two as independent approximations to two independent curves. They are not independent, and the phase the magnitude already knows is why: for a minimum-phase network the phase is fixed everywhere by the magnitude, through an integral that returns 39.289 degrees at a lead network’s corner against a solved 39.289 and tracks the whole curve to two hundredths of a degree.

Which means the magnitude sketch’s error and the phase sketch’s error are one error with two consequences. A sketch that is 3.0103 decibels high at the corner is a sketch of a magnitude curve that does not exist, and the phase belonging to the curve it does sketch is not the phase belonging to the real one. The two cannot be corrected separately, and improving the magnitude sketch — by rounding the corner, say — implies a particular improvement in the phase sketch whether or not anybody draws it.

That matters wherever the sketch is used to reason about stability rather than about response, which is most of the time. A phase margin is read at the frequency where the magnitude passes unity, so a sketch used for that purpose is being asked for both curves at once, at a frequency the sketch places by its own asymptotes. What is left at crossover is the reason the collection cuts the loop and measures instead: the definition is computable where the sketch is three decibels and some tens of degrees adrift, and the two errors reinforce rather than cancel — the sketch puts the crossover at the wrong frequency and reports the wrong phase there.

The pole pair is worse in the same way and for the same reason. Its magnitude error is 20logQ20\log Q and therefore unbounded, so its implied phase error is unbounded too, and the phase of a resonant pair turns through 180° over a band whose width is f0/Qf_0/Qresonance, and the bandwidth it sets exactly measures that width as exact to every digit the arithmetic has. A sketch that draws the phase transition over two decades is describing a pair with a quality factor of about a third, whatever the magnitude sketch above it says.

Part 1 on asymptotic approximation

One argument about Asymptotic approximation, and one of 5 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 12.

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.

Asymptotic approximationBode plotCorner frequencyDamping ratioGain marginModel rangeThe quality factorSecond-order approximation