Sub topic 4
Why Negative Feedback Makes the Circuit Usable
This chapter assumes you know Ohm's law, KCL and KVL, node-voltage analysis, voltage dividers, and the idea of a dependent source. You have already seen that an op amp has two inputs, one output, and a very large open-loop gain. Here you will see why that large gain is useful only when the output is connected back to the inverting input.
The problem with raw gain
The ideal-model chapters treat the op amp as a differential amplifier with a limited output range:
Vout = A (V+ − V−), clamped between the negative and positive supply rails.
A typical general-purpose op amp has A between 10^5 and 10^7 at DC. Suppose A = 10^5 and the rails are ±15 V. The output reaches a rail when the input difference is only 150 µV. In the linear region, the inputs must stay within ±150 µV of each other.
Two practical problems follow:
- No usable linear range. Offset voltages and noise in a real device are usually larger than 150 µV. The output sits on a rail even when you intend the inputs to be equal.
- Unpredictable gain. A varies widely between parts of the same type. It also changes with temperature and with the supply voltage. A circuit whose gain is A would have a gain that is large, unknown, and unstable.
Without feedback, the op amp works as a comparator. The output tells you only which input is larger.
def ideal_opamp_output(v_plus, v_minus, gain=1e5, v_neg=-15.0, v_pos=15.0):
"""Open-loop output of an op amp, limited to the supply rails."""
v = gain * (v_plus - v_minus)
return max(v_neg, min(v_pos, v))
print(ideal_opamp_output(0.001, 0.0)) # 15.0
print(ideal_opamp_output(-0.001, 0.0)) # -15.0
print(ideal_opamp_output(50e-6, 0.0)) # 5.0A 1 mV difference saturates the output. Only a 50 µV difference leaves the output at 5 V, in the linear range.
What negative feedback means
Feedback means that part of the output is sent back to an input. It is negative when the returned signal opposes the change that produced it. For an op amp, this means connecting the output, directly or through a network, to the inverting (−) terminal.
The loop works as follows. Suppose Vout rises a little too high. The feedback network raises V−. A higher V− reduces the difference V+ − V−. A smaller difference reduces Vout. The loop pushes the output back toward the value where the difference is nearly zero.
Deriving the closed-loop gain
Take the non-inverting amplifier. The input drives V+. A divider made of Rf (from output to V−) and Rg (from V− to ground) sets the feedback fraction. If no current flows into the input terminal, the divider is unloaded and
β = Rg / (Rf + Rg), so V− = β Vout.
Write the op amp equation and substitute:
- Vout = A (V+ − V−)
- 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/β = 1 + Rf/Rg.
The result depends only on the resistor ratio. A has disappeared from the answer, and that is why the circuit is usable.
The input difference follows from the same equations:
Vd = V+ − V− = Vout / A = Vin / (1 + Aβ).
The difference is the input divided by the loop gain plus one. A larger loop gain makes Vd smaller. This is the origin of the virtual short, which the next chapter develops.
How little A matters
Take β = 0.1, so the ideal gain is 10.
| Open-loop gain A | Loop gain Aβ | Closed-loop gain A/(1 + Aβ) |
|---|---|---|
| 100 | 10 | 9.091 |
| 1,000 | 100 | 9.901 |
| 100,000 | 10,000 | 9.999 |
| 10,000,000 | 1,000,000 | 10.000 |
Between A = 10^5 and A = 10^4, the open-loop gain falls by a factor of 10. The closed-loop gain moves from 9.999 to 9.990, a change of about 0.1%. Feedback converts a large and poorly known gain into a small and well-known one. You pay with gain: the circuit gives 10 instead of 10^5.
Simulating the loop
The next program gives the op amp a first-order response, so the output moves toward A·Vd with time constant tau. It applies the clamp at the rails. With negative feedback, the output settles. With the feedback sign reversed, the output runs to a rail.
def simulate(vin, beta, feedback_sign, a=1e3, rail=15.0, tau=1e-3, steps=20000):
"""Euler simulation of an op amp with a first-order response.
feedback_sign = +1: output fraction goes to V- (negative feedback).
feedback_sign = -1: output fraction goes to V+ (positive feedback).
"""
dt = tau / 1000
vout = 0.0
for _ in range(steps):
vd = vin - feedback_sign * beta * vout
target = max(-rail, min(rail, a * vd))
vout += (dt / tau) * (target - vout)
return vout
print(round(simulate(0.5, 0.1, +1), 3)) # 4.95
print(round(simulate(-0.5, 0.1, +1), 3)) # -4.95
print(round(simulate(0.001, 0.1, -1), 3)) # 15.0
print(round(simulate(-0.001, 0.1, -1), 3)) # -15.0For Vin = 0.5 V with negative feedback, the result is 1000 × 0.5 / 101 = 4.950 V. This is slightly below the ideal 5 V, because A is only 1000 here. With positive feedback, even a 1 mV input drives the output to a rail, and the sign of the input decides which one.
Negative versus positive feedback
| Property | No feedback | Negative feedback | Positive feedback |
|---|---|---|---|
| Where the output returns | Nowhere | V− terminal | V+ terminal |
| Response to a small disturbance | Output goes to a rail | Disturbance is reduced | Disturbance grows |
| Gain | A, unpredictable | About 1/β, set by resistors | Output saturated |
| Input difference Vd | Large or undefined | Close to zero | Not held near zero |
| Typical use | Comparator | Amplifier, buffer, filter | Latching comparator, oscillator |
Conditions for the argument to hold
The derivation assumes several things. Check each one before you apply the virtual short to a circuit.
- The loop is negative. The feedback path must reach the inverting terminal. Following the signal around the loop, check the sign. A wiring error that swaps the inputs turns the same resistors into positive feedback.
- The output is not saturated. If Vout is at a rail, the output no longer responds to Vd. The loop is broken, and Vd is not near zero.
- The loop gain is large. The gain is 1/β only if Aβ is much greater than 1. For a high closed-loop gain, β is small, and the loop gain falls.
- The feedback stays negative at all frequencies. In a real device the open-loop gain falls with frequency, and extra phase shift can turn negative feedback into positive feedback near the unity-gain frequency. Stability is outside the ideal model.
What carries forward
Three results from this chapter feed the next one:
- With negative feedback and a large A, the closed-loop gain depends only on the feedback network.
- The input difference is Vout/A, which approaches zero as A grows, so V+ ≈ V−.
- This holds only while the output is within the rails and the feedback is negative.
The virtual short chapter takes these results as its starting point. It treats V+ = V− as a constraint and combines it with zero input current and KCL to analyze circuits without solving for A each time.
Exercise
A non-inverting amplifier uses Rf = 19 kΩ and Rg = 1 kΩ, and the op amp has A = 2×10^5. The input is 0.25 V and the rails are ±15 V. Find β, the loop gain, the closed-loop gain, Vout, and the input difference Vd.
Show answer
β = Rg/(Rf + Rg) = 1/20 = 0.05. Loop gain Aβ = 2×10^5 × 0.05 = 10,000. Closed-loop gain = A/(1 + Aβ) = 2×10^5/10,001 ≈ 19.998 (the ideal value is 20). Vout ≈ 19.998 × 0.25 ≈ 4.9995 V, which is inside the rails. Vd = Vin/(1 + Aβ) = 0.25/10,001 ≈ 25 µV. Check: Vout/A = 4.9995/(2×10^5) ≈ 25 µV.
Exercise
The amplifier in the previous exercise is rebuilt with the op amp inputs swapped, so the divider output goes to the + terminal and Vin goes to the − terminal. Describe what happens when Vin = 0.25 V and when Vin = −0.25 V. Does Vd stay near zero?
Show answer
The feedback is now positive, so the circuit has no stable linear operating point. With Vin = 0.25 V, V− = 0.25 V is larger than the + terminal voltage at the start, so the output starts toward the negative rail. Any output change moves V+ in the same direction and strengthens the change, so the output ends at −15 V. With Vin = −0.25 V, it ends at +15 V. In both cases the output saturates at a rail, and Vd is far from zero (hundreds of millivolts or more). The virtual short does not apply, because it needs negative feedback and a non-saturated output.