Source
Adapted from my own handwritten and hand-typed notes from Year 1 to Year 3 of my EEE degree
Replacing one resistor of the inverting amplifier with a capacitor makes the output follow the integral or the derivative of the input. Both rely on the virtual ground at .
Inverting Integrator (Miller Integrator)
Input resistor , feedback capacitor . Since , the input current is fixed by and all of it charges :
If the capacitor starts with voltage at :
is the integration time constant. The circuit inverts because of the minus sign.

Inverting Differentiator
Input capacitor , feedback resistor :

Worked Example: Ramp Into an Integrator
kΩ, µF ( ms), supplies V, output starts at 0. The input ramps linearly to 4 V in 20 ms, then stays at 4 V.
For ms, :
At ms this gives V. The shape is parabolic.
For ms the input is a constant 4 V, so the output falls linearly:
It cannot fall forever. It saturates at V when , so at ms.
