Sub topic 12
Checking your answer: loop sums and power balance
This chapter assumes you can write KVL equations with the passive sign convention, apply KCL at a node, and solve a small mesh system. It covers how to confirm a solution is right after you have it. Three checks cover most cases: a loop voltage sum, a KCL sum at a node, and a power balance.
Why check at all
A solved circuit gives you numbers, and a wrong set of numbers looks just like a right one. Sign slips, a misread resistor value, or a wrong equation all produce currents that look plausible. The checks below take a few minutes and catch most of these errors.
The most important point is independence. A check only has value if it uses information the solution did not already use.
- Substituting your answers back into the equations you solved proves only that the algebra was done correctly.
- Summing voltages around a loop you did not write an equation for tests the circuit itself.
- Computing total power tests the whole solution against energy conservation.
Check 1: the loop voltage sum
Take each element's voltage from your solved currents, walk around a loop, and add the voltages with signs. The result should be zero.
For a single series loop, the loop sum is an exact restatement of the equation you solved, so the check is weak. It still catches arithmetic slips in the individual drops.
# Series loop: 12 V source with three resistors.
V_s = 12.0
resistors = [100.0, 220.0, 330.0] # ohms
I = V_s / sum(resistors) # amperes
drops = [I * r for r in resistors] # voltage across each resistor
print(f"I = {I * 1000:.2f} mA")
for r, v in zip(resistors, drops):
print(f"V across {r:.0f} ohm = {v:.3f} V")
# KVL check: rise minus the sum of drops should be zero.
print(f"Loop sum = {V_s - sum(drops):.12f} V")The current is 18.46 mA. The drops are 1.846 V, 4.062 V and 6.092 V, and they add to 12.000 V.
Use a loop you did not write
In a multi-loop circuit you write one equation per mesh. The outer loop, which goes around the whole circuit and skips the shared branch, is a different loop. Its equation is the sum of the mesh equations, so it is not an independent equation. Even so, it tests the numbers through a different path.
Take the two-mesh circuit from the mesh analysis chapter:
- Mesh 1 has a 10 V source, R1 = 2 Ω and the shared R2 = 4 Ω.
- Mesh 2 has the shared R2, R3 = 6 Ω and a 4 V source that is a drop in the clockwise direction.
The solution is I1 = 21/11 ≈ 1.9091 A and I2 = 4/11 ≈ 0.3636 A. Going clockwise around the outer loop, the 10 V source is a rise, R1 and R3 are drops, and the 4 V source is a drop:
-10 + 2·I1 + 6·I2 + 4 = -10 + 3.8182 + 2.1818 + 4 = 0
The shared resistor R2 never appears in this sum. If you had used the wrong value for R2, or a wrong sign on the shared current, the outer loop would usually fail the test.
Hand calculations and rounding
When you work by hand with rounded values, the loop sum will not be exactly zero. A residual of a few units in the last digit you kept is fine. A residual of 0.5 V in a 10 V circuit is not rounding. It means a sign or value is wrong.
In code, compare against a tolerance scaled to the source voltages, not against exact zero.
Check 2: KCL at a node
Mesh currents satisfy KCL automatically at every node, because each mesh current enters and leaves a node together. So a KCL check on mesh currents proves nothing about the circuit. It is useful only when you have solved with node voltages, or when you convert mesh currents into branch currents.
For the shared branch, the current is I1 - I2 = 17/11 ≈ 1.5455 A. In the two-mesh example, the currents entering the top node are I1 (from mesh 1's side) and I2 (returning from mesh 2's side), and they leave through R2. The sign of I1 - I2 depends on which way you define the branch current, so state that direction before you compare numbers.
Check 3: power balance
Energy conservation says that in a complete circuit, the power absorbed by all elements adds up to zero. Equivalently, the power delivered by sources equals the power absorbed by resistors and any source that is being charged.
Signs for power
Use the passive sign convention for every element, sources included. Let v be the voltage drop across the element in the direction of the current through it, so the current enters the + terminal. Then:
- p = v·i is the power absorbed by the element.
- p > 0 means the element absorbs power.
- p < 0 means the element delivers power.
A resistor always absorbs, with p = i²R ≥ 0. A source can do either. A source with current leaving its + terminal delivers power. A source with current entering its + terminal absorbs power, as a battery does when it charges.
Worked example
In the two-mesh circuit, the currents are I1 = 21/11 A and I2 = 4/11 A, both clockwise. The shared current in R2 is 17/11 A.
| Element | Voltage drop in current direction | Current | Power absorbed |
|---|---|---|---|
| 10 V source | -10 V | 1.9091 A | -19.0909 W |
| R1 (2 Ω) | 3.8182 V | 1.9091 A | 7.2893 W |
| R2 (4 Ω) | 6.1818 V | 1.5455 A | 9.5537 W |
| R3 (6 Ω) | 2.1818 V | 0.3636 A | 0.7934 W |
| 4 V source | +4 V | 0.3636 A | 1.4545 W |
The absorbed powers add up as follows: 7.2893 + 9.5537 + 0.7934 + 1.4545 = 19.0909 W. The 10 V source supplies 19.0909 W, so the total is zero.
The 4 V source absorbs 1.4545 W. Its clockwise mesh current enters its + terminal, so it behaves like a load.
import numpy as np
# Mesh equations: 6*I1 - 4*I2 = 10 and -4*I1 + 10*I2 = -4.
A = np.array([[6.0, -4.0],
[-4.0, 10.0]])
b = np.array([10.0, -4.0])
I1, I2 = np.linalg.solve(A, b)
I_shared = I1 - I2 # current in R2, in the direction of I1
# (name, voltage drop in the direction of the current, current)
elements = [
("10 V source", -10.0, I1),
("R1 = 2 ohm", 2.0 * I1, I1),
("R2 = 4 ohm", 4.0 * I_shared, I_shared),
("R3 = 6 ohm", 6.0 * I2, I2),
("4 V source", 4.0, I2),
]
total = 0.0
for name, v, i in elements:
p = v * i
total += p
print(f"{name:12s} v = {v:8.4f} V i = {i:7.4f} A p = {p:9.4f} W")
print(f"Sum of absorbed power = {total:.2e} W")
# Outer loop (clockwise), which does not include R2.
outer = -10.0 + 2.0 * I1 + 6.0 * I2 + 4.0
print(f"Outer loop sum = {outer:.2e} V")
assert abs(total) < 1e-9 and abs(outer) < 1e-9Both printed sums should be at the level of floating-point noise, around 1e-15.
What each check catches
| Error | Loop sum on a solved loop | Loop sum on an unused loop | Power balance |
|---|---|---|---|
| Arithmetic slip in a drop | Caught | Caught if the element is on that loop | Caught |
| Wrong sign on a source in one equation | Not caught | Usually caught | Usually caught |
| Wrong shared-current direction | Not caught | Caught if the shared element is on the loop | Caught |
| Misread resistor value, used consistently | Not caught | Not caught | Not caught |
| Misdrawn circuit (missing branch) | Not caught | Not caught | Not caught |
The last two rows are the limit of these checks. They test whether your solution is consistent with the circuit you wrote down. They cannot tell whether that circuit matches the one you were given. Reread the problem statement and compare each value to your equations.
Sanity checks that cost nothing
Before any arithmetic check, ask whether the result is believable.
- In a circuit with one source, no resistor voltage can exceed the source voltage. The drops in a series loop must each be smaller than the source.
- Current in a series loop must be the same in every element.
- A resistor's voltage and current must share a sign under the passive convention. A resistor with a negative power means a sign error.
- If a source's power is negative when you expected it to deliver, check the direction of the mesh current through it.
- Estimate the size of the answer. In the series example, the total resistance is 650 Ω and the source is 12 V, so the current should be near 12/650 ≈ 18 mA, not 180 mA.
Tolerance in numerical work
Floating-point arithmetic gives residuals near 1e-15 relative to the values involved, so testing for exactly zero fails. Test against a tolerance. Pick one that scales with the circuit, such as 1e-9 times the largest source voltage or the largest power. For a circuit solved with a nearly singular matrix, such as resistors differing by many orders of magnitude, the residual can be larger, and the tolerance should reflect that.
Exercise
A single 9 V source drives a 1 kΩ and a 2 kΩ resistor in series. A student finds I = 3 mA and reports drops of 3 V across the 1 kΩ resistor and 6 V across the 2 kΩ resistor. Check the answer with a loop sum and a power balance. Then suppose the student had reported 2 V and 7 V instead. What does each check show?
Show answer
Loop sum: 9 - 3 - 6 = 0, so the answer passes. Power: the source delivers 9 V × 3 mA = 27 mW. The resistors absorb 3 V × 3 mA = 9 mW and 6 V × 3 mA = 18 mW, which total 27 mW, so the balance passes. For the wrong values 2 V and 7 V, the loop sum is 9 - 2 - 7 = 0, so it still passes. The current would not be the same in both resistors: 2 V/1 kΩ = 2 mA and 7 V/2 kΩ = 3.5 mA, which breaks series current and Ohm's law. The power check also fails: the source delivers 27 mW, but the resistors absorb 2 mA × 2 V + 3.5 mA × 7 V = 4 + 24.5 = 28.5 mW. This shows that a loop sum alone can pass for wrong values.
Exercise
In a two-mesh solution, the 4 V source in mesh 2 has a clockwise mesh current of 0.3636 A entering its + terminal. Does it deliver or absorb power, and how much?
Show answer
It absorbs power, because the current enters the + terminal and the drop in the current direction is +4 V. The power is 4 V × 0.3636 A = 1.4545 W, which is positive under the passive sign convention.