Sub topic 1
Impedance of R, L, and C at a given frequency
Prerequisites
This chapter assumes you already know the following:
- Ohm's law and Kirchhoff's laws.
- The voltage divider rule.
- The basic behavior of capacitors and inductors: a capacitor stores charge, and an inductor resists changes in current.
- Sinusoidal signals: amplitude, frequency, and phase.
- Complex numbers: rectangular form, magnitude, and angle.
You do not need logarithms or Bode plots yet. Those come in later chapters. The goal here is a single tool: the impedance of each component at one chosen frequency. Every later chapter on RC and RL filters builds on it.
Why frequency changes the picture
A resistor obeys Ohm's law at every frequency. A capacitor and an inductor do not behave that way. Their voltage-current relationships involve derivatives:
- Capacitor: i(t) = C · dv/dt
- Inductor: v(t) = L · di/dt
If the signal changes quickly, dv/dt and di/dt are large. If the signal changes slowly, they are small. So a capacitor and an inductor respond differently to fast and slow signals. A filter uses that difference to pass some frequencies and block others.
Solving these derivative equations directly for every circuit is slow. Phasors turn them into algebra.
Phasors in one paragraph
Assume a steady sinusoidal source. In this sinusoidal steady state, every voltage and current in a linear circuit is a sinusoid at the same frequency f. Only the amplitude and phase differ from point to point. A phasor is a complex number that stores exactly those two quantities.
For a voltage v(t) = Vm cos(ωt + φ), the phasor is V = Vm∠φ, where ω = 2πf is the angular frequency in radians per second. The time dependence e^(jωt) is understood and dropped. Differentiating in time then becomes multiplication by jω.
A note on notation: j is the imaginary unit, j² = −1. Electrical engineers use j so that i stays free for current.
Deriving the impedance of each element
Impedance, written Z, is the phasor voltage divided by the phasor current: Z = V / I. It is measured in ohms. It generalizes resistance to the case where amplitude and phase both matter.
Resistor
Ohm's law holds for instantaneous values, so v = R·i. In phasor form, V = R·I, so:
Z_R = R
The impedance is real and does not depend on frequency. Voltage and current are in phase.
Inductor
Start from v = L · di/dt. Let i(t) have phasor I, which means i(t) = Re{I·e^(jωt)}. Differentiating gives jω·I·e^(jωt). So V = jωL · I, and:
Z_L = jωL
The impedance is purely imaginary and grows linearly with frequency. At ω = 0 (DC) the inductor looks like a short circuit. At very high frequency it looks like an open circuit. The factor +j means the voltage leads the current by 90°.
Capacitor
Start from i = C · dv/dt. In phasor form, I = jωC · V. Solving for V / I:
Z_C = 1 / (jωC) = −j / (ωC)
The impedance is purely imaginary and negative, and its size falls as frequency rises. At DC the capacitor looks like an open circuit. At very high frequency it looks like a short circuit. The factor −j means the current leads the voltage by 90°, or equivalently the voltage lags the current by 90°.
Summary table
| Element | Impedance Z | Magnitude \ | Z\ | Column | Phase of Z | At DC (ω → 0) | At high ω |
|---|---|---|---|---|---|---|---|
| Resistor | R | R | 0° | R | R | ||
| Inductor | jωL | ωL | +90° | short circuit | open circuit | ||
| Capacitor | 1/(jωC) | 1/(ωC) | −90° | open circuit | short circuit |
The two reactive elements behave in opposite ways. This opposition is why an RC circuit and an RL circuit built with the same layout give opposite filter types.
Reactance and the sign convention
The imaginary part of an impedance is called reactance, written X. Impedance has the form Z = R + jX, where R is the resistance (the real part).
- Inductive reactance: X_L = ωL, which is positive.
- Capacitive reactance: X_C = −1/(ωC), which is negative.
Some books define the capacitive reactance as the positive number 1/(ωC) and put the minus sign in front when they write Z. Both conventions are correct, but you must pick one and keep the sign consistent. The most common error in filter analysis is dropping the minus sign on the capacitor.
The following diagram shows how the magnitudes of the three impedances change with frequency.
Computing an impedance at a given frequency
Follow these steps for any element at any frequency:
- Convert the frequency to angular frequency: ω = 2πf.
- Pick the formula from the table.
- Compute the value, keeping the j.
- If you need a magnitude and angle, convert from rectangular to polar form.
Worked example
Find the impedance of a 100 nF capacitor and a 10 mH inductor at f = 1 kHz.
First, ω = 2π × 1000 ≈ 6283.2 rad/s.
Capacitor:
Z_C = 1 / (jωC) = 1 / (j × 6283.2 × 100×10⁻⁹) = 1 / (j × 6.2832×10⁻⁴) ≈ −j1591.5 Ω
In polar form this is 1591.5 Ω ∠−90°.
Inductor:
Z_L = jωL = j × 6283.2 × 10×10⁻³ ≈ j62.83 Ω
In polar form this is 62.83 Ω ∠+90°.
At 1 kHz the capacitor has a much larger impedance magnitude than the inductor. At a different frequency the comparison changes, because the two scale in opposite directions.
The same calculation in code
The script below computes the three impedances over several frequencies. NumPy handles complex numbers directly, so the formulas are written as in the derivation.
import numpy as np
R = 1.59e3 # ohms
L = 10e-3 # henries
C = 100e-9 # farads
f = np.array([10, 100, 1e3, 1e4, 1e5]) # hertz
w = 2 * np.pi * f
Z_R = R * np.ones_like(w, dtype=complex)
Z_L = 1j * w * L
Z_C = 1 / (1j * w * C)
print(f"{'f (Hz)':>9} {'|Z_R|':>9} {'|Z_L|':>10} {'|Z_C|':>12} {'ang Z_L':>8} {'ang Z_C':>8}")
for k in range(len(f)):
print(
f"{f[k]:9.0f} {abs(Z_R[k]):9.1f} {abs(Z_L[k]):10.2f} {abs(Z_C[k]):12.1f} "
f"{np.degrees(np.angle(Z_L[k])):8.1f} {np.degrees(np.angle(Z_C[k])):8.1f}"
)Running it shows |ZL| rising from about 0.63 Ω at 10 Hz to about 6283 Ω at 100 kHz, while |ZC| falls from about 159 kΩ to about 15.9 Ω over the same range. The angles stay fixed at +90° and −90°. Only the magnitude depends on frequency.
Combining impedances
Impedances combine with the same rules as resistances, provided you use complex arithmetic.
- Series: Z_total = Z₁ + Z₂ + …
- Parallel: Z_total = 1 / (1/Z₁ + 1/Z₂ + …), or for two elements Z₁Z₂ / (Z₁ + Z₂)
Kirchhoff's laws and the voltage divider rule also hold for phasors. This is the reason the voltage divider appears in the next chapter: a filter is a voltage divider whose branches have frequency-dependent impedances.
Series RC example
A resistor of 1.59 kΩ in series with a 100 nF capacitor, at 1 kHz:
Z = R + Z_C = 1590 − j1591.5 Ω
The magnitude is |Z| = √(1590² + 1591.5²) ≈ 2249.7 Ω, and the angle is arctan(−1591.5 / 1590) ≈ −45.0°.
Note two things. First, the magnitude is not R + |Z_C|. Resistive and reactive parts are 90° apart, so they add like the legs of a right triangle, not like numbers on a line. Second, the angle is negative, which signals a capacitive circuit: the current leads the voltage across the pair.
In this example, R and |Z_C| are nearly equal at 1 kHz. That equality is not an accident. It marks the cutoff frequency, which is the subject of a later chapter.
Common errors
- Using f where ω is needed. The formulas use ω = 2πf. Using f directly makes the result wrong by a factor of about 6.28.
- Dropping the sign or the j on a capacitor. 1/(jωC) is −j/(ωC). Writing +j/(ωC) reverses the phase.
- Adding magnitudes in series. Add complex numbers first, then take the magnitude.
- Mixing units. Convert nF to 10⁻⁹ F and mH to 10⁻³ H before you substitute.
- Applying impedance to transients. Phasor impedance describes sinusoidal steady state. It does not describe the switching behavior right after a source is turned on. That behavior is covered when the time constant appears.
- Assuming a nonlinear or saturating component. Impedance assumes a linear component. An inductor with a saturated core, for example, does not follow Z = jωL.
Checking against a simulator
An AC simulation reports the same impedance as a complex number. In a SPICE netlist, a source set to AC 1 gives a 1 V phasor reference, and the .ac command sweeps frequency. If you drive a series RC with 1 V and read the current, the impedance is 1 / I. The netlist below does that for the series example above.
* Series RC impedance check
V1 in 0 AC 1
R1 in mid 1.59k
C1 mid 0 100n
.ac lin 1 1k 1k
.print ac i(V1)
.endSPICE reports the current through V1 with a negative sign, because it counts current flowing into the positive terminal of a source. Take the magnitude, which should be about 0.4445 mA, since 1 / 2249.7 Ω ≈ 0.4445 mA. That matches the hand calculation.
What comes next
Impedance lets you treat a capacitor or inductor as a frequency-dependent resistor with a phase. In the next chapter you place two such impedances in a voltage divider and divide output by input to get the transfer function H(jω). That one ratio carries the whole frequency response.
Exercise
A 22 mH inductor and a 4.7 µF capacitor are each driven at 500 Hz. Find the impedance of each in rectangular form, then find the impedance of the two in series.
Show answer
First ω = 2π × 500 ≈ 3141.6 rad/s. Inductor: ZL = jωL = j × 3141.6 × 0.022 ≈ +j69.1 Ω. Capacitor: ZC = 1/(jωC) = −j / (3141.6 × 4.7×10⁻⁶) = −j / 0.014765 ≈ −j67.7 Ω. In series, Z = j69.1 − j67.7 ≈ +j1.4 Ω. The reactances nearly cancel, so the series pair is close to a short circuit at 500 Hz. This near-cancellation is called series resonance, and it is far from the behavior of a plain sum of magnitudes (136.8 Ω).
Exercise
A 330 Ω resistor is in series with a 2.2 µF capacitor at 200 Hz. Compute the total impedance in polar form and state whether the current leads or lags the source voltage.
Show answer
ω = 2π × 200 ≈ 1256.6 rad/s. Z_C = −j / (1256.6 × 2.2×10⁻⁶) = −j / 2.7646×10⁻³ ≈ −j361.7 Ω. Z = 330 − j361.7 Ω. |Z| = √(330² + 361.7²) = √(108900 + 130827) ≈ 489.6 Ω. The angle is arctan(−361.7 / 330) ≈ −47.6°. So Z ≈ 489.6 Ω ∠−47.6°. Because the impedance angle is negative, the voltage lags the current, which means the current leads the source voltage by 47.6°.
Exercise
At what frequency does a 10 mH inductor have the same impedance magnitude as a 100 nF capacitor?
Show answer
Set ωL = 1/(ωC). Then ω² = 1/(LC) = 1 / (10×10⁻³ × 100×10⁻⁹) = 1×10⁹, so ω ≈ 31623 rad/s. Dividing by 2π gives f ≈ 5033 Hz. At that frequency both magnitudes equal √(L/C) = √(0.01 / 1×10⁻⁷) ≈ 316.2 Ω.