Sub topic 13
Checking the answer with power balance
This chapter assumes you can write and solve mesh equations, including supermeshes, and that you can recover branch currents from mesh currents. Solving the equations does not tell you the answer is right. A sign slip, a mistyped resistor value or a wrong branch current can all give clean-looking numbers. Power balance is a check that uses only quantities you already have, and it takes a few lines to run.
The principle
Energy is conserved in a circuit. In DC steady state, the power that sources deliver equals the power that the other elements absorb. If you treat delivered power as negative absorbed power, the rule becomes one sum:
- The sum of the absorbed power of every element in the circuit is zero.
Resistors always absorb power, so each term is positive. A source can absorb or deliver power depending on how current flows through it. The check is only meaningful if you assign each element's sign by the same rule.
The passive sign convention
Use the passive sign convention for every element. If current enters the terminal marked + of an element, the element absorbs power.
p = v × i, with i entering the + terminal
A positive p means the element absorbs power. A negative p means it delivers power. For a resistor, p = R·i² is always positive, so only the sources need care. The table shows how mesh direction decides the sign for a voltage source.
| Situation | Current relative to the source | Absorbed power |
|---|---|---|
| Mesh current passes from − to + through the source (a voltage rise) | Leaves the + terminal | −V × i (delivering) |
| Mesh current passes from + to − through the source (a voltage drop) | Enters the + terminal | +V × i (absorbing) |
Whether a source delivers or absorbs depends on the solved current, not on the fact that it is a source. A battery being charged absorbs power.
A worked check
Take the two-mesh circuit from the solving chapter. R1 = 2 Ω, R2 = 4 Ω (shared), R3 = 6 Ω, V1 = 10 V, and V2 = 5 V opposing the clockwise current in mesh 2. The mesh equations are:
- 6·i1 − 4·i2 = 10
- −4·i1 + 10·i2 = −5
The solution is i1 = 80/44 ≈ 1.818 A and i2 = 10/44 ≈ 0.227 A. The shared branch current is i1 − i2 = 70/44 ≈ 1.591 A.
Resistor power:
- R1: 2 × 1.818² ≈ 6.612 W
- R2: 4 × 1.591² ≈ 10.124 W
- R3: 6 × 0.227² ≈ 0.310 W
- Total absorbed by resistors ≈ 17.045 W
Source power:
- V1: the mesh current leaves its + terminal, so it delivers 10 × 1.818 ≈ 18.182 W.
- V2: it opposes the clockwise current, so i2 enters its + terminal. It absorbs 5 × 0.227 ≈ 1.136 W.
- Net delivered by sources: 18.182 − 1.136 ≈ 17.045 W.
The two totals agree. V2 is being charged slightly, and that absorbed energy is part of the balance.
Notice that R2 uses i1 − i2, the actual branch current, and not i1 or i2 alone. Computing power in a shared resistor from one mesh current is the most common way to get a false mismatch.
Automating the check
The script below solves the circuit, builds a dictionary of absorbed power for every element, and tests whether the sum is zero. It also repeats the sum with the shared-resistor mistake to show what a failed check looks like.
import numpy as np
R1, R2, R3 = 2.0, 4.0, 6.0
V1, V2 = 10.0, 5.0
R = np.array([[R1 + R2, -R2],
[-R2, R2 + R3]])
v = np.array([V1, -V2])
i1, i2 = np.linalg.solve(R, v)
i_r2 = i1 - i2 # actual current in the shared branch
# Absorbed power, passive sign convention.
# V1: mesh current leaves the + terminal, so it delivers power.
# V2: mesh current enters the + terminal, so it absorbs power.
absorbed = {
"R1": R1 * i1**2,
"R2": R2 * i_r2**2,
"R3": R3 * i2**2,
"V1": -V1 * i1,
"V2": V2 * i2,
}
for name, p in absorbed.items():
print(f"{name}: {p:+.4f} W")
total = sum(absorbed.values())
print(f"Sum of absorbed power = {total:.2e} W")
print("Balanced" if np.isclose(total, 0.0, atol=1e-9) else "MISMATCH")
# A typical mistake: using i1 for the shared resistor.
wrong = dict(absorbed)
wrong["R2"] = R2 * i1**2
wrong_total = sum(wrong.values())
print(f"With the shared-branch mistake: {wrong_total:+.4f} W")The first sum prints a value near 1e-15 and "Balanced". The mistaken sum is about +3.10 W. That residual means that 3.10 W of power has no source. A residual of that size points to a wrong power term or a wrong current, not to rounding.
Tolerances
With exact arithmetic the sum is zero. With floating-point numbers it is small but rarely exactly zero. Compare against a tolerance:
- For computed results, use an absolute tolerance such as 1e-9 W, or a relative one such as 1e-9 times the total delivered power.
- For hand calculations rounded to three or four digits, expect a residual of about 0.1 % of the total power. A residual of several percent signals a real error.
Power balance with a supermesh
Current sources need extra attention because the voltage across them is not given. Use the supermesh example: a 12 V source and R1 = 2 Ω in mesh 1, R3 = 4 Ω in mesh 2, and a 3 A current source in the shared branch. The solution is i1 = 4 A and i2 = 1 A.
The resistors absorb:
- R1: 2 × 4² = 32 W
- R3: 4 × 1² = 4 W
- Total: 36 W
The 12 V source delivers 12 × 4 = 48 W. The resistors absorb only 36 W, so the current source must absorb the other 12 W. You can confirm this independently, because the voltage across the current source was never an unknown in the mesh equations but it is available afterward. Mesh 2 contains only R3 and the current source. KVL around it shows the current source has 4 V across it, which is the drop across R3 (4 Ω × 1 A). The 3 A current enters its + terminal, so it absorbs 3 × 4 = 12 W.
This is a stronger check than usual. The mesh equations never used the source voltage, so recovering it from KVL and then matching the power tests the supermesh constraint and the supermesh KVL together.
Dependent sources
A dependent source is an element like any other and appears in the power sum. Its power is its output voltage (or current) times the current through (or voltage across) it, with the same sign rule. A dependent source can deliver or absorb power. Active devices such as transistors are modeled with dependent sources, and they often deliver power, which comes from a supply that the model hides.
Do not leave a dependent source out of the sum. If you omit it, the check will fail even when the mesh currents are correct. This gives a useful diagnostic: if a circuit with dependent sources has a residual, first include the dependent-source terms. If the residual is still nonzero, the mesh currents are wrong.
What the check proves and what it misses
To see why, suppose you read V2 with the wrong polarity. You solve the equations for that incorrect circuit and compute power using the same incorrect polarity. Everything is internally consistent, so the sum is zero. The check only measures whether your solution obeys the model you wrote.
| Error | Caught by power balance? |
|---|---|
| Arithmetic error when solving the equations | Yes |
| Wrong branch current (for example i1 used in a shared resistor) | Yes |
| Wrong sign on a source in the power sum only | Yes |
| Wrong sign on a source in the equations and in the power sum | No |
| A resistor value copied wrongly in both the equations and the power sum | No |
| A missing element in both | No |
Use a second check for the second group, such as re-reading the schematic against your equations, or verifying KCL at one node using the branch currents.
Procedure
The flowchart summarizes the check.
When the check fails, work in this order. Recomputing the power terms is quick and fixes most mismatches. Rechecking the mesh equations takes longer, so do it second.
Reading the residual
The size of the mismatch can guide you.
- A residual equal to one element's power points to that element being left out or counted with the wrong sign. A flipped sign on a term of power P changes the sum by 2P, so look for a term of half the residual.
- A small residual under 1 % often comes from rounding in hand calculations.
- A large residual with plausible currents usually points to a wrong shared-branch current or a wrongly signed source.
Exercise
A mesh solution gives resistor power totaling 21.0 W. The only source is a 12 V battery, and the mesh current leaves its + terminal at 1.5 A. Does the solution pass the power balance check? If not, what does the residual suggest?
Show answer
The battery delivers 12 × 1.5 = 18 W, while the resistors absorb 21.0 W. The sum of absorbed powers is 21.0 − 18 = +3 W, not zero, so the check fails. Resistors cannot absorb more than the source supplies, so either the resistor powers were computed from a wrong current or the battery current is wrong. Recompute the branch current in each resistor, then recheck the mesh equations.
Exercise
In the supermesh example (12 V source, R1 = 2 Ω, R3 = 4 Ω, 3 A current source in the shared branch), the solution is i1 = 4 A and i2 = 1 A. Suppose someone gets i1 = 5 A and i2 = 2 A, which satisfies i1 − i2 = 3 A. Why does power balance flag it, and by how much?
Show answer
The constraint holds, but the supermesh KVL 2·i1 + 4·i2 = 12 does not (10 + 8 = 18). Power shows this. The resistors absorb 2×25 + 4×4 = 66 W, while the 12 V source delivers 12 × 5 = 60 W. The current source would then need to absorb −6 W, but KVL on mesh 2 gives it 4 × 2 = 8 V, so it would absorb 3 × 8 = 24 W. The two values for the current source's power disagree, which exposes the error.