Sub topic 12
Integrator gain and phase versus frequency
This chapter assumes you know the ideal inverting integrator from the previous chapter, complex impedance for a capacitor (Z = 1/(sC)), and decibels.
Transfer function
Replace the feedback resistor of an inverting amplifier with a capacitor. The virtual ground makes the input current Vin/R, and that current flows through the capacitor. In the s-domain the gain is the ratio of feedback impedance to input impedance:
H(s) = Vout/Vin = -(1/(sC)) / R = -1/(sRC)
Set s = jω to get the sinusoidal steady-state response:
- Magnitude: |H| = 1/(ωRC)
- Phase: H = -1/(jωRC) = +j/(ωRC), which is +90°
The inverting amplifier alone contributes 180°. Relative to that inverting gain, the integrator adds a further -90°. Reading the output against the input, it is a sine wave shifted by 90° (equivalent to -270°). The output is a cosine-shaped wave when you drive it with a sine, which is what integration does.
Slope and unity-gain frequency
Doubling the frequency halves the gain. That is -6 dB per octave, or -20 dB per decade. The gain crosses 0 dB (|H| = 1) at:
f0 = 1/(2πRC)
For R = 10 kΩ and C = 100 nF, RC = 1 ms and f0 ≈ 159 Hz.
| Frequency | Gain \ | H\ | Column | Gain in dB | Phase of H |
|---|---|---|---|---|---|
| 0.1 × f0 | 10 | +20 dB | +90° | ||
| f0 | 1 | 0 dB | +90° | ||
| 10 × f0 | 0.1 | -20 dB | +90° |
Check it numerically
This script evaluates H at one decade below, at, and one decade above f0.
import cmath
import math
R = 10e3 # ohms
C = 100e-9 # farads
f0 = 1 / (2 * math.pi * R * C)
for factor in (0.1, 1, 10):
f = factor * f0
w = 2 * math.pi * f
h = -1 / (1j * w * R * C)
gain_db = 20 * math.log10(abs(h))
phase = math.degrees(cmath.phase(h))
print(f"{f:8.1f} Hz {round(gain_db, 2) + 0.0:6.2f} dB {round(phase, 1)} deg")The output is +20.00 dB, 0.00 dB and -20.00 dB, each with a phase of 90.0°.
What the frequency view tells you
- Low frequencies get large gain. As ω approaches 0, |H| grows without limit. A DC offset of a few millivolts is therefore amplified enormously, which explains the drift and saturation covered in the practical-integrator chapter.
- High frequencies are attenuated. The circuit smooths noise. This is the same behavior as the ramp of a square-wave response, viewed in the frequency domain.
- The slope holds only while the op amp behaves ideally. A real op amp has finite open-loop gain and bandwidth. Above some frequency the integrator slope flattens or the phase departs from 90°.
Exercise
An inverting integrator has R = 22 kΩ and C = 47 nF. Find the unity-gain frequency f0, and the gain magnitude at 50 Hz.
Show answer
RC = 22e3 × 47e-9 = 1.034 ms, so f0 = 1/(2π × 1.034 ms) ≈ 154 Hz. At 50 Hz, |H| = 1/(2π × 50 × 1.034e-3) ≈ 3.08, which is about +9.8 dB.