Sub topic 3
The virtual short and the summing node
This chapter assumes you can apply Ohm's law and Kirchhoff's current law (KCL) at a node, and that you know the basic idea of voltage gain. Earlier chapters introduced the ideal op amp and the role of negative feedback. Here we turn those ideas into a working analysis tool. The next two chapters use it to derive the gain of each configuration.
Where the virtual short comes from
An op amp amplifies the difference between its two inputs:
Vout = A × (V+ − V−)
A is the open-loop gain. For a general-purpose op amp it is typically 100,000 or more at DC. Rearrange the equation:
V+ − V− = Vout / A
The output of a real circuit is limited by the supply rails, say ±15 V. With A = 100,000, the differential input voltage can be at most 15 V / 100,000 = 150 µV. In the ideal limit, A → ∞, so the difference goes to zero:
V+ = V−
This is the virtual short. The two inputs sit at the same voltage, as if they were wired together. No wire connects them, so no current flows between them through the short.
The second ideal assumption is infinite input resistance. The input terminals draw no current:
I+ = I− = 0
These two statements are the whole toolkit:
| Rule | Statement | Source |
|---|---|---|
| Voltage rule | V+ = V− | A → ∞ and the output stays finite |
| Current rule | I+ = I− = 0 | Infinite input resistance |
The two rules differ in kind. The voltage rule only holds when the circuit forces it, which requires negative feedback. The current rule is a property of the input stage. It holds whether or not there is feedback, but only approximately in a real device (see the DC errors chapter).
Why feedback is required for the short
Having a huge A does not by itself make V+ = V−. Consider an op amp with no feedback and V+ − V− = 1 mV. The output would try to reach 100 V, hit the rail, and stay there. The two inputs are not equal.
Negative feedback changes this. Part of the output returns to the inverting input in a way that opposes any difference:
- Suppose V− falls below V+. The difference V+ − V− becomes positive.
- The output rises.
- The feedback network carries part of that rise back to V−, pulling it up toward V+.
- The loop settles when the difference is only Vout / A, which is tiny.
The op amp adjusts its output until the feedback brings V− to match V+. You do not set the output voltage directly. The output is whatever value makes the inputs equal.
The summing node
The summing node is the node connected to the inverting input. Because no current enters the inverting terminal (I− = 0), every current flowing into this node from the input resistors must leave through the feedback path. The node adds up currents, hence the name.
KCL at the summing node, with currents defined as entering the node:
Iin + If = 0
So the feedback current exactly cancels the input current. The op amp supplies whatever output voltage drives the feedback resistor to carry that current.
Two points are worth stating separately.
- The summing node is a voltage constraint (it equals V+) and a current junction (all currents sum to zero). The virtual short fixes the voltage. KCL fixes the currents. You need both.
- If the non-inverting input is grounded, the summing node sits at 0 V without a physical connection to ground. It is then called a virtual ground. A virtual ground is a special case of the virtual short and does not apply when V+ is not 0 V.
Worked example: inverting connection
Take Vin = 0.5 V applied through Rin = 2 kΩ to the inverting input. A feedback resistor Rf = 10 kΩ connects the output to the inverting input. The non-inverting input is grounded.
- V+ = 0, so V− = 0 by the voltage rule.
- The current through Rin is (0.5 V − 0 V) / 2 kΩ = 0.25 mA, flowing toward the summing node.
- No current enters the op amp, so 0.25 mA continues through Rf toward the output.
- The drop across Rf is 0.25 mA × 10 kΩ = 2.5 V, with the higher potential at the summing node. So Vout = 0 − 2.5 V = −2.5 V.
The ratio is −2.5 / 0.5 = −5, which is −Rf/Rin. The next chapter repeats this derivation symbolically.
Worked example: non-inverting connection
Here Vin = 1 V goes directly to the non-inverting input. Rg = 1 kΩ runs from the inverting input to ground, and Rf = 9 kΩ runs from the output to the inverting input.
- V+ = 1 V, so V− = 1 V.
- The current through Rg is 1 V / 1 kΩ = 1 mA, flowing to ground.
- No current enters the inverting input, so the same 1 mA flows through Rf from the output.
- The drop across Rf is 1 mA × 9 kΩ = 9 V, so Vout = 1 V + 9 V = 10 V.
The summing node is again at the voltage of the other input. This time that voltage is not zero, so the node is not a virtual ground.
Summing several inputs
Because the summing node adds currents, several sources can feed it through separate resistors. Let V1 = 1 V through R1 = 10 kΩ and V2 = 2 V through R2 = 20 kΩ, with Rf = 10 kΩ and the non-inverting input grounded.
- The current from V1 is 1 V / 10 kΩ = 0.1 mA.
- The current from V2 is 2 V / 20 kΩ = 0.1 mA.
- The total of 0.2 mA flows through Rf, so Vout = −0.2 mA × 10 kΩ = −2 V.
In general, Vout = −Rf × (V1/R1 + V2/R2 + …). Each source sees only its own resistor, because the summing node stays at 0 V and the sources cannot drive current into each other. This is a convenient property of the virtual ground.
The following Python function applies this node equation. It is a direct translation of the KCL step, so it also works as a check on hand calculations.
def summing_amp(rf, sources):
"""Output of an inverting summing amplifier with a grounded + input.
sources is a list of (voltage, resistance) pairs feeding the summing node.
"""
node_current = sum(v / r for v, r in sources)
return -rf * node_current
print(summing_amp(10e3, [(0.5, 2e3)])) # -2.5
print(summing_amp(10e3, [(1.0, 10e3), (2.0, 20e3)])) # -2.0How far from zero is the "short"?
The virtual short is an approximation. You can compute the actual difference once you know Vout and A.
In the inverting circuit with a gain of −10 and Vin = 1 V, the ideal output is −10 V. With A = 100,000:
- V− = V+ − Vout / A = 0 − (−10 V) / 100,000 = +100 µV
- The summing node sits 100 µV above ground, not exactly at 0 V.
That is a tiny error relative to the 1 V input, which is why the approximation works. The code example in the finite-gain chapter shows that this offset changes the closed-loop gain by only about 0.01%.
The error grows when A is small, which happens at high frequency because A falls with frequency. At the frequency where A drops to about 10, the difference is no longer negligible. This links to the gain-bandwidth chapter.
When the virtual short does not apply
The virtual short is a consequence of the circuit, not a property of the op amp. Check these cases before you use it.
No feedback, or positive feedback
A comparator has no feedback and its output swings to a rail. A Schmitt trigger feeds back to the non-inverting input. In both, V+ and V− differ by a large amount. Do not set them equal.
Feedback to the wrong input
If a feedback resistor goes to the non-inverting input and none goes to the inverting input, the feedback is positive. The output saturates, and the inputs are not at the same voltage. Swapping the two op amp inputs in a correct circuit is a common wiring error that turns it into this case.
Saturated output
If the calculated output exceeds the supply range, the op amp cannot deliver it. The output sits near a rail, and the loop no longer holds V− at V+. The "equal inputs" assumption fails exactly when the output clips. Always compute Vout first, then check it against the rails.
Feedback through a reactive element
With capacitors or inductors in the loop, the virtual short still holds at frequencies where the loop gain is high, but the relation between currents uses impedances instead of resistances. The reasoning is the same.
Common mistakes
- Treating the short as a connection. The inputs are at the same voltage, but no current flows between them. Do not draw a current path from V+ to V−. The current rule I = 0 still applies.
- Assuming the summing node is always 0 V. It equals V+. It is 0 V only when the non-inverting input is grounded.
- Forgetting the sign of the feedback current. Current into the summing node from Rin leaves through Rf toward the output. Write the Rf drop as V− − Vout, not Vout − V−.
- Using the rules to find the output current. The virtual short tells you nothing about the current the op amp's output stage supplies. The load current flows from the output and must be found from the load and the feedback network.
- Applying the rules at the output pin. The output is driven by the amplifier. Its voltage is the answer to the node equations, not an input to them.
Summary of the method
- Check that negative feedback is present.
- Set V− = V+ and write that voltage on the schematic.
- Write KCL at the summing node with I− = 0.
- Solve for Vout.
- Check Vout against the supply rails.
Exercise
An op amp has A = 200,000 and an inverting amplifier with the non-inverting input grounded produces Vout = −8 V. What is the voltage at the inverting input, and what current does Rin = 4 kΩ carry if Vin = 1 V?
Show answer
V− = V+ − Vout/A = 0 − (−8 V)/200,000 = +40 µV. The current through Rin is (1 V − 40 µV) / 4 kΩ, about 0.25 mA (0.249990 mA). Treating the summing node as 0 V gives 0.25 mA, so the error from the non-ideal short is negligible.
Exercise
A non-inverting amplifier has Vin = 2 V at the non-inverting input, Rg = 2 kΩ from the inverting input to ground, and Rf = 6 kΩ from the output to the inverting input. The supply is ±12 V. Find the voltage at the summing node, the current in Rf, and Vout. Is the output within the rails?
Show answer
V− = V+ = 2 V. The current in Rg is 2 V / 2 kΩ = 1 mA, and since no current enters the op amp, Rf carries 1 mA. The drop across Rf is 1 mA × 6 kΩ = 6 V, so Vout = 2 V + 6 V = 8 V. This is inside ±12 V, so the result is valid.
Exercise
An inverting summing amplifier has Rf = 20 kΩ, V1 = 0.5 V through R1 = 10 kΩ, and V2 = −1 V through R2 = 5 kΩ. What is Vout?
Show answer
The node current is 0.5 V / 10 kΩ + (−1 V) / 5 kΩ = 0.05 mA − 0.2 mA = −0.15 mA. Vout = −Rf × (−0.15 mA) = −20 kΩ × (−0.15 mA) = +3 V.