Feedback, and the margin

The ideal amplifier, and where it stops being one

An ideal operational amplifier's closed-loop gain is set by two resistors and nothing else — a horizontal line at every frequency. The real one is already a tenth of a per cent low at direct current, one per cent low by 1.35 kHz, and above 10 kHz has no loop gain left, at which point the ideal answer is not an approximation to anything.

The two golden rules of the ideal operational amplifier are that its input terminals draw no current and sit at the same potential. From those two statements every standard circuit follows in a line or two of algebra, and the answers are exact: an inverting amplifier’s gain is exactly the ratio of two resistors, a follower’s gain is exactly one, an integrator integrates exactly.

They are also two statements that no device satisfies, and the frequency at which the failure starts to cost something is computable from one number on the datasheet.

A gain of 100 asked of an amplifier with 1.00 MHz of gain–bandwidthThe ideal amplifier — a nullor, so the two golden rules exactly — holds 100 at every frequency. The real one is 0.10% low at direct current, 1% low by 1.35 kHz, and 3 dB down at 10.0 kHz. Above 10.0 kHz there is no loop gain left and the ideal answer is not an approximation to anything.010203040501101001k10k100k1Mfrequency (hertz)closed-loop gain (decibels)the ideal amplifier: two resistors, no frequencythe circuit+1% low at 1.35 kHz3 dB down at 10.0 kHzsolved, then checked — a nullor against a real devicethe ideal answer is 1% wrong above 1.35 kHz
Fig. 1 A gain of 100 asked of a nullor — the exact statement of the two golden rules — and of a three-element model of a real amplifier with a megahertz of gain–bandwidth. The ideal answer is horizontal. The real one is 0.10% low at direct current, 1% low by 1.35 kHz, and 3 dB down at 10.0 kHz. The slider is the gain being asked for.

The ideal amplifier as an element rather than a rule

The horizontal line in that figure is not drawn at the ratio of two resistors. It is the solved response of a network containing a nullor — an element with two terminals that draw no current and are constrained to the same potential, and an output branch carrying whatever current that requires.

That distinction matters. A line drawn at the resistor ratio would be a restatement of the rule being tested; a solved network containing a nullor is the rule applied to this particular arrangement of components, and it would produce a different answer if the arrangement were different. The nullor stamps into the nodal matrix as one extra unknown and one extra equation, and it is the exact expression of the two golden rules rather than an approximation to them.

The alternative that many treatments use — a controlled source with a very large gain, say a million — is a numerical trick rather than a model. It puts a 106 next to a 10−3 in the same matrix, and then blames whatever comes out on floating-point arithmetic. The nullor has no large number in it anywhere.

What the real one is

The real amplifier in the figure is three elements: a controlled source of gain 105 driving an internal node, a resistor and capacitor there setting a pole at ten hertz, and a unity-gain source with a small series resistance presenting the result to the outside world. Solving that gives an open-loop gain of 105 at direct current falling at twenty decibels per decade above ten hertz, which is what a general-purpose amplifier’s datasheet describes.

The product of those — a hundred thousand times ten hertz — is a megahertz, and it is constant everywhere above the pole. That is the gain–bandwidth product, and it is the single number that decides everything in this essay.

Expanding the model into elements rather than writing down a gain function is not a stylistic choice. It means the feedback network’s loading of the output, the amplifier’s output impedance and their interaction are all solved rather than assumed away — and those are exactly the effects a formula would drop.

Three boundaries, not one

The figure reports three numbers and keeping them apart is most of the content.

The direct-current error. The closed-loop gain is not the resistor ratio even at zero frequency. The real one is low by a factor of 1/(1 + A₀β), and for a gain of 100 from an amplifier with 105 of open-loop gain that is 0.0999% — small, but not zero, and it is the first thing a reader should know because it is present before any frequency argument is made at all.

The one-per-cent frequency. The real response departs from the ideal answer by one per cent at 1.35 kHz. This is the number that matters in practice and it is the one nobody quotes.

The bandwidth. The response is 3 dB down at 10.0 kHz, which is the gain–bandwidth product divided by the closed-loop gain, and it is the number the datasheet does quote.

The gap between the second and third is a factor of seven, and it is the same shape of gap as elsewhere in this collection: the quoted boundary is where the model has completely failed, not where it started to. A designer working to the datasheet number is working to a frequency at which the answer is already thirty per cent wrong.

Across the slider:

Closed-loop gain 1% low by 3 dB down at
2 69.4 kHz 488 kHz
5 28.1 kHz 198 kHz
10 14.1 kHz 99.5 kHz
50 2.78 kHz 20.0 kHz
100 1.35 kHz 10.0 kHz
500 203 Hz 2.01 kHz
2000 1.00 Hz 510 Hz

Every row of the right-hand column is the megahertz divided by the gain. That is the whole content of “gain–bandwidth product”, and it is a genuine constraint rather than a convention: gain and bandwidth are one resource, and asking for more of one is spending the other.

The bottom row is worth reading twice. A gain of two thousand from a one-megahertz part has a bandwidth of 510 Hz, and is already one per cent low at one hertz — because at that gain the direct-current error alone is two per cent, so the response never gets within one per cent of the ideal answer at any frequency at all.

Where the accuracy comes from

The reason the closed-loop gain is so much more accurate than the amplifier is worth stating, because it is what feedback is for.

The excess of open-loop gain over closed-loop gain is the loop gain: a hundred thousand divided by a hundred, which is a thousand. The error in the closed-loop gain is roughly the reciprocal of one plus that, so a loop gain of a thousand gives a tenth of a per cent. Everything the amplifier gets wrong — its gain, its nonlinearity, its drift — is divided down by the same factor.

And the loop gain falls at twenty decibels a decade, so the accuracy falls with it. At 1.35 kHz the loop gain is down to about a hundred and the error is one per cent; at ten kilohertz the loop gain is unity and there is nothing left to divide anything by. The closed-loop response follows the ideal answer only while there is loop gain to enforce it, and the whole shape of the figure is a picture of loop gain running out.

The refusal

Above the frequency where the loop gain reaches unity, the ideal-amplifier model does not give an approximate answer. It gives a specific number — the resistor ratio — for a circuit that produces something entirely different, and being told the answer is “approximately” the resistor ratio is worse than being told nothing.

So the model declines. Asked for its prediction above the closed-loop bandwidth, it raises an error naming the frequency, the gain asked for and the bandwidth available, and says that the real amplifier has less than unity loop gain there so the ideal answer is not an approximation to anything. That refusal is exercised in the figure — it is run, and the message is checked — rather than described.

A refusal that is described but never triggered is a comment. Half the value of an assertion is what it rejects, and an assertion that has stopped rejecting has stopped testing anything at all.

What the nullor does and does not assume

The ideal element used here deserves one more paragraph, because it is exact about two things and silent about several others, and knowing which is which prevents an over-reading of the flat line.

The nullor states exactly that the two input terminals draw no current and sit at the same potential, and that the output supplies whatever current is required to make that true. Everything the ideal- amplifier rules give follows from it — the virtual earth of an inverting stage, the unity gain of a follower, the exact resistor ratio.

What it does not assume, because nothing in it mentions them, is anything about supply rails, output current limits, input voltage range or offsets. So the flat line in the figure would still be flat at a gain of a million and an output of ten thousand volts, which is a reminder that the ideal model’s silence is not the same as its permission.

The real model in the same figure is silent about most of those too. It has finite gain and one pole and nothing else — no slew limit, no saturation, no input offset — so it is a better model in exactly one respect and no better in the others. That is the usual situation with a hierarchy of models, and it is why the site names the boundary each figure is about rather than implying that the better model is better everywhere.

Where the gain–bandwidth product comes from

The constancy of the product is worth deriving in one line, because it makes the constraint feel structural rather than empirical.

Above its dominant pole the amplifier’s open-loop gain falls as 1/f, so the product of gain and frequency is a constant — that is what a slope of twenty decibels per decade means. Closing a loop for a gain G means the loop gain reaches unity where the open-loop gain has fallen to G, and by the constancy that is at a frequency of GBW/G. So the closed-loop bandwidth is GBW/G, and gain times bandwidth is GBW again.

The whole argument is one line because the single-pole shape is what makes it one line, and that shape was put there deliberately. An amplifier with two poles close together would not have a constant gain–bandwidth product, and it would also be unstable at low gains — which is the reason it is not built that way.

Measured on the model in this figure the product is constant to about four per cent across three decades of gain, and the small deviation is itself informative: it is largest at low closed-loop gain, where the loop gain is largest and the feedback network loads the amplifier’s output resistance hardest. The idealisation is that the output resistance is zero; the four per cent is what that idealisation costs.

The other limits on the same part

Two boundaries belonging to the same device are elsewhere in this collection and it is worth placing them against this one, because they are in different units and neither predicts the other.

The slew rate limits what the output can do at an amplitude, and it is a nonlinearity: no model of any order that satisfies superposition can express it. For the same class of part the boundary is about eighty millivolts of step, which is far below anything called large.

The input impedance and offset limit what the amplifier does at direct current and with high source resistances, which is a boundary in ohms.

Three limits, three units, one device. A datasheet quotes them separately because they are separate, and a model that captures one says nothing about the others. That is the site’s rule in its most concrete form: the range of a model is not derivable from the model.

Five steps, each divided by its own size, from an amplifier limited to 0.50 V/µsA linear circuit would put these five curves exactly on top of each other. The 20.0 mV step is linear; everything above 79.6 mV is not, and the largest step takes 16.0 µs to travel a distance the linear model says takes 0.159 µs.00.2500.5000.750105101520time (microseconds)output, divided by the size of its own step20 mV step1.0e+2 mV step5.0e+2 mV step2 V step8 V steplinear below 79.6 mVsolved, then checked — integrated with the rate limitscaling fails above a 79.6 mV step
Fig. 2 The boundary that this essay’s model cannot see. Five steps through the same class of amplifier, each divided by its own size; a linear circuit would put them on top of one another. Gain–bandwidth is a frequency limit and slew rate is an amplitude limit, and no amount of care with the first reveals the second.
The same loop gain as one path, and the point that decides stabilityThe locus passes 46.1 dB inside the critical point on the negative real axis and crosses the unit circle 34.9° away from it. Both margins are distances from the same point on the same curve, which the split Bode pair cannot show.−1unity gain, 34.9° of marginrealimaginarythe unit circle, drawn faintthe locus, and its mirror for negative frequencysolved, then checked — the loop gain as one path46.1 dB and 34.9° from the critical point
Fig. 3 The loop gain that enforces the ideal answer, drawn as one path. Everything the closed-loop response does well is a consequence of that path being far from the critical point at −1, and everything it stops doing well is a consequence of the path having shrunk toward the origin as the frequency rises.

What else the loop gain buys

Bandwidth is the most visible thing the loop gain is spent on, and it is not the only one. Every imperfection of the amplifier is divided by one plus the loop gain, which means the same falling curve governs several specifications at once.

Distortion. The amplifier’s own nonlinearity is reduced by the loop gain, so a stage with a thousand of loop gain has a thousandth of the open-loop distortion. Since the loop gain falls at twenty decibels a decade, distortion rises at twenty decibels a decade — which is why an amplifier’s distortion specification is quoted at a frequency, and why the number at twenty kilohertz is typically a hundred times the number at twenty hertz.

Output impedance. The closed-loop output impedance is the open-loop one divided by one plus the loop gain, so a stage with fifty ohms of open-loop output resistance and a thousand of loop gain presents about fifty milliohms — until the loop gain runs out, above which it climbs back toward fifty. An amplifier’s output impedance therefore rises with frequency, which looks like an inductance and is one of the two reasons a capacitive load causes trouble.

Gain accuracy. The subject of this essay, and the same division.

All four are the same curve read four ways, which is the point worth carrying: there is one resource, it falls at twenty decibels a decade, and every specification that feedback improves gets worse at the same rate. A designer who has located the frequency at which the gain accuracy becomes unacceptable has, without further work, located the frequency at which the distortion and the output impedance do too.

The second reason a capacitive load causes trouble

The first is above: the output impedance rises with frequency, so it looks inductive, and an inductance with a capacitance across it resonates.

The second is inside the loop. The output resistance and the load capacitance form a pole, that pole is between the amplifier’s output and the feedback network’s input, and it therefore sits inside the loop where it costs margin. Fifty ohms and ten nanofarads give a pole at 318 kHz; on a part whose loop crosses unity at a megahertz, that removes about seventy degrees.

The standard remedies both work by getting the pole out of the loop. A small resistor in series with the output puts the capacitance beyond it, at the cost of some output impedance at high frequency. A capacitor from the output back to the inverting input provides a high-frequency path that bypasses the load. Both are in every applications note, and both are consequences of the single observation that a pole inside a loop is a pole in the loop gain.

The integrator, where all of this is visible at once

A last circuit, because it makes every point in this essay simultaneously.

An ideal integrator — a resistor in and a capacitor in the feedback path — has infinite gain at direct current and falls at twenty decibels a decade for ever. A real one cannot: its gain at direct current is the amplifier’s open-loop gain, a hundred thousand rather than infinity, so it is really a very slow low-pass filter with a corner at a fraction of a hertz.

The consequence is that a real integrator does not integrate at low frequencies, and its output drifts to a rail on any input offset, because there is no feedback path at direct current to correct it. The standard remedy is to put a large resistor across the capacitor, which deliberately makes it a low-pass filter with a known corner instead of an accidental one — trading an ideal property nobody has for a real one that can be specified.

That exchange is the whole field in miniature. The ideal model gives a clean answer over a range; outside the range the real device does something else; and good design consists of choosing where the boundary sits rather than pretending there is not one.

Where four of this site's models stop being trueIn order: the ideal operational amplifier at 1.42 kHz, a 10 V output at full amplitude at 7.96 kHz, Kirchhoff's laws on 10.0 cm at 3.97 MHz, the ideal 100 nF capacitor at 4.69 MHz. The fifth boundary is an amplitude rather than a frequency and cannot share this axis: a small-signal model is 1% wrong above 7.3 mV, at every frequency there is.101001k10k100k1M10M100M1G10Gfrequency (hertz)the ideal operational amplifier1.42 kHz — a gain of 100 from a 1 MHz part is 1% low herea 10 V output at full amplitude7.96 kHz — above this the output cannot move fast enoughthe ideal 100 nF capacitor4.69 MHz — 1.2 nH of lead makes it 10% wrong hereKirchhoff's laws on 10.0 cm3.97 MHz — the board is one degree long hereeach bar is where the model may be used; the rule at its end is the numbersolved, then checked — each boundary from its own modeland one that is not a frequency: 7.3 mV
Fig. 4 This essay’s boundary in company with three others. The ideal amplifier is the first of the four to fail, at 1.42 kHz for a gain of 100 — thousands of times sooner than the circuit board’s size begins to matter, and long before the capacitor stops being a capacitor.