TExcelTAD
Home › Circuit Theory & Network Analysis › Linearity and Superposition

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 kk", 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,

y=k1x1+k2x2+⋯+knxny = k_1 x_1 + k_2 x_2 + \cdots + k_n x_n

where the xkx_k are the source values and the coefficients kkk_k depend only on the components. This follows directly from nodal analysis: the sources appear only on the right-hand side of G v=iG\,\mathbf{v} = \mathbf{i}, so v=G−1i\mathbf{v} = G^{-1}\mathbf{i} 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

  1. Keep one independent source; deactivate all the others: a voltage source becomes a short circuit (V=0V = 0), a current source an open circuit (I=0I = 0).
  2. Solve for the quantity you need.
  3. 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.

+ - V1 12 V R1 6 kOhm R2 3 kOhm IS 3 mA R3 6 kOhm + - V2 6 V x

Worked example

Given: the circuit above: V1=12 VV_1 = 12\ \text{V} through R1=6 kΩR_1 = 6\ \text{k}\Omega, R2=3 kΩR_2 = 3\ \text{k}\Omega from x to ground, IS=3 mAI_S = 3\ \text{mA} into x, V2=6 VV_2 = 6\ \text{V} through R3=6 kΩR_3 = 6\ \text{k}\Omega.

Find: vxv_x by superposition, and the power in R2R_2.

Solve: with every source but one deactivated, the three resistors always end up in parallel from x to ground, Rp=6∥3∥6=1.5 kΩR_p = 6 \parallel 3 \parallel 6 = 1.5\ \text{k}\Omega. A voltage source VV behind RR acts like a current V/RV/R into x (Source Transformation), so

vx′=12 V6 kΩ⋅1.5 kΩ=3.0 VV1 alonevx′′=3 mA⋅1.5 kΩ=4.5 VIS alonevx′′′=6 V6 kΩ⋅1.5 kΩ=1.5 VV2 alonevx=3.0+4.5+1.5=9.0 V\begin{aligned} v_x' &= \frac{12\ \text{V}}{6\ \text{k}\Omega} \cdot 1.5\ \text{k}\Omega = 3.0\ \text{V} && V_1 \text{ alone} \\ v_x'' &= 3\ \text{mA} \cdot 1.5\ \text{k}\Omega = 4.5\ \text{V} && I_S \text{ alone} \\ v_x''' &= \frac{6\ \text{V}}{6\ \text{k}\Omega} \cdot 1.5\ \text{k}\Omega = 1.5\ \text{V} && V_2 \text{ alone} \\ v_x &= 3.0 + 4.5 + 1.5 = 9.0\ \text{V} \end{aligned}

The power in R2R_2 is vx2/R2=81/3=27 mWv_x^2/R_2 = 81/3 = 27\ \text{mW}.

Check: nodal analysis in one line: (vx−12)/6+vx/3+(vx−6)/6=3(v_x - 12)/6 + v_x/3 + (v_x - 6)/6 = 3 gives vx(1/6+1/3+1/6)=3+2+1v_x (1/6 + 1/3 + 1/6) = 3 + 2 + 1, vx=6/(2/3)=9 Vv_x = 6/(2/3) = 9\ \text{V}. Now the trap: adding the partial powers gives (32+4.52+1.52)/3=10.5 mW(3^2 + 4.5^2 + 1.5^2)/3 = 10.5\ \text{mW}, not 27 mW27\ \text{mW}. 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

python · try it yourself
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: 0.250.25 volts at x per volt of V1V_1 and 1.5 V1.5\ \text{V} per mA of ISI_S (a transresistance of 1.5 kΩ1.5\ \text{k}\Omega). 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 V2=0V_2 = 0 and IS=0I_S = 0 the lab shows the V1V_1-alone result vx=3 Vv_x = 3\ \text{V}; with all three at their defaults, 9 V9\ \text{V}.

node voltages (to ground 0)a12.00 Vx9.000 Vb6.000 VnetlistV1 a 0 DC 12R1 a x 6kR2 x 0 3kIS 0 x DC 3mR3 x b 6kV2 b 0 DC 6element currents (node 1 to node 2 through it)V1a>0-500 uAR1a>x500 uAR2x>03.00 mAIS0>x3.00 mAR3x>b500 uAV2b>0500 uA

Each volt of V1V_1 moves vxv_x by 0.25 V0.25\ \text{V} whatever the other sliders say: that independence is linearity.

Superposition with dependent sources

Add a VCCS that injects gmvxg_m v_x with gm=0.5 mSg_m = 0.5\ \text{mS} into x. It stays in every partial circuit, so each partial nodal equation becomes vx(G−gm)=(source term)v_x (G - g_m) = (\text{source term}) with G=2/3 mSG = 2/3\ \text{mS}: every partial result is multiplied by (2/3)/(2/3−1/2)=4(2/3)/(2/3 - 1/2) = 4. The total becomes 36 V36\ \text{V} and superposition still adds up, because the dependent source simply changed the coefficients kkk_k.

Guided lab: measure the parts and the whole

Hand calculation. Bench version: ISI_S is hard to make, so replace it with a third supply V3=9 VV_3 = 9\ \text{V} behind 3 kΩ3\ \text{k}\Omega (also 3 mA3\ \text{mA} into x when x is at ground). Then Rp=6∥3∥6∥3=1 kΩR_p = 6 \parallel 3 \parallel 6 \parallel 3 = 1\ \text{k}\Omega and the contributions become 2.02.0, 3.03.0 and 1.0 V1.0\ \text{V}: vx=6.0 Vv_x = 6.0\ \text{V}.

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 vxv_x for each source alone and all together. Expect 2.002.00, 3.003.00, 1.001.00 and 6.00 V6.00\ \text{V}, each within about ±1.5 %\pm 1.5\,\%, and the sum of the three partial readings equal to the full reading within the meter's uncertainty (about ±0.01 V\pm 0.01\ \text{V}), 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 17 mW17\ \text{mW} (in R1R_1 with V1V_1 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

  1. In the worked example, find the current through R1R_1 (from the V1V_1 side to x) by superposition.
  2. Change V2V_2 to −6 V-6\ \text{V}. What is vxv_x?
  3. A linear circuit gives vo=2 Vv_o = 2\ \text{V} when V1=1 VV_1 = 1\ \text{V}, I1=0I_1 = 0 and vo=5 Vv_o = 5\ \text{V} when V1=1 VV_1 = 1\ \text{V}, I1=1 mAI_1 = 1\ \text{mA}. Find vov_o for V1=3 VV_1 = 3\ \text{V}, I1=2 mAI_1 = 2\ \text{mA}.
Answer
  1. V1V_1 alone: vx′=3 Vv_x' = 3\ \text{V}, current (12−3)/6=1.5 mA(12 - 3)/6 = 1.5\ \text{mA}. ISI_S alone: (0−4.5)/6=−0.75 mA(0 - 4.5)/6 = -0.75\ \text{mA}. V2V_2 alone: (0−1.5)/6=−0.25 mA(0 - 1.5)/6 = -0.25\ \text{mA}. Total 0.5 mA0.5\ \text{mA}, and directly (12−9)/6=0.5 mA(12 - 9)/6 = 0.5\ \text{mA}.
  2. The V2V_2 term changes sign: 3.0+4.5−1.5=6.0 V3.0 + 4.5 - 1.5 = 6.0\ \text{V}.
  3. vo=2V1+3I1v_o = 2 V_1 + 3 I_1 (V per V, V per mA): 6+6=12 V6 + 6 = 12\ \text{V}.

Test yourself

When applying superposition, an independent current source that is not acting is replaced by…

  1. a short circuit
  2. an open circuit
  3. its internal resistance of zero
  4. a voltage source of 0 V

What happens to dependent sources during superposition?

  1. they are deactivated like independent sources
  2. they stay in every partial circuit
  3. they are replaced by resistors
  4. they are included only once

Two sources acting alone give 2 mA and 3 mA through a 1 kΩ1\ \text{k}\Omega resistor (same direction). What is the power in it with both sources on?

  1. 13 mW
  2. 25 mW
  3. 5 mW
  4. 12 mW

In the example, vx=0.25V1+1.5 kΩ⋅IS+0.25V2v_x = 0.25 V_1 + 1.5\ \text{k}\Omega \cdot I_S + 0.25 V_2. What is vxv_x for V1=8 VV_1 = 8\ \text{V}, IS=2 mAI_S = 2\ \text{mA}, V2=4 VV_2 = 4\ \text{V}?

  1. 6 V6\ \text{V}
  2. 7 V7\ \text{V}
  3. 5 V5\ \text{V}
  4. 9 V9\ \text{V}