Sub topic 8
Impedance of R, L and C
Prerequisites and scope
This chapter assumes you know the time-domain laws of the three passive elements, complex numbers in rectangular and polar form, and the phasor transform from the earlier chapters. It also assumes you know that impedance is defined as Z = V/I, with V and I the voltage and current phasors. Here we derive Z for each element, check the results in code, and look at the errors that come up most often.
Throughout, the source is a steady-state sinusoid with angular frequency ω = 2πf in rad/s. Each time-domain quantity is written as a cosine, v(t) = Vm cos(ωt + θ), and its phasor is V = Vm∠θ.
The method
The derivation follows the same three steps for every element.
- Write the time-domain law that relates v(t) and i(t).
- Replace each signal by a complex exponential, v(t) = Re{V e^{jωt}} and i(t) = Re{I e^{jωt}}.
- Replace d/dt with multiplication by jω and ∫dt with division by jω, then solve for V/I.
The replacement in step 3 works because d/dt of e^{jωt} is jω e^{jωt}. The operator turns every derivative into a factor and every integral into a division.
Resistor
The time-domain law is v(t) = R i(t). It contains no derivative, so substituting the phasors gives V = R I directly.
Z_R = V/I = R
The impedance is real and independent of frequency. Its angle is 0°, so voltage and current are in phase. The phasors point in the same direction in the complex plane.
Inductor
The time-domain law is v(t) = L di/dt. Substituting the phasors, the derivative becomes multiplication by jω:
V = jωL I
Z_L = V/I = jωL = ωL ∠90°
The magnitude ωL grows in proportion to frequency. The angle is +90° at every frequency, so the voltage leads the current by 90°. This phase difference follows from the derivative: the voltage is largest where the current is changing fastest, which is a quarter cycle before the current peaks.
Two limits are worth remembering. At ω = 0 (DC), ZL = 0 and the inductor acts as a short circuit. As ω → ∞, |ZL| → ∞ and the inductor acts as an open circuit.
Capacitor
The time-domain law is i(t) = C dv/dt. Substituting the phasors gives I = jωC V. Solving for V/I:
Z_C = V/I = 1/(jωC) = −j/(ωC) = (1/(ωC)) ∠−90°
The magnitude falls as frequency rises. The angle is −90°, so the current leads the voltage by 90°, which is the same as saying the voltage lags the current by 90°.
The limits are the reverse of the inductor's. At DC, |ZC| → ∞ and the capacitor is an open circuit. At high frequency, ZC → 0 and the capacitor acts as a short circuit.
The step from 1/j to −j uses the identity 1/j = −j, which follows from j·(−j) = 1.
Summary table
| Element | Time-domain law | Impedance Z | Magnitude | Angle | Voltage vs. current |
|---|---|---|---|---|---|
| Resistor | v = R i | R | R | 0° | In phase |
| Inductor | v = L di/dt | jωL | ωL | +90° | Voltage leads |
| Capacitor | i = C dv/dt | 1/(jωC) = −j/(ωC) | 1/(ωC) | −90° | Voltage lags |
The units of impedance are ohms (Ω) for all three. The imaginary part of Z is called reactance, X. For an inductor XL = ωL, which is positive. For a capacitor XC = −1/(ωC), which is negative. The real part is called resistance, R. In general Z = R + jX.
A common mnemonic for the phase relationships is "ELI the ICE man". In an inductor (L), the voltage (E) leads the current (I). In a capacitor (C), the current (I) leads the voltage (E).
Checking the derivation in the time domain
Take i(t) = Im cos(ωt) through an inductor. The time-domain law gives
v(t) = L d/dt [Im cos(ωt)] = −ωL Im sin(ωt) = ωL Im cos(ωt + 90°)
The amplitude is ωL Im and the phase is +90°. That matches V = jωL I with I = Im∠0°, so V = ωL Im ∠90°.
The same check for a capacitor with v(t) = Vm cos(ωt):
i(t) = C d/dt [Vm cos(ωt)] = −ωC Vm sin(ωt) = ωC Vm cos(ωt + 90°)
The current amplitude is ωC Vm and its phase is +90° relative to the voltage. The current leads, as the table says.
Computing impedance numerically
The following code evaluates all three impedances at several frequencies. It shows how the magnitudes change while the angles stay fixed.
import cmath
import math
R = 100.0 # ohms
L = 10e-3 # henries
C = 10e-6 # farads
print(f"{'f (Hz)':>8} {'|Z_R|':>10} {'|Z_L|':>10} {'|Z_C|':>10} "
f"{'ang_L':>7} {'ang_C':>7}")
for f in [10, 100, 1000, 10000]:
w = 2 * math.pi * f
Z_R = R
Z_L = 1j * w * L
Z_C = 1 / (1j * w * C)
print(f"{f:8.0f} {abs(Z_R):10.2f} {abs(Z_L):10.2f} {abs(Z_C):10.2f} "
f"{math.degrees(cmath.phase(Z_L)):7.1f} "
f"{math.degrees(cmath.phase(Z_C)):7.1f}")The inductor magnitude rises tenfold per decade, and the capacitor magnitude falls tenfold per decade. The angles stay at 90.0 and −90.0 on every row.
Using the impedances in a circuit
Once each element has an impedance, Ohm's law V = Z I applies to it, and series and parallel rules apply to combinations. For the series RLC circuit at 1 kHz with the values above:
Z = R + jωL + 1/(jωC)
With ω = 2π·1000 ≈ 6283.2 rad/s:
- ωL = 6283.2 × 0.01 ≈ 62.83 Ω, so Z_L ≈ +j62.83 Ω.
- 1/(ωC) = 1/(6283.2 × 10×10⁻⁶) ≈ 15.92 Ω, so Z_C ≈ −j15.92 Ω.
- Z ≈ 100 + j46.9 Ω, which has magnitude about 110.5 Ω and angle about 25.1°.
The net reactance is positive, so at 1 kHz this circuit is inductive. The current lags the source voltage by about 25°. The code below reproduces these numbers and finds the current for a 10 V source.
import cmath
import math
R, L, C = 100.0, 10e-3, 10e-6
f = 1000.0
w = 2 * math.pi * f
Z = R + 1j * w * L + 1 / (1j * w * C)
V = cmath.rect(10, 0) # 10 V source at 0 degrees
I = V / Z
print("Z =", Z)
print("|Z| =", abs(Z), "angle =", math.degrees(cmath.phase(Z)))
print("|I| =", abs(I), "angle =", math.degrees(cmath.phase(I)))The current angle is the negative of the impedance angle, because the source angle is 0°. This follows from I = V/Z, where angles subtract.
Common errors
- Mixing up the sign of the capacitor reactance. Z_C = −j/(ωC), so the imaginary part is negative. Writing +j/(ωC) reverses lead and lag.
- Using f instead of ω. The impedances use ω = 2πf in rad/s. Using f in hertz gives results off by a factor of 2π.
- Treating the angle as a property of the signal. The ±90° angles belong to the ratio V/I. They tell you the phase difference between voltage and current in that element, not the phase of either one.
- Mixing degrees and radians. Python's
cmathworks in radians. Convert withmath.radiansandmath.degrees. - Forgetting units for prefixes. 10 mH is 10×10⁻³ H and 10 µF is 10×10⁻⁶ F. A wrong power of ten in L or C shifts the reactance by that factor.
- Applying one impedance at another frequency. An impedance is computed for one ω. If the source has several frequencies, compute Z separately for each, then combine the results in the time domain.
Real components are not ideal
The formulas describe ideal elements. Real parts depart from them in ways that matter at higher frequencies.
- A real inductor has winding resistance in series and capacitance between turns, so above its self-resonant frequency it behaves like a capacitor.
- A real capacitor has equivalent series resistance and lead inductance, so it too becomes inductive at high frequency.
- A real resistor has a small series inductance, which matters for wire-wound types.
These effects are modeled by adding ideal R, L and C elements to the circuit. The impedance rules of this chapter then apply to the extended model.
Exercises
Exercise
A 50 mH inductor carries a current i(t) = 2 cos(1000t) A. Find the impedance of the inductor, the voltage phasor, and the time-domain voltage v(t).
Show answer
With ω = 1000 rad/s, ZL = jωL = j(1000)(0.05) = j50 Ω = 50∠90° Ω. The current phasor is I = 2∠0° A. Then V = ZL I = 50∠90° × 2∠0° = 100∠90° V. In the time domain, v(t) = 100 cos(1000t + 90°) V, which equals −100 sin(1000t) V.
Exercise
A 4.7 µF capacitor has the voltage v(t) = 20 cos(2000t − 30°) V across it. Find Z_C and the current i(t).
Show answer
ZC = 1/(jωC) = 1/(j × 2000 × 4.7×10⁻⁶) = 1/(j0.0094) = −j106.4 Ω = 106.4∠−90° Ω. The voltage phasor is V = 20∠−30° V. The current is I = V/ZC = (20∠−30°)/(106.4∠−90°) = 0.188∠60° A. So i(t) = 0.188 cos(2000t + 60°) A. The current leads the voltage by 90°, as expected for a capacitor.
Exercise
At what frequency does a 10 mH inductor have the same impedance magnitude as a 10 µF capacitor? State whether the net reactance of the two in series is positive or negative just above that frequency.
Show answer
Set ωL = 1/(ωC), so ω² = 1/(LC) = 1/(10×10⁻³ × 10×10⁻⁶) = 10⁷, and ω ≈ 3162 rad/s, which is f ≈ 503 Hz. Above that frequency ωL grows and 1/(ωC) shrinks, so the inductive reactance dominates and the net reactance X = ωL − 1/(ωC) is positive (inductive).