Sub topic 6
A Step-by-Step Method for Analyzing Op Amp Circuits
This chapter assumes you can write KCL node equations, apply Ohm's law, and recognize a negative-feedback path. It also assumes you know the ideal op amp rules from the earlier chapters: the virtual short and zero input current. Here those rules become a fixed procedure that you can apply to any op amp circuit.
The procedure
- Confirm negative feedback. Trace a path from the output back to the inverting (−) input through a resistor, a capacitor, or a wire. If the only feedback goes to the non-inverting (+) input, the virtual short does not apply. The output will sit at a rail.
- Write the ideal constraints. Set V+ = V−. Set the current into both input terminals to zero.
- Find the voltage at the input node you know. Usually the + input is grounded or driven by a source, so V− follows from the virtual short.
- Write KCL at the inverting node. Sum the currents leaving that node through each connected element. The op amp input contributes nothing, so all current from the input branch must go through the feedback branch.
- Solve for Vout. Use Ohm's law to express each branch current in terms of node voltages.
- Check the result against the supply. If |Vout| exceeds the supply limit, the linear assumption failed. The real output sits near the rail.
Worked example: inverting amplifier
Take Vin = 1 V, R1 = 1 kΩ from the source to the inverting node, and Rf = 10 kΩ from the output to the inverting node. The + input is grounded, and the supply is ±15 V.
- Step 1: Rf connects the output to the − input, so the feedback is negative.
- Step 2 and 3: V+ = 0 V, so V− = 0 V.
- Step 4: The current through R1 toward the node is (1 − 0)/1 kΩ = 1 mA. No current enters the op amp, so 1 mA must flow through Rf away from the node toward the output.
- Step 5: Vout = V− − (1 mA)(10 kΩ) = −10 V.
- Step 6: |−10 V| is below 15 V, so the result holds.
The general result is Vout = −(Rf/R1)Vin, so the gain is −10.
The same steps work as a short calculation. This function applies them and clips the result at the supply limit:
def inverting_output(vin, r1, rf, vsat=15.0):
"""Ideal inverting amplifier: V- = 0, all input current goes through rf."""
i = (vin - 0.0) / r1 # current into the inverting node
vout = 0.0 - i * rf # voltage drop across rf
return max(-vsat, min(vsat, vout))
print(inverting_output(1.0, 1e3, 10e3)) # about -10
print(inverting_output(2.0, 1e3, 10e3)) # -15.0, the ideal -20 V is clippedCommon errors
| Error | Why it fails |
|---|---|
| Applying V+ = V− with no feedback to the − input | Without negative feedback, the output saturates and the two inputs can differ. |
| Treating the virtual short as a real connection | No current flows through it. It only equates voltages. |
| Forgetting that the input draws zero current | This leads to extra terms in the KCL equation. |
| Skipping the saturation check | The calculated output can exceed the supply, which the real device cannot reach. |
Exercise
A non-inverting input is driven by Vin = 0.5 V. The inverting node connects through Rg = 2 kΩ to ground and through Rf = 18 kΩ to the output. The supply is ±15 V. Use the six steps to find Vout and say whether it is valid.
Show answer
Feedback goes from the output to the − input through Rf, so it is negative. V− = V+ = 0.5 V. The current through Rg to ground is 0.5 V / 2 kΩ = 0.25 mA. This current comes from the output through Rf, so Vout = 0.5 V + (0.25 mA)(18 kΩ) = 5 V. This matches 1 + Rf/Rg = 10 times 0.5 V. Since 5 V is below 15 V, the result is valid.