# Purpose of a capacitor between op amp inputs in buffer circuit

I have stumbled upon the below circuit. At first I thought it is a voltage follower, but I can't understand why there is a capacitor between the positive and negative inputs. Can anyone please explain to me the purpose of the capacitor in this circuit?

• "I stumbled across this" <- OK, where? What is it supposed to do? There's arbitrarily many bad circuits in existence, and also arbitrarily many purposes for which things are built, so it really makes no sense at all for us to try to interpret sense into something of which we don't have the slightest idea what it was designed for. Commented May 31, 2017 at 8:00

At DC, and low frequencies where the gain and speed of the amplifier is sufficient to keep its inputs at more or less the same voltage, it does nothing, as it's 'bootstrapped out'.

Any amplifier has a finite bandwidth. If a high speed step is applied to the input, then for a moment, there will be the full step voltage across the inputs. Some op-amps misbehave under these conditions. A small capacitor across the inputs like this reduces that effect.

In circumstances where there is RF pickup on the input leads, which can also make op-amps misbehave, a small capacitor here can also improve things.

Most applications of op-amps do not have very high speed inputs, so do not need this protection from them. It's usually better to explicitly filter any inputs, rather than use this crude method. However, in the case of an emergency retro-fit, putting a small C directly across the inputs is a convenient improvement.

Such a capacitor between both inputs (very often, in series with a small resistor) is a kind of external lag compensation. This is a simple method to stabilize an opamp (with strong feedback) that is not unity-gain compensated. The explanation is simple: For rising frequencies the feedback factor is reduced and, hence, the tendency to oscillate is reduced. As a consequence of this compensation method, the usable closed-loop bandwidth is reduced considerably.

This kind of compensation can an also be used for unity-gain compensated opamps with strong feedback to improve the phase margin (step response with smaller overshoot)

Both Op Amp output and source have a current limit and bandwidth. Thus If you have a voltage differential at some frequency

• can you see how voltage is limited with rising f by passive C due to source impedance which is a function of frequency in negative feedback GBW limited unity gain Op Amp (Zo rises with f) and some unknown source with stray noise.