Sub topic 3
The RC low-pass filter
This chapter derives the frequency response of the simplest filter: a resistor in series with a capacitor, with the output taken across the capacitor. It assumes you can already do the following:
- Apply the voltage divider rule.
- Write the impedance of a capacitor as 1/(jωC).
- Convert a complex number to magnitude and angle.
- Read a logarithm.
The chapter uses the transfer function H(jω) = Vout/Vin from the previous chapter. It treats the decibel, the −3 dB point, and Bode asymptotes only as far as needed here, because later chapters cover them in full.
The circuit
The source drives a resistor R. The resistor connects to the output node. A capacitor C connects from the output node to ground. The output is the voltage across the capacitor, and nothing else is connected to it. That last condition matters, and the loading section below returns to it.
Deriving H(jω)
Work in the sinusoidal steady state with phasors. The capacitor impedance is ZC = 1/(jωC), and the resistor impedance is ZR = R. The two impedances form a voltage divider, and Vout is taken across the lower element:
H(jω) = Vout/Vin = ZC / (R + ZC) = (1/(jωC)) / (R + 1/(jωC))
Multiply the numerator and denominator by jωC:
H(jω) = 1 / (1 + jωRC)
This one expression holds the whole frequency response. Define ω_c = 1/(RC), and the expression becomes:
H(jω) = 1 / (1 + j ω/ω_c)
The ratio ω/ωc is dimensionless. Once you write the response in this form, every RC low-pass filter has the same shape. Only the position of ωc along the frequency axis changes.
Why it passes low frequencies
You can predict the behavior from the impedances before doing any algebra.
- At very low frequency, Z_C is very large compared with R. Almost no current flows, so almost no voltage drops across R, and Vout ≈ Vin.
- At very high frequency, Z_C is very small compared with R. The capacitor looks like a short circuit, and Vout ≈ 0.
- At DC (ω = 0), the capacitor is an open circuit, and H = 1 exactly.
The formula agrees: H → 1 as ω → 0, and H → 0 as ω → ∞.
Magnitude and phase
A complex number has a magnitude and an angle. For H(jω) = 1/(1 + jx), where x = ω/ω_c, they are:
- |H| = 1 / √(1 + x²)
- ∠H = −arctan(x)
The numerator is the real number 1, so it has angle 0. The angle of the whole fraction is therefore the negative of the denominator's angle. The output lags the input, and the lag grows from 0° toward −90° as frequency rises.
The decibel form of the magnitude is |H|_dB = 20·log₁₀|H| = −10·log₁₀(1 + x²).
The cutoff frequency
Set x = 1, which means ω = ωc, so f = fc = 1/(2πRC). Then:
- |H| = 1/√2 ≈ 0.707
- |H|_dB ≈ −3.01 dB
- ∠H = −45°
At this frequency, the output power is half the input power. Cutoff is therefore also called the half-power frequency. Be careful with units. ωc = 1/(RC) is in radians per second, and fc = ω_c/(2π) is in hertz. Mixing the two is the most common error in this calculation, and it produces an answer that is off by a factor of 6.28.
A worked example
Take R = 1.59 kΩ and C = 100 nF.
- RC = 1.59×10³ × 100×10⁻⁹ = 1.59×10⁻⁴ s.
- f_c = 1/(2π × 1.59×10⁻⁴) ≈ 1001 Hz, which is about 1 kHz.
Now evaluate the response one point per decade, from 10 Hz to 100 kHz. Here x = f/f_c:
| f (Hz) | x = f/f_c | Magnitude (dB) | Phase (deg) |
|---|---|---|---|
| 10 | 0.01 | −0.00 | −0.57 |
| 100 | 0.1 | −0.04 | −5.70 |
| 1,000 | ≈1 | −3.01 | −44.97 |
| 10,000 | ≈10 | −20.03 | −84.28 |
| 100,000 | ≈100 | −40.00 | −89.43 |
The 1,000 Hz row is not exactly −45° because 1,000 Hz is slightly below the true f_c of 1001 Hz. The table shows three regions:
- Well below f_c, the gain is essentially 0 dB and the phase is near 0°.
- At f_c, the gain is −3 dB and the phase is −45°.
- Well above f_c, the gain falls by 20 dB for every tenfold increase in frequency, and the phase approaches −90°.
A drop of 20 dB per decade is the roll-off of a first-order filter. Each factor of 10 in frequency divides the output amplitude by about 10.
Computing the response in Python
The script below evaluates H(jω) directly with complex arithmetic. It does not use the magnitude and phase formulas, so it also checks the algebra.
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")np.angle returns radians, so np.degrees converts them. The printed values should match the table above to the rounding shown.
Checking with an AC simulation
A SPICE AC sweep solves the same circuit numerically. The source has AC amplitude 1, so the magnitude at node out equals 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
.endThe line .ac dec 20 10 100k sweeps from 10 Hz to 100 kHz with 20 points per decade. Plot vdb(out) and vp(out) (or the equivalents in your simulator). You should see −3 dB and −45° near 1 kHz. If your simulator reports phase in radians, convert before comparing with the table.
Common errors
- Taking the output across R. That gives the high-pass filter, H = jωRC/(1 + jωRC). The low-pass output is always across the capacitor.
- Writing the phase as a positive angle. The denominator 1 + jx has a positive angle, and the fraction inverts it, so the output phase is negative. A lag is a negative phase.
- Reading −3 dB as "3 dB below the peak" on a filter with gain. For this passive filter the passband gain is 0 dB, so −3 dB is an absolute level. For a filter with other passband gain, measure −3 dB from that gain.
- Forgetting the load. A load resistor RL in parallel with C changes both the passband gain and the cutoff. Treat the formulas in this chapter as valid only when the load draws negligible current, meaning RL is much larger than R. A later chapter works through the loaded case.
Where the filter sits among its relatives
The RC low-pass is the template for the others. Swapping the positions of R and C gives the high-pass. Replacing C with an inductor gives the RL filters, whose cutoff is R/(2πL). All of them are first order, so all have a roll-off of 20 dB per decade and a phase that moves through 90° in total.
Exercise
A low-pass filter uses R = 1.59 kΩ and C = 1 µF. (a) Find the cutoff frequency. (b) Find the gain in dB and the phase in degrees at 1 kHz.
Show answer
(a) fc = 1/(2π × 1.59×10³ × 1×10⁻⁶) = 1/(9.99×10⁻³) ≈ 100 Hz. (b) x = 1000/100 = 10, so |H| = 1/√(1 + 100) ≈ 0.0995, which is 20·log₁₀(0.0995) ≈ −20.0 dB. The phase is −arctan(10) ≈ −84.3°. The result matches the 10× point in the worked example, because the circuit has the same shape with fc ten times lower.
Exercise
At what frequency, as a multiple of f_c, is the RC low-pass gain exactly −1 dB? Give the result to two decimal places.
Show answer
Solve −10·log₁₀(1 + x²) = −1. Then 1 + x² = 10^0.1 = 1.2589, so x² = 0.2589 and x ≈ 0.51. The gain is −1 dB at about half the cutoff frequency. The passband edge defined by −1 dB is therefore well below the −3 dB point.