Sub topic 8
The Non-Inverting Amplifier
This chapter assumes you know KCL, Ohm's law, voltage dividers, and the two ideal op amp constraints from earlier chapters: the virtual short (V+ = V−) and zero current into either input.
The circuit
The input signal Vin connects directly to the non-inverting (+) terminal. Resistor Rf runs from the output to the inverting (−) terminal. Resistor Rg runs from the inverting terminal to ground. The feedback goes to the − input, so the feedback is negative.
Derivation
Apply the analysis procedure.
- Virtual short. The + input is at Vin, so the − input is also at Vin.
- Voltage divider. No current enters the − terminal, so the same current flows through Rf and Rg. Rg sees Vin across it, so the current is I = Vin / Rg.
- KVL across Rf. The same current I flows through Rf, so Vout = Vin + I·Rf = Vin + Vin·Rf / Rg.
The result:
Vout / Vin = 1 + Rf / Rg
The gain is positive, so the output has the same polarity as the input. It is never less than 1. With Rf = 9 kΩ and Rg = 1 kΩ, the gain is 10.
You can also read this as a voltage divider. The feedback network returns the fraction β = Rg / (Rf + Rg) of Vout to the − input. The loop settles when β·Vout = Vin, so Vout = Vin / β.
Input resistance
The input goes straight into the op amp's + terminal, which draws no current in the ideal model. The input resistance is therefore infinite. This is the main practical advantage over the inverting amplifier, whose input resistance equals Rin. A non-inverting stage barely loads its source.
Checking the result numerically
The code below compares the ideal gain with the gain for a finite open-loop gain A. The finite-gain formula is ideal / (1 + ideal / A).
def noninverting_gain(rf, rg, a=None):
"""Closed-loop gain Vout/Vin of the non-inverting amplifier."""
ideal = 1 + rf / rg
if a is None:
return ideal
return ideal / (1 + ideal / a)
print(noninverting_gain(9e3, 1e3)) # 10.0
print(noninverting_gain(9e3, 1e3, a=1e5)) # about 9.999With A = 100,000, the gain differs from 10 by about 0.01%. The ideal model is accurate here.
Common errors
- Swapping the gain formulas. The inverting amplifier gives −Rf/Rin. The non-inverting amplifier gives 1 + Rf/Rg. The "1 +" is easy to drop.
- Using the wrong resistor. Rg, not Rf, sets the current from the virtual-short voltage.
- Ignoring saturation. If the computed Vout exceeds the supply rails, the output clips and the linear analysis fails. With ±15 V supplies and a gain of 10, an input above about 1.5 V saturates the output.
- Connecting the feedback to the + terminal. That creates positive feedback, and the virtual short no longer holds.
Exercise
A non-inverting amplifier has Rf = 47 kΩ and Rg = 4.7 kΩ. The input is 0.3 V and the supplies are ±12 V. What are the gain and the output voltage? Is the output saturated?
Show answer
The gain is 1 + 47 kΩ / 4.7 kΩ = 1 + 10 = 11. The output is 11 × 0.3 V = 3.3 V. This is inside ±12 V, so the output is not saturated and the linear analysis holds.
Exercise
You need a gain of 5 using Rg = 2 kΩ. What value of Rf is required?
Show answer
5 = 1 + Rf / 2 kΩ, so Rf / 2 kΩ = 4 and Rf = 8 kΩ.