Sub topic 13
Extending the Rules to Impedances in AC Circuits
What this chapter assumes
You should already know the voltage divider rule, the current divider rule, and the loaded divider with its Thevenin view. You should also be comfortable with complex numbers in rectangular and polar form. Phasors are used below with a short reminder, not a full introduction.
The central result is that the divider rules need no new derivation for sinusoidal AC. You replace each resistance with an impedance and do the arithmetic with complex numbers.
From resistance to impedance
In sinusoidal steady state, every voltage and current is a sinusoid at one angular frequency ω (in rad/s, where ω = 2πf). A phasor is a complex number that stores the amplitude and phase of such a sinusoid. Ohm's law keeps its form for phasors:
V = I · Z
Here Z is the impedance, a complex number measured in ohms. Its real part is resistance and its imaginary part is reactance.
| Element | Impedance Z | Admittance Y = 1/Z |
|---|---|---|
| Resistor R | R | 1/R |
| Inductor L | jωL | 1/(jωL) = −j/(ωL) |
| Capacitor C | 1/(jωC) = −j/(ωC) | jωC |
Kirchhoff's laws also hold for phasors. The phasor voltages around a loop sum to zero, and the phasor currents at a node sum to zero. Series and parallel combination rules were derived only from Ohm's law and the two Kirchhoff laws. So they carry over unchanged: impedances in series add, and admittances in parallel add.
The voltage divider with impedances
Take Z1 from the source to the output node and Z2 from the output node to ground. Apply phasor KVL around the loop:
V_in = I · Z1 + I · Z2 = I · (Z1 + Z2)
The output is the voltage across Z2:
V_out = I · Z2
Eliminate I:
Vout = Vin · Z2 / (Z1 + Z2)
This is the resistive formula with R replaced by Z. The ratio Vout / Vin is now a complex number. Its magnitude gives the amplitude ratio and its angle gives the phase shift of the output relative to the input.
A worked example: the RC divider
Let Z1 be a resistor R and Z2 a capacitor C. Then:
Vout / Vin = (1/(jωC)) / (R + 1/(jωC))
Multiply the numerator and denominator by jωC:
Vout / Vin = 1 / (1 + jωRC)
The magnitude is 1 / √(1 + (ωRC)²). The phase is −arctan(ωRC). At low frequency the capacitor's impedance is large, so almost all of the input appears at the output. At high frequency the impedance is small, so the output falls. The point where ωRC = 1, at f = 1/(2πRC), is the cutoff frequency. There the magnitude is 1/√2 ≈ 0.707 and the phase is −45°.
The same divider that gave a fixed ratio with resistors now gives a ratio that depends on frequency. That is why an RC divider is also called a first-order low-pass filter.
Python handles complex numbers directly, so the formula can be coded as written. This script uses R = 1 kΩ and C ≈ 159.155 nF, which puts the cutoff near 1 kHz:
import cmath
import math
def z_capacitor(c, f):
"""Impedance of a capacitor at frequency f in hertz."""
return 1 / (1j * 2 * math.pi * f * c)
def divider_ratio(z_top, z_bottom):
"""Vout / Vin for a divider with z_top in series and z_bottom to ground."""
return z_bottom / (z_top + z_bottom)
R = 1000.0
C = 159.155e-9
for f in (100, 1000, 10000):
h = divider_ratio(R, z_capacitor(C, f))
print(f, round(abs(h), 4), round(math.degrees(cmath.phase(h)), 2))The three lines should show roughly 0.9950 at −5.71°, 0.7071 at −45°, and 0.0995 at −84.29°.
The current divider with impedances
Two branches Z1 and Z2 are in parallel and carry a total phasor current I. The shared voltage is the total current times the parallel impedance:
V = I · (Z1 Z2) / (Z1 + Z2)
Branch 1 carries V / Z1, so:
I1 = I · Z2 / (Z1 + Z2)
I2 = I · Z1 / (Z1 + Z2)
As in the resistive case, the formula for a branch has the other branch's impedance in the numerator. For several branches the conductance form becomes the admittance form:
Ik = I · Yk / (Y1 + Y2 + … + Y_n)
Example: resistor in parallel with an inductor
A total current of 10 mA at 0° divides between R = 1 kΩ and an inductor with ωL = 1 kΩ. The resistor branch current is:
I_R = I · jωL / (R + jωL) = I · j / (1 + j) = I · (1 + j) / 2
That is 7.07 mA at +45°. The inductor branch current is:
I_L = I · R / (R + jωL) = I / (1 + j) = I · (1 − j) / 2
That is 7.07 mA at −45°. The phasor sum is (1 + j)/2 + (1 − j)/2 = 1, so the two branch currents add up to the 10 mA total, as KCL requires. The magnitudes 7.07 mA + 7.07 mA = 14.14 mA do not add up to 10 mA. Phasor currents must be added as complex numbers.
def current_divider_z(i_total, impedances):
"""Branch phasor currents for parallel impedances sharing i_total."""
admittances = [1 / z for z in impedances]
y_total = sum(admittances)
return [i_total * y / y_total for y in admittances]
i_total = 0.010 + 0j
z_r = 1000 + 0j
z_l = 1000j # inductor with omega * L = 1000 ohms
branches = current_divider_z(i_total, [z_r, z_l])
for i in branches:
print(abs(i), i)
print(sum(branches)) # equals i_total, up to floating-point roundingLoading and the Thevenin view still work
A load ZL across the lower impedance Z2 replaces Z2 with the parallel combination Z2 ZL / (Z2 + Z_L). The Thevenin equivalent of the divider also carries over:
- Vth = Vin · Z2 / (Z1 + Z2), as a phasor.
- Z_th = Z1 Z2 / (Z1 + Z2), as a complex impedance.
The stiffness rule still applies, now in terms of magnitude. The output stays close to Vth only if |ZL| is much larger than |Z_th|. At frequencies where a capacitive load's impedance drops, the loading error grows. A divider that is accurate at 100 Hz can be badly loaded at 100 kHz.
A frequency-independent divider: the compensated probe
Sometimes you want a divider ratio that does not change with frequency. A standard case is an oscilloscope probe. A 9 MΩ resistor R1 forms the top of a 10:1 divider with the scope input, which is R2 = 1 MΩ in parallel with a capacitance C2 of about 100 pF. That capacitance is the input capacitance plus the cable. Without correction, C2 would roll off the high frequencies.
The fix is to add a capacitor C1 across R1. Use the admittance form of the divider, Vout / Vin = Y1 / (Y1 + Y2), where:
- Y1 = 1/R1 + jωC1
- Y2 = 1/R2 + jωC2
If R1 C1 = R2 C2, then Y1 = (1/R1)(1 + jωR1C1) and Y2 = (1/R2)(1 + jωR2C2) share the same complex factor. That factor cancels from the ratio, leaving:
Vout / Vin = (1/R1) / (1/R1 + 1/R2) = R2 / (R1 + R2) = 0.1
For these values, C1 = R2 C2 / R1 = (1 MΩ × 100 pF) / 9 MΩ ≈ 11.1 pF.
import math
def ratio_rc_divider(r1, c1, r2, c2, f):
"""Vout/Vin where Z1 is r1 in parallel with c1 and Z2 is r2 in parallel with c2."""
w = 2 * math.pi * f
y1 = 1 / r1 + 1j * w * c1
y2 = 1 / r2 + 1j * w * c2
return y1 / (y1 + y2)
r1, r2, c2 = 9e6, 1e6, 100e-12
c1_matched = r2 * c2 / r1
for f in (100, 10_000, 1_000_000):
matched = abs(ratio_rc_divider(r1, c1_matched, r2, c2, f))
off = abs(ratio_rc_divider(r1, 5e-12, r2, c2, f))
print(f, round(matched, 4), round(off, 4))The matched column prints 0.1000 at every frequency. The column with C1 = 5 pF drifts, because the two branches no longer have equal time constants. Probes have an adjustable trimmer capacitor so you can set this match, which is the "compensation" step you do against a square wave.
Limits of the method
Impedance dividers are valid only under these conditions:
- The circuit is linear.
- The source is a sinusoid at one frequency, and the circuit has reached steady state.
- Every element is described by a fixed impedance at that frequency.
For a signal with several frequency components, apply the divider separately at each frequency and add the results in the time domain. For transients, replace jω with the Laplace variable s. The formulas keep the same shape.
Common errors
- Dividing magnitudes. Using |Z1| and |Z2| in the formula gives the wrong magnitude and no phase. The reactive parts must be combined as complex numbers, because a resistor and a capacitor are 90° apart.
- Adding branch current magnitudes. Branch currents sum to the total only as phasors, as the inductor example showed.
- Mixing frequencies. Z is valid only at the ω you used to compute it. Recompute reactances if the frequency changes.
- Forgetting parasitics. A large resistive divider in a real circuit is shunted by stray capacitance. At high frequency, that capacitance can dominate the ratio, and the DC value is a poor guide.
- Mixing peak and RMS values. The ratio is the same for either, but the input and output must use the same convention.
Exercises
Exercise
A series resistor R = 1 kΩ is followed by a capacitor C = 1 µF to ground, as in the RC divider. The input is a sinusoid with ω = 2000 rad/s. Find the magnitude and phase of Vout / Vin.
Show answer
ωRC = 2000 × 1000 × 1e-6 = 2. So Vout / Vin = 1 / (1 + j2). The magnitude is 1/√5 ≈ 0.447. The phase is −arctan(2) ≈ −63.4°.
Exercise
A total current of 20 mA at 0° enters a parallel pair: a resistor of 500 Ω and a capacitor whose impedance is −j500 Ω. Find the resistor current as a magnitude and phase, and explain why the two branch magnitudes do not sum to 20 mA.
Show answer
IR = I · ZC / (R + Z_C) = 20 mA × (−j500) / (500 − j500) = 20 mA × (1 − j)/2. The magnitude is about 14.14 mA and the phase is −45°. The capacitor current is 20 mA × (1 + j)/2, about 14.14 mA at +45°. The branch currents are 90° apart, so they must be added as phasors. Their phasor sum is 20 mA, but their magnitudes sum to about 28.3 mA.
Exercise
In a compensated divider, R1 = 4 MΩ, R2 = 1 MΩ, and C2 = 50 pF. What value of C1 makes the ratio independent of frequency, and what is that ratio?
Show answer
The condition is R1 C1 = R2 C2, so C1 = R2 C2 / R1 = (1 MΩ × 50 pF) / 4 MΩ = 12.5 pF. The ratio is R2 / (R1 + R2) = 1/5 = 0.2 at every frequency.