Sub topic 8
Superposition as an Analysis Tool
This chapter assumes you know the ideal op amp model, the virtual short, and the gains of the inverting (−Rf/Rin) and non-inverting (1 + Rf/R1) amplifiers. It also assumes you can work out a voltage divider.
The principle
A circuit is linear if its output is a weighted sum of its inputs. In a linear circuit with several independent sources, the response to all sources acting together equals the sum of the responses to each source acting alone.
An ideal op amp with negative feedback, working inside its output limits, is a linear element. So superposition applies to every circuit in this tutorial. It lets you split one hard multi-input problem into several easy single-input problems that you already know how to solve.
The procedure
- Pick one independent source and set all the others to zero.
- Solve the simplified circuit for the output.
- Repeat for each source.
- Add the partial outputs, keeping their signs.
"Set to zero" depends on the source type:
| Source | Set to zero by | Meaning |
|---|---|---|
| Independent voltage source | Replacing it with a wire | 0 V, but the node stays connected to ground |
| Independent current source | Removing it | 0 A, an open circuit |
| Op amp (a dependent source) | Never | It is part of the circuit and always stays |
Worked example: the difference amplifier
V1 drives the inverting input through R1. Rf is the feedback resistor. V2 drives the non-inverting input through R2, and R3 runs from that input to ground.
Case 1: V2 = 0. No current flows into the ideal non-inverting input, so no current flows through R2 or R3. That input sits at 0 V. The circuit is a plain inverting amplifier:
Vout1 = −(Rf/R1) · V1
Case 2: V1 = 0. R1 now connects the inverting input to ground, so the circuit is a non-inverting amplifier. Its input is the divider voltage V+ = V2 · R3/(R2 + R3):
Vout2 = V2 · R3/(R2 + R3) · (1 + Rf/R1)
Add them:
Vout = V2 · R3/(R2 + R3) · (1 + Rf/R1) − V1 · Rf/R1
Now require matched ratios, Rf/R1 = R3/R2 = k. Then R3/(R2 + R3) = k/(1 + k), and the factor (1 + k) cancels the denominator. The result is Vout = k · (V2 − V1), a pure difference. This is the resistor-ratio condition you need for the difference amplifier.
The same method gives the summing amplifier. Each input Vi sees a virtual ground at the inverting node, so it contributes −(Rf/Ri) · Vi, and the contributions add.
Checking the result numerically
def difference_output(v1, v2, r1, rf, r2, r3):
"""Superposition: inverting term for v1 plus non-inverting term for v2."""
out1 = -(rf / r1) * v1
out2 = v2 * (r3 / (r2 + r3)) * (1 + rf / r1)
return out1 + out2
print(round(difference_output(1.0, 3.0, 10e3, 20e3, 10e3, 20e3), 3)) # 4.0With k = 2, the expected output is 2 × (3 − 1) = 4 V, and the code prints 4.0.
Exercise
A difference amplifier has R1 = R2 = 5 kΩ and Rf = R3 = 50 kΩ. The inputs are V1 = 2.0 V and V2 = 2.1 V. Use superposition to find Vout.
Show answer
Case 1 (V2 = 0): Vout1 = −(50k/5k) · 2.0 = −20 V. Case 2 (V1 = 0): V+ = 2.1 · 50k/(5k + 50k) = 1.909 V, and Vout2 = 1.909 · (1 + 10) = 21.0 V. The sum is Vout = 1.0 V. This matches 10 · (2.1 − 2.0) = 1 V, because the ratios Rf/R1 and R3/R2 are both 10. The 2 V common-mode part cancels.