Op-amp integrators and differentiators
Find the output of an op-amp integrator, vo = −(1/RC)∫vin dt, and differentiator, vo = −RC dv_in/dt, for a step, a square wave and a ramp, and say when the integrator saturates.
It opens on
An op-amp with a 1 ms RC feedback gets a 2 V step input. Does the output jump, settle at a value, or keep ramping, and where does it stop?
Why it matters
Putting a capacitor in the op-amp's feedback or input path turns the algebraic amplifier into a calculus circuit, which is how analog computers and filters work. Exams give an input waveform and ask for the output, or ask why an integrator drifts into the rail.
Good to know first
- The inverting amplifier with virtual ground
- i = C dv/dt
- the rail check
Step by step
The integrator and a step
Derive vo = −(1/RC)∫vin dt from the virtual ground and i = C dv/dt, and find the ramp output and the saturation time for a step input.
The capacitor has vin-side voltage 0 and output-side voltage vo, so i = C d(0 − vo)/dt = −C dv_o/dt. Equating, dv_o/dt = −vin/(RC), and vo(t) = −(1/RC)∫vin dt + vo(0).
vo = −(1/RC)∫ vin dt + vo(0)
A common mix-up
The output is proportional to the input.
In fact: It is proportional to the integral, so a constant input gives a ramp, not a constant.
Square waves and drift
Find the output of the integrator for a symmetric square wave and for one with a DC part, and explain drift into saturation.
During the positive half the output falls by 2 V × 2 ms / 1 ms = 4 V, from 0 to −4 V. During the negative half the area is −4 V·ms and the output rises back to 0. So vo is a triangle between 0 and −4 V, 4 V peak to peak.
Δvo = −(1/RC) × area of vin
A common mix-up
Integrating a square wave gives another square wave.
In fact: It gives a triangle, and any average value makes the triangle drift.
The differentiator
Find vo = −RC dv_in/dt for ramp and triangle inputs, and its gain ωRC at a frequency.
The same i flows through R from the − input to the output, so vo = −R i = −RC dv_in/dt. With RC = 1 ms, vo is minus 1 ms times the slope of the input.
vo = −RC dv_in/dt
A common mix-up
The differentiator output is large when the input is large.
In fact: It is large when the input is changing fast; a constant input of any size gives zero.
Try it
An integrator has R = 10 kΩ and C = 0.5 µF, so RC = 5 ms, and gets a 5 V step. Find the output slope and the output at 8 ms.Answer
−1 V/ms and −8 V
Hint: 5 V / 5 ms
An integrator has RC = 1.5 ms and a ±1 V square wave with 3 ms in each half. Find the peak-to-peak output.Answer
2 V, since 1 V × 3 ms / 1.5 ms is 2 V up and 2 V down
Hint: Area / RC
A differentiator has RC = 2 ms and its input ramps up at 3 V/ms. Find vo.Answer
−6 V
Hint: −RC × slope
The rails are ±12 V. At what time does the output reach the rail?Answer
6 ms, since 12 V / (2 V/ms)
If each half were 1 ms long, what would the peak-to-peak output be?Answer
Half as big, 2 V peak to peak, since each area is halved
