Sub topic 10
Pairing KVL with Kirchhoff's current law
This chapter assumes you can write a KVL loop equation, apply the passive sign convention, and use Ohm's law. You also need to be able to solve a small linear system.
Two laws, two jobs
KVL says the voltages around a closed loop sum to zero. Kirchhoff's current law (KCL) says the currents at a node sum to zero. A node is a point where two or more branches meet. KCL follows from conservation of charge: charge does not pile up at a node, so the current entering equals the current leaving.
Each law constrains a different quantity.
| Law | Applies to | Statement |
|---|---|---|
| KVL | Each closed loop | Sum of voltages = 0 |
| KCL | Each node | Sum of currents entering = sum of currents leaving |
Ohm's law links the two. For a resistor, V = IR, so a voltage drop can be written in terms of a branch current. Together, the three rules give enough equations to find every unknown in a resistive circuit.
Why one law is not enough
Take a circuit with two loops that share a resistor. A KVL equation for the outer loop alone cannot tell you how the current divides at the junction. KCL supplies that missing relationship. Going the other way, KCL says nothing about how large any current is, because it only compares currents. KVL with Ohm's law supplies the sizes.
The combined plan is:
- Label a current in every branch and mark its direction.
- Write KCL at the nodes, leaving out one node. The last node's equation is redundant.
- Write KVL around enough independent loops. Replace each resistor voltage with I times R.
- Solve the resulting equations together.
Worked example
A 10 V source drives R1 = 2 Ω in series with a parallel pair, R2 = 4 Ω and R3 = 6 Ω. Let I1 be the current through R1, and let I2 and I3 be the currents through R2 and R3.
KCL at node A gives I1 = I2 + I3.
KVL around the loop through the source, R1 and R2 gives 10 - 2·I1 - 4·I2 = 0.
KVL around the loop through R2 and R3 gives 4·I2 - 6·I3 = 0, because both resistors connect the same two nodes and have the same voltage.
The code below solves the three equations together.
import numpy as np
# Unknowns: [I1, I2, I3]
# KCL at node A: I1 - I2 - I3 = 0
# KVL, source loop: 2*I1 + 4*I2 = 10
# KVL, R2-R3 loop: 4*I2 - 6*I3 = 0
A = np.array([[1.0, -1.0, -1.0],
[2.0, 4.0, 0.0],
[0.0, 4.0, -6.0]])
b = np.array([0.0, 10.0, 0.0])
I1, I2, I3 = np.linalg.solve(A, b)
print(f"I1 = {I1:.4f} A, I2 = {I2:.4f} A, I3 = {I3:.4f} A")
print(f"KCL residual = {I1 - I2 - I3:.12f} A")The result is I1 ≈ 2.7273 A, I2 ≈ 1.8182 A and I3 ≈ 1.2121 A. The KCL residual confirms that the two branch currents add up to the source current.
Common errors
- Writing KCL with inconsistent directions. Pick "entering is positive" and keep it for the whole node.
- Counting a redundant equation. In a circuit with N nodes, only N - 1 KCL equations are independent.
- Writing a KVL loop that is a combination of earlier loops. It adds no new information.
- Forgetting that a negative answer only means the current flows opposite to the arrow you chose.
Exercise
A circuit has 4 nodes. How many independent KCL equations can you write, and why?
Show answer
Three. The sum of all four node equations is zero, because each branch current leaves one node and enters another. The fourth equation is therefore determined by the other three.
Exercise
At a node, 3 A enters through one branch and 1 A leaves through another. A third branch carries the remaining current. What is its size and direction?
Show answer
2 A leaving the node. Entering current must equal leaving current, so 3 A = 1 A + 2 A.