Think of water pipes meeting at a junction — water in = water out. No water "disappears" at the junction.
Kirchhoff's Voltage Law (KVL) — Conservation of Energy
If you walk around any closed loop in the circuit and come back to where you started, the total energy gain and loss must cancel.
\[
\sum_{\text{loop}} V_k = 0
\]
Like hiking: if you return to base camp, the total elevation gained = total elevation lost. No free energy.
The Circuit
We'll solve this two-loop circuit. It has one battery, three resistors, and we want to find every branch current.
Reading the Diagram
Symbol
Meaning
Value
ε
EMF (battery voltage source)
12 V
R₁
Resistor in left branch (top)
2 Ω
R₂
Resistor in right branch (top)
4 Ω
R₃
Resistor in middle branch
6 Ω
I₁
Current leaving battery, through R₁
❓
I₂
Current through R₂ (right branch)
❓
I₃
Current through R₃ (middle branch)
❓
Current directions are assumed. If a result is negative, the current actually flows the other way — the algebra handles it automatically.
Step 1 — Apply KCL at Node E
Node E is where three branches meet. KCL says charge cannot pile up there. Count currents entering as positive and leaving as negative (or vice versa — pick a convention and stick with it).
At node E: \(I_1\) arrives from the left, then splits into \(I_2\) going right and \(I_3\) going down. So \(I_1 = I_2 + I_3\).
KCL Equation — Node E
\[
I_1 - I_2 - I_3 = 0 \qquad \textit{(KCL)}
\]
This is our first equation. It came purely from topology — we haven't used Ohm's law yet.
Why Only One KCL Equation?
With \(N\) nodes, KCL gives \(N-1\) independent equations. Here we have 2 key nodes (E and F), but the equation at F is identical (just signs flipped) — it carries no new information. So: 1 independent KCL equation.
Step 2 — Apply KVL to Each Loop
Now we walk around each closed loop and add up voltage rises (positive) and drops (negative) until we return to the start. The total must be zero.
Sign Convention for Walking a Loop
Walk through a battery from − to +: voltage rises → add \(+\varepsilon\)
Walk through a resistor in the direction of assumed current: voltage drops → add \(-IR\)
Walk through a resistor against the assumed current direction: add \(+IR\)
Loop 1 — Left Loop (A → E → F → D → A, clockwise)
Start at node A and walk clockwise.
A → E (top-left): We pass through the battery (− to +): rise of \(+\varepsilon = +12\text{ V}\). Then through \(R_1\) in the direction of \(I_1\): drop of \(-I_1 R_1\).
E → F (middle branch): Through \(R_3\) in the direction of \(I_3\): drop of \(-I_3 R_3\).
F → D → A (bottom + left side): Plain wire, zero resistance, zero voltage change.
Each equation is a hyperplane in \(\mathbb{R}^3\) (the space of all possible \((I_1, I_2, I_3)\) triples). The solution is the single point where all three planes intersect.
Writing as \(A\mathbf{x} = \mathbf{b}\)
Collect coefficients into a matrix \(A\), unknowns into a column vector \(\mathbf{x}\), and constants into \(\mathbf{b}\):
Step 4 — Solve via Row Reduction (Gaussian Elimination)
Form the augmented matrix \([A \mid \mathbf{b}]\) and row-reduce to upper triangular form. Each row operation is a legal algebraic manipulation — it doesn't change the solution set.
We've reached upper triangular form. Each row has one fewer leading non-zero than the one above it. Now we read off the solution by back-substitution — starting from the bottom.
All currents are positive, confirming our assumed directions were correct.
The Linear Algebra Perspective
Step back. What did we actually do?
The Big Picture
We had three unknowns \((I_1, I_2, I_3)\) — a point somewhere in \(\mathbb{R}^3\). Each equation is a constraint — a plane in that 3D space. Three planes in general position intersect at exactly one point. That point is the solution.
Gaussian elimination is the computational procedure for finding \(A^{-1}\mathbf{b}\) without explicitly inverting \(A\). It's the same as computing the determinant — if it were zero, the planes wouldn't have a unique intersection (the circuit would be degenerate).
Why Linear Algebra Works Here
Ohm's law is linear: \(V = IR\). KCL and KVL are linear combination rules. The whole circuit is a linear system. Non-linear components (diodes, transistors) would require iteration — but for pure resistor networks, a single matrix solve gives the exact answer.
The matrix \(A\) encodes the entire topology of the circuit. The vector \(\mathbf{b}\) encodes the sources (batteries). Solving \(A\mathbf{x} = \mathbf{b}\) is the same as asking: given this physical structure and these energy sources, where does equilibrium land?
Kirchhoff's Recipe — Checklist
Step-by-Step Recipe
Label nodes and assign current directions to every branch (guess is fine).
KCL: Write one equation per independent node: \(\sum I_{\text{in}} = \sum I_{\text{out}}\).
KVL: Walk each independent loop and sum voltage drops: \(\sum V_k = 0\).
Check equation count: You need exactly as many independent equations as unknowns.
Assemble \(A\mathbf{x} = \mathbf{b}\) and solve by row reduction or matrix inversion.
Verify by plugging back into all original equations.
Interpret signs: A negative current means the actual flow opposes your assumed direction.
Kirchhoff's Rules · KCL · KVL · Linear Systems · Gaussian Elimination