Sub topic 12
KVL, KCL and Dividers in Phasor Form
This chapter assumes you know the DC versions of Kirchhoff's laws and the divider rules. It also assumes you can convert between rectangular and polar form, and that you know how a resistor, inductor and capacitor become impedances ($R$, $j\omega L$, $1/(j\omega C)$). The goal is to show that, once every quantity is a phasor, the DC rules apply unchanged, with complex arithmetic in place of real arithmetic.
Why the DC laws carry over
KVL and KCL are time-domain statements. At every instant, the voltages around a closed loop sum to zero, and the currents at a node sum to zero.
Suppose every source in the circuit is a sinusoid at the same angular frequency $\omega$, and the circuit is in steady state. Then every voltage and current is a sinusoid at that same $\omega$. Write each one as $vk(t) = \mathrm{Re}\{\mathbf{V}k e^{j\omega t}\}$. The KVL sum becomes:
$$\sumk vk(t) = \mathrm{Re}\left\{\left(\sumk \mathbf{V}k\right) e^{j\omega t}\right\} = 0$$
This must hold for all $t$. The only way is for the complex coefficient to be zero:
$$\sumk \mathbf{V}k = 0 \qquad\text{(KVL)}$$
The same argument gives $\sumk \mathbf{I}k = 0$ for KCL. Linearity of the real-part operation does the work, so the laws hold for phasors exactly as they hold for instantaneous values.
KVL in phasor form
Around any closed loop, the phasor voltages sum to zero, with the same sign convention you used in DC. A voltage rise counts one way and a drop counts the other.
The sum is a complex sum. The magnitudes do not add. Two voltages of 3 V and 4 V in a loop can combine to 5 V, or 7 V, or 1 V, depending on their relative angle. This is the same fact that appears when you add sinusoids by adding their phasors.
KCL in phasor form
At any node, the phasor currents leaving the node sum to zero. Use the same convention for every branch, either all leaving or all entering.
Two edge cases come up often:
- Each term needs a reference direction. A phasor current with an angle is still a signed quantity, and flipping the arrow adds 180° to its angle.
- KCL holds for a node or for any closed surface. The idea of "charge piling up" does not break it, because the capacitor's displacement current is already included in the capacitor's impedance.
Ohm's law ties the two together
For each branch, $\mathbf{V} = Z\mathbf{I}$, where $Z$ is complex. With this, a loop equation becomes algebra. For a series loop with source $\mathbf{V}_s$:
$$\mathbf{V}s = \mathbf{I}(Z1 + Z2 + \dots + Zn)$$
So $\mathbf{I} = \mathbf{V}s / Z{\text{total}}$, where $Z_{\text{total}}$ is the complex sum of the impedances.
Dividers
The divider rules come straight from KVL, KCL and Ohm's law. Only the symbols change.
| Rule | Formula | Where it applies |
|---|---|---|
| Voltage divider | $\mathbf{V}_k = \mathbf{V}_s \dfrac{Z_k}{Z_1 + Z_2 + \dots + Z_n}$ | Impedances in series, carrying the same current |
| Current divider (two branches) | $\mathbf{I}_1 = \mathbf{I}_s \dfrac{Z_2}{Z_1 + Z_2}$ | Two impedances in parallel |
| Current divider (general) | $\mathbf{I}_k = \mathbf{I}_s \dfrac{Y_k}{Y_1 + Y_2 + \dots + Y_n}$ | Any number of parallel branches, with $Y = 1/Z$ |
The current divider formula has the other branch's impedance in the numerator. This is the same swap you know from DC.
The ratio $Zk / Z{\text{total}}$ is a complex number. Its magnitude is the gain of the divider, and its angle is the phase shift it adds. A divider built from reactive elements therefore changes the phase as well as the amplitude. That is the basis of RC and RL filters.
A worked series example
Take a source $\mathbf{V}_s = 10\angle 0^\circ$ V at $\omega = 1000$ rad/s driving a series circuit with $R = 100\ \Omega$, $L = 0.1$ H and $C = 5\ \mu$F.
The element impedances are:
- $Z_R = 100\ \Omega$
- $Z_L = j\omega L = j100\ \Omega$
- $Z_C = 1/(j\omega C) = -j200\ \Omega$
The total is $Z = 100 + j100 - j200 = 100 - j100 = 141.4\angle{-45^\circ}\ \Omega$. The current is:
$$\mathbf{I} = \frac{10\angle 0^\circ}{141.4\angle{-45^\circ}} = 0.0707\angle 45^\circ\ \text{A}$$
The current leads the source voltage by 45°. That is expected, because the circuit is net capacitive.
Now apply Ohm's law to each element:
- $\mathbf{V}_R = 100 \cdot 0.0707\angle 45^\circ = 7.07\angle 45^\circ = 5 + j5$ V
- $\mathbf{V}_L = j100 \cdot 0.0707\angle 45^\circ = 7.07\angle 135^\circ = -5 + j5$ V
- $\mathbf{V}_C = -j200 \cdot 0.0707\angle 45^\circ = 14.14\angle{-45^\circ} = 10 - j10$ V
KVL says these sum to the source. Adding the rectangular forms gives $(5 - 5 + 10) + j(5 + 5 - 10) = 10 + j0$ V. The loop closes.
The capacitor voltage magnitude is 14.14 V, which is larger than the 10 V source. No rule is broken. Magnitudes do not obey KVL, and the inductor and capacitor voltages partly cancel because they sit about 180° apart.
The same result comes from the voltage divider. For the capacitor:
$$\mathbf{V}_C = 10 \cdot \frac{-j200}{100 - j100} = 14.14\angle{-45^\circ}\ \text{V}$$
import cmath
import math
w = 1000.0 # rad/s
R = 100.0 # ohms
L = 0.1 # henries
C = 5e-6 # farads
Vs = 10 + 0j # source phasor, 10 at angle 0
Z_R = R
Z_L = 1j * w * L
Z_C = 1 / (1j * w * C)
Z = Z_R + Z_L + Z_C
I = Vs / Z
V_R = I * Z_R
V_L = I * Z_L
V_C = I * Z_C
def polar(x):
return abs(x), math.degrees(cmath.phase(x))
print("Z =", polar(Z))
print("I =", polar(I))
print("V_R =", polar(V_R))
print("V_L =", polar(V_L))
print("V_C =", polar(V_C))
# KVL check: the loop sum must equal the source
print("KVL residual:", abs(Vs - (V_R + V_L + V_C)))
# Voltage divider gives the same V_C
print("V_C divider:", polar(Vs * Z_C / Z))The KVL residual prints as zero, or as a number near $10^{-15}$ from floating-point rounding.
A worked parallel example
A current source $\mathbf{I}s = 1\angle 0^\circ$ A feeds a resistor $Z1 = 100\ \Omega$ in parallel with an inductor $Z_2 = j100\ \Omega$. The current divider gives:
$$\mathbf{I}_1 = 1 \cdot \frac{j100}{100 + j100} = \frac{1+j}{2} = 0.707\angle 45^\circ\ \text{A}$$
$$\mathbf{I}_2 = 1 \cdot \frac{100}{100 + j100} = \frac{1-j}{2} = 0.707\angle{-45^\circ}\ \text{A}$$
The two currents have equal magnitude, yet their sum is 1 A and not 1.414 A. Adding the rectangular forms gives $\mathbf{I}1 + \mathbf{I}2 = 1 + j0$, so KCL at the top node holds. The resistor current leads the source and the inductor current lags it.
A working procedure
Common errors
- Adding magnitudes. Summing $|VR| + |VL| + |V_C|$ in a loop is wrong. Add the complex values, then take the magnitude of the result.
- Dropping the angle of the source. If the source is not at 0°, every other phasor shifts by the same amount. Choosing the source as the 0° reference makes the arithmetic easier, and you can restore the offset at the end.
- Mixing peak and RMS phasors. Use one convention across the whole circuit. A peak phasor gives $v(t) = V_m\cos(\omega t + \phi)$. An RMS phasor needs a factor of $\sqrt{2}$ when you convert back to time.
- Mixing frequencies. Phasors at different frequencies cannot be added. If a circuit has sources at two frequencies, solve once per frequency and add the results in the time domain by superposition.
- Unequal currents in a "series" divider. The voltage divider only applies when the same current flows through every impedance. A load connected across one element changes that current. Use the parallel combination of the element and the load as the divider's impedance.
- Angle mistakes near the second and third quadrants. A calculator's arctangent of $y/x$ loses the quadrant. Use a two-argument arctangent such as
cmath.phase, or check the signs of the real and imaginary parts.
Exercise
A source of 12∠0° V at ω = 2000 rad/s drives a 50 Ω resistor in series with a 25 mH inductor. Use the voltage divider to find the phasor voltage across the inductor. Then verify KVL.
Show answer
ZL = jωL = j2000 × 0.025 = j50 Ω. Total impedance Z = 50 + j50 = 70.71∠45° Ω. The divider gives VL = 12 × j50 / (50 + j50) = 12 × (j50)(50 − j50) / 5000 = 12 × (2500 + j2500) / 5000 = 6 + j6 V = 8.485∠45° V. The current is I = 12 / (50 + j50) = 0.1697∠−45° A, so VR = 50 × I = 6 − j6 V. Sum: VR + V_L = (6 − j6) + (6 + j6) = 12 + j0 V, which equals the source, so KVL holds.
Exercise
A current source of 2∠0° A feeds a parallel pair: a 20 Ω resistor and a capacitor with Z_C = −j20 Ω. Find the current in each branch with the current divider, then check KCL at the top node.
Show answer
IR = 2 × ZC / (ZR + ZC) = 2 × (−j20) / (20 − j20) = 2 × (−j20)(20 + j20) / 800 = 2 × (400 − j400) / 800 = 1 − j1 A = 1.414∠−45° A. IC = 2 × ZR / (ZR + ZC) = 2 × 20 / (20 − j20) = 2 × 20(20 + j20) / 800 = 1 + j1 A = 1.414∠45° A. Sum: (1 − j1) + (1 + j1) = 2 + j0 A, which equals the source, so KCL holds. The capacitor current leads the source, and the resistor current lags it.