Sub topic 2
Negative feedback in one page
This chapter assumes you know Ohm's law, voltage dividers, and the idea of an amplifier with gain. It also assumes basic algebra. You do not need the virtual short yet. That is the next chapter, and it follows directly from the result here.
What negative feedback means
An op amp's open-loop gain A is huge, typically 10^5 or more at DC, but it is also imprecise. It varies between parts, with temperature, and with supply voltage. An amplifier whose gain is unpredictable is not useful by itself.
Negative feedback fixes this by sending a fraction of the output back to the inverting (−) input. The op amp then amplifies the difference between the input signal and that fraction of its own output. The loop adjusts the output until the difference is very small.
Two terms are used throughout:
- Feedback factor β is the fraction of the output that returns to the inverting input. It is set by passive components, so it is a ratio of resistors. It is between 0 and 1.
- Loop gain T = Aβ is the total gain a signal sees going once around the loop: through the amplifier, then through the feedback network.
The loop equation
Model the op amp as a difference amplifier with gain A:
Vout = A · (V+ − V−)
Let V+ be the input signal Vin, and let the feedback network supply V− = β · Vout. Substitute:
Vout = A · (Vin − β · Vout)
Collect the Vout terms:
Vout · (1 + Aβ) = A · Vin
The closed-loop gain is therefore:
Vout / Vin = A / (1 + Aβ)
Now factor out 1/β:
Vout / Vin = (1/β) · [Aβ / (1 + Aβ)] = (1/β) · [T / (1 + T)]
When T is large, the bracket is very close to 1:
Vout / Vin ≈ 1/β
The gain is set by the feedback network alone. The value of A drops out, as long as A is large. The fractional error from the ideal is about 1/(1 + T), so a loop gain of 1000 gives roughly 0.1% error.
Checking the equation numerically
The script below uses a feedback factor of 0.1, so the ideal closed-loop gain is 10. It tries three open-loop gains that span four orders of magnitude.
def closed_loop_gain(a, beta):
"""Gain of a negative-feedback loop: A / (1 + A*beta)."""
return a / (1 + a * beta)
beta = 0.1 # ideal gain is 1/beta = 10
for a in (1e3, 1e5, 1e7):
gain = closed_loop_gain(a, beta)
print(f"A = {a:>10.0f} loop gain = {a * beta:>9.0f} closed-loop gain = {gain:.5f}")The output is:
A = 1000 loop gain = 100 closed-loop gain = 9.90099
A = 100000 loop gain = 10000 closed-loop gain = 9.99900
A = 10000000 loop gain = 1000000 closed-loop gain = 9.99999Open-loop gain changed by a factor of 10,000, yet the closed-loop gain moved by less than 1%. This is the main reason op amp circuits are designed with feedback. Precision comes from resistor ratios, which are cheap and stable, rather than from the amplifier.
Why the output settles
The equation describes the final state. The mechanism that gets there is error correction.
Suppose the loop is balanced and something pushes Vout up slightly.
- The feedback fraction β · Vout rises.
- The difference V+ − V− shrinks.
- The op amp multiplies a smaller difference by A, so its output falls back.
If Vout drops, the same chain runs in reverse. The loop opposes any change that moves the inverting input away from the non-inverting input. That is why it is called negative.
The consequence matters for the next chapter. Because A is so large, a tiny difference between the inputs produces a large output. In steady state the output sits wherever it must so that V+ − V− = Vout/A. For a 5 V output and A = 100,000, the difference is only 50 µV. In hand analysis we treat that difference as zero.
What feedback buys and what it costs
| Property | Without feedback | With negative feedback |
|---|---|---|
| Gain value | A, large and unpredictable | About 1/β, set by resistors |
| Gain sensitivity to A | Proportional | Divided by (1 + T), so much smaller |
| Linearity | Follows the amplifier's curve | Improved by about the same factor |
| Usable gain | Very high | Lower, by design |
| Bandwidth | Narrow for a given gain | Wider, roughly in proportion to the gain given up |
You trade gain for predictability. With A = 100,000 and a closed-loop gain of 10, you have spent 99.99% of the available gain to make the remaining 10 accurate. Op amps are cheap, so this is almost always a good trade.
Bandwidth follows the same trade. For a typical op amp, the product of closed-loop gain and bandwidth is roughly constant. A closed-loop gain of 10 gives about ten times the bandwidth of a closed-loop gain of 100 on the same part.
Where the feedback goes
Only the connection to the inverting input gives negative feedback. If you route the output back to the non-inverting (+) input instead, the loop reinforces any change. A small positive disturbance in Vout raises V+ and pushes Vout further up. The output then rails to one supply. This is positive feedback. It is useful for comparators with hysteresis, but it is the wrong choice for linear amplifiers.
Both gain configurations used in this tutorial return the signal to the inverting side. In the inverting amplifier, the feedback resistor joins the output to the inverting input directly. In the non-inverting amplifier, a divider from the output taps down to the inverting input.
Common errors
- Treating A as infinite and then dividing by it. The ideal model sets the input difference to zero as a limit. If you need a number such as the actual input error, compute Vout/A.
- Forgetting that β depends on the circuit. In the non-inverting configuration, β comes from a resistor divider. In the inverting configuration, the signal source also loads the feedback node, so the 1/β shortcut needs extra care. The formula gains are derived properly in later chapters.
- Assuming feedback works regardless of frequency. A falls as frequency rises, so T falls too. At high frequency the loop gain is no longer large and the 1/β approximation stops holding. Delay in the amplifier can also shift the phase of the returned signal enough that negative feedback turns into positive feedback and the circuit oscillates. Stability analysis is outside this tutorial, but it is the reason very large loop gain is not free.
- Swapping the input pins. On an op amp symbol, the − input is the one that receives feedback. Swapping the pins produces positive feedback and a latched output.
Where this leads
The loop equation says the closed-loop gain is about 1/β when T is large. Rearranging, the difference between the inputs is nearly zero when T is large. The next chapter turns that observation into the virtual short, and from it you can write down the gain of an inverting or non-inverting amplifier with a few lines of algebra. Every circuit in this tutorial, including the summer, the difference amplifier, and the integrator, uses the virtual short.
Exercise
A non-inverting amplifier has a feedback factor β = 0.02 and an op amp with open-loop gain A = 50,000. Find the loop gain, the exact closed-loop gain, and the percentage by which the exact gain falls below the ideal 1/β.
Show answer
Loop gain T = Aβ = 50,000 × 0.02 = 1000. The ideal gain is 1/β = 50. The exact gain is A/(1 + Aβ) = 50,000 / 1001 ≈ 49.95. The shortfall is (50 − 49.95)/50 ≈ 0.1%, which matches the approximation 1/(1 + T) = 1/1001.
Exercise
The amplifier above produces Vout = 4.995 V in steady state. What is the voltage difference V+ − V− at its inputs, and why is it reasonable to treat it as zero in hand analysis?
Show answer
V+ − V− = Vout / A = 4.995 / 50,000 ≈ 0.1 mV. Compared with the volt-level signals in the circuit, this difference is tiny, so setting it to zero introduces only a small error.
Exercise
Suppose the output of an op amp is connected through a divider to the non-inverting input instead of the inverting input. Explain what happens when Vout rises slightly.
Show answer
The fed-back voltage at the + input rises, which raises V+ − V−. The op amp multiplies that larger difference by A, so Vout rises more. The change reinforces itself until the output reaches a supply limit. This is positive feedback, and it does not produce a stable linear gain.