Sub topic 3
The Superposition Principle
This chapter assumes you can apply Ohm's law and Kirchhoff's laws, reduce series and parallel resistors, use voltage and current dividers, and recognize ideal voltage and current sources. You should also know what "linear element" means from the earlier chapters. Here the principle itself is stated, and we explain why it is true and what it covers. The mechanics of turning sources off come next.
The statement
In a circuit made only of linear elements and independent sources, any branch voltage or branch current equals the algebraic sum of the values produced by each independent source acting alone.
Suppose a circuit has independent sources s₁, s₂, …, sₙ. Each is a voltage or a current. Let y be any voltage or current you want to find. The principle says:
y = y₁ + y₂ + … + yₙ
Here yₖ is the value of y when only source k is active and every other independent source is turned off. The sum is algebraic. Each yₖ carries a sign, set by the reference direction you chose for y.
Three conditions are built into the statement:
- The circuit is linear.
- The sources are independent. Dependent sources are part of the circuit and stay in it.
- The quantity y is a voltage or a current. It is not a power.
Why it holds
The principle is a consequence of linearity, which has two parts:
- Homogeneity. Scaling every input by k scales every output by k.
- Additivity. The response to a sum of inputs is the sum of the responses to each input.
A circuit of resistors and sources obeys both because its governing equations are linear. Kirchhoff's current law at each node, combined with Ohm's law, gives a system of the form
G v = i
- v is the vector of unknown node voltages.
- G is the conductance matrix. It depends only on the resistor values and how they are connected.
- i is the vector of source terms. A current source injects its current into a node. A voltage source in series with a resistor R contributes V/R, which is its Norton equivalent.
Source values appear only on the right-hand side, and they appear linearly. If G is invertible, then
v = G⁻¹ i
Split i into one vector per source, i = i₁ + i₂ + … + iₙ. Matrix multiplication distributes over addition, so
v = G⁻¹i₁ + G⁻¹i₂ + … + G⁻¹iₙ
Each term on the right is the solution when only one source is present. That is the principle. Mesh equations are linear in the same way, so the argument is the same.
The coefficient view
Every node voltage and branch current is a weighted sum of the source values:
y = a₁s₁ + a₂s₂ + … + aₙsₙ
The constants aₖ depend only on the network. They have units, and the units depend on the source type:
- If sₖ is a voltage source and y is a voltage, aₖ is dimensionless, like a divider ratio.
- If sₖ is a current source and y is a voltage, aₖ is in ohms.
- If sₖ is a voltage source and y is a current, aₖ is in siemens (1/ohm).
- If sₖ is a current source and y is a current, aₖ is dimensionless.
A concrete case is a 12 V source V₁ in series with R₁ = 4 Ω, feeding a node A. R₂ = 6 Ω connects A to ground, and a current source I₁ injects current into A. The node voltage is
V_A = (R₂ / (R₁ + R₂)) V₁ + (R₁R₂ / (R₁ + R₂)) I₁ = 0.6 V₁ + 2.4 I₁
The 0.6 is a divider ratio and the 2.4 Ω is R₁ in parallel with R₂. With V₁ = 12 V and I₁ = 2 A, the two terms are 7.2 V and 4.8 V, and V_A = 12 V. Changing a source value changes only its own term.
Seeing the mechanism numerically
The script below builds the conductance matrix for a two-node network of three resistors. It solves for each current source alone and then for both together. It also checks homogeneity.
import numpy as np
# Node 1 -- R1 (2 ohm) -- ground
# Node 1 -- R2 (4 ohm) -- node 2
# Node 2 -- R3 (4 ohm) -- ground
R1, R2, R3 = 2.0, 4.0, 4.0
G = np.array([
[1 / R1 + 1 / R2, -1 / R2],
[-1 / R2, 1 / R2 + 1 / R3],
])
def solve(i_vec):
"""Node voltages for current injections i_vec = [into node 1, into node 2]."""
return np.linalg.solve(G, np.array(i_vec, dtype=float))
v_a_alone = solve([3.0, 0.0]) # source A only (3 A into node 1)
v_b_alone = solve([0.0, 1.0]) # source B only (1 A into node 2)
v_both = solve([3.0, 1.0]) # both sources active
print("A alone :", v_a_alone) # [4.8 2.4]
print("B alone :", v_b_alone) # [0.8 2.4]
print("Sum :", v_a_alone + v_b_alone) # [5.6 4.8]
print("Both :", v_both) # [5.6 4.8]
assert np.allclose(v_a_alone + v_b_alone, v_both)
# Homogeneity: doubling a source doubles its contribution
assert np.allclose(solve([6.0, 0.0]), 2 * v_a_alone)The sum of the two single-source solutions equals the two-source solution at both nodes. Only the right-hand side changed between runs. G never changed, and that is why the method works.
What "acting alone" means
The phrase "acting alone" does not mean the other sources are deleted from the drawing. The other sources are replaced by their zero-valued equivalents. A zero-volt source is a short circuit, and a zero-amp source is an open circuit. The resistors they were attached to remain in the network. The next chapter treats this in detail. For now the point is that the network G does not change between single-source cases.
Which quantities it applies to
| Quantity | Superposition valid? | Reason |
|---|---|---|
| Node or branch voltage | Yes | Linear in the source values |
| Branch or mesh current | Yes | Linear in the source values |
| Power in a resistor | No | Proportional to the square of voltage or current |
| Energy over time from one source | No | Same reason: it is quadratic |
| Voltage across a diode or other nonlinear element | No | The element's equations are not linear |
Power is the most common trap. If V = V′ + V″ across a resistor R, then
P = (V′ + V″)² / R = V′²/R + V″²/R + 2V′V″/R
The last term is the cross term, and it is nonzero whenever both sources contribute. Adding the partial powers drops it. The correct procedure is to sum the voltages (or currents) first and compute power from the total. A later chapter works this through with numbers.
Dependent sources and initial conditions
A dependent source is a source whose value is set by a voltage or current elsewhere in the circuit. If the control relation is linear, such as v = 2·i_x, the element is linear and does not break the principle. It is not one of the inputs. It stays in the circuit for every single-source case, and its value follows its control variable in each case. Only independent sources are turned off one at a time. Chapter 9 of this tutorial covers the details.
In circuits with capacitors and inductors, initial stored energy behaves like additional independent sources. A capacitor with initial voltage V₀ can be modeled as an uncharged capacitor in series with a V₀ source. Superposition then applies to those sources too. This is why the response of a linear circuit with memory splits into a zero-state part and a zero-input part.
Scope and common errors
Here are the mistakes that most often appear when people first use the principle.
- Applying it to power. The principle is for voltage and current only.
- Deleting a source's branch instead of replacing it. Removing a turned-off voltage source's wire leaves an open circuit where a short belongs. The network G changes, and the result is wrong.
- Turning off dependent sources. They are part of the network. Setting them to zero removes a linear element and changes G.
- Inconsistent reference directions. Define the polarity of y once, and measure y in the same direction in every single-source case. A partial result with the opposite sign must be added as negative.
- Using it on nonlinear elements. A diode, a transistor in a large-signal model, or a saturating inductor breaks additivity. You can sometimes linearize around an operating point, but that is a separate technique with its own limits.
- Assuming it reduces work. For a circuit with n independent sources you solve n smaller circuits. That saves effort only when each single-source circuit is easier than the combined one. A later chapter gives decision criteria.
A quick test for linearity of the whole case
Before using the principle, check these three things:
- Every passive element obeys a linear law, such as v = Ri, i = C dv/dt or v = L di/dt.
- Every dependent source has a linear control relation.
- The quantity you want is a voltage or a current.
If all three hold, the principle applies. If any one fails, use another method or modify the model first.
Exercise
A linear circuit with two independent sources gives Vout = 5 V when only source s₁ is active and Vout = −2 V when only source s₂ is active. (a) What is Vout with both active? (b) What is Vout if s₁ is doubled and s₂ is left unchanged? (c) If V_out is across a 10 Ω resistor, why is the power with both sources active not the sum of the two single-source powers?
Show answer
(a) By additivity, Vout = 5 + (−2) = 3 V. (b) By homogeneity, doubling s₁ doubles its contribution to 10 V, so Vout = 10 + (−2) = 8 V. (c) The single-source powers are 25/10 = 2.5 W and 4/10 = 0.4 W, which sum to 2.9 W. The true power is 3²/10 = 0.9 W. The difference is the cross term 2·(5)(−2)/10 = −2 W, which the sum of partial powers leaves out.
Exercise
In the two-node script above, the conductance matrix is G = [[0.75, −0.25], [−0.25, 0.5]] siemens. The solution for a 3 A injection into node 1 alone is [4.8, 2.4] V. What is the node-1 voltage if the injection into node 1 changes to 5 A and a 1 A injection into node 2 is added? Use the stored results from the chapter.
Show answer
The 5 A injection alone scales the 3 A result by 5/3, giving 8 V at node 1. The 1 A injection into node 2 alone gives 0.8 V at node 1. By superposition the node-1 voltage is 8 + 0.8 = 8.8 V. Check with the equations: 0.75(8.8) − 0.25(v₂) = 5 with v₂ = 6.4 gives 6.6 − 1.6 = 5, and −0.25(8.8) + 0.5(6.4) = 1, so both equations hold.