In this tutorial, we will learn the working and implementation of an Operational Amplifier as Differentiator or a Differentiator Amplifier. Differentiator Amplifier can be Passive or Active based on the components used in its design. Configuring Operational Amplifier as Differentiator or Differentiator Amplifier is basically using Op-Amp as a High Pass Filter and is used in wave shaping circuits, frequency modulators etc.

We already discussed about the Operational Amplifier as Integrator in another tutorial, where we learned how to configure an Operational Amplifier as an Integrator. We will do a similar analysis here but this time for Operational Amplifier as Differentiator.

For additional information on High Passive Filters, read “Passive High Pass RC Filters” and “Active High Pass Filter“. You can find the basics of Op-Amp in “Operational Amplifier Basics“.

Outline

Toggle## Introduction

An op-amp differentiator or a differentiator amplifier is a circuit configuration which is inverse of the integrator circuit. It produces an output signal where the instantaneous amplitude is proportional to the rate of change of the applied input voltage.

Mathematically speaking, the output signal of a Differentiator is the first order derivative of the input signal. For example, if the input signal is a ramp, then the output of the circuit with an Operational Amplifier as Differentiator will be simple DC (as the rate of change of ramp signal is constant). Similarly, if the input signal is a sinusoid, then the output signal is also a sinusoid but with phase difference of 90^{0}.

A differentiator with only RC network is called a passive differentiator, whereas a differentiator with active circuit components like transistors and operational amplifiers is called an active differentiator. Active differentiators have higher output voltage and much lower output resistance than simple RC differentiators.

An op-amp differentiator is an inverting amplifier, which uses a capacitor in series with the input voltage. Differentiating circuits are usually designed to respond for triangular and rectangular input waveforms.

Differentiators have frequency limitations while operating on sine wave inputs; the circuit attenuates all low frequency signal components and allows only high frequency components at the output. In other words, the circuit behaves like a high-pass filter.

## Ideal Op-Amp Differentiator Circuit

An op-amp differentiating amplifier uses a capacitor in series with the input voltage source, as shown in the figure below.

For DC input, the input capacitor C_{1}, after reaching its potential, cannot accept any charge and behaves like an open-circuit. The non-inverting input terminal of the op-amp is connected to ground through a resistor R_{comp}, which provides the input bias compensation, and the inverting input terminal is connected to the output through the feedback resistor R_{f}.

Thus, the circuit behaves like a voltage follower.

When the input is a positive-going voltage, a current I flows into the capacitor C_{1}, as shown in the figure. Since the current flowing into the op-amp’s internal circuit is zero, effectively all of the current I flows through the resistor R_{f}. The output voltage is,

V_{out} = – (I * R_{f})

Here, this output voltage is directly proportional to the rate of change of the input voltage.

From the figure, node ‘X’ is virtually grounded and node ‘Y’ is also at ground potential i.e., V_{X} = V_{Y} = 0 .

From the input side, the current I can be given as:

I = C_{1} {d(V_{in} – V_{X}) / dt} = C_{1} {d(V_{in}) / dt}

From the output side, the current I is given as:

I = -{(V_{out} – V_{X}) / R_{f}} = -{V_{out} / R_{f}}

Equating the above two equations of current we get:

C_{1 }{d(V_{in}) / dt} = -V_{out} / R_{f}

V_{out} = -C_{1} R_{f} {d(V_{in}) / dt}

Above equation indicates that the output is C_{1} R_{f} times the differentiation of the input voltage. The product C_{1} R_{f} is called as the RC time constant of the differentiator circuit. The negative sign indicates the output is out of phase by 180^{0} with respect to the input.

The main advantage of such an active differentiating amplifier circuit is the small time constant required for differentiation.

### Input and Output Waveforms

Let us now see the output waveforms for different input signals. When a step input (DC Level) with amplitude V_{m} is applied to an op-amp differentiator, the output can be mathematically expressed as,

V_{out} = – C_{1} R_{f} {d(V_{m}) / dt}

For simplicity, assume the product C_{1} R_{f} is unity.

Therefore, V_{out} = 0 , because the amplitude V_{m} is constant and d(V_{m}) / dt = 0.

But practically, the output is not zero since the input step wave takes a finite amount of time to rise from 0 volts to V_{m} volts. Hence, the output appears like a spike at time t = 0, as shown in the figure below.

If the input to the differentiator is changed to a square wave, the output will be a waveform consisting of positive and negative spikes, corresponding to the charging and discharging of the capacitor, as shown in the figure below.

For sine wave input, which is mathematically represented as V (t) = V_{m} sin ωt, where V_{m} is the amplitude of the input signal and t is the period, the output of the differentiator is given as,

V_{out} = – C_{1} R_{f} {d(V_{m} sin ωt) / dt}

For simplicity, let us assume the product C_{1} R_{f} is unity.

V_{out} = – V_{m}. ω. cos ωt

Thus, the output of a differentiator for a sine wave input is a cosine wave and the input-output waveforms are shown in the figure below.

### Frequency Response of Ideal Differentiator

The gain of an op-amp differentiator is directly dependent on the frequency of the input signal. Hence, for DC inputs where f = 0, the output is also zero. As the frequency of the input signal increases, the output also increases. The frequency response of an ideal differentiator is as shown in the figure below.

The frequency f_{1} is the frequency for which the gain of the differentiator becomes unity. It can be seen from the figure that for frequency less than f_{1}, the gain is less than unity. For f_{1}, the gain becomes the unity (0 dB) and beyond f_{1}, the gain increases at 20dB per decade.

## Practical Op-amp Differentiator Circuit

For an ideal differentiator, the gain increases as frequency increases. Thus, at some higher frequencies, the differentiator may become unstable and cause oscillations which results in noise.

These problems can be avoided or corrected in a practical differentiator circuit, which uses a resistor R_{1} in series with the input capacitor and a capacitor C_{f} in parallel with the feedback resistor, as shown in the figure below.

The output voltage of the practical op-amp differentiating amplifier circuit is given as,

V_{out} = – C_{1} R_{f} {d(V_{in}) / dt}

i.e., the output voltage is C_{1} R_{f} times the differentiation of the input voltage.

The addition of resistor R_{1} and capacitor C_{f} stabilizes the circuit at higher frequencies, and also reduces the effect of noise on the circuit.

### Frequency Response of Practical Differentiator

The gain of the practical differentiator increases with increasing frequency and at a particular frequency, f_{1}, the gain becomes the unity (0 dB). The gain continues to increase at a rate of 20dB per decade till the input frequency reaches a frequency, f_{2}.

Beyond this frequency of the input signal, the gain of the differentiator starts to decrease at a rate of 20dB per decade. This effect is due to the addition of the resistor R_{1} and capacitor C_{f}. The frequency response curve of a practical differentiator is as shown in the figure below.

## Applications of Op-amp Differentiator

- Differentiating amplifiers are most commonly designed to operate on triangular and rectangular signals.
- Differentiators also find application as wave shaping circuits, to detect high frequency components in the input signal.

## Summary of Operational Amplifier as Differentiator

- An op-amp differentiating amplifier is an inverting amplifier circuit configuration, which uses reactive components (usually a capacitor than inductor).
- The differentiator performs mathematical differentiation operation on the input signal with respect to time i.e., the instantaneous output voltage is proportional to the rate of change of the input signal.
- Differentiating circuits are commonly used to operate on triangular and rectangular signals. While operating on sine wave inputs, differentiating circuits have frequency limitations.

## 5 Responses

good explanation

What is the angle of gain (Vo/Vin)???

good concepts!

are the spikes (output of square wave) in right direction ? are’t these are 180 degree out of phase…!!

Awesome