TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › Negative Feedback: Topologies and Their Effect on Gain, Bandwidth and Impedance

Negative Feedback: Topologies and Their Effect on Gain, Bandwidth and Impedance

The open-loop gain of an op-amp is "about 100 000", give or take a factor of three between parts and another factor of two over temperature. Yet a non-inverting amplifier built from it has a gain of 10.0010.00 to the tolerance of two resistors. Harold Black's 1927 idea of negative feedback trades surplus gain for precision, bandwidth, linearity and impedances chosen by the designer. This lesson derives the closed-loop gain, shows what the loop gain buys and how it is measured, and classifies the four ways a feedback network can sample and return a signal. Every op-amp circuit in the next section, and the degenerated transistor stages of earlier lessons, are instances of it.

The loop

x + - e A y beta xf = beta y loop gain T = A beta, y/x = A/(1 + T)

A forward amplifier AA amplifies the error e=x−xfe = x - x_f; a feedback network returns xf=βyx_f = \beta y. Then y=A(x−βy)y = A(x - \beta y) and

Af=yx=A1+Aβ=A1+T  ⟶  1βwhen T=Aβ≫1A_f = \frac{y}{x} = \frac{A}{1 + A\beta} = \frac{A}{1 + T} \;\longrightarrow\; \frac{1}{\beta} \quad \text{when } T = A\beta \gg 1

TT is the loop gain: break the loop, inject a signal, and TT is what comes back round (with the sign of the subtraction removed). Everything good about feedback is a factor 1+T1 + T, the amount of feedback, usually quoted in dB.

Desensitivity. Differentiate AfA_f with respect to AA:

dAfAf=11+T⋅dAA\frac{dA_f}{A_f} = \frac{1}{1 + T} \cdot \frac{dA}{A}

A 100 % change in AA becomes a 0.01 %0.01\ \% change in AfA_f when T=104T = 10^4. The gain now depends on β\beta, which is made of resistors.

Bandwidth. If A(s)=A0/(1+s/ωp)A(s) = A_0/(1 + s/\omega_p), then

Af(s)=A0/(1+T0)1+s/(ωp(1+T0))A_f(s) = \frac{A_0/(1 + T_0)}{1 + s/(\omega_p (1 + T_0))}

The pole moves up by the same 1+T01 + T_0 that the gain moves down: for a single-pole amplifier the gain–bandwidth product is constant. An op-amp with A0=105A_0 = 10^5 and a 10 Hz pole gives a gain of 10 to 100 kHz, or 100 to 10 kHz.

Distortion and noise. Distortion generated inside AA is reduced by about 1+T1 + T, as is any disturbance injected at the output (supply ripple, a load step). Noise added at the input is not: it is indistinguishable from the signal (Noise in Analog Circuits).

The four topologies

The feedback network can sample the output voltage (connect in shunt, across the output) or the output current (in series with the load), and mix the feedback at the input as a voltage (in series with the source) or as a current (in shunt, at a node). The names give mixing first, then sampling:

Topology (mixing–sampling) Stabilises ZinZ_{in} ZoutZ_{out} Ideal amplifier Example
series–shunt voltage gain vo/viv_o/v_i ×(1+T)\times (1 + T) ÷(1+T)\div (1 + T) voltage amplifier non-inverting op-amp, emitter follower
shunt–series current gain io/iii_o/i_i ÷(1+T)\div (1 + T) ×(1+T)\times (1 + T) current amplifier current mirror with feedback
series–series transconductance io/vii_o/v_i ×(1+T)\times (1 + T) ×(1+T)\times (1 + T) voltage-to-current converter degenerated CE/CS stage, op-amp current source
shunt–shunt transresistance vo/iiv_o/i_i ÷(1+T)\div (1 + T) ÷(1+T)\div (1 + T) current-to-voltage converter inverting op-amp, photodiode TIA

The rule behind the table: series connections multiply impedance by 1+T1 + T, shunt connections divide it. Sampling voltage makes the output a better voltage source (low ZoutZ_{out}); sampling current makes it a better current source (high ZoutZ_{out}). The degenerated common-source stage of the CS lesson is series–series: RSR_S senses the output current and subtracts idRSi_d R_S from the input voltage, T=gmRST = g_m R_S, and indeed its gain fell by 1+gmRS1 + g_m R_S and its drain output resistance rose by about the same factor.

Feedback is negative only while the returned signal opposes the input. Every amplifier's phase shifts with frequency; once the loop's phase reaches −180∘-180^\circ with ∣T∣≥1\lvert T \rvert \ge 1, the feedback turns positive and the circuit oscillates. That is the subject of Stability and Frequency Compensation.

Worked example

Given: a non-inverting amplifier with RF=9 kΩR_F = 9\ \text{k}\Omega, RG=1 kΩR_G = 1\ \text{k}\Omega, built from the course's op-amp model (A0=105A_0 = 10^5, pole at 10 Hz10\ \text{Hz}, so GBW =1 MHz= 1\ \text{MHz}) with a differential input resistance Rid=1 MΩR_{id} = 1\ \text{M}\Omega and an output resistance Ro=100 ΩR_o = 100\ \Omega.

Find: the closed-loop gain, bandwidth, input and output resistance at DC.

Solve: series–shunt feedback with β=RG/(RG+RF)=0.1\beta = R_G/(R_G + R_F) = 0.1:

T0=A0β=105⋅0.1=104,Af=1051+104=9.999f3dB=10 Hz⋅(1+104)=100 kHzRin≈Rid(1+T0)=1 MΩ⋅104=10 GΩ,Rout≈Ro1+T0=100 Ω104=10 mΩ\begin{aligned} T_0 &= A_0 \beta = 10^5 \cdot 0.1 = 10^4, \quad A_f = \frac{10^5}{1 + 10^4} = 9.999 \\ f_{3\text{dB}} &= 10\ \text{Hz} \cdot (1 + 10^4) = 100\ \text{kHz} \\ R_{in} &\approx R_{id}(1 + T_0) = 1\ \text{M}\Omega \cdot 10^4 = 10\ \text{G}\Omega, \quad R_{out} \approx \frac{R_o}{1 + T_0} = \frac{100\ \Omega}{10^4} = 10\ \text{m}\Omega \end{aligned}

Check: the gain error 1/(1+T0)=0.01 %1/(1 + T_0) = 0.01\ \% is far below the 1 % or 0.1 % tolerance of the resistors that set 1/β1/\beta. At frequency ff above the pole, T(f)≈T0⋅10 Hz/fT(f) \approx T_0 \cdot 10\ \text{Hz}/f, so at 1 kHz1\ \text{kHz} only T=100T = 100 remains and RoutR_{out} has risen to about 1 Ω1\ \Omega: the benefits of feedback shrink as the loop gain falls.

In Python

The first part checks desensitivity and the constant gain–bandwidth product. The second puts an amplifier that compresses like tanh⁡\tanh (small-signal gain 100, ±10 V\pm 10\ \text{V} limits) in a loop with β=0.09\beta = 0.09 and solves y=f(x−βy)y = f(x - \beta y) sample by sample.

python · try it yourself
import numpy as np
from scipy.optimize import brentq

beta = 0.1
print("desensitivity: A0 changes 4x, the closed-loop gain hardly moves")
for A in (5e4, 1e5, 2e5):
    print(f"  A = {A:8.0f}: T = {A*beta:7.0f}, Af = {A/(1 + A*beta):.5f}")
fp, A0 = 10.0, 1e5
print(f"bandwidth: open loop {fp:.0f} Hz, closed loop {fp*(1 + A0*beta)/1e3:.1f} kHz, "
      f"gain x bandwidth = {A0*fp/1e6:.1f} MHz both ways")

# distortion: an amplifier with small-signal gain 100 that compresses like tanh
f = lambda e: 10 * np.tanh(10 * e)
N = 256
t = np.arange(N) / N
def thd(y):
    X = np.abs(np.fft.rfft(y)) * 2 / N
    return X[1], np.sqrt(np.sum(X[2:20]**2)) / X[1]

x_open = np.arctanh(0.5) / 10 * np.sin(2 * np.pi * t)   # about 5 V peak out, no feedback
a1, d1 = thd(f(x_open))
b = 0.09                                               # T = 100 * 0.09 = 9 at small signals
x_cl = 0.55 * np.sin(2 * np.pi * t)
y_cl = np.array([brentq(lambda y: y - f(x - b * y), -10, 10) for x in x_cl])
a2, d2 = thd(y_cl)
print(f"open loop:   output {a1:.2f} V peak, THD {100*d1:.2f} %")
print(f"closed loop: output {a2:.2f} V peak, THD {100*d2:.3f} % (gain {a2/0.55:.2f}, reduced {d1/d2:.0f} x)")
desensitivity: A0 changes 4x, the closed-loop gain hardly moves
  A =    50000: T =    5000, Af = 9.99800
  A =   100000: T =   10000, Af = 9.99900
  A =   200000: T =   20000, Af = 9.99950
bandwidth: open loop 10 Hz, closed loop 100.0 kHz, gain x bandwidth = 1.0 MHz both ways
open loop:   output 5.12 V peak, THD 2.34 %
closed loop: output 5.45 V peak, THD 0.313 % (gain 9.91, reduced 7 x)

For a similar output swing, a loop gain of 9 cuts the THD sevenfold. It is less than 1+T=101 + T = 10 because at the peaks the compressing amplifier's own slope, and so the loop gain, is smaller: feedback helps least exactly where the amplifier is worst. Real audio amplifiers run 20 to 40 dB of feedback for this reason.

Cross-check with SPICE

The course's op-amp macro-model with RidR_{id} and RoR_o added. One copy measures gain and bandwidth (then alter raises the gain to 100); a second copy, with its input grounded, is driven by a 1 A1\ \text{A} AC test current at the output, so its output voltage is ZoutZ_{out} in ohms.

bash · try it yourself
cat > fb.cir <<'EOF'
* Non-inverting amplifier: closed-loop gain, bandwidth and output impedance
* op-amp macro-model of the course (A0 = 1e5, GBW 1 MHz) plus Rid = 1 MEG and Ro = 100 Ohm
.subckt OA inp inn out
Rid inp inn 1meg
G1 0 n1 inp inn 1m
R1 n1 0 100meg
C1 n1 0 159.2p
E1 n2 0 n1 0 1
Ro n2 out 100
.ends
* amplifier 1: gain 1 + RF/RG = 10
Vin in 0 DC 0 AC 1
X1 in n out OA
RF out n 9k
RG n 0 1k
* amplifier 2: same circuit, input grounded, 1 A AC test current into the output
X2 0 n2 out2 OA
RF2 out2 n2 9k
RG2 n2 0 1k
It 0 out2 DC 0 AC 1
.control
ac dec 50 1 10meg
meas ac gain find vm(out) at=100
let t1 = gain/sqrt(2)
set tg1 = "
amp;t1" meas ac f3db when vm(out)=$tg1 fall=1 meas ac zout_1hz find vm(out2) at=1 meas ac zout_1k find vm(out2) at=1k meas ac zout_100k find vm(out2) at=100k alter RF 99k ac dec 50 1 10meg meas ac gain100 find vm(out) at=100 let t2 = gain100/sqrt(2) set tg2 = "
amp;t2" meas ac f3db100 when vm(out)=$tg2 fall=1 .endc .end EOF ngspice -b fb.cir 2>&1 | grep -E '^[a-z0-9_]+ +='
gain                =  9.998984e+00
f3db                =  9.891213e+04
zout_1hz            =  1.005793e-02
zout_1k             =  1.001081e+00
zout_100k           =  7.039564e+01
gain100             =  9.989489e+01
f3db100             =  9.988415e+03

Gain 10 gives 98.9 kHz98.9\ \text{kHz}, gain 100 gives 9.99 kHz9.99\ \text{kHz}: the product stays at about 1 MHz1\ \text{MHz}. The output impedance is 10 mΩ10\ \text{m}\Omega at 1 Hz, 1.0 Ω1.0\ \Omega at 1 kHz and 70 Ω70\ \Omega at 100 kHz, rising tenfold per decade above the open-loop pole: it behaves like an inductor, which is why capacitive loads can make op-amp circuits ring.

Interactive: change AA, keep the gain

The lab solves the amplifier with the op-amp as a linear VCVS E1 (with RidR_{id} and RoR_o; no frequency dependence) and a 1 kΩ1\ \text{k}\Omega load. With A=105A = 10^5 it shows V(out)=9.999 VV(\text{out}) = 9.999\ \text{V} for 1 V1\ \text{V} in and an input current of 111 pA111\ \text{pA} (Rin=9.0 GΩR_{in} = 9.0\ \text{G}\Omega: the load lowers the effective loop gain to about 9000). Slide E1 down to 10001000: the output only falls to 9.890 V9.890\ \text{V}. Only when AA approaches 1/β=101/\beta = 10 does the gain collapse.

node voltages (to ground 0)in1.000 Vn999.9 mVx11.10 Vout9.999 VnetlistV1 in 0 1RID in n 1megE1 x 0 in n 100kRO x out 100RF out n 9kRG n 0 1kRL out 0 1kelement currents (node 1 to node 2 through it)V1in>0-111 pARIDin>n111 pAE1x>0-11.0 mAROx>out11.0 mARFout>n1.00 mARGn>01.00 mARLout>010.0 mA

Guided lab: measure the loop's benefits

Hand calculation. Gain 10.00; bandwidth about 100 kHz100\ \text{kHz} for a 1 MHz1\ \text{MHz} op-amp; output resistance well under 1 Ω1\ \Omega at low frequency.

Simulation. SPICE and the lab above.

What you would measure. Build the non-inverting amplifier with a general-purpose op-amp of about 1 MHz GBW on ±12 V\pm 12\ \text{V}. (1) Gain: 0.5 V0.5\ \text{V} peak at 1 kHz; expect 10.0±0.210.0 \pm 0.2 with 1 % resistors. (2) Bandwidth: keep the output small (0.2 V0.2\ \text{V} peak) so slew rate does not interfere (Real Op-Amps: Gain-Bandwidth, Slew Rate and a SPICE Macro-Model), sweep up and find the −3 dB-3\ \text{dB} point; expect the datasheet GBW divided by 10, within the datasheet's spread (often ±30 %\pm 30\ \%). (3) Output resistance: load the output with 100 Ω100\ \Omega and look for any change of amplitude at 1 kHz; there should be none visible on a scope, a direct demonstration of Ro/(1+T)R_o/(1 + T). (4) Repeat with RF=99 kΩR_F = 99\ \text{k}\Omega: bandwidth falls tenfold.

Hazards and safe setup. Dual supply at ±12 V\pm 12\ \text{V}, current limits about 30 mA30\ \text{mA}. A 100 Ω100\ \Omega load at several volts can exceed the op-amp's output current: keep the amplitude below about 1 V1\ \text{V} peak for that test.

Pitfalls

  • Treating 1/β1/\beta as the gain when TT is small. At high frequency TT shrinks and the ideal formulas fail; always check TT at the frequency of interest.
  • Expecting feedback to lower input noise. It does not.
  • Wrong topology, wrong impedance. A shunt connection at the input lowers input impedance; the inverting amplifier's input resistance is just its input resistor.
  • Too much feedback around too many poles. More loop gain, less phase margin.

Practice

  1. An amplifier with A=2000A = 2000 is used with β=0.05\beta = 0.05. Find AfA_f and the change of AfA_f if AA drops by 20 %.
  2. A single-pole op-amp has GBW =10 MHz= 10\ \text{MHz}. What bandwidth does a gain of −49-49 (inverting, noise gain 50) give?
  3. Which topology is a transimpedance amplifier for a photodiode, and what does feedback do to its input impedance?
Answer
  1. T=100T = 100, Af=2000/101=19.80A_f = 2000/101 = 19.80; with A=1600A = 1600, T=80T = 80, Af=19.75A_f = 19.75: a 0.25 % change, exactly 20 %/8120\ \%/81 (the desensitivity factor taken at the new loop gain).
  2. The loop sees β=1/50\beta = 1/50: 10 MHz/50=200 kHz10\ \text{MHz}/50 = 200\ \text{kHz}.
  3. Shunt–shunt; the input impedance is divided by 1+T1 + T, so the photodiode sees a nearly constant (virtual-ground) voltage.

Test yourself

An amplifier with loop gain T=999T = 999 has its open-loop gain halved. The closed-loop gain changes by about…

  1. 50 %50\ \%
  2. 5 %5\ \%
  3. 0.1 %0.1\ \%
  4. 0.01 %0.01\ \%

Series–shunt feedback (voltage sampled, voltage mixed) makes the input impedance…

  1. lower by 1+T1 + T
  2. higher by 1+T1 + T
  3. unchanged
  4. zero

A single-pole op-amp with GBW 1 MHz is set to a gain of 20. Its bandwidth is about…

  1. 1 MHz1\ \text{MHz}
  2. 500 kHz500\ \text{kHz}
  3. 50 kHz50\ \text{kHz}
  4. 20 kHz20\ \text{kHz}

Why does an op-amp's closed-loop output impedance rise with frequency?

  1. The resistors heat up
  2. The loop gain TT falls with frequency, so Ro/(1+T)R_o/(1 + T) rises
  3. The input capacitance grows
  4. Slew rate