Sub topic 2
Why negative feedback sets the gain
This chapter assumes you know voltage dividers, Ohm's law, and the idea of gain as a ratio of output to input. It also assumes the ideal op amp model from the previous chapter: a differential input, very high gain, and negligible input current.
The problem: open-loop gain is huge and unreliable
An op amp amplifies the difference between its two inputs:
Vout = A × (V+ − V−)
A is the open-loop gain. A typical value is 100,000 (100 dB), but it varies a lot between parts, with temperature, and with frequency. A 1 mV difference would ask for 100 V at the output, so the output slams into a supply rail. Used alone, the op amp is a comparator, not a precise amplifier.
Negative feedback fixes this. Part of the output is fed back to the inverting input (V−), so the output is pushed in the direction that shrinks the input difference.
The feedback loop
Consider the non-inverting configuration. A resistor divider (Rf from the output to the inverting input, Rg from the inverting input to ground) returns a fraction of the output:
β = Rg / (Rf + Rg)
The feedback fraction β is a property of the resistors alone.
Deriving the closed-loop gain
The error signal is V+ − V− = Vin − β·Vout. Substitute into the op amp equation:
Vout = A × (Vin − β·Vout)
Vout × (1 + Aβ) = A × Vin
Vout / Vin = A / (1 + Aβ)
The product Aβ is the loop gain. When Aβ is much larger than 1, the "1" in the denominator is negligible:
Vout / Vin ≈ 1 / β = (Rf + Rg) / Rg = 1 + Rf/Rg
A has dropped out. The gain now depends only on two resistors, which can be made accurate and stable.
How the loop corrects itself
Suppose Vout starts to rise above its correct value. The divider raises V−, which reduces V+ − V−, which reduces the output. If Vout falls too low, the reverse happens. The output settles where the error is just large enough to sustain it. With A = 100,000 and Vout = 10 V, that error is only 10 V / 100,000 = 0.1 mV. This tiny error is the reason V+ and V− are almost equal, which the next chapter develops as the virtual short.
Seeing the insensitivity to A
This script uses β = 0.1 (Rf = 9 kΩ, Rg = 1 kΩ) and changes A by a factor of 100.
def closed_loop_gain(a, beta):
return a / (1 + a * beta)
beta = 1e3 / (9e3 + 1e3) # 0.1, so the ideal gain is 1/beta = 10
for a in (1e4, 1e5, 1e6):
print(f"A = {a:>9.0f} gain = {closed_loop_gain(a, beta):.4f}")Expected output:
A = 10000 gain = 9.9900
A = 100000 gain = 9.9990
A = 1000000 gain = 9.9999A changes 100-fold, yet the gain moves by only about 0.1%. The larger the loop gain Aβ, the closer the circuit gets to 1/β.
Common errors
- Feeding back to the wrong input. Connecting the feedback network to V+ instead of V− gives positive feedback. Any small difference grows, and the output latches at a supply rail.
- Assuming a large gain is always accurate. The approximation 1/β needs Aβ much greater than 1. Raising the closed-loop gain lowers β, so the loop gain falls. At a gain of 1000 with A = 100,000, Aβ is only 100, and the error is about 1%.
- Treating A as constant. A falls with frequency. The loop gain therefore falls too, and the closed-loop gain drifts from 1/β at high frequencies. A later chapter covers this.
Exercise
A non-inverting amplifier has Rf = 19 kΩ, Rg = 1 kΩ, and an op amp with A = 50,000. Find β, the ideal gain, and the actual closed-loop gain A/(1 + Aβ).
Show answer
β = 1 kΩ / (19 kΩ + 1 kΩ) = 0.05. The ideal gain is 1/β = 20. The loop gain is Aβ = 2,500, so the actual gain is 50,000 / 2,501 ≈ 19.992, about 0.04% below the ideal value.