Sub topic 4
Inverting amplifier as the building block
This chapter assumes you know Ohm's law, KCL, and the ideal op amp model with the virtual short from the previous chapters. The inverting amplifier is the circuit that the summing amplifier, the weighted DAC, and the integrator are all built from. Learn it well and the rest become small changes to it.
The circuit
The input source Vin connects through resistor R1 to the inverting (−) input. A feedback resistor Rf runs from the output back to that same input. The non-inverting (+) input is tied to ground.
Deriving the gain
Two ideal-op-amp facts do all the work.
- Negative feedback forces the virtual short, so V− = V+ = 0 V. The inverting node is a virtual ground: it sits at 0 V but is not connected to ground.
- The input current of the op amp is zero, so no current enters the − terminal.
With V− = 0 V, the current through R1 is set only by Vin:
I1 = Vin / R1
All of this current must continue through Rf, because none can enter the op amp. The voltage across Rf is the node voltage (0 V) minus Vout, so:
I1 = (0 − Vout) / Rf
Setting the two currents equal:
Vin / R1 = −Vout / Rf
Vout = −(Rf / R1) · Vin
The gain is −Rf/R1. It depends only on the resistor ratio, not on the op amp. The minus sign means the output is inverted: a positive input gives a negative output.
Input resistance
Because the inverting node is at 0 V, the source sees R1 connected to ground. The input resistance is therefore R1. This differs from the non-inverting amplifier, which has very high input resistance. If your source has its own resistance Rs, the gain becomes −Rf/(R1 + Rs).
Check it in simulation
With R1 = 10 kΩ and Rf = 30 kΩ the gain should be −3, so a 1 V input should give about −3 V. This SPICE netlist models the op amp as a high-gain voltage-controlled voltage source.
* Inverting amplifier, gain = -Rf/R1 = -3
Vin in 0 DC 1
R1 in inv 10k
Rf inv out 30k
E1 out 0 0 inv 100k
.op
.endThe result is slightly under 3 V in magnitude, because the model's gain is finite (100 000) rather than infinite.
Common errors
- Forgetting the sign. The gain is negative. Writing Rf/R1 gives the wrong polarity.
- Treating the virtual ground as a real ground. No current flows from the − node to ground. All of I1 goes through Rf.
- Ignoring source resistance. Rs adds to R1 and lowers the gain.
- Expecting a gain below 1 in magnitude to behave differently. The formula still holds when Rf < R1, which gives attenuation.
Why it is a building block
The key idea is that the inverting node is held at 0 V, so each input branch makes a current that depends only on its own source and resistor. These currents add at the node, and Rf converts the total current into a voltage. The next chapters use this directly.
Exercise
An inverting amplifier has R1 = 2 kΩ and Rf = 50 kΩ. What is Vout for Vin = 0.1 V, and what input resistance does the source see?
Show answer
The gain is −Rf/R1 = −50k/2k = −25, so Vout = −25 × 0.1 V = −2.5 V. The source sees an input resistance equal to R1, which is 2 kΩ.
Exercise
In the inverting amplifier, Vin = 2 V, R1 = 10 kΩ, and Rf = 20 kΩ. What current flows through Rf, and in which direction relative to the output?
Show answer
The current through R1 is 2 V / 10 kΩ = 0.2 mA, and the same current flows through Rf because the op amp input draws none. It flows from the inverting node toward the output, which pulls the output to 0 − (0.2 mA × 20 kΩ) = −4 V.