Sub topic 8
The RC High-Pass Filter
This chapter assumes you know the voltage divider rule, the impedance of a capacitor (Z_C = 1/(jωC)), complex magnitude and angle, and decibels. The RC low-pass filter from the earlier chapter is the starting point. Here you swap the positions of the two components and see what changes.
Swapping the Components
An RC high-pass filter uses the same parts as the low-pass filter. The capacitor sits in series with the signal path, and the output is taken across the resistor.
At low frequency the capacitor has a large impedance, so it blocks most of the signal. At high frequency its impedance is small, so the signal passes almost unchanged. A DC input is blocked completely, which is why this circuit is also used for AC coupling.
Deriving the Transfer Function
Apply the voltage divider rule with the output across R:
H(jω) = R / (R + 1/(jωC))
Multiply the numerator and denominator by jωC:
H(jω) = jωRC / (1 + jωRC)
Define ω_c = 1/(RC). Then:
H(jω) = j(ω/ωc) / (1 + j(ω/ωc))
The magnitude and phase follow directly:
- |H| = (ω/ωc) / √(1 + (ω/ωc)²)
- ∠H = 90° − arctan(ω/ω_c)
Cutoff Frequency and Key Points
The cutoff frequency is the same expression as for the low-pass filter:
f_c = 1 / (2πRC)
At f = fc, the ratio ω/ωc equals 1, so |H| = 1/√2, which is about −3.01 dB. The phase there is +45°.
| Frequency | Gain | Phase |
|---|---|---|
| f_c / 10 | about −20 dB | about +84° |
| f_c | −3 dB | +45° |
| 10 f_c | about 0 dB | about +6° |
Well below fc, the magnitude is approximately ω/ωc. Each tenfold increase in frequency raises the gain tenfold, which is +20 dB per decade. Well above f_c, the gain flattens at 0 dB.
The phase is positive, so the output leads the input. It starts near +90° at low frequency and falls toward 0° at high frequency. The low-pass filter is the opposite: its phase lags and goes from 0° toward −90°.
Worked Example
Design a high-pass filter with f_c ≈ 1 kHz using C = 100 nF.
R = 1 / (2π · 1000 · 100×10⁻⁹) ≈ 1.59 kΩ
This is the same pair of values used in the low-pass example. Only the output node has moved. The script below evaluates the response across five decades.
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
w = 2 * np.pi * f
H = (1j * w * R * C) / (1 + 1j * w * R * C) # RC high-pass, output across R
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")At 10 Hz the gain is near −40 dB with a phase close to +90°. At 100 kHz the gain is near 0 dB with a phase close to 0°.
Common Errors
- Taking the output across the wrong component. Across C you get a low-pass filter. Across R you get a high-pass filter.
- Reporting the phase as lagging. For the high-pass filter the phase is positive.
- Treating the −3 dB point as a sharp edge. A first-order filter has a gentle slope of 20 dB per decade, so it attenuates only gradually below f_c.
- Forgetting the source resistance. A source with its own resistance adds to R and moves the cutoff lower, which a later chapter covers.
Exercise
A high-pass filter uses R = 10 kΩ and C = 22 nF. Find f_c, then give the approximate gain in dB and the phase at 100 Hz.
Show answer
fc = 1/(2π · 10000 · 22×10⁻⁹) ≈ 723 Hz. At 100 Hz, ω/ωc = 100/723 ≈ 0.138. The gain is 0.138/√(1 + 0.138²) ≈ 0.137, which is about −17.3 dB. The phase is 90° − arctan(0.138) ≈ 90° − 7.9° ≈ +82°.
Exercise
Why does an RC high-pass filter block DC, and what is its gain at f = 0?
Show answer
At DC the capacitor impedance 1/(jωC) becomes infinite, so no current flows through R and the output across R is zero. The gain at f = 0 is 0, which is minus infinity in dB.