Thus far we have used only one of the operational amplifiers inputs to connect to the amplifier, using either the “inverting” or the “non-inverting” input terminal to amplify a single input signal with the other input being connected to ground.

But as a standard operational amplifier has two inputs, inverting and no-inverting, we can also connect signals to both of these inputs at the same time producing another common type of operational amplifier circuit called a **Differential Amplifier**.

Basically, as we saw in the first tutorial about operational amplifiers, all op-amps are “Differential Amplifiers” due to their input configuration. But by connecting one voltage signal onto one input terminal and another voltage signal onto the other input terminal the resultant output voltage will be proportional to the “Difference” between the two input voltage signals of V1 and V2.

Related Products: OP Amp | SP Amplifier

Then *differential amplifiers* amplify the difference between two voltages making this type of operational amplifier circuit a **Subtractor** unlike a summing amplifier which adds or sums together the input voltages. This type of operational amplifier circuit is commonly known as a **Differential Amplifier** configuration and is shown below:

By connecting each input in turn to 0v ground we can use superposition to solve for the output voltage Vout. Then the transfer function for a **Differential Amplifier** circuit is given as:

When resistors, R1 = R2 and R3 = R4 the above transfer function for the differential amplifier can be simplified to the following expression:

If all the resistors are all of the same ohmic value, that is: R1 = R2 = R3 = R4 then the circuit will become a **Unity Gain Differential Amplifier** and the voltage gain of the amplifier will be exactly one or unity. Then the output expression would simply be Vout = V2 – V1. Also note that if input V1 is higher than input V2 the output voltage sum will be negative, and if V2 is higher than V1, the output voltage sum will be positive.

The **Differential Amplifier** circuit is a very useful op-amp circuit and by adding more resistors in parallel with the input resistors R1 and R3, the resultant circuit can be made to either “Add” or “Subtract” the voltages applied to their respective inputs. One of the most common ways of doing this is to connect a “Resistive Bridge” commonly called a *Wheatstone Bridge* to the input of the amplifier as shown below.

The standard Differential Amplifier circuit now becomes a differential voltage comparator by “Comparing” one input voltage to the other. For example, by connecting one input to a fixed voltage reference set up on one leg of the resistive bridge network and the other to either a “Thermistor” or a “Light Dependant Resistor” the amplifier circuit can be used to detect either low or high levels of temperature or light as the output voltage becomes a linear function of the changes in the active leg of the resistive bridge and this is demonstrated below.

Here the circuit above acts as a light-activated switch which turns the output relay either “ON” or “OFF” as the light level detected by the LDR resistor exceeds or falls below some pre-set value. A fixed voltage reference is applied to the non-inverting input terminal of the op-amp via the R1 – R2 voltage divider network.

The voltage value at V1 sets the op-amps trip point with a feed back potentiometer, VR2 used to set the switching hysteresis. That is the difference between the light level for “ON” and the light level for “OFF”.

The second leg of the differential amplifier consists of a standard light dependant resistor, also known as a LDR, photoresistive sensor that changes its resistive value (hence its name) with the amount of light on its cell as their resistive value is a function of illumination.

The LDR can be any standard type of cadmium-sulphide (cdS) photoconductive cell such as the common NORP12 that has a resistive range of between about 500Ω in sunlight to about 20kΩ’s or more in the dark.

The NORP12 photoconductive cell has a spectral response similar to that of the human eye making it ideal for use in lighting control type applications. The photocell resistance is proportional to the light level and falls with increasing light intensity so therefore the voltage level at V2 will also change above or below the switching point which can be determined by the position of VR1.

Then by adjusting the light level trip or set position using potentiometer VR1 and the switching hysteresis using potentiometer, VR2 an precision light-sensitive switch can be made. Depending upon the application, the output from the op-amp can switch the load directly, or use a transistor switch to control a relay or the lamps themselves.

It is also possible to detect temperature using this type of simple circuit configuration by replacing the light dependant resistor with a thermistor. By interchanging the positions of VR1 and the LDR, the circuit can be used to detect either light or dark, or heat or cold using a thermistor.

One major limitation of this type of amplifier design is that its input impedances are lower compared to that of other operational amplifier configurations, for example, a non-inverting (single-ended input) amplifier.

Each input voltage source has to drive current through an input resistance, which has less overall impedance than that of the op-amps input alone. This may be good for a low impedance source such as the bridge circuit above, but not so good for a high impedance source.

One way to overcome this problem is to add a Unity Gain Buffer Amplifier such as the voltage follower seen in the previous tutorial to each input resistor. This then gives us a differential amplifier circuit with very high input impedance and low output impedance as it consists of two non-inverting buffers and one differential amplifier. This then forms the basis for most “Instrumentation Amplifiers”.

**Instrumentation Amplifiers** (in-amps) are very high gain differential amplifiers which have a high input impedance and a single ended output. Instrumentation amplifiers are mainly used to amplify very small differential signals from strain gauges, thermocouples or current sensing devices in motor control systems.

Unlike standard operational amplifiers in which their closed-loop gain is determined by an external resistive feedback connected between their output terminal and one input terminal, either positive or negative, “instrumentation amplifiers” have an internal feedback resistor that is effectively isolated from its input terminals as the input signal is applied across two differential inputs, V1 and V2.

The instrumentation amplifier also has a very good common mode rejection ratio, CMRR (zero output when V1 = V2) well in excess of 100dB at DC. A typical example of a three op-amp instrumentation amplifier with a high input impedance ( Zin ) is given below:

The two non-inverting amplifiers form a differential input stage acting as buffer amplifiers with a gain of 1 + 2R2/R1 for differential input signals and unity gain for common mode input signals. Since amplifiers A1 and A2 are closed loop negative feedback amplifiers, we can expect the voltage at Va to be equal to the input voltage V1. Likewise, the voltage at Vb to be equal to the value at V2.

As the op-amps take no current at their input terminals (virtual earth), the same current must flow through the three resistor network of R2, R1 and R2 connected across the op-amp outputs. This means then that the voltage on the upper end of R1 will be equal to V1 and the voltage at the lower end of R1 to be equal to V2.

This produces a voltage drop across resistor R1 which is equal to the voltage difference between inputs V1 and V2, the differential input voltage, because the voltage at the summing junction of each amplifier, Va and Vb is equal to the voltage applied to its positive inputs.

However, if a common-mode voltage is applied to the amplifiers inputs, the voltages on each side of R1 will be equal, and no current will flow through this resistor. Since no current flows through R1 (nor, therefore, through both R2 resistors, amplifiers A1 and A2 will operate as unity-gain followers (buffers). Since the input voltage at the outputs of amplifiers A1 and A2 appears differentially across the three resistor network, the differential gain of the circuit can be varied by just changing the value of R1.

The voltage output from the differential op-amp A3 acting as a subtractor, is simply the difference between its two inputs ( V2 – V1 ) and which is amplified by the gain of A3 which may be one, unity, (assuming that R3 = R4). Then we have a general expression for overall voltage gain of the instrumentation amplifier circuit as:

In the next tutorial about Operational Amplifiers, we will examine the effect of the output voltage, Vout when the feedback resistor is replaced with a frequency dependant reactance in the form of a capacitance. The addition of this feedback capacitance produces a non-linear operational amplifier circuit called an Integrating Amplifier.

Error! Please fill all fields.

can anyone design an circuit for 3V1 – 2V2 =0,where all the resistances are <=100 kilo ohm plz

I know this has been up for quite a while, still it is a great tutorial.

One problem – the hilighted box under “Differential Amplifier” has the wrong sign. The correct answer should be:

Vout = R3/R1*(V2-V1)

Thanks for posting this excellent tutorial!

The voltage gain of the Differential Amplifier is determined by the ratio of R3/R1 (in this example). Thus the output voltage, Vout gives the difference between the two inputs, weighted by the factor R3/R1. As R3/R1 are connected to the inverting input of the op-amp, this weighted factor is therefore negative in value. The voltage difference between V1 and V2 will ultimately determine the signed value at Vout.

I also think it should be Vout = R3/R1*(V2-V1). The expression one step earlier states it that way. Here is a document prooving that under the title “Difference Amplifier”.

https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-071j-introduction-to-electronics-signals-and-measurement-spring-2006/lecture-notes/23_op_amps2.pdf

Thanks for giving me the answer of my question

Thank for the answer of my question

why uses summing amplifier?what is the applications of summing amplifier?

A summing amplifier is an operational amplifier circuit which adds or sums together the voltages applied to its inputs. You can find more information here about the Summing Amplifier

This was a great chance for me to read this and I appreciate your efforts

Best regards

very helpful…its i need for my servo drive problem.thanks.

why even same input is given to differential amplifier will not produce zero output

thanks very very much i

I want to make a subtraction circuit at inverting terminal i wil apply the some dc voltage of approximately 500mV and at noninverting terminal I will apply the pulse signal of 20-30 nsec with with frequency of 2 Hz. pulse rise time is 6ns and fall time is 20 nsec.