Home/Analog Electronics/Op-amp applications/Differentiator

Differentiator using Op-Amp (IC 741) – Virtual Lab

A differentiator places a capacitor in the input path and a resistor in the feedback path. The output is proportional to how fast the input changes, so a triangle (constant slopes) becomes a square wave.

Aim

To build a practical differentiator using IC 741 and observe the conversion of a triangular wave into a square wave.

Circuit components

ComponentValuePurpose
IC 741OA1—
C110 nFInput capacitor
Rs1 kΩSeries resistor for stability
Rf100 kΩFeedback resistor

Supply: ±12 V dual power supply. Instruments: function generator and two-channel digital storage oscilloscope, all on the virtual bench.

Theory

The capacitor current is C dVin/dt. Because the − input is a virtual ground, all of this current flows through Rf and produces Vo = −RfC dVin/dt.

An ideal differentiator has a gain that rises without limit with frequency, which amplifies noise and makes the circuit oscillate. The small series resistor Rs limits the high-frequency gain to Rf/Rs = 100 and keeps the circuit stable.

The rising slope of the triangle gives a constant negative output and the falling slope a constant positive output, so the output is a square wave of about 8 Vpp.

Vo = −Rf C dVin/dt
dVin/dt = 2 Vpp × 2 × 1 kHz = 4 V/msfor a 2 Vpp, 1 kHz triangle
Vo = 100k × 10 nF × 4000 V/s = ±4 V

Procedure

  1. Open the Op-Amp Trainer Kit simulator; it starts with the Differentiator application selected.
  2. In Guided mode follow the highlighted connections to place the components from the parts bank and wire the circuit on the kit, or wire it yourself in Free mode.
  3. Set the dual power supply to ±12 V and switch it on.
  4. Switch on the function generator and set: Triangle, 2 Vpp, 1 kHz.
  5. Connect CH1 and CH2 of the oscilloscope as shown and set: CH1 1 V/div, CH2 2 V/div, 200 µs/div.
  6. Measure the level of the output square wave.
  7. Note the small overshoot at each corner caused by the limited bandwidth.
  8. Change the input to a sine and observe the inverted cosine output.
  9. Capture the oscilloscope screen and compare it with the expected result below.
Function generatorTriangle, 2 Vpp, 1 kHzOscilloscopeCH1 1 V/div, CH2 2 V/div, 200 µs/divSupply±12 V, ON

Expected result

The triangle is converted into a square wave of about ±4 V (8 Vpp), as given by RfC × dVin/dt.

Viva questions

Why is a resistor placed in series with the input capacitor?
To limit the gain at high frequency, which reduces noise and prevents oscillation.
What is the output of a differentiator for a square wave input?
Narrow spikes at each edge, because the input changes only at the transitions.
Why is a differentiator less common than an integrator?
Its gain increases with frequency, so it amplifies high-frequency noise.

Other op-amp applications