Sub topic 11
Gain-Bandwidth Product and Closed-Loop Bandwidth
This chapter assumes you can derive the inverting and non-inverting gain equations from the virtual short. It also assumes you are comfortable with the voltage divider, decibels, and the idea of a feedback factor. You also need the finite open-loop gain result from the previous chapter. Here we ask what happens when the open-loop gain is not a constant 100,000 but falls as frequency rises.
Open-loop gain falls with frequency
A general-purpose op amp is built with internal compensation. Its designer adds a deliberate low-frequency pole so the amplifier stays stable when feedback is applied. The result is a single-pole open-loop response:
A(f) = A0 / (1 + j f / fp)A0 is the DC open-loop gain, for example 100,000 (100 dB). fp is the pole frequency, often only 5 to 20 Hz. Well above fp, the "1" in the denominator is negligible and the magnitude becomes:
|A(f)| = A0 * fp / fThe product A0 * fp is the gain-bandwidth product (GBW). It is a constant, and it equals the frequency at which the open-loop gain falls to 1 (0 dB). Datasheets list this frequency as the unity-gain frequency, ft. An op amp with A0 = 100,000 and fp = 10 Hz has GBW = 1 MHz. At 100 kHz its open-loop gain is only 10. At 10 kHz it is 100.
This explains why the finite-gain error from the last chapter gets worse at higher frequency. The open-loop gain A in that formula is really |A(f)|, and it shrinks as frequency grows.
Deriving the closed-loop bandwidth
Both configurations share the same loop. Let beta be the fraction of the output fed back to the inverting input when the signal source is set to zero. For both amplifiers:
beta = R_ground_side / (Rf + R_ground_side)For the inverting amplifier, R_ground_side is Rin. For the non-inverting amplifier, it is Rg. The reciprocal 1/beta = 1 + Rf/R_ground_side is called the noise gain. It is the gain the op amp "sees" for a signal injected at its input terminals.
The non-inverting closed-loop gain is A / (1 + A*beta). Substitute the high-frequency form A = ft / (j f), where ft is GBW:
ACL = (ft / (j f)) / (1 + beta * ft / (j f))
= (1/beta) / (1 + j f / (beta * ft))This is a single-pole low-pass response with:
- a low-frequency gain of
1/beta, which is the ideal gain you already know; - a -3 dB frequency of
f_c = beta * ft = GBW / (1/beta).
So the closed-loop bandwidth is the GBW divided by the noise gain. Feedback does not create bandwidth. It trades gain for bandwidth, and the product stays constant.
The picture shows a useful graphical rule. The closed-loop curve is flat at the ideal gain until it meets the open-loop curve. The intersection (at 20 dB here) is where the loop gain A*beta equals 1. Beyond that point the feedback no longer controls the gain.
Inverting versus non-inverting
The bandwidth depends on the noise gain, not on the signal gain. The two configurations differ here.
- Non-inverting: signal gain is
1 + Rf/Rg, which equals the noise gain. Bandwidth isGBW / ACL. - Inverting: signal gain magnitude is
Rf/Rin, but the noise gain is1 + Rf/Rin, one more. Bandwidth isGBW / (1 + Rf/Rin).
For high gains the difference is negligible. For low gains it matters. An inverting amplifier with gain -1 has a noise gain of 2, so its bandwidth is only half the GBW. The voltage follower has a noise gain of 1 and the full GBW.
| Circuit | Signal gain | Noise gain | -3 dB bandwidth (GBW = 1 MHz) |
|---|---|---|---|
| Voltage follower | +1 | 1 | 1 MHz |
| Inverting, Rf = Rin | -1 | 2 | 500 kHz |
| Non-inverting, Rf = 9k, Rg = 1k | +10 | 10 | 100 kHz |
| Inverting, Rf = 10k, Rin = 1k | -10 | 11 | about 90.9 kHz |
| Non-inverting, Rf = 99k, Rg = 1k | +100 | 100 | 10 kHz |
Gain error at a given frequency
Because the closed-loop response is a single pole, the magnitude at frequency f is:
|ACL(f)| = ideal_gain / sqrt(1 + (f / f_c)^2)You can invert this to find how far below f_c you must stay for a given error e:
f_max = f_c * sqrt(1 / (1 - e)^2 - 1)For 1% error, f_max is about 0.142 f_c. For 0.1% error it is about 0.045 f_c. So a gain-of-10 amplifier built on a 1 MHz GBW part (f_c = 100 kHz) holds 1% accuracy only up to about 14 kHz. To hold 0.1% up to 20 kHz you would need an f_c near 450 kHz, so a GBW of roughly 4.5 MHz at that gain.
A rule of thumb follows. To keep amplitude error below e over a signal bandwidth fs, choose:
GBW >= noise_gain * fs / sqrt(1 / (1 - e)^2 - 1)For 1% error this is about 7 * noise_gain * fs.
Checking the numbers in code
The function below uses the full single-pole model, not just the high-frequency approximation. It gives the exact complex closed-loop response for either configuration.
import math
def noise_gain(rf, r_ground_side):
return 1 + rf / r_ground_side
def closed_loop_bandwidth(gbw_hz, ng):
return gbw_hz / ng
def closed_loop_response(freq, a0, gbw, rf, r_ground_side, inverting):
fp = gbw / a0 # open-loop pole frequency
a = a0 / (1 + 1j * freq / fp) # complex open-loop gain
beta = r_ground_side / (rf + r_ground_side)
if inverting:
return -(rf / r_ground_side) * (a * beta) / (1 + a * beta)
return a / (1 + a * beta)
def max_freq_for_error(f_c, err):
return f_c * math.sqrt(1 / (1 - err) ** 2 - 1)
gbw = 1e6
a0 = 1e5
ng_ni = noise_gain(9e3, 1e3)
ng_inv = noise_gain(10e3, 1e3)
print(closed_loop_bandwidth(gbw, ng_ni)) # 100000.0
print(round(closed_loop_bandwidth(gbw, ng_inv), 1)) # 90909.1
h = closed_loop_response(100e3, a0, gbw, 9e3, 1e3, inverting=False)
print(round(abs(h), 2)) # about 7.07, which is 10 / sqrt(2)
fc = closed_loop_bandwidth(gbw, ng_ni)
print(round(max_freq_for_error(fc, 0.01) / 1e3, 1)) # 14.2 (kHz)The third print confirms the -3 dB point. At f_c the gain is 10 divided by the square root of 2. The low-frequency limit of closed_loop_response reproduces inverting_gain and noninverting_gain from the finite-gain chapter.
Simulating the frequency response
In SPICE, an ideal controlled source has infinite bandwidth. To see a GBW limit you must give the model a pole. A simple way is to put an RC low-pass after the gain source. Choose Rp and Cp so that 1/(2*pi*Rp*Cp) equals fp, which is 10 Hz for this example:
* Non-inverting amplifier, gain 10, single-pole op amp (GBW = 1 MHz)
Vin in 0 DC 0 AC 1
Rf out inv 9k
Rg inv 0 1k
E1 x 0 in inv 1e5
Rp x y 15.915k
Cp y 0 1u
E2 out 0 y 0 1
.ac dec 20 1 10Meg
.endThe -3 dB point of the plotted v(out) should appear near 100 kHz. E2 is a unity-gain buffer that stops the output load and the feedback network from disturbing the pole.
Gotchas and limits
- The GBW is constant only in the region where the open-loop response falls at -20 dB per decade. Below
fpthe open-loop gain is flat. Far aboveft, additional internal poles add phase lag. - The relation
f_c = GBW / noise_gainassumes a single dominant pole. If the loop gain still has 20 to 30 degrees of phase margin left at the crossover, the closed-loop response peaks before it rolls off, and the -3 dB frequency exceeds the simple prediction. Low phase margin can cause ringing. - Unity-gain stability varies. Some amplifiers are compensated only for gains of 5 or 10 and oscillate as followers. The datasheet states the minimum stable gain.
- Datasheet GBW is typical, not guaranteed, and it varies with temperature and supply voltage. Design with a margin of 2 or more.
- Current-feedback op amps do not follow the constant-GBW rule. Their bandwidth depends mostly on
Rf. This chapter applies to voltage-feedback op amps. - Capacitive loads and stray capacitance at the inverting input add poles to the loop. A small feedback capacitor across
Rfis a common fix. - Small-signal bandwidth is not the same as large-signal bandwidth. A big, fast output swing also hits the slew-rate limit, covered in the next chapter.
Decision criteria
- Compute the noise gain,
1 + Rf/R_ground_side, not just the signal gain. - Decide the error you can tolerate at your highest signal frequency
fs. Use the rule above to find the requiredf_c, then the required GBW. - Pick a part with at least twice that GBW, and confirm it is stable at your noise gain.
- If the required GBW is unreasonable, split the gain over two stages. Two stages of gain 10 each have
f_c= GBW/10. One stage of gain 100 hasf_c= GBW/100. The cascade's combined -3 dB point is lower than a single stage's by a factor of about 0.64, but it is still much wider than the single high-gain stage.
Exercise
An op amp has GBW = 3 MHz. You build an inverting amplifier with Rin = 2 kΩ and Rf = 18 kΩ. What is the signal gain, the noise gain, and the approximate -3 dB bandwidth?
Show answer
The signal gain is -Rf/Rin = -9. The noise gain is 1 + Rf/Rin = 10. The -3 dB bandwidth is GBW / noise gain = 3 MHz / 10 = 300 kHz.
Exercise
A non-inverting amplifier with a gain of 20 must amplify signals up to 25 kHz with no more than 1% amplitude error. Roughly what GBW is required, and why would you choose a part with more?
Show answer
The noise gain equals the signal gain, 20. For 1% error you need fc of at least fs / 0.1425, which is about 175 kHz. So GBW >= 20 * 175 kHz = 3.5 MHz. In practice you pick a part with at least 7 MHz, because datasheet GBW is a typical value that varies with temperature and supply, and the phase lag near fc also adds error.
Exercise
Why does an inverting amplifier with a gain of -1 have only half the bandwidth of a voltage follower made from the same op amp?
Show answer
Bandwidth is GBW divided by the noise gain, not the signal gain. The follower has a noise gain of 1. The inverting amplifier with Rf = Rin has a noise gain of 1 + Rf/Rin = 2, so its bandwidth is GBW/2.