Sub topic 3
From KCL to Nodal Equations
Assume you know electric current, voltage, resistance, Ohm’s law, basic schematics, and small linear systems. Nodal analysis combines KCL with Ohm’s law to find unknown node voltages.
From KCL to nodal equations
Choose a reference node, usually called ground, and assign a voltage to every other node. For a resistor between nodes \(a\) and \(b\), define the current leaving node \(a\) as:
\[ I{ab}=\frac{Va-V_b}{R} \]
Apply KCL at node \(a\):
\[ \sum I_{\text{leaving}}=0 \]
A current source entering the node therefore has a negative sign in this form.
For example, a 10 mA source enters node 1. A 1 kΩ resistor connects node 1 to ground, and a 2 kΩ resistor connects node 1 to node 2:
\[ \frac{V1}{1\,\text{k}\Omega}+\frac{V1-V_2}{2\,\text{k}\Omega}=10\,\text{mA} \]
Write one such equation for each unknown node voltage.
import numpy as np
G = np.array([[1/1000 + 1/2000, -1/2000],
[-1/2000, 1/2000 + 1/2000]])
I = np.array([0.010, 0.0])
v1, v2 = np.linalg.solve(G, I)
print(v1, v2) # 8.0 4.0Supernodes
A supernode is the boundary around two or more nonreference nodes joined by an ideal voltage source. Enclose the source and its connected nodes, then apply KCL around the outside boundary. Add the voltage constraint, such as:
\[ V1-V2=5\text{ V} \]
Surfaces, dependent sources, and model limits
KCL also applies to any closed surface or cutset: the algebraic sum of currents crossing its boundary is zero. This helps simplify larger circuits.
A dependent source does not change KCL. Include its current in the node equation, then express that current using its controlling voltage or current.
KCL assumes a lumped circuit, where charge does not accumulate meaningfully inside an ideal node. At high frequencies or across physically large structures, electromagnetic propagation and distributed capacitance matter. Use transmission-line or field models when that assumption fails.
Check the result
After solving, substitute each voltage back into the branch-current equations. At every node, verify that total current entering equals total current leaving. A mismatch usually indicates a sign, reference-direction, or unit error.
Exercise
If 3 mA enters a node and 5 mA also enters, what is the current defined as entering that must balance them?
Show answer
It is -8 mA. The negative result means 8 mA actually leaves the node.