Sub topic 6
Worked examples at a single node
This chapter assumes you know Ohm's law, can read a basic schematic, and have seen KCL stated: the algebraic sum of currents at a node is zero. Here you apply it to one node at a time, in three situations: all currents given, some currents unknown, and currents set by resistors.
The recipe
Use the same steps every time. This avoids most sign errors.
- Mark the node and list every branch that touches it.
- Pick a reference direction for each unknown current. Any choice works.
- Choose one sign rule: currents entering count as positive, currents leaving count as negative.
- Write the sum equal to zero and solve.
- Read the sign of each answer against its reference direction.
A negative result does not mean you made a mistake. It means the current flows opposite to the arrow you drew.
Example 1: one unknown current
Three branches meet at a node. Branch 1 carries 3 A into the node. Branch 2 carries 5 A into the node. Branch 3 has an unknown current i3, and its arrow points into the node.
With "entering is positive", KCL gives:
i1 + i2 + i3 = 0
# Currents entering the node are positive, currents leaving are negative (amperes).
i1 = 3.0 # enters the node
i2 = 5.0 # enters the node
# KCL: i1 + i2 + i3 = 0, where i3 is defined as entering the node
i3 = -(i1 + i2)
print(i3) # -8.0, so 8 A actually leaves the nodeThe result is -8 A. Because the arrow pointed into the node, a negative value means 8 A actually leaves through branch 3. This matches intuition: 3 A + 5 A arrive, so 8 A must depart.
Example 2: two unknowns need more information
Suppose a node has a 2 A source entering, an unknown ia entering, and an unknown ib leaving. KCL gives a single equation:
2 + ia - ib = 0
One equation cannot fix two unknowns. You need a second relation, such as Ohm's law on one of the branches. That is the subject of the next steps.
Example 3: currents set by resistors
Now the branch currents depend on node voltages. A 10 mA source feeds node 1. R1 = 1 kΩ connects node 1 to ground. R2 = 2 kΩ connects node 1 to node 2. R3 = 2 kΩ connects node 2 to ground.
Take ground as 0 V. Let the currents leaving a node be positive this time, which is an equally valid rule. At node 1, the source current enters and two resistor currents leave:
v1/R1 + (v1 - v2)/R2 = 0.010
At node 2, only resistor currents are involved:
(v2 - v1)/R2 + v2/R3 = 0
Collect terms in v1 and v2 to get the matrix form G v = I. You can solve it numerically.
import numpy as np
# 10 mA source into node 1. R1 = 1 kohm (node 1 to ground),
# R2 = 2 kohm (node 1 to node 2), R3 = 2 kohm (node 2 to ground).
R1, R2, R3 = 1000.0, 2000.0, 2000.0
G = np.array([
[1/R1 + 1/R2, -1/R2],
[-1/R2, 1/R2 + 1/R3],
])
I = np.array([0.010, 0.0]) # source current entering each node
v1, v2 = np.linalg.solve(G, I)
print(v1, v2) # 8.0 4.0 (volts)
# Check KCL at node 1: source current equals the sum of currents leaving
i_r1 = v1 / R1
i_r2 = (v1 - v2) / R2
print(i_r1 + i_r2) # 0.01 (amperes)The solution is v1 = 8 V and v2 = 4 V. The branch currents at node 1 are 8 mA through R1 and 2 mA through R2. Together they equal the 10 mA the source supplies.
Common errors
- Mixing sign rules within one equation. Pick entering or leaving once, then apply it to every branch.
- Reversing the voltage difference. A current through a resistor from node a to node b is (va - vb)/R. If the arrow points the other way, swap the terms.
- Treating a negative answer as a failure. Interpret it against the arrow you drew.
- Forgetting a branch. Recount the wires at the node before solving.
Exercise
A node has three branches. 4 A enters through branch A, 1 A leaves through branch B, and branch C has an unknown current ic with its arrow pointing away from the node. Find ic, and say whether it leaves or enters.
Show answer
Using "entering is positive", the sum is 4 - 1 - ic = 0, so ic = 3 A. The value is positive and the arrow points away from the node, so 3 A leaves through branch C.
Exercise
In Example 3, change R3 to 1 kΩ. Write the KCL equation at node 2 and state which entries of G change.
Show answer
At node 2: (v2 - v1)/R2 + v2/R3 = 0, with R3 = 1 kΩ. The entry G[1][1] changes from 1/2000 + 1/2000 to 1/2000 + 1/1000 = 0.0015 S. All other entries stay the same.