Sub topic 3
The RC low-pass filter
This chapter assumes you know the voltage divider rule, the impedance of capacitors (Z = 1/(jωC)), and complex magnitude and angle. It builds the simplest frequency-selective circuit from those parts.
The circuit
An RC low-pass filter puts a resistor in series with the signal and a capacitor from the output node to ground. The output is the voltage across the capacitor.
Low frequencies pass because the capacitor's impedance is large, so little signal is shunted to ground. High frequencies are attenuated because the capacitor's impedance is small and it pulls the output node toward ground.
Deriving H(jω)
The resistor and capacitor form a voltage divider. The transfer function is the ratio of the output phasor to the input phasor:
H(jω) = Vout / Vin = ZC / (R + ZC)
Substitute Z_C = 1/(jωC), then multiply the numerator and denominator by jωC:
H(jω) = 1 / (1 + jωRC)
Its magnitude and phase are:
- |H| = 1 / √(1 + (ωRC)²)
- ∠H = −arctan(ωRC)
At ω → 0 the gain is 1 and the phase is 0°. As ω grows, the gain falls toward 0 and the phase approaches −90°. The product RC has units of seconds, so ωRC is dimensionless. It is the only combination of R, C, and ω that matters.
The cutoff frequency
The filter's characteristic frequency is where ωRC = 1:
fc = 1 / (2πRC)
At this frequency |H| = 1/√2 ≈ 0.707, which is −3 dB. The phase is −45°. The next chapters cover decibels and the −3 dB convention in detail.
For R = 1.59 kΩ and C = 100 nF, fc ≈ 1001 Hz.
Computing the response
This script evaluates H(jω) directly with complex arithmetic, one point per decade:
import numpy as np
R = 1.59e3 # ohms
C = 100e-9 # farads
fc = 1 / (2 * np.pi * R * C)
print(f"fc = {fc:.1f} Hz")
f = np.logspace(1, 5, 5) # 10 Hz to 100 kHz, one point per decade
w = 2 * np.pi * f
H = 1 / (1 + 1j * w * R * C) # RC low-pass, output across C
mag_db = 20 * np.log10(np.abs(H))
phase_deg = np.degrees(np.angle(H))
for fi, m, p in zip(f, mag_db, phase_deg):
print(f"{fi:9.1f} Hz {m:7.2f} dB {p:7.2f} deg")The results are approximately:
| Frequency | Gain | Phase |
|---|---|---|
| 10 Hz | 0.00 dB | −0.6° |
| 100 Hz | −0.04 dB | −5.7° |
| 1 kHz | −3.01 dB | −45.0° |
| 10 kHz | −20.03 dB | −84.3° |
| 100 kHz | −39.99 dB | −89.4° |
Above the cutoff, each tenfold increase in frequency lowers the gain by about 20 dB. This slope is the first-order roll-off.
Checking with a simulator
You can confirm the numbers with an AC sweep in SPICE. The source has an AC amplitude of 1 V, so the output node voltage is the gain directly.
* RC low-pass filter, AC sweep
V1 in 0 AC 1
R1 in out 1.59k
C1 out 0 100n
.ac dec 20 10 100k
.endPlot the magnitude and phase of out. They should match the table above.
Common mistakes
- Taking the output across R instead of C gives a high-pass filter, not a low-pass filter.
- Using the formula with a load attached ignores loading. A load resistor in parallel with C changes the gain and cutoff. Loading is covered in a later chapter.
Exercise
A low-pass filter uses R = 10 kΩ and C = 10 nF. What is its cutoff frequency, and what is the approximate gain in dB at 10 times that frequency?
Show answer
fc = 1/(2π · 10e3 · 10e-9) = 1/(6.283e-4) ≈ 1592 Hz. At 10·fc, ωRC = 10, so |H| = 1/√101 ≈ 0.0995. That is about −20.04 dB, close to the −20 dB per decade asymptote.