Sub topic 3
The Superposition Principle
This chapter assumes you know Ohm's law, Kirchhoff's current and voltage laws (KCL and KVL), series and parallel resistor combinations, voltage and current dividers, and the idea of ideal voltage and current sources. It also assumes you already know what makes a circuit linear. This chapter uses that property to state the principle and show why it holds.
The statement
In a linear circuit with several independent sources, any voltage or current equals the algebraic sum of the values that each independent source produces when it acts alone.
"Algebraic" means signs count. A partial response can be negative if that source pushes current or voltage against the reference direction you chose for the quantity you are finding.
The principle is a rule about how responses combine. You can trade one hard problem for several easy ones, because a circuit with a single source usually reduces to series and parallel combinations and dividers.
Why it holds
Superposition follows from linearity. A linear element obeys both homogeneity (scaling its input scales its output) and additivity (the output for a sum of inputs is the sum of the outputs). Resistors, ideal sources, and linear dependent sources all meet this requirement.
Writing KCL and KVL for a circuit made of such elements gives linear equations. Collect them in matrix form:
A x = b
Here x holds the unknown voltages and currents. The vector b holds the source values, and each independent source appears in b as a separate additive term. If b = b1 + b2, then the solution is
x = A⁻¹ b1 + A⁻¹ b2 = x1 + x2
where x1 is the solution with only the first source and x2 is the solution with only the second.
A concrete case is a node A fed from a voltage source V1 through R1, with R2 from A to ground and a current source I1 injecting current into A. The nodal equation is
(1/R1 + 1/R2) VA = V1/R1 + I1
so VA = (V1/R1)/G + I1/G, where G = 1/R1 + 1/R2. The first term depends only on V1 and the second only on I1. Each term is that source's contribution.
Checking both properties numerically
The function below solves the node voltage directly. Calling it with one source set to zero gives that source's partial response.
import math
R1, R2 = 4.0, 6.0
def node_voltage(v1, i1):
"""Node A voltage from the nodal equation."""
return (v1 / R1 + i1) / (1 / R1 + 1 / R2)
# Additivity: response to both sources equals the sum of single-source responses
both = node_voltage(12.0, 2.0)
parts = node_voltage(12.0, 0.0) + node_voltage(0.0, 2.0)
assert math.isclose(both, parts)
# Homogeneity: doubling the source doubles the response
assert math.isclose(node_voltage(24.0, 0.0), 2 * node_voltage(12.0, 0.0))
print(round(both, 3), round(parts, 3))It prints 12.0 12.0. Setting a source value to zero in this function matches what you will do in the circuit: a zero-volt source is a short and a zero-amp source is an open. The next chapter covers that replacement in detail.
What the principle needs
| Requirement | Reason |
|---|---|
| Every element is linear | Keeps the equations linear, so the solution splits into a sum |
| The quantity is a voltage or a current | These are linear in the source values |
| The sources are independent | Each independent source is one term in b |
| Initial conditions are zero or treated as a source | Stored energy acts like an additional input |
Power is not on the list. It depends on the square of a voltage or current, so it does not add across cases. A later chapter in this tutorial covers that limit and nonlinear elements.
Common errors
- Using different reference directions in each case. Fix one reference direction for the quantity you want and keep it in every partial analysis. Then add the partial results with their signs.
- Applying the principle to a circuit that contains a nonlinear element, such as a diode, without first confirming it stays in a region where it behaves linearly.
- Adding partial powers instead of adding partial voltages or currents first.
Exercise
A linear circuit has two independent sources. With only source 1 active, the current through a resistor is 3 A from left to right. With only source 2 active, the current through the same resistor is 5 A from right to left. What is the total current from left to right when both are active, and why can you add these values?
Show answer
Take left to right as positive. The partial currents are +3 A and −5 A, so the total is 3 + (−5) = −2 A. That means 2 A flows from right to left. You can add them because the circuit is linear, so the equations are linear in the source values and the solution for a sum of sources is the sum of the solutions.