Skip to content

5.7 Difference Amplifier

← Back to Fundamentals of Electric Circuits Overview

5.7 Difference Amplifier

Difference (or dif ferential) amplifiers are used in various applications where there is a need to amplify the dif ference between tw o input sig nals. They are first cousins of the instrumentation amplifier, the most useful and popular amplifier, which we will discuss in Section 5.10.

A difference amplifier is a device that amplifies the difference between two inputs but rejects any signals common to the two inputs.

Consider the op amp circuit sho wn in Fig. 5.24. K eep in mind that zero currents enter the op amp terminals. Applying KCL to node a,

______ v1va R1 = ______ vavo R2

vo=(R2R1+1)vaR2R1v1(5.16)v_o = \left(\frac{R_2}{R_1} + 1\right) v_a - \frac{R_2}{R_1} v_1 \tag{5.16}

Difference amplifier.

The difference amplifier is also known as the subtractor, for reasons to be shown later.

Practice Problem 5.6

Applying KCL to node b,

v2vbR3=vb0R4\frac{v_2 - v_b}{R_3} = \frac{v_b - 0}{R_4}

or

vb=R4R3+R4v2(5.17)v_b = \frac{R_4}{R_3 + R_4} v_2 \tag{5.17}

But va = vb. Substituting Eq. (5.17) into Eq. (5.16) yields

vo=(R2R1+1)R4R3+R4v2R2R1v1v_o = \left(\frac{R_2}{R_1} + 1\right) \frac{R_4}{R_3 + R_4} v_2 - \frac{R_2}{R_1} v_1

or

vo=R2(1+R1/R2)R1(1+R3/R4)v2R2R1v1v_o = \frac{R_2(1 + R_1/R_2)}{R_1(1 + R_3/R_4)} v_2 - \frac{R_2}{R_1} v_1

(5.18)

Since a difference amplifier must reject a signal common to the two inputs, the amplifier must have the property that vo = 0 when v1 = v2. This property exists when

R1R2=R3R4\frac{R_1}{R_2} = \frac{R_3}{R_4}

\n(5.19)

Thus, when the op amp circuit is a dif ference amplifier, Eq. (5.18) becomes

vo=R2R1(v2v1)v_o = \frac{R_2}{R_1}(v_2 - v_1)

\n(5.20)

If R2 = R1 and R3 = R4, the difference amplifier becomes a subtractor, with the output

vo=v2v1(5.21)v_o = v_2 - v_1 \tag{5.21}

Example 5.7 Design an op amp circuit with inputs v1 and v2 such that vo = −5v1 + 3v2.

Solution:

The circuit requires that

vo=3v25v1(5.7.1)v_o = 3v_2 - 5v_1 \tag{5.7.1}

This circuit can be realized in two ways.

Design 1 If we desire to use only one op amp, we can use the op amp circuit of Fig. 5.24. Comparing Eq. (5.7.1) with Eq. (5.18), we see

R2R1=5R2=5R1(5.7.2)\frac{R_2}{R_1} = 5 \quad \Rightarrow \quad R_2 = 5R_1 \tag{5.7.2}

Also,

5(1+R1/R2)(1+R3/R4)=3651+R3/R4=355\frac{(1+R_1/R_2)}{(1+R_3/R_4)} = 3 \quad \Rightarrow \quad \frac{\frac{6}{5}}{1+R_3/R_4} = \frac{3}{5}

or

2=1+R3R4R3=R4(5.7.3)2 = 1 + \frac{R_3}{R_4} \Rightarrow R_3 = R_4 \tag{5.7.3}

If we choose R1 = 10 k Ω and R3 = 20 k Ω, then R2 = 50 k Ω and R4 = 20 kΩ.

Design 2 If we desire to use more than one op amp, we may cascade an inverting amplifier and a two-input inverting summer, as shown in Fig. 5.25. For the summer,

vo=va5v1(5.7.4)v_o = -v_a - 5v_1 \tag{5.7.4}

and for the inverter,

va=3v2(5.7.5)v_a = -3v_2 \tag{5.7.5}

Combining Eqs. (5.7.4) and (5.7.5) gives

vo = 3v2 − 5v1

which is the desired result. In Fig. 5.25, we may select R1 = 10 kΩ and R3 = 20 kΩ or R1 = R3 = 10 kΩ.

Design a difference amplifier with gain 7.5. Practice Problem 5.7

Answer: Typical: R1 = R3 = 20 kΩ, R2 = R4 = 150 kΩ.

An instrumentation amplifier shown in Fig. 5.26 is an amplifier of lowlevel signals used in process control or measurement applications and commercially available in single-package units. Show that

vo=R2R1(1+2R3R4)(v2v1)v_o = \frac{R_2}{R_1} \left( 1 + \frac{2R_3}{R_4} \right) (v_2 - v_1)

Solution:

We recognize that the amplifier A3 in Fig. 5.26 is a difference amplifier. Thus, from Eq. (5.20),

vo=R2R1(vo2vo1)v_o = \frac{R_2}{R_1}(v_{o2} - v_{o1})

\n(5.8.1)

Since the op amps A1 and A2 draw no current, current i flows through the three resistors as though they were in series. Hence,

vo1vo2=i(R3+R4+R3)=i(2R3+R4)v_{o1} - v_{o2} = i(R_3 + R_4 + R_3) = i(2R_3 + R_4)

(5.8.2)

Figure 5.25 For Example 5.7.

Example 5.8

Figure 5.26 Instrumentation amplifier; for Example 5.8.

But

i=vavbR4i = \frac{v_a - v_b}{R_4}

and va = v1, vb = v2. Therefore,

i=v1v2R4i = \frac{v_1 - v_2}{R_4}

(5.8.3)

Inserting Eqs. (5.8.2) and (5.8.3) into Eq. (5.8.1) gives

vo=R2R1(1+2R3R4)(v2v1)v_o = \frac{R_2}{R_1} \left( 1 + \frac{2R_3}{R_4} \right) (v_2 - v_1)

as required. We will discuss the instrumentation amplifier in detail in Section 5.10.

Obtain io Practice Problem 5.8 in the instrumentation amplifier circuit of Fig. 5.27.

Figure 5.27

Instrumentation amplifier; for Practice Prob. 5.8.

Answer: 800 μA.