Tutorial 7 C - The Difference Amplifier

Learning Objectives

• draw and recognise the single op-amp difference amplifier circuit and describe its applications;

•  use the formula Vout = (V2V1) Rf

•                                                     R1

•  recall that the input resistance of each input is different and comparatively low;

The difference amplifier amplifies the difference between the voltage applied to the inverting input and the non-inverting input as shown in the circuit.

We will derive the equation for the output voltage.  It is long and tedious, so if you want to skip this, click here.

Derivation (Extension only)

Let us apply a voltage of V1 volts to the inverting input (-) of the amplifier, and zero volts to the non-inverting input (+).  We know that the potential at the inverting input is almost zero (virtual earth).  We also know that the input resistance of the inverting input is very high indeed, so we can assume that no current goes into the input.  So the current flows like this.

From Ohm's Law:

I = V1/R1

Since this is a series circuit, the current through Rf is also I, so we can work out the voltage across Rf.  Since the current passes the virtual earth, it is now going up the potential hill, so the voltage across Rf is negative.

-Vf = IRf = Rf(V1/R1)

The voltage Vf is the same as the voltage Vout, so we can write:

Vout = -V1Rf/R1

Now we can rewrite this in terms of the gain:

Gain = Vout /V1 = -Rf/R1

Now let's apply a voltage of V2 volts to the non-inverting input (+) and zero volts to the inverting input.  The current flows like this.

Now the non-inverting input will NOT be at zero volts.  Instead we have a voltage divider which will give us the voltage, V3, at the non-inverting input.

The voltage difference between the non-inverting input and the inverting input is very little, so we can say that the voltage at the inverting input is V3

Since the voltage across R1 is going up the potential hill to the inverting input, we can say that the voltage across the R1 resistor is -V3.  So V1 = -V3.

We know for the non-inverting the Vout expression was:

Vout = -V1Rf/R1

The non-inverting input can be considered to be a source of potential difference.  Normally this is 0, so we can write:

Vout = 0 + -V1Rf/R1

In this case, we have a definite value for potential difference, V3.  Also we know that V1 = -V3.  This gives us:

Vout = V3 + V3Rf/R1

Now we can write an expression for Vout.

We also know that:

This gives us:

This rearranges to:

Now suppose we put a voltage across both inputs.  The currents do this.

We can combine the two equations to give us:

Simpler Equation

The above equation looks pretty horrible, but we can simplify it by making R1 and R2 the same, and Rf and R3 the same.  The equation you need to use is:

 A Difference amplifier has input V1 set at 2 V and input V2 set at 4 V.  The two input resistances are both 50 ohms and the Rf and R3 are 100 ohms.   Show that the output voltage is 4 V.

In many difference amplifiers, all the resistors have the same value.

 Write an expression for Vout if R1 = R2 = R3 = Rf.

The difference amplifier has the disadvantage that the input resistance is quite low, and may differ between inputs.  Differences in resistance are eliminated if R1 and R2 the same, and Rf and R3 the same.  This is the way that the amplifier is normally set up.

The difference amplifier is used to amplify very small differences between two voltages, for example the voltages given off by probes investigating nerve activity in an athlete when he is doing exercise.  With the athlete on a cycling machine or treadmill, probes are attached to the arms and the legs.  The voltage differences (of about 10-2 V) are amplified and fed to a computer that can monitor a number of physiological parameters as he exercises.

Photo: Steven Fruitsmaak, Wikimedia Commons

If there are spurious voltages that are affecting both probes due to, for example, mains hum, the difference amplifier blocks these off.  This is because each spurious voltage has the same value, and the difference is zero.   We say that the spurious signals have been rejected, and electronic engineers call this property the Common Mode Rejection Ratio (CMRR)

If the values of the input resistances are different, the spurious signals will be amplified.

 Links Difference op-amp circuit Hyperphysics tutorial Video tutorial