Generator

A pair at Q = 0.7071: the sketch is -3.01 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 = -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.
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

Drawn above at its default parameters, which is almost never how an essay calls it. A placement states the numbers that essay is arguing about, so the figure a reader meets is about that argument rather than about the generator — 98% of the placements on this site pass one, and the phase that raised that number from 12% found eight captions describing a figure the page was not showing.

At those defaults the edge it states is 0.77 dB is the best any pair allows — the right-hand slot of the caption strip, which on this site is never used for anything else, and which is read back out of the drawing above rather than out of the code that wrote it. It belongs to Frequency, which is the same solve, which is to say a change to it is a change to lib/figures/frequency.js. It takes a slider on quality factor of the pole pair with 7 settings, and every one of them has passed the same assertions as the frame above — a figure whose circuit stops doing what its caption says at any setting stops the build.

Called by 6 essays

which is the blast radius of changing it

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.

Frequency, which is the same solve

The margin the straight lines report

A phase margin read off a sketch is read where the straight lines cross unity, and that is not where the loop does. For an integrator and one real pole the lines report 45.00 degrees on a loop that has 51.83 — short, and always short, because a real pole's response never rises above its asymptotes. A pair that peaks reverses the sign and removes the bound: at a quality factor of two the lines report 71.57 degrees on a loop that has no margin at all, and at five they report 82.41 on a loop that is unstable.

Frequency, which is the same solve

The Q the amplifier decides

A second-order section's quality factor is set by a capacitance ratio and its pole frequency by a product of four passive values, and neither expression contains the amplifier. Build it with one that has a gain-bandwidth a hundred times the corner — the usual rule — and the Q comes out 1.97 per cent high while the pole comes out 1.97 per cent low, the same number in both directions, and the number is the designed Q divided by the ratio. A fifth-order half-decibel Chebyshev built that way has 2.1 decibels of ripple.

Filters, measured not tabulated

The gain margin the straight lines get exactly wrong

A phase margin read off the straight lines is wrong by an amount that depends on where the loop crosses unity. A gain margin read off them is not: for an integrator and a pole pair the phase passes −180° at the pair's own frequency whatever the gain, and the lines are out there by exactly 20 log Q — 6.0206 dB for two real poles, 13.98 dB at a quality factor of five, at every integrator gain drawn. The stability condition for the loop turns out to be the same inequality: it is stable exactly when the gain margin the lines report exceeds that error.

Frequency, which is the same solve

The corner error a filter hides in its sections

The straight lines of an eighth-order Butterworth filter are 3.0103 dB out at the corner and nowhere worse — the same as one pole, at every order. The lines of the four sections it is built from are out by −5.85, −4.42, −0.92 and +8.17 dB there, which must add to the whole because the sections multiply. The whole sketch never gets worse with order and the worst section's error grows as 20 log(n/π). And the section the sketch misrepresents most is the one whose frequency error moves the filter most: 0.312 dB for one per cent, against the 0.173 dB any section's stopband shift gives.

Frequency, which is the same solve

The zero that lifts the lines

A phase margin read off the straight lines of an all-pole loop can only be short, and the proof takes three steps. A lead section breaks two of them: a zero's response lies above its lines, and between a zero and its pole the phase rises. The two breaks pull opposite ways, and measured across every placement of the crossing, in every sweep drawn, they leave an over-report of at most 6.58°, on a loop with 87.5°; on loops with sixty degrees or less it never exceeds 1.52°. The phase sketch is another matter: with the lines crossing at a lead zero above the plant's corner, it reports 17.91° on a loop with 1.17°.

Frequency, which is the same solve

Every generator