Sub topic 12
Worked Example: Checking a Solution with a Power Balance
This chapter assumes you can solve a circuit with KCL, KVL and Ohm's law. It also assumes you know the passive sign convention and the formula p = v·i from the earlier chapters. You will solve one circuit, compute the power of every element, and check that the powers sum to zero. The circuit is chosen so that one source absorbs power, because that case is where sign errors usually appear.
Why a Power Balance Is a Good Check
Energy is conserved in a lumped circuit, so at every instant the power absorbed by some elements equals the power delivered by the others. If you give every element a signed power under the passive sign convention, the signed powers must sum to zero.
The check has three properties:
- It uses every element, so an error in any branch can show up.
- It uses a different calculation from the one that found the answer. You solved with KCL and Ohm's law, and the check uses p = v·i.
- It is sensitive to sign mistakes. Reversing the sign of one significant power breaks the sum.
The check also has a limit. A balanced result shows the solution is consistent. It does not prove the solution is right. Two compensating errors can still balance, and a wrong circuit model can balance perfectly.
The Circuit
The circuit has these parts:
- An independent voltage source Vs = 24 V. Its + terminal connects to R1, and its − terminal connects to ground.
- A resistor R1 = 4 Ω between the source + terminal and node a.
- A resistor R2 = 12 Ω between node a and ground.
- An independent current source Is = 3 A between ground and node a, with its arrow pointing toward node a. It pushes 3 A into node a.
There are four elements and one unknown node voltage, va.
Step 1: Solve the Circuit
Apply KCL at node a. Define i1 as the current through R1 flowing from the voltage source toward node a. Define i2 as the current through R2 flowing from node a to ground. The current source adds 3 A into the node, so:
i1 + Is = i2
Substitute Ohm's law for each resistor:
(Vs − va)/R1 + Is = va/R2
(24 − va)/4 + 3 = va/12
Multiply both sides by 12:
3(24 − va) + 36 = va
108 = 4·va
va = 27 V
The branch currents follow:
- i1 = (24 − 27)/4 = −0.75 A
- i2 = 27/12 = 2.25 A
The negative sign on i1 is part of the answer. I assumed i1 flows from the voltage source toward node a, and the negative value says the real current flows the other way. Node a sits at 27 V, which is higher than the 24 V source terminal, so 0.75 A flows from node a back into the + terminal of the voltage source. The current source is strong enough to push current backward through the voltage source.
A quick KCL check confirms the numbers: −0.75 + 3 = 2.25.
Step 2: Assign Signs Under the Passive Sign Convention
For each element, find the voltage v and a current i such that i enters the terminal marked +. Then p = v·i is positive when the element absorbs power. The most error-prone elements are the sources, so take them one at a time.
Resistor R1. Current i1 flows from the source side to node a. Take the + terminal on the source side, so i1 enters +. The voltage is v = 24 − 27 = −3 V, and the current is i = −0.75 A.
Resistor R2. Current i2 flows from node a to ground. The + terminal is at node a, and the current enters it. So v = 27 V and i = 2.25 A.
Voltage source Vs. Its + terminal is the top terminal, where i1 was defined to leave. The actual current is −0.75 A leaving, which means +0.75 A enters the + terminal. So v = 24 V and i = +0.75 A. This is the passive configuration (current enters +), so the source absorbs power.
Current source Is. It pushes 3 A into node a, so the current leaves through its top terminal. That terminal is at node a, at 27 V, so it is the + terminal. Current leaves the + terminal, which is the opposite of the passive configuration. Under the passive convention the entering current is −3 A, so v = 27 V and i = −3 A.
Step 3: Compute the Powers
| Element | v (V) | i entering + (A) | p = v·i (W) | Meaning |
|---|---|---|---|---|
| R1 | −3 | −0.75 | +2.25 | absorbs |
| R2 | 27 | 2.25 | +60.75 | absorbs |
| Vs | 24 | +0.75 | +18.00 | absorbs |
| Is | 27 | −3 | −81.00 | delivers |
The sum is 2.25 + 60.75 + 18 − 81 = 0. The power balance holds.
The resistor values also agree across formulas. For R1, i²R = 0.5625 × 4 = 2.25 W, and v²/R = 9/4 = 2.25 W. For R2, i²R = 5.0625 × 12 = 60.75 W, and v²/R = 729/12 = 60.75 W. A resistor's power is never negative, so a negative value from p = v·i on a resistor means you mixed up a sign. Here both resistors give positive values even though R1 has a negative voltage and a negative current, because the two negatives cancel.
The current source delivers 81 W, and the other three elements absorb 2.25 + 60.75 + 18 = 81 W. Absorbed power equals delivered power, which is the same statement as "the signed sum is zero".
The Same Check in Code
The script below solves the node equation and applies the passive convention to every element. It then checks the sum.
import math
Vs, R1, R2, Is = 24.0, 4.0, 12.0, 3.0
# Node equation at a: (Vs - va)/R1 + Is = va/R2
va = (Vs / R1 + Is) / (1 / R1 + 1 / R2)
i1 = (Vs - va) / R1 # source -> node a through R1
i2 = va / R2 # node a -> ground through R2
# (v, i) with i entering the + terminal of each element
elements = {
"R1": (Vs - va, i1),
"R2": (va, i2),
"Vs": (Vs, -i1), # current entering + of the source is -i1
"Is": (va, -Is), # current leaves + (node a), so entering is -Is
}
total = 0.0
for name, (v, i) in elements.items():
p = v * i
total += p
state = "absorbs" if p > 0 else "delivers" if p < 0 else "neither"
print(f"{name}: v = {v:6.2f} V, i = {i:6.2f} A, p = {p:7.2f} W, {state}")
print(f"sum of powers = {total:.2f} W")
print("balanced:", math.isclose(total, 0.0, abs_tol=1e-9))
# R1: v = -3.00 V, i = -0.75 A, p = 2.25 W, absorbs
# R2: v = 27.00 V, i = 2.25 A, p = 60.75 W, absorbs
# Vs: v = 24.00 V, i = 0.75 A, p = 18.00 W, absorbs
# Is: v = 27.00 V, i = -3.00 A, p = -81.00 W, delivers
# sum of powers = 0.00 W
# balanced: TrueThe tolerance in math.isclose is needed because floating-point arithmetic rarely gives an exact zero. Use abs_tol here, because math.isclose with only a relative tolerance never accepts a comparison against 0.0 unless the value is exactly zero.
What a Failed Balance Tells You
Suppose you had assumed that a voltage source always delivers power. You would then write Vs as −18 W, and the sum becomes 2.25 + 60.75 − 18 − 81 = −36 W. The residual is not zero, so the check has caught the mistake.
The size of the residual is a clue. It equals −36 W, which is twice the 18 W of the element you flipped. Flipping the sign of one power changes the sum by twice that power. So when a balance fails, compare the residual with the individual powers. If it equals twice one of them, that element's sign is the likely culprit.
If the residual matches no such pattern, the error is more likely in the solution itself, such as a wrong node voltage or a wrong current.
The diagram shows the procedure.
Edge Cases and Practical Notes
- A source that absorbs. An ideal source does not always deliver. A voltage source with current entering its + terminal absorbs power, as Vs does here, and this is how an ideal battery being charged behaves.
- Zero-power elements. An element can have zero power with nonzero voltage and zero current, or the reverse. An open circuit and a short circuit are examples. These contribute nothing to the sum and cannot reveal errors.
- Rounding. With hand calculations, round only at the end. Check that the sum is zero to within the rounding of your final digits, not exactly.
- Wrong model. If you omit an element, such as a resistor you forgot to count, the balance can still hold for the circuit you solved. Check the circuit diagram against your element list.
Summary of the Method
- Solve for all node voltages and branch currents.
- For each element, pick the + terminal and express the current entering it. Give sources extra attention.
- Compute p = v·i for each element.
- Read the sign: positive absorbs, negative delivers.
- Sum all powers and expect zero. If it is not zero, test whether the residual is twice one element's power.
Exercise
Change the current source in this chapter to Is = 2 A and keep Vs = 24 V, R1 = 4 Ω, R2 = 12 Ω. Solve for va, then compute the power of all four elements under the passive sign convention and verify that they sum to zero. Does the voltage source absorb or deliver?
Show answer
KCL at node a gives (24 − va)/4 + 2 = va/12. Multiplying by 12: 72 − 3va + 24 = va, so va = 24 V. Then i1 = (24 − 24)/4 = 0 A and i2 = 24/12 = 2 A. The powers are R1: 0 W, R2: 2² × 12 = 48 W, Vs: 24 × 0 = 0 W, Is: 24 × (−2) = −48 W. The sum is 0 + 48 + 0 − 48 = 0, so the balance holds. The voltage source neither absorbs nor delivers, because no current flows through it. This is the boundary case between the source delivering power (Is below 2 A) and absorbing power (Is above 2 A).
Exercise
A student solves a circuit and gets element powers of +10 W, +25 W, −20 W and −20 W, and the fifth element is a voltage source she computed as +8 W. The sum is not zero. By how much does it miss, and which sign change on the voltage source would fix it?
Show answer
The sum is 10 + 25 − 20 − 20 + 8 = 3 W, so it misses by +3 W, not by twice 8 W, so flipping the source alone does not fix it. Flipping the source to −8 W gives 10 + 25 − 20 − 20 − 8 = −13 W, which is also not zero. The residual does not match twice any single power, so the error is probably in the solution values (a wrong current or voltage), not just a sign. She should recheck the node equations.