Linearity and Superposition
A sensor bridge is powered from a 5 V rail, picks up a 50 Hz hum, and carries a small offset current from an amplifier input. How much of the output voltage is signal, how much hum, how much offset? If the circuit is linear, you can answer each question separately and add the answers. That is the superposition principle, and it is why engineers can talk about "the DC operating point plus a small signal", "the response to noise source ", or "the error caused by the offset current" one at a time.
Linearity
A circuit made of resistors, linear dependent sources, capacitors and inductors, driven by independent sources, is linear: every node voltage and branch current is a linear combination of the independent sources,
where the are the source values and the coefficients depend only on the components. This follows directly from nodal analysis: the sources appear only on the right-hand side of , so is linear in them. Two consequences:
- Homogeneity (scaling): doubling every source doubles every voltage and current.
- Additivity (superposition): the response to several sources is the sum of the responses to each source acting alone.
The superposition procedure
- Keep one independent source; deactivate all the others: a voltage source becomes a short circuit (), a current source an open circuit ().
- Solve for the quantity you need.
- Repeat for every independent source and add the partial results, with signs.
Dependent sources are never deactivated: they are part of the circuit, not inputs. Each partial circuit keeps them, controlled by whatever their control variable is in that circuit.
Worked example
Given: the circuit above: through , from x to ground, into x, through .
Find: by superposition, and the power in .
Solve: with every source but one deactivated, the three resistors always end up in parallel from x to ground, . A voltage source behind acts like a current into x (Source Transformation), so
The power in is .
Check: nodal analysis in one line: gives , . Now the trap: adding the partial powers gives , not . Power is quadratic, so superposition does not apply to power; add voltages or currents first, then compute power.
In Python: one source at a time
import numpy as np
R1, R2, R3 = 6.0, 3.0, 6.0 # kOhm
def vx(V1, IS, V2): # nodal equation at x, mA and V
G = 1/R1 + 1/R2 + 1/R3
return (V1/R1 + IS + V2/R3) / G
full = vx(12, 3, 6)
parts = {"V1": vx(12, 0, 0), "IS": vx(0, 3, 0), "V2": vx(0, 0, 6)}
for k, v in parts.items():
print(f"{k} alone: v_x = {v:.3f} V, P(R2) = {v**2 / R2:.3f} mW")
print(f"sum of parts: {sum(parts.values()):.3f} V, all together: {full:.3f} V")
print(f"sum of partial powers {sum(v**2 / R2 for v in parts.values()):.3f} mW "
f"vs true power {full**2 / R2:.3f} mW")
print(f"homogeneity: all sources x2 -> v_x = {vx(24, 6, 12):.3f} V")
# The coefficients k in v_x = k1*V1 + k2*IS + k3*V2:
k = [vx(1, 0, 0), vx(0, 1, 0), vx(0, 0, 1)]
print("k =", [round(float(c), 4) for c in k], "(V/V, V/mA, V/V)")V1 alone: v_x = 3.000 V, P(R2) = 3.000 mW
IS alone: v_x = 4.500 V, P(R2) = 6.750 mW
V2 alone: v_x = 1.500 V, P(R2) = 0.750 mW
sum of parts: 9.000 V, all together: 9.000 V
sum of partial powers 10.500 mW vs true power 27.000 mW
homogeneity: all sources x2 -> v_x = 18.000 V
k = [0.25, 1.5, 0.25] (V/V, V/mA, V/V)
The coefficients are the circuit's transfer ratios: volts at x per volt of and per mA of (a transresistance of ). Once you know them, any combination of source values is one multiply-add.
Interactive: turn sources on and off
Set any slider to zero to "deactivate" that source and read its contribution. With and the lab shows the -alone result ; with all three at their defaults, .
Each volt of moves by whatever the other sliders say: that independence is linearity.
Superposition with dependent sources
Add a VCCS that injects with into x. It stays in every partial circuit, so each partial nodal equation becomes with : every partial result is multiplied by . The total becomes and superposition still adds up, because the dependent source simply changed the coefficients .
Guided lab: measure the parts and the whole
Hand calculation. Bench version: is hard to make, so replace it with a third supply behind (also into x when x is at ground). Then and the contributions become , and : .
Simulation. In the lab, the equivalent is V3 c 0 DC 9 and R4 c x 3k in place of IS.
What you would measure. Three supplies (12, 9 and 6 V, each limited to 20 mA) with a common negative. "Deactivate" a voltage source by disconnecting it and joining its two wires, never by shorting a supply's output. Measure for each source alone and all together. Expect , , and , each within about , and the sum of the three partial readings equal to the full reading within the meter's uncertainty (about ), a direct test of linearity.
Hazards and safe setup. At most 12 V, current-limited. Never short a supply's terminals to "make it zero volts": take the supply out and put a wire where it was. Resistor dissipation is at most about (in with alone).
Pitfalls
- Deactivating a dependent source. Only independent sources are turned off.
- Deactivating a current source as a short. A zero current source is an open circuit; a zero voltage source is a short.
- Superposing power. Add voltages or currents, then square.
- Non-linear parts. Diodes, transistors in large-signal operation, saturated op-amps and lamps are not linear; superposition only holds for small signals around an operating point.
- Lost signs. Keep the reference direction of each partial current the same as in the full circuit.
Practice
- In the worked example, find the current through (from the side to x) by superposition.
- Change to . What is ?
- A linear circuit gives when , and when , . Find for , .
Answer
- alone: , current . alone: . alone: . Total , and directly .
- The term changes sign: .
- (V per V, V per mA): .
Test yourself
When applying superposition, an independent current source that is not acting is replaced by…
- a short circuit
- an open circuit
- its internal resistance of zero
- a voltage source of 0 V
What happens to dependent sources during superposition?
- they are deactivated like independent sources
- they stay in every partial circuit
- they are replaced by resistors
- they are included only once
Two sources acting alone give 2 mA and 3 mA through a resistor (same direction). What is the power in it with both sources on?
- 13 mW
- 25 mW
- 5 mW
- 12 mW
In the example, . What is for , , ?