Sub topic 6
Worked examples at a single node
This chapter applies Kirchhoff's current law (KCL) to one node at a time. It assumes you know the statement of KCL and the sign rule from the earlier chapters, and that you can use Ohm's law and solve one linear equation. The examples increase in difficulty. The first has two known currents, and the last has an unknown node voltage.
A repeatable procedure
Every single-node problem can be solved with the same steps. Following them in order prevents most sign mistakes.
The convention in step 2 can also be "all entering". What matters is that you pick one and apply it to every branch. This chapter uses "leaving". A current that really enters the node is then written as a negative number.
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 $i_3$ whose reference arrow points into the node.
With the "entering" convention, KCL gives:
$$i1 + i2 + i_3 = 0$$
so $i_3 = -(3 + 5) = -8$ A. The negative sign means the real current is opposite to the reference arrow. Since the arrow pointed into the node, 8 A actually leaves through branch 3. This agrees with the physical picture: 8 A arrives in total, so 8 A must depart.
# 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 sign of an answer is information, not an error. You do not need to redraw the arrow or redo the algebra. Read the negative sign as "the opposite of the arrow I drew".
Example 2: four branches with mixed directions
A node has four branches, each with a reference arrow.
- Branch A: 2 A, arrow into the node.
- Branch B: 7 A, arrow away from the node.
- Branch C: 4 A, arrow into the node.
- Branch D: unknown $i_D$, arrow away from the node.
Use the "leaving" convention. Branches A and C have arrows pointing in, so their leaving values are $-2$ A and $-4$ A. Branch B contributes $+7$ A.
$$-2 + 7 - 4 + iD = 0 \quad\Rightarrow\quad iD = -1 \text{ A}$$
The arrow for D points away from the node, and the answer is negative. So 1 A actually enters through branch D.
Check by totalling the real flows. Entering: $2 + 4 + 1 = 7$ A. Leaving: 7 A. The two totals match.
Example 3: resistor branches with known node voltages
KCL does not require every current to be given. If you know the voltages at both ends of a resistor, Ohm's law supplies the current. For a resistor from node X to a neighbouring node N, the current leaving X through the resistor is:
$$i = \frac{vX - vN}{R}$$
This expression is positive when X is at the higher voltage, so current flows from X toward N. It is negative when N is higher. Writing every resistor this way, always as "voltage at my node minus voltage at the far end", makes the sign come out correctly without any further thought.
Suppose node X sits at 4 V. Three branches leave it:
- A 1 kΩ resistor to a node held at 10 V.
- A 2 kΩ resistor to ground (0 V).
- A third element whose leaving current $i_x$ is unknown.
The currents leaving X are:
$$i1 = \frac{4 - 10}{1000} = -6\text{ mA}, \qquad i2 = \frac{4 - 0}{2000} = 2\text{ mA}$$
KCL gives $-6 + 2 + ix = 0$ mA, so $ix = 4$ mA. The first resistor brings 6 mA into the node, the second takes 2 mA away, and the third element takes the remaining 4 mA away.
A short script reproduces the arithmetic and makes the sign handling explicit:
def leaving_current(v_node, v_far, resistance):
"""Current leaving the node through a resistor, in amperes."""
return (v_node - v_far) / resistance
v_x = 4.0
i1 = leaving_current(v_x, 10.0, 1000.0) # -0.006 A, so 6 mA enters
i2 = leaving_current(v_x, 0.0, 2000.0) # 0.002 A, so 2 mA leaves
# KCL with the "leaving" convention: i1 + i2 + ix = 0
ix = -(i1 + i2)
print(f"i1 = {i1*1000:.1f} mA, i2 = {i2*1000:.1f} mA, ix = {ix*1000:.1f} mA")
# i1 = -6.0 mA, i2 = 2.0 mA, ix = 4.0 mAExample 4: an unknown node voltage
Now the unknown is the node voltage itself. Node X connects to three resistors:
- 2 kΩ to a 12 V node.
- 3 kΩ to a 6 V node.
- 6 kΩ to ground.
No other element touches X. Call the unknown voltage $v$. The currents leaving X are:
$$\frac{v - 12}{2000} + \frac{v - 6}{3000} + \frac{v}{6000} = 0$$
Multiply every term by 6000, the least common multiple of the three resistances, to clear the fractions:
$$3(v - 12) + 2(v - 6) + v = 0$$
$$6v - 36 - 12 = 0 \quad\Rightarrow\quad v = 8 \text{ V}$$
Substitute back to verify. The leaving currents are:
- $(8 - 12)/2000 = -2$ mA, so 2 mA enters from the 12 V node.
- $(8 - 6)/3000 \approx 0.667$ mA, which leaves toward the 6 V node.
- $8/6000 \approx 1.333$ mA, which leaves to ground.
The entering current is 2 mA. The leaving currents add to $0.667 + 1.333 = 2$ mA. The balance holds.
This equation has the same shape as the matrix equations in the next chapters, just with one unknown. A useful observation: the node voltage 8 V lies between 0 V and 12 V. With only resistors attached and no current sources, a node voltage is a weighted average of its neighbours' voltages, so it cannot fall outside the range of those neighbours. If your answer does, look for an arithmetic error.
Example 5: a current source at the node
A current source forces a stated current regardless of voltage, so it enters the equation as a known number. Suppose node X has these branches:
- A 5 mA current source delivering current into X.
- A 2 kΩ resistor to ground.
- A 4 kΩ resistor to ground.
Using the leaving convention, the source contributes $-5$ mA. The resistors contribute $v/2000$ and $v/4000$:
$$-0.005 + \frac{v}{2000} + \frac{v}{4000} = 0$$
Multiply by 4000: $-20 + 2v + v = 0$, so $v = 20/3 \approx 6.67$ V.
The resistor currents are 3.33 mA and 1.67 mA. They add to 5 mA, which matches the source current. The source decides how much current flows. The resistors decide what voltage appears at the node.
Common errors
| Error | What goes wrong | Fix |
|---|---|---|
| Mixing conventions within one equation | Some terms are written as entering, others as leaving, so the sum is not zero by KCL | Choose one convention before writing any term |
| Reversing the voltage difference | Writing $(v_N - v_X)/R$ for a current leaving X flips its sign | Always write node voltage minus far-end voltage |
| Treating a negative answer as a mistake | The solver redraws arrows or abandons a correct result | Interpret the sign as "opposite to the reference arrow" |
| Leaving out a branch | The equation balances only the branches that were listed, so the answer is wrong | Count the wires touching the node before writing anything |
| Forgetting the source sign | A current source pointing into the node is written as positive in a "leaving" equation | A source delivering current into the node contributes a negative leaving term |
| Mixing units | Using mA for some currents and A for others | Convert everything to amperes, or use kΩ with mA throughout |
Edge cases at a single node
- A branch carrying zero current. An open circuit, or a resistor whose far end is at the same voltage as X, contributes 0 to the sum. The node equation is unchanged by it.
- Two wires meeting. If two points are joined by an ideal wire, they are the same node. Count the branches around the combined node, not each point separately.
- A node with only two branches. KCL reduces to $i1 = i2$ in magnitude. The current going in one side comes out the other, which is the idea behind series elements.
- A node with one branch. The branch current must be zero. This explains why a dangling wire carries no current in a lumped circuit.
Summary of the method
- List all branches at the node.
- Fix one convention, here "leaving".
- Write each branch current, using Ohm's law with node voltage minus far-end voltage for resistors.
- Set the sum to zero and solve.
- Interpret the sign of any unknown current against its reference arrow.
- Check against the schematic by comparing total entering and total leaving.
Exercise
A node has three branches. Branch 1 carries 6 mA into the node. Branch 2 carries 2 mA out of the node. Branch 3 is a 2 kΩ resistor to ground, and the node voltage is unknown. Find the node voltage. What current flows in the resistor, and in which direction?
Show answer
Using the leaving convention, branch 1 contributes -6 mA and branch 2 contributes +2 mA. The resistor current leaving the node is v/2000. KCL gives -6 mA + 2 mA + v/2000 = 0, so v/2000 = 4 mA and v = 8 V. The resistor carries 4 mA from the node to ground. Check: entering 6 mA equals leaving 2 mA + 4 mA.
Exercise
Node X connects to a 1 kΩ resistor to a 9 V node, a 2 kΩ resistor to a 0 V node, and a 3 kΩ resistor to a 6 V node. Find the voltage at X, then list the three resistor currents with their real directions.
Show answer
Leaving currents: (v - 9)/1000 + v/2000 + (v - 6)/3000 = 0. Multiply by 6000: 6(v - 9) + 3v + 2(v - 6) = 0, so 11v - 54 - 12 = 0 and v = 66/11 = 6 V. Currents leaving X: (6 - 9)/1000 = -3 mA, so 3 mA enters from the 9 V node. 6/2000 = 3 mA leaves toward ground. (6 - 6)/3000 = 0, so no current flows in the 3 kΩ resistor. Entering 3 mA equals leaving 3 mA.