Sub topic 12
Worked example: checking a solution with a power balance
This chapter assumes you can solve a circuit with node-voltage analysis, and that you know the passive sign convention and the rule that the powers of all elements sum to zero. Here you use that rule to test an answer you have already found.
Why check with power
Solving a circuit with KCL, KVL and Ohm's law can leave a wrong value that looks plausible. A power balance gives an independent test. If every element's power is computed with the same convention and the sum is not zero, a voltage, a current or a sign is wrong.
A balance has limits. It catches many errors, but not all of them. Two mistakes can cancel, and a wrong answer that still satisfies the circuit's equations will pass.
The circuit
A 24 V source feeds node 1. A 4 Ω resistor R1 connects node 1 to node 2. A 12 Ω resistor R2 connects node 2 to ground. A 1 A current source pushes current from ground into node 2.
The node equation at node 2 is:
(24 − v2)/4 + 1 = v2/12
Multiplying by 12 gives 72 − 3·v2 + 12 = v2, so v2 = 21 V.
The branch currents follow:
- Through R1, from node 1 to node 2: (24 − 21)/4 = 0.75 A.
- Through R2, from node 2 to ground: 21/12 = 1.75 A.
KCL at node 2 confirms the solution: 0.75 A + 1 A = 1.75 A.
Procedure
Power of each element
Use the passive sign convention for every element, sources included.
- R1. The current enters the + terminal, and v = 24 − 21 = 3 V. So p = 3 × 0.75 = +2.25 W.
- R2. v = 21 V and i = 1.75 A, so p = +36.75 W.
- Voltage source. The 0.75 A leaves its + terminal. The current entering the + terminal is therefore −0.75 A, and p = 24 × (−0.75) = −18 W. The source delivers 18 W.
- Current source. The arrow points into node 2, so the current leaves the source's node-2 terminal. That terminal is the + terminal, at 21 V. The current entering + is −1 A, and p = 21 × (−1) = −21 W. The source delivers 21 W.
The elements absorb 2.25 + 36.75 = 39 W and deliver 18 + 21 = 39 W.
import math
# (v, i) with i defined as entering the + terminal (passive sign convention)
elements = {
"voltage source": (24.0, -0.75),
"current source": (21.0, -1.0),
"R1": (3.0, 0.75),
"R2": (21.0, 1.75),
}
total = 0.0
for name, (v, i) in elements.items():
p = v * i
total += p
print(f"{name}: {p:+.2f} W")
print(f"sum = {total:.2f} W")
assert math.isclose(total, 0.0, abs_tol=1e-9)
# voltage source: -18.00 W
# current source: -21.00 W
# R1: +2.25 W
# R2: +36.75 W
# sum = 0.00 WWhat a failed balance tells you
Suppose you had taken the voltage source's power as +18 W. The sum would be +36 W instead of zero. A nonzero sum that is a clean multiple of one element's power usually points to a sign error on that element. A sum that is off by an irregular amount points to a wrong voltage or current.
Exercise
Change the current source to 2 A, so that v2 = 24 V. Without recomputing everything, what is the voltage source's power, and does the balance still hold?
Show answer
With v2 = 24 V, the current through R1 is (24 − 24)/4 = 0 A, so the voltage source delivers 0 W. R1 absorbs 0 W. R2 absorbs 24²/12 = 48 W. The current source delivers 24 × 2 = 48 W, so the sum is −48 + 48 + 0 + 0 = 0 and the balance holds.