Sub topic 1
Impedance of R, L, and C at a given frequency
Prerequisites
This chapter assumes you know Ohm's law, the voltage divider rule, and how to work with complex numbers in rectangular form. You should also be comfortable with sinusoidal signals described by amplitude, frequency, and phase.
Impedance as a function of frequency
Impedance is the generalized resistance of a component to a sinusoidal signal. For a sine wave at angular frequency ω = 2πf, the impedances are:
- Resistor: Z_R = R, independent of frequency.
- Capacitor: Z_C = 1 / (jωC), which falls as frequency rises.
- Inductor: Z_L = jωL, which rises with frequency.
The factor j is the imaginary unit. It shifts the voltage phase relative to the current: a capacitor's voltage lags its current by 90°, and an inductor's voltage leads its current by 90°.
import numpy as np
R = 1e3 # ohms
C = 100e-9 # farads
L = 10e-3 # henries
f = 1000.0 # hertz
w = 2 * np.pi * f
Z_R = R
Z_C = 1 / (1j * w * C)
Z_L = 1j * w * L
for name, Z in [("R", Z_R), ("C", Z_C), ("L", Z_L)]:
print(f"{name}: {Z:.1f} ohms, |Z| = {abs(Z):.1f}")The transfer function as a voltage divider
A series R and C driven by a source form a voltage divider. The output taken across C gives the transfer function:
H(jω) = ZC / (R + ZC) = 1 / (1 + jωRC)
The magnitude |H| tells you how much the amplitude changes, and the angle of H tells you the phase shift.
> The next section applies this result to the RC low-pass filter.
The RC low-pass filter
At low frequency, C has a very high impedance, so Vout is close to Vin. At high frequency, C shorts the output to ground, so Vout is small. The circuit therefore passes low frequencies and attenuates high ones.
The cutoff frequency, where the output magnitude drops to 1/√2 of the input, is:
f_c = 1 / (2πRC)
At f_c, |H| = 0.707, which is −3 dB.
Decibels and Bode plots
A Bode plot shows gain in dB and phase in degrees against frequency on a logarithmic axis. Each factor of 10 in frequency is one decade. Above f_c, an RC low-pass rolls off at −20 dB per decade.
Worked check
For R = 1.59 kΩ and C = 100 nF, fc is about 1 kHz. Below fc, the gain stays near 0 dB. Above f_c, the gain falls by 20 dB for each tenfold increase in frequency.
Exercise:
Exercise
For the RC low-pass with R = 1.59 kΩ and C = 100 nF, what is the gain in dB at f_c?
Show answer
|H(f_c)| = 1/√2 ≈ 0.707, so the gain is 20 log10(0.707) ≈ −3.01 dB.