Sub topic 1
The Ideal Op Amp: What We Assume
Prerequisites
This chapter assumes you know Ohm's law, Kirchhoff's current law, how resistors combine in series and parallel, and the basic idea of gain. An op amp (operational amplifier) is an integrated circuit with two inputs and one output. It amplifies the voltage difference between its inputs by a very large factor called the open-loop gain.
The Ideal Op Amp Model
For analysis, we treat the op amp as ideal:
- The open-loop gain A is infinite.
- The input resistance is infinite, so no current enters either input.
- The output resistance is zero.
- The bandwidth is infinite.
Real op amps have open-loop gains of 100,000 or more, so the ideal model is a useful starting point. Later sections of the tutorial cover the errors it hides.
Why Negative Feedback Sets the Gain
Feedback means part of the output returns to the input. Negative feedback connects the output to the inverting input (the minus terminal). If the output rises, the input difference shrinks, which pushes the output back down. The circuit settles where the two inputs are almost equal. The external resistors then set the gain, not the huge internal value A.
The Virtual Short and the Summing Node
Because A is infinite and the output voltage is finite, the input difference must be zero. This is the virtual short: the two inputs sit at the same voltage without being physically connected. Since no current enters the inputs, the inverting node works as a summing node, where the currents from all connected branches add to zero.
The Inverting Amplifier: Vout = -(Rf/Rin) Vin
Connect Rin from the source to the inverting input, and Rf from the output back to the same node. Ground the non-inverting input. The virtual short holds the inverting node at 0 V.
The current through Rin is I = Vin / Rin. That same current flows through Rf, so Vout = -I × Rf = -(Rf/Rin) Vin.
def inverting_gain(rf, rin):
return -rf / rin
print(inverting_gain(10e3, 1e3)) # -10.0Exercise
An inverting amplifier has Rin = 2 kilohms and Rf = 20 kilohms. What is the gain, and what is Vout when Vin = 0.3 V?
Show answer
The gain is -20/2 = -10. Vout = -10 × 0.3 V = -3.0 V.