Sub topic 14
KVL with sinusoidal sources and phasors
This chapter assumes you can write a KVL equation for a resistive loop, and that you know complex numbers in rectangular and polar form. It also assumes you know the basic sinusoid terms: amplitude, angular frequency and phase. Here, KVL is applied to circuits driven by a sinusoidal source in steady state.
KVL still holds at every instant
KVL is a statement about voltages at one moment in time. For a lumped circuit with a source vs(t) = Vm cos(ωt + φ), the loop equation is true at every instant:
vs(t) − vR(t) − vL(t) − vC(t) = 0
The element voltages are no longer simple multiples of one current. An inductor gives v = L di/dt and a capacitor gives i = C dv/dt. Solving the loop directly means solving a differential equation. Phasors avoid that for steady-state work.
From time functions to phasors
A phasor is a complex number that holds the amplitude and phase of a sinusoid. For v(t) = Vm cos(ωt + φ), the phasor is V = Vm∠φ. All voltages and currents in the circuit share the same ω, so ω is left out of the phasor and tracked separately.
Each element then has an algebraic relation between phasor voltage and phasor current, written with the impedance Z:
| Element | Impedance Z | Relation |
|---|---|---|
| Resistor | R | V = R·I |
| Inductor | jωL | V = jωL·I |
| Capacitor | 1/(jωC) | V = I/(jωC) |
Differentiation in time becomes multiplication by jω. Because of that, KVL turns into an algebraic equation. Adding sinusoids of the same frequency is the same as adding their phasors, so the law carries over unchanged:
The phasor voltages around a closed loop sum to zero.
The sign rules are the same as before. Use the passive sign convention, pick a loop direction, and treat each term as a rise or a drop.
Worked example: series RLC loop
Take a source of 10∠0° V at ω = 1000 rad/s, in series with R = 30 Ω, L = 40 mH and C = 50 µF.
- Z_L = jωL = j40 Ω
- Z_C = 1/(jωC) = −j20 Ω
KVL around the loop gives Vs = I(R + jωL + 1/(jωC)), so I = Vs / (30 + j40 − j20) = 10∠0° / (30 + j20).
The code below solves the loop and checks that the phasor drops add up to the source.
import cmath
import math
omega = 1000.0
R, L, C = 30.0, 40e-3, 50e-6
V_s = cmath.rect(10.0, 0.0) # 10 V at 0 degrees
Z_R = R
Z_L = 1j * omega * L
Z_C = 1 / (1j * omega * C)
I = V_s / (Z_R + Z_L + Z_C)
V_R, V_L, V_C = I * Z_R, I * Z_L, I * Z_C
def show(name, z):
mag, ang = cmath.polar(z)
print(f"{name}: {mag:.3f} at {math.degrees(ang):.2f} deg")
show("I (A)", I)
show("V_R (V)", V_R)
show("V_L (V)", V_L)
show("V_C (V)", V_C)
# KVL check: source rise minus the sum of the drops is zero.
print(f"Loop sum = {abs(V_s - (V_R + V_L + V_C)):.2e}")The current is about 0.277 A at −33.69°. The inductor voltage is about 11.1 V and the capacitor voltage is about 5.55 V. Both are measured against a 10 V source, so each is not smaller than the source, and the capacitor and inductor voltages largely cancel because they are about 180° apart.
A common trap: magnitudes do not add
The magnitudes of the drops sum to more than the source magnitude. Here, 8.32 + 11.09 + 5.55 is about 24.96 V, while the source is 10 V. KVL applies to the complex phasors, not to their magnitudes. A voltmeter reading RMS or peak values on each element will show numbers that do not sum to the source reading.
The same applies at any single instant. The time-domain voltages sum to zero at each moment, even though their peaks occur at different times.
Summary
- KVL holds at every instant, and in steady state it holds for phasors.
- Replace each element by its impedance and write the loop equation as a complex algebraic equation.
- Sum complex phasors, not magnitudes.
Exercise
A series loop has a source of 20∠0° V, R = 40 Ω and an inductor with Z_L = j30 Ω. Find the phasor current, and the magnitude of the inductor voltage.
Show answer
Z = 40 + j30 = 50∠36.87° Ω. I = 20∠0° / 50∠36.87° = 0.4∠−36.87° A. VL = I·ZL = 0.4∠−36.87° × 30∠90° = 12∠53.13° V, so the magnitude is 12 V.
Exercise
In the loop above, the resistor voltage has magnitude 16 V and the inductor voltage has magnitude 12 V. Why does the source magnitude of 20 V not equal 16 + 12?
Show answer
KVL sums the complex phasors. VR and VL are 90° apart, so they add as perpendicular vectors: sqrt(16² + 12²) = 20 V. Adding magnitudes ignores the phase difference.