Sub topic 6
Phase response of a first-order filter
This chapter assumes you can write the transfer function H(jω) of an RC or RL circuit and know the cutoff frequency fc. It also assumes you can convert a complex number to magnitude and angle. Here we look at the angle.
What phase tells you
The magnitude of H(jω) says how much a sinusoid is scaled. The angle of H(jω) says how far the output sinusoid is shifted in time relative to the input. A negative angle means the output lags the input. A positive angle means it leads.
Low-pass phase
For the RC low-pass filter, H(jω) = 1 / (1 + jω/ωc), where ωc = 1/(RC). The numerator has angle 0, so the phase is the negative of the denominator's angle:
φ(f) = −arctan(f / fc)
Three points fix the shape:
- Far below fc, the phase is close to 0°. The output follows the input.
- At fc, the phase is exactly −45°.
- Far above fc, the phase approaches −90°. The capacitor dominates, and the output is roughly the integral of the input.
The phase never goes beyond −90° for a first-order filter.
High-pass phase
For the RC high-pass filter, H(jω) = (jω/ωc) / (1 + jω/ωc). The numerator contributes +90° at every frequency, so:
φ(f) = 90° − arctan(f / fc)
The phase is near +90° at low frequency, +45° at fc, and near 0° at high frequency. The RL filters give the same curves: the RL low-pass matches the RC low-pass, and the RL high-pass matches the RC high-pass. Only the formula for fc changes.
Phase as a time delay
A phase of φ at frequency f corresponds to a time shift of
Δt = |φ| / 360° × (1/f)
At fc = 1 kHz the period is 1 ms. The −45° lag is one eighth of a period, which is 125 µs. At 10 kHz the phase is about −84.3°, but the period is only 100 µs, so the delay is about 23 µs.
Computing it
import numpy as np
fc = 1000.0
ratios = np.array([0.1, 1, 10, 100])
f = ratios * fc
lowpass = -np.degrees(np.arctan(f / fc))
highpass = 90 - np.degrees(np.arctan(f / fc))
for r, lp, hp in zip(ratios, lowpass, highpass):
print(f"f/fc = {r:6.1f} low-pass {lp:7.2f} deg high-pass {hp:7.2f} deg")The output is:
f/fc = 0.1 low-pass -5.71 deg high-pass 84.29 deg
f/fc = 1.0 low-pass -45.00 deg high-pass 45.00 deg
f/fc = 10.0 low-pass -84.29 deg high-pass 5.71 deg
f/fc = 100.0 low-pass -89.43 deg high-pass 0.57 degCommon errors
- Radians and degrees.
np.arctanandnp.anglereturn radians. Convert withnp.degreesbefore comparing with a Bode plot. - Wrong sign. For the low-pass filter the phase is negative. A positive value means you inverted the ratio.
- Using f/fc where ω/ωc is needed, or mixing the two. The ratio is the same either way. Do not mix hertz and radians per second inside it.
- Expecting 45° from the asymptotes. Straight-line phase sketches jump between 0° and −90° around a decade on each side of fc. The real curve is smooth, and the sketch is only a guide.
Exercise
An RL high-pass filter has fc = 2 kHz. What is its phase at 500 Hz, and does the output lead or lag the input?
Show answer
φ = 90° − arctan(500/2000) = 90° − arctan(0.25) = 90° − 14.04° ≈ 75.96°. The sign is positive, so the output leads the input by about 76°.