# 4.2: Inverting and Noninverting Amplifiers

- Page ID
- 3566

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\id}{\mathrm{id}}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\kernel}{\mathrm{null}\,}\)

\( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\)

\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\)

\( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vectorC}[1]{\textbf{#1}} \)

\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

As noted in our earlier work, negative feedback can be applied in one of four ways. The parallel input form inverts the input signal, and the series input form doesn't. Because these forms were presented as current-sensing and voltage-sensing respectively, you might get the initial impression that all voltage amplifiers must be noninverting. This is not the case. With the simple inclusion of one or two resistors, for example, we can make inverting voltage amplifiers or noninverting current amplifiers. Virtually all topologies are realizable. We will look at the controlledvoltage source forms first (those using SP and PP negative feedback).

For analysis, you can use the classic treatment given in Chapter Three; however, due to some rather nice characteristics of the typical op amp, approximations will be shown. These approximations are only valid in the midband and say nothing of the high frequency performance of the circuit. Therefore, they are not suitable for general-purpose discrete work. The idealizations for the approximations are:

- The input current is virtually zero (i.e., \(Z_{in}\) is infinite).
- The potential difference between the inverting and noninverting inputs is virtually zero (i.e., loop gain is infinite). This signal is also called the error signal.

Also, note for clarity that the power supply connections are not shown in most of the diagrams.

## 4.2.1: The Noninverting Voltage Amplifier

The noninverting voltage amplifier is based on SP negative feedback. An example is given in Figure \(\PageIndex{1}\). Note the similarity to the generic SP circuits of Chapter Three. Recalling the basic action of SP negative feedback, we expect a very high \(Z_{in}\), a very low \(Z_{out}\), and a reduction in voltage gain. Idealization 1 states that \(Z_{in}\) must be infinite. We already know that op amps have low \(Z_{out}\), the second item is taken care of. Now let's take a look at voltage gain.

\[ A_{v} = \frac{V_{out}}{V_{in}} \nonumber \]

Because ideally \(V_{error} = 0\)

\[ V_{in} = V_{Ri} \nonumber \]

Also,

\[ V_{out} = V_{Ri} + V_{Rf} \nonumber \]

\[ A_v = \frac{V_{Ri} + V_{Rf}}{V_{Ri}} \nonumber \]

Figure \(\PageIndex{1}\): Noninverting voltage amplifier.

Expansion gives

\[ A_v = \frac{R_i I_{Ri} + R_f I_{Rf}}{Ri I_{Ri}} \nonumber \]

Because \(I_{in} = 0\), \(I_{Rf} = I_{Ri}\), and finally we come to

\[ A_v = \frac{R_i + R_f}{R_i} \text{or} \nonumber \]

\[ A_v = 1+ \frac{R_f}{R_i} \label{4.1} \]

Now that's convenient. The gain of this amplifier is set by the ratio of two resistors. The larger \(R_f\) is relative to \(R_i\), the more gain you get. Remember, this is an approximation. The closed loop gain can never exceed the open loop gain, and eventually, \(A_v\) will fall off as frequency increases. Note that the calculation ignores the effect of the load impedance. Obviously, if \(R_l\) is too small, the excessive current draw will cause the op amp to clip.

Example \(\PageIndex{1}\)

What are the input impedance and gain of the circuit in Figure \(\PageIndex{2}\)?

First off, \(Z_{in}\) is ideally infinite. Now for the gain:

\[ A_v = 1+ \frac{R_f}{R_i} \nonumber \]

\[ A_v = 1+ \frac{10 k}{1 k} \nonumber \]

\[ A_v = 11 \nonumber \]

Figure \(\PageIndex{2}\): Noninverting circuit for Example \(\PageIndex{1}\).

The opposite process of amplifier design is just as straightforward.

Example \(\PageIndex{2}\)

Design an amplifier with a gain of 26 dB and an input impedance of 47 k\(\Omega\). For the gain, first turn 26 dB into ordinary form. This is a voltage gain of about 20.

\[ A_v = 1+ \frac{R_f}{R_i} \nonumber \]

\[ \frac{R_f}{R_i} = A_v - 1 \nonumber \]

\[ \frac{R_f}{R_i} = 19 \nonumber \]

Figure \(\PageIndex{3}\): Noninverting design for Example \(\PageIndex{2}\).

At this point, choose a value for one of the resistors and solve for the other one. For example, the following would all be valid:

\[ R_i=1k \Omega ,\ R_f=19 k \Omega \nonumber \]

\[ R_i=2 k \Omega ,\ R_f =38 k \Omega \nonumber \]

\[ R_i=500 \Omega ,\ R_f =9.5 k \Omega \nonumber \]

Most of these are not standard values, though, and will need slight adjustments for a production circuit (see Appendix B). A reasonable range is \(100 k\Omega > R_i + R_f > 10 k\Omega \). The accuracy of this gain will depend on the accuracy of the resistors. Now for the \(Z_{in}\) requirement. This is deceptively simple. \(Z_{in}\) is assumed to be infinite, so all you need to do is place a 47 k\(\Omega\) in parallel with the input. The resulting circuit is shown in Figure \(\PageIndex{3}\).

If a specific \(Z_{in}\) is not specified, a parallel input resistor is not required. There is one exception to this rule. If the driving source is not directly coupled to the op amp input (e.g., it is capacitively coupled), a resistor will be required to establish a DC return path to ground. Without a DC return path, the input section's diff amp stage will not be properly biased. This point is worth remembering, as it can save you a great deal in future headaches. For example, in the lab a circuit like the one in Figure \(\PageIndex{2}\) may work fine with one function generator, but not with another. This would be the case if the second generator used an output coupling capacitor and the first one didn't.

Example \(\PageIndex{3}\)

Design a voltage follower (i.e., ideally infinite \(Z_{in}\) and a voltage gain of 1).

The \(Z_{in}\) part is straightforward enough. As for the second part, what ratio of \(R_f\) to \(R_i\) will yield a gain of 1?

\[ A_v = 1+ \frac{R_f}{R_i} \nonumber \]

\[ \frac{R_f}{R_i} = A_v - 1 \nonumber \]

\[ \frac{R_f}{R_i} = 0 \nonumber \]

Figure \(\PageIndex{4}\): Voltage follower for Example \(\PageIndex{3}\).

This says that \(R_f\) must be 0 \(\Omega\). Practically speaking, that means that \(R_f\) is replaced with a shorting wire. What about \(R_i\)? Theoretically, almost any value will do. As long as there's a choice, consider infinite. Zero divided by infinite is certainly zero. The practical benefit of choosing \(R_i = \infty\) is that you may delete \(R_i\). The resulting circuit is shown in Figure \(\PageIndex{4}\). Remember, if the source is not directly coupled, a DC return resistor will be needed. The value of this resistor has to be large enough to avoid loading the source.

As you can see, designing with op amps can be much quicker than its discrete counterpart. As a result, your efficiency as a designer or repair technician can improve greatly. You are now free to concentrate on the system, rather than on the specifics of an individual biasing resistor. In order to make multi-stage amplifiers, just link individual stages together.

Example \(\PageIndex{4}\)

What is the input impedance of the circuit in Figure \(\PageIndex{5}\)? What is \(V_{out}\)? As in any multi-stage amplifier, the input impedance to the first stage is the system \(Z_{in}\). The DC return resistor sets this at 100 k\(\Omega\).

Figure \(\PageIndex{5}\): Multistage circuit for Example \(\PageIndex{4}\).

To find \(V_{out}\), we need to find the gain (in dB).

\[ A_{v1} = 1+ \frac{R_f}{R_i} \nonumber \]

\[ A_{v1} = 1+ \frac{14 k}{2 k} \nonumber \]

\[ A_{v1} = 8 \nonumber \]

\[ A_{v1}^{'} = 18 dB \nonumber \]

\[ A_{v2} = 1+ \frac{R_f}{R_i} \nonumber \]

\[ A_{v2} = 1+ \frac{18 k}{2 k} \nonumber \]

\[ A_{v2} = 10 \nonumber \]

\[ A_{v2}^{'} = 20 dB \nonumber \]

\[ A_{vt}^{'} = 18 dB + 20 dB = 38 dB \nonumber \]

\[ V_{out}^{'} = A_{vt}^{'} + V_{in}^{'} \nonumber \]

\[ V_{out}^{'} = 38 dB + (−30 dBV) \nonumber \]

\[ V_{out}^{'} = 8 dBV \nonumber \]

Because 8 dBV translates to about 2.5 V, there is no danger of clipping either.

## 4.2.2: Inverting Voltage Amplifier

The inverting amplifier is based on the PP negative feedback model. The base form is shown in Figure \(\PageIndex{6}\). By itself, this form is current sensing, not voltage sensing. In order to achieve voltage sensing, an input resistor, \(R_i\), is added. See Figure \(\PageIndex{7}\). Here's how the circuit works: \(V_{error}\) is virtually zero, so the inverting input potential must equal the noninverting input potential. This means that the inverting input is at a virtual ground. The signal here is so small that it is negligible. Because of this, we may also say that the impedance seen looking into this point is zero. This last point may cause a bit of confusion. You may ask, “How can the impedance be zero if the current into the op amp is zero?” The answer lies in the fact that all of the entering current will be drawn through \(R_f\), thus bypassing the inverting input.

Figure \(\PageIndex{6}\): A basic parallel-parallel amplifier.

Figure \(\PageIndex{7}\): Inverting voltage amplifier.

Refer to Figure \(\PageIndex{8}\) for the detailed explanation. The right end of \(R_i\) is at virtual ground, so all of the input voltage drops across it, creating \(I_{in}\), the input current. This current cannot enter the op amp and instead will pass through \(R_f\). Because a positive signal is presented to the inverting input, the op amp will sink output current, thus drawing \(I_{in}\) through \(R_f\). The resulting voltage drop across \(R_f\) is the same magnitude as the load voltage. This is true because \(R_f\) is effectively in parallel with the load. Note that both elements are tied to the op amp's output and to (virtual) ground. There is a change in polarity because we reference the output signal to ground. In short, \(V_{out}\) is the voltage across \(R_f\), inverted.

Figure \(\PageIndex{8}\): Analysis of the inverting amplifier from Figure \(\PageIndex{7}\).

\[ A_v = \frac{V_{out}}{V_{in}} \nonumber \]

\[ V_{in} = I_{in}R_i \nonumber \]

\[ V_{out} = −V_{R_f} \nonumber \]

\[ V_{Rf} = I_{in} R_f \nonumber \]

Substitution yields

\[ A_v = −\frac{I_{in}R_f}{I_{in}R_i} \nonumber \]

\[ A_v =− \frac{R_f}{R_i} \label{4.2} \]

Again, we see that the voltage gain is set by resistor ratio. Again, there is an allowable range of values.

The foregoing discussion points up the derivation of input impedance. Because all of the input signal drops across \(R_i\), it follows that all the driving source “sees” is \(R_i\). Quite simply, \(R_i\) sets the input impedance. Unlike the noninverting voltage amp, there is a definite interrelation between \(Z_{in}(R_i)\) and \(A_v(-R_f/R_i)\). This indicates that it is very hard to achieve both high gain and high \(Z_{in}\) with this circuit.

Example \(\PageIndex{5}\)

Determine the input impedance and output voltage for the circuit in Figure \(\PageIndex{9}\).

Figure \(\PageIndex{9}\): Inverting amplifier for Example \(\PageIndex{9}\).

The input impedance is set by \(R_i\). \(R_i = 5 k\Omega \), therefore \(Z_{in} = 5 k\Omega \).

\[ V_{out} = V_{in}A_v \nonumber \]

\[ A_v = −\frac{R_f}{R_i} \nonumber \]

\[ A_v =− \frac{20 k}{5 k} \nonumber \]

\[ A_v =−4 \nonumber \]

\[ V_{out} =100mV\times (−4) \nonumber \]

\[ V_{out} =−400 mV, \text{ (i.e., inverted)} \nonumber \]

Example \(\PageIndex{6}\)

Design an inverting amplifier with a gain of 10 and an input impedance of 15 k\(\Omega\). The input impedance tells us what \(R_i\) must be

\[ Z_{in} = R_i \nonumber \]

\[ R_i = 15 k \nonumber \]

Knowing \(R_i\), solve for \(R_f\):

\[ A_v =− \frac{R_f}{R_i} \nonumber \]

\[ R_f =R_i(−A_v ) \nonumber \]

\[ R_f =15k\times (−(−10)) \nonumber \]

\[ R_f =150 k \nonumber \]

## Computer Simulation

A Multisim simulation of the result of Example \(\PageIndex{6}\) is shown in Figure \(\PageIndex{10}\), along with its schematic. This simulation uses the simple dependent source model presented in Chapter Two. The input is set at 0.1V DC for simplicity. Note that the output potential is negative, indicating the inverting action of the amplifier. Also, note that the virtual ground approximation is borne out quite well, with the inverting input potential measuring in the \(\mu\)V region.

Figure \(\PageIndex{10a}\): Multisim simulation of the simple op amp model for Example \(\PageIndex{6}\). a. Schematic.

Figure \(\PageIndex{10b}\): Multisim simulation of the simple op amp model for Example \(\PageIndex{6}\). b. Output listing.

Example \(\PageIndex{7}\)

The circuit of Figure \(\PageIndex{11}\) is a pre-amplifier stage for an electronic music keyboard. Like most musicians' pre-amplifiers, this one offers adjustable gain. This is achieved by following the amplifier with a pot. What are the maximum and minimum gain values?

Figure \(\PageIndex{11}\): Musical instrument preamplifier for Example \(\PageIndex{7}\).

Note that the gain for the pre-amp is the product of the op amp gain and the voltage divider ratio produced by the pot. For maximum gain, use the pot in its uppermost position. Because the pot acts as a voltage divider, the uppermost position provides no divider action (i.e., its gain is unity). For midband frequencies, the 20 pF may be ignored.

\[ A_{v-max} =− \frac{R_f}{R_i} \nonumber \]

\[ A_{v-max} =− \frac{200 k}{15k} \nonumber \]

\[ A_{v-max} =− 13.33 \nonumber \]

\[ A_{v-max}^{'} = 22.5 dB \nonumber \]

For minimum gain, the pot is dialed to ground. At this point, the divider action is infinite, and thus the minimum gain is 0 (resulting in silence).

\(Z_{in}\) for the system is about 15 k\(\Omega\). As far as the extra components are concerned, the 20 pF capacitor is used to decrease high frequency gain. The two 0.1 \(\mu\)F bypass capacitors across the power supply lines are very important. Virtually all op amp circuits use bypass capacitors. Due to the high gain nature of op amps, it is essential to have good AC grounds at the power supply pins. At higher frequencies the inductance of power supply wiring may produce a sizable impedance. This impedance may create a positive feedback loop that wouldn't exist otherwise. Without the bypass capacitors, the circuit may oscillate or produce spurious output signals. The precise values for the capacitors are usually not critical, with 0.1 to 1 \(\mu\)F being typical.

## 4.2.3: Inverting Current-to-Voltage Transducer

As previously mentioned, the inverting voltage amplifier is based on PP negative feedback, with an extra input resistor used to turn the input voltage into a current. What happens if that extra resistor is left out, and a circuit such as Figure \(\PageIndex{6}\) is used? Without the extra resistor, the input is at virtual ground, thus setting \(Z_{in}\) to 0 \(\Omega\). This is ideal for sensing current. This input current will pass through \(R_f\) and produce an output voltage as outlined above. The characteristic of transforming a current to a voltage is measured by the parameter transresistance. By definition, the transresistance of this circuit is the value of \(R_f\). To find \(V_{out}\), multiply the input current by the transresistance. This circuit inverts polarity as well.

\[ V_{out} =−I_{in}R_f \label{4.3} \]

Example \(\PageIndex{8}\)

Design a circuit based on Figure \(\PageIndex{6}\) if an input current of -50 \(\mu\)A should produce an output of 4 V.

The transresistance of the circuit is \(R_f\)

\[ R_f =− \frac{V_{out}}{I_{in}} \nonumber \]

\[ R_f =− \frac{4 V}{−50\mu A} \nonumber \]

\[ R_f = 80 k \nonumber \]

The input impedance is assumed to be zero.

At first glance, the circuit applications of the topology presented in the prior example seem very limited. In reality, there are a number of linear integrated circuits that produce their output in current form^{1}. In many cases, this signal must be turned into a voltage in order to properly interface with other circuit elements. The current-to-voltage transducer is widely used for this purpose.

## 4.2.4: Noninverting Voltage-to-Current Transducer

This circuit topology utilizes SS negative feedback. It senses an input voltage and produces a current. A conceptual comparison can be made to the FET (a voltage controlled current source). Instead of circuit gain, we are interested in transconductance. In other words, how much input voltage is required to produce a given output current? The op amp circuit presented here drives a floating load. That is, the load is not referenced to ground. This can be convenient in some cases, and a real pain in others. With some added circuitry, it is possible to produce a grounded load version, although space precludes us from examining it here.

A typical voltage-to-current circuit is shown in Figure \(\PageIndex{12}\). Because this uses series-input type feedback, we may immediately assume that \(Z_{in}\) is infinite. The voltage to current ratio is set by feedback resistor \(R_i\). As \(V_{error}\) is assumed to be zero, all of \(V_{in}\) drops across \(R_i\), creating current \(I_{Ri}\). The op amp is assumed to have zero input current, so all of \(I_{Ri}\) flows through the load resistor, \(R_l\). By adjusting \(R_i\), the load current may be varied.

\[ I_{load} = I_{R_i} \nonumber \]

\[ I_{R_i} = \frac{V_{in}}{R_i} \nonumber \]

\[ I_{load} = \frac{V_{in}}{R_i} \nonumber \]

Figure \(\PageIndex{12}\): Voltage-to-current transducer.

By definition,

\[ g_m = \frac{I_{load}}{V_{in}} \nonumber \]

\[ g_m = \frac{1}{R_i} \label{4.4} \]

So, the transconductance of the circuit is set by the feedback resistor. As usual, there are practical limits to the size of \(R_i\). If \(R_i\) and \(R_l\) are too small, the possibility exists that the op amp will “run out” of output current and go into saturation. At the other extreme, the product of the two resistors and the \(I_{load}\) cannot exceed the power supply rails. As an example, if \(R_i\) plus \(R_l\) is 10 k\(\Omega\), \(I_{load}\) cannot exceed about 1.5 mA if standard \(\pm\)15 V supplies are used.

Example \(\PageIndex{9}\)

Given an input voltage of 0.4 V in the circuit of Figure \(\PageIndex{13}\), what is the load current?

\[ g_m = \frac{1}{R_i} \nonumber \]

\[ g_m = \frac{1}{20 k} \nonumber \]

\[ g_m = 50 \mu S \nonumber \]

\[ I_{load} = g_m V_{in} \nonumber \]

\[ I_{load} = 50 \mu S\times 0.4 V \nonumber \]

\[ I_{load} = 20 \mu A \nonumber \]

Figure \(\PageIndex{13}\): Voltage-to-current transducer for Example \(\PageIndex{9}\).

There is no danger of current overload here as the average op amp can produce about 20 mA, maximum. The output current will be 20 \(\mu\)A regardless of the value of \(R_l\), up to clipping. There is no danger of clipping in this situation either. The voltage seen at the output of the op amp to ground is

\[ V_{max} = (R_i+ R_l) I_{load} \nonumber \]

\[ V_{max} = (20 k+1k)\times 20 \mu A \nonumber \]

\[ V_{max} = 420 mV \nonumber \]

That's well below clipping level.

## Computer Simulation

A simulation of the circuit of Example \(\PageIndex{9}\) is shown in Figure \(\PageIndex{14}\). Multisim's ideal op amp model has been chosen to simplify the layout. The load current is exactly as calculated at 20 \(\mu\)A. An interesting trick is used here to plot the load current, as many simulators only offer plotting of node voltages. Using Multisim's Post Processor, the load current is computed by taking the difference between the node voltages on either side of the load resistor and then dividing the result by the load resistance.

Figure \(\PageIndex{14a}\): Voltage-to-current transducer simulation schematic.

Figure \(\PageIndex{14b}\): Simulation results.

Example \(\PageIndex{10}\)

The circuit of Figure \(\PageIndex{15}\) can be used to make a high-input-impedance DC voltmeter. The load in this case is a simple meter movement. This particular meter requires 100 \(\mu\)A for full-scale deflection. If we want to measure voltages up to 10 V, what must \(R_i\) be?

First, we must find the transconductance.

\[ g_m = \frac{I_{load}}{V_{in}} \nonumber \]

\[ g_m = \frac{100 \mu A}{10 V} \nonumber \]

\[ g_m = 10 \mu S \nonumber \]

\[ R_i = \frac{1}{g_m} \nonumber \]

\[ R_i = \frac{1}{10 \mu S} \nonumber \]

\[ R_i =100 k \nonumber \]

Figure \(\PageIndex{15}\): DC voltmeter for Example \(\PageIndex{10}\).

The meter deflection is assumed to be linear. For example, if the input signal is only 5 V, the current produced is halved to 50 \(\mu\)A. 50 \(\mu\)A should produce half-scale deflection. The accuracy of this electronic voltmeter depends on the accuracy of \(R_i\), and the linearity of the meter movement. Note that this little circuit can be quite convenient in a lab, being powered by batteries. In order to change scales, new values of \(R_i\) can be swapped in with a rotary switch. For a 1 V scale, \(R_i\) equals 10 k\(\Omega\). Note that for higher input ranges, some form of input attenuator is needed. This is due to the fact that most op amps may be damaged if input signals larger than the supply rails are used.

## 4.2.5: Inverting Current Amplifier

The inverting current amplifier uses PS negative feedback. As in the voltage-to-current transducer, the load is floating. The basic circuit is shown in Figure \(\PageIndex{16}\). Due to the parallel negative feedback connection at the input, the circuit input impedance is assumed to be zero. This means that the input point is at virtual ground. The current into the op amp is negligible, so all input current flows through \(R_i\) to node A. Effectively, \(R_i\) and \(R_f\) are in parallel (they both share node A and ground; actually virtual ground for \(R_i\)). Therefore, \(V_{Ri}\) and \(V_{Rf}\) are the same value. This means that a current is flowing through \(R_f\), from ground to node A. These two currents join to form the load current. In this manner, current gain is achieved. The larger \(I_{Rf}\) is relative to \(I_{in}\), the more current gain there is. As the op amp is sinking current, this is an inverting amplifier.

Figure \(\PageIndex{16}\): Inverting current amplifier

\[ A_i =− \frac{I_{out}}{I_{in}} \nonumber \]

\[ I_{out} = I_{Rf} + I_{Ri} \label{4.5} \]

\[ I_{Ri} = I_{in} \nonumber \]

\[ I_{Rf} = \frac{V_{Rf}}{R_f} \nonumber \]

Because \(V_{Rf}\) is the same value as \(V_{Ri}\),

\[ I_{Rf} = \frac{V_{Ri}}{R_f} \label{4.6} \]

\[ V_{Ri} = I_{in} R_i \label{4.7} \]

Substitution of \ref{4.7} into \ref{4.6} yields

\[ I_{Rf} = \frac{I_{in}R_i}{R_f} \nonumber \]

Substituting into \ref{4.5} produces

\[ I_{out} = I_{in} + \frac{I_{in}R_i}{R_f} \nonumber \]

\[ I_{out} = I_{in}\left(1+ \frac{R_i}{R_f}\right) \nonumber \]

\[ A_i = −\left(1+ \frac{R_i}{R_f}\right) \label{4.8} \]

As you might expect, the gain is a function of the two feedback resistors. Note the similarity of this result with that of the noninverting voltage amplifier.

Example \(\PageIndex{11}\)

What is the load current in Figure \(\PageIndex{17}\)?

Figure \(\PageIndex{17}\): Current amplifier for Example \(\PageIndex{11}\).

\[ I_{out} = −A_i I_{in} \nonumber \]

\[ A_i = −(1+ \frac{R_i}{R_f}) \nonumber \]

\[ A_i = −(1+ \frac{33 k}{1 k}) \nonumber \]

\[ A_i = −34 \nonumber \]

\[ I_{out} =−34\times 5 \mu A \nonumber \]

\[ I_{out} =−170 \mu A \text{ (sinking)} \nonumber \]

We need to check to make sure that this current doesn't cause output clipping. A simple Ohm's Law check is all that's needed.

\[ V_{max} = I_{out} R_{load} +I_{in}R_i \nonumber \]

\[ V_{max} =170 \mu A\times 10 k+5 \mu A\times 33k \nonumber \]

\[ V_{max} = 1.7V+.165 V \nonumber \]

\[ V_{max} = 1.865V \text{ (no problem)} \nonumber \]

Example \(\PageIndex{12}\)

Design an amplifier with a current gain of -50. The load is approximately 200 k\(\Omega\). Assuming a typical op amp (\(I_{out-max}\) = 20 mA with \(\pm\) 15 V supplies), what is the maximum load current obtainable?

\[ A_i =−\left(1+ \frac{R_i}{R_f}\right) \nonumber \]

\[ \frac{R_i}{R_f} =−Ai −1 \nonumber \]

\[ \frac{R_i}{R_f} = 50−1 \nonumber \]

\[ \frac{R_i}{R_f} = 49 \nonumber \]

Therefore, \(R_i\) must be 49 times larger than \(R_f\). Possible solutions include:

\[ R_i = 49k \Omega , R_f = 1 k\Omega \nonumber \]

\[ R_i = 98 k\Omega , R_f = 2 k\Omega \nonumber \]

\[ R_i = 24.5 k \Omega , R_f = 500\Omega \nonumber \]

As far as maximum load current is concerned, it can be no greater than the op amp's maximum output of 20 mA, but it may be less. We need to determine the current at clipping. Due to the large size of the load resistance, virtually all of the output potential will drop across it. Ignoring the extra drop across the feedback resistors will introduce a maximum of 1% error (that's worst case, assuming resistor set number two).

Figure \(\PageIndex{18}\): Current amplifier design for Example \(\PageIndex{12}\).

With 15 V rails, a typical op amp will clip at 13.5 V. The resulting current is found through Ohm's Law:

\[ I_{max} = \frac{13.5 V}{200 k} \nonumber \]

\[ I_{max} = 67.5 \mu A \nonumber \]

Another way of looking at this is to say that the maximum allowable input current is 67.5 \(\mu\)A/50, or 1.35 \(\mu\)A. One possible solution is shown in Figure \(\PageIndex{18}\).

## 4.2.6: Summing Amplifiers

It is very common in circuit design to combine several signals into a single common signal. One good example of this is in the broadcast and recording industries. The typical modern music recording will require the use of perhaps dozens of microphones, yet the final product consists of typically two output signals (stereo left and right). If signals are joined haphazardly, excessive interference, noise, and distortion may result. The ideal summing amplifier would present each input signal with an isolated load not affected by other channels.

The most common form of summing amplifier is really nothing more than an extension of the inverting voltage amplifier. Because the input to the op amp is at virtual ground, it makes an ideal current summing node. Instead of placing a single input resistor at this point, several input resistors may be used. Each input source drives its own resistor, and there is very little affect from neighboring inputs. The virtual ground is the key. A general summing amplifier is shown in Figure \(\PageIndex{19}\).

Figure \(\PageIndex{19}\): Summing amplifier.

The input impedance for the first channel is \(R_{i1}\), and it's voltage gain is \(-R_f/R_{i1}\). For channel 2, the input impedance is \(R_{i2}\), with a gain of \(-R_f/R_{i2}\). In general, then for channel N we have

\[ Z_{in N} = R_{i N} \nonumber \]

\[ A_{v N} =− \frac{R_f}{R_{i N}} \nonumber \]

The output signal is the sum of all inputs multiplied by their associated gains.

\[ V_{out} = V_{in1} A_{v1} + V_{in2} A_{v2} + \dots + V_{in N} A_{v N} \nonumber \]

which is written more conveniently as

\[ V_{out} = \sum_{i=1}^{n}{V_{in_i} A_{v_i}} \label{4.9} \]

A summing amplifier may have equal gain for each input channel. This is referred to as an equal-weighted configuration.

Example \(\PageIndex{13}\)

What is the output of the summing amplifier in Figure \(\PageIndex{20}\), with the given DC input voltages?

Figure \(\PageIndex{20}\): Summing amplifier for Example \(\PageIndex{13}\).

The easy way to approach this is to just treat the circuit as three inverting voltage amplifiers, and then add the results to get the final output.

Channel 1:

\[ A_v = − \frac{R_f}{R_i} \nonumber \]

\[ A_v = − \frac{10 k}{4 k} \nonumber \]

\[ A_v = −2.5 \nonumber \]

\[ V_{out} = −2.5\times 1V \nonumber \]

\[ V_{out} = −2.5 V \nonumber \]

Channel 2:

\[ A_v = − \frac{R_f}{R_i} \nonumber \]

\[ A_v = − \frac{10 k}{2 k} \nonumber \]

\[ A_v = −5 \nonumber \]

\[ V_{out} = −5\times −2 V \nonumber \]

\[ V_{out} = 10 V \nonumber \]

Channel 3:

\[ A_v = − \frac{R_f}{R_i} \nonumber \]

\[ A_v = − \frac{10 k}{1 k} \nonumber \]

\[ A_v = −10 \nonumber \]

\[ V_{out} = −10\times .5 V \nonumber \]

\[ V_{out} = −5 V \nonumber \]

The final output is found via summation:

\[ V_{out} =−2.5 V+10 V+(−5 V) \nonumber \]

\[ V_{out} = 2.5 V \nonumber \]

If the inputs were AC signals, the summation is not quite so straightforward. Remember, AC signals of differing frequency and phase do not add coherently. You can perform a calculation similar to the preceding to find the peak value, however, an RMS calculation is needed for the effective value (i.e., square root of the sum of the squares).

For use in the broadcast and recording industries, summing amplifiers will also require some form of volume control for each input channel and a master volume control as well. This allows the levels of various microphones or instruments to be properly balanced. Theoretically, individual-channel gain control may be produced by replacing each input resistor with a potentiometer. By adjusting \(R_i\), the gain may be directly varied. In practice, there are a few problems with this arrangement. First of all, it is impossible to turn a channel completely off. The required value for \(R_i\) would be infinite. Second, because \(R_i\) sets the input impedance, a variation in gain will produce a \(Z_{in}\) change. This change may overload or alter the characteristics of the driving source. One possible solution is to keep \(R_i\) at a fixed value and place a potentiometer before it, as in Figure \(\PageIndex{21}\). The pot produces a gain from 1 through 0. The \(R_f/R_i\) combo is then set for maximum gain. As long as \(R_i\) is several times larger than the pot's value, the channel's input impedance will stay relatively constant. The effective \(Z_{in}\) for the channel is \(R_{pot}\) in parallel with \(R_i\), at a minimum, up to \(R_{pot}\).

Figure \(\PageIndex{21}\): Audio mixer.

As far as a master volume control is concerned, it is possible to use a pot for \(R_f\). Without a limiting resistor though, a very low master gain runs the risk of over driving the op amp due to the small effective \(R_f\) value. This technique also causes variations in offset potentials and circuit bandwidth. A technique that achieves higher performance involves using a stage with a fixed \(R_f\) value, followed with a pot, as in Figure \(\PageIndex{21}\).

Still another application of the summing amplifier is the level shifter. A level shifter is a two-input summing amplifier. One input is the desired AC signal, and the second input is a DC value. The proper selection of DC value lets you place the AC signal at a desired DC offset. There are many uses for such a circuit. One possible application is the DC offset control available on many signal generators.

## 4.2.7: Noninverting Summing Amplifier

Besides the inverting form, summing amplifiers may also be produced in a noninverting form. Noninverting summers generally exhibit superior high frequency performance when compared to the inverting type. One possible circuit is shown in Figure \(\PageIndex{22}\). In this example, three inputs are shown, although more could be added. Each input has an associated input resistor. Note that it is not possible to simply wire several sources together in hopes of summing their respective signals. This is because each source will try to bring its output to a desired value that will be different from the values created by the other sources. The resulting imbalance may cause excessive (and possibly damaging) source currents. Consequently, each source must be isolated from the others through a resistor.

Figure \(\PageIndex{22}\): Noninverting summing amplifier.

In order to understand the operation of this circuit it is best to break it into two parts: the input source/resistor section and the noninverting amplifier section. The input signals will combine to create a total input voltage, \(V_t\). By inspection, you should see that the output voltage of the circuit will equal \(V_t\) times the noninverting gain, or

\[ V_{out} = V_t \left( 1+ \frac{R_f}{R_i} \right) \nonumber \]

All that remains is to determine \(V_t\). Each of the input channels contributes to \(V_t\) in a similar manner, so the derivation of the contribution from a single channel will be sufficient.

Figure \(\PageIndex{23}\): Channel 1 input equivalent circuit.

Unlike the inverting summer, the noninverting summer does not take advantage of the virtual-ground summing node. The result is that individual channels will affect each other. The equivalent circuit for channel 1 is redrawn in Figure \(\PageIndex{23}\). Using superposition, we would first replace the input generators of channels 2 and 3 with short circuits. The result is a simple voltage divider between \(V_1\) and \(V_{t1}\).

\[ V_{t 1} = V_1 \frac{R_2 || R_3}{R_1 + R_2 || R_3} \nonumber \]

In a similar manner, we can derive the portions of \(V_t\) due to channel 2

\[ V_{t 2} = V_2 \frac{R_1 || R_3}{R_2 + R_1 || R_3} \nonumber \]

and due to channel 3

\[ V_{t 3} = V_3 \frac{R_1 || R_2}{R_3 + R_1 || R_2} \nonumber \]

\(V_t\) is the summation of these three portions.

\[ V_t = V_{t 1} + V_{t 2} + V_{t 3} \nonumber \]

Thus, by combining these elements, we find that the output voltage is

\[ V_{out} = \left( 1+ \frac{R_f}{R_i} \right) \left( V_1 \frac{R_2 || R_3}{R_1 + R_2 || R_3} + V_2 \frac{R_1 || R_3}{R_2 + R_1 || R_3} + V_3 \frac{R_1 || R_2}{R_3 + R_1 || R_2} \right) \nonumber \]

For convenience and equal weighting, the input resistors are often all set to the same value. This results in a circuit that averages together all of the inputs. Doing so simplifies the Equation to

\[ V_{out} = \left( 1+ \frac{R_f}{R_i} \right) \frac{V_1+V_2+V_3}{3} \nonumber \]

or in a more general sense,

\[ V_{out} = \left( 1+ \frac{R_f}{R_i} \right) \frac{\sum_{i=1}^{n}{V_n}}{n} \label{4.10} \]

where \(n\) is the number of channels.

One problem still remains with this circuit, and that is inter-channel isolation or crosstalk. This can be eliminated by individually buffering each input, as shown in Figure \(\PageIndex{24}\).

Figure \(\PageIndex{24}\): Buffered and isolated noninverting summing amplifier.

Example \(\PageIndex{14}\)

A noninverting summer such as the one shown in Figure \(\PageIndex{22}\) is used to combine three signals. \(V_1\) = 1 V DC, \(V_2\) = -0.2 V DC, and \(V_3\) is a 2 V peak 100 Hz sine wave. Determine the output voltage if \(R_1 = R_2= R_3 = R_f\) = 20 k\(\Omega\) and \(R_i\) = 5 k\(\Omega\).

Because all of the input resistors are equal, we can use the general form of the summing equation.

\[ V_{out} = \left( 1+ \frac{R_f}{R_i} \right) \frac{V_1+V_2+\dpts+V_n}{\text{Number of channels}} \nonumber \]

\[ V_{out} = \left( 1+ \frac{20 k}{5 k} \right) \frac{1 VDC+(−0.2 VDC)+2 \sin2 \pi 100 t}{3} \nonumber \]

\[ V_{out} = 5 \frac{0.8 VDC+2 \sin2 \pi 100 t}{3} \nonumber \]

\[ V_{out} = 1.33 VDC+3.33 \sin2 \pi 100 t \nonumber \]

So we see that the output is a 3.33 V peak sine wave riding on a 1.33 V DC offset.

## 4.2.8: Differential Amplifier

As long as the op amp is based on a differential input stage, there is nothing preventing you from making a diff amp with it. The applications of an op amp based unit are the same as the discrete version examined in Chapter One. In essence, the differential amplifier configuration is a combination of the inverting and noninverting voltage amplifiers. A candidate is seen in Figure \(\PageIndex{25}\). The analysis is identical to that of the two base types, and Superposition is used to combine the results. The obvious problem for this circuit is that there is a large mismatch between the gains if lower values are used. Remember, for the inverting input the gain magnitude is \(R_f/R_i\), whereas the noninverting input sees \(R_f/R_i\) + 1. For proper operation, the gains of the two halves should be identical. The noninverting input has a slightly higher gain, so a simple voltage divider may be used to compensate. This is shown in Figure \(\PageIndex{26}\). The ratio should be the same as the \(R_f/R_i\) ratio. The target gain is \(R_f/R_i\), the present gain is 1 + \(R_f/R_i\), which may be written as \((R_f + R_i)/R_i\). To compensate, a gain of \(R_f/(R_f + R_i)\) is used.

Figure \(\PageIndex{25}\): Differential amplifier candidate.

\[ A_{v+} = \frac{R_f +R_i}{R_i} \frac{R_f}{R_f + R_i} \nonumber \]

\[ A_{v+} = \frac{R_f (R_f + R_i)}{R_i (R_f + R_i)} \nonumber \]

\[ A_{v+} = \frac{R_f}{R_i} \label{4.11} \]

Figure \(\PageIndex{26}\): Differential amplifier with compensation for mismatched gains.

For a true differential amplifier, \(R_i^{'}\) is set to \(R_i\), and \(R_f^{'}\) is set to \(R_f\). A small potentiometer is typically placed in series with \(R_f^{'}\) in order to compensate for slight gain imbalances due to component tolerances. This makes it possible for the circuit's common-mode rejection ratio to reach its maximum value. Another option for a simple difference amplifier is to set \(R_i^{'}\) plus \(R_f^{'}\) equal to \(R_i\). Doing so will maintain roughly equal input impedance between the two halves if two different input sources are used.

Once the divider is added, the output voltage is found by multiplying the differential input signal by \(R_f/R_i\).

Example \(\PageIndex{15}\)

Design a simple difference amplifier with an input impedance of 10 k\(\Omega\) per leg, and a voltage gain of 26 dB.

First of all, converting 26 dB into ordinary form yields 20. Because \(R_i\) sets \(Z_{in}\), set \(R_i\) = 10 k\(\Omega\), from the specifications.

\[ A_v = \frac{R_f}{R_i} \nonumber \]

\[ R_f = \frac{A_v}{R_i} \nonumber \]

\[ R_f = 20\times 10 k \nonumber \]

\[ R_f = 200 k \nonumber \]

For equivalent inputs,

\[ R_i^{'} + R_f^{'} = R_i \nonumber \]

\[ R_i^{'} + R_f^{'} = 10 k \nonumber \]

Given that \(A_v\) = 20,

\[ R_f^{'} = 20\times R_i^{'} \nonumber \]

Therefore,

\[ 21\times R_i^{'} = 10 k \nonumber \]

\[ R_i^{'} = 476 \nonumber \]

\[ R_f^{'} = 20\times R_i^{'} \nonumber \]

\[ R_f^{'} = 9.52 k \nonumber \]

The final result is shown in Figure \(\PageIndex{27}\). As you will see later in Chapter Six, the differential amplifier figures prominently in another useful circuit, the instrumentation amplifier.

Figure \(\PageIndex{27}\): Difference amplifier for Example \(\PageIndex{15}\).

## 4.2.9: Adder/Subtractor

If inverting and noninverting summing amplifiers are combined using the differential amplifier topology, an adder/subtractor results. Normally, all resistors in an adder/subtractor are the same value. A typical adder/subtractor is shown in Figure \(\PageIndex{28}\).

Figure \(\PageIndex{28}\): Adder-subtractor.

The inverting inputs number from 1 through \(m\), and the noninverting inputs number from \(m+1\) through \(n\). The circuit can be analyzed by combining the preceding proofs of Equations \ref{4.9} through \ref{4.11} via the Superposition Theorem. The details are left as an exercise (**Problem 4.45**). When all resistors are equal, the input weightings are unity, and the output is found by:

\[ V_{out} = \sum_{i=m+1}^{n}{ V_{i n_i}} − \sum_{j=1}^{m}{V_{i n_j}} \label{4.12} \]

In essence, you can think of the output voltage in terms of subtracting the inverting input summation from the noninverting input summation.

## 4.2.10: Adjustable Inverter/Noninverter

A unique adjustable gain amplifier is shown in Figure \(\PageIndex{29}\). What makes this circuit interesting is that the gain is continuously variable between an inverting and noninverting maximum. For example, the gain might be set for a maximum of 10. A full turn of the potentiometer would swing the gain from +10 through -10. The exact middle setting would produce a gain of 0. In this way, a single knob controls both the phase and magnitude of the gain.

Figure \(\PageIndex{29}\): Adjustable inverter/ noninverter.

For the analysis of the circuit, refer to Figure \(\PageIndex{30}\).

Figure \(\PageIndex{30}\): Inverter/noninverter analysis.

As you would expect, the gain of the circuit is defined as the ratio of the output to input voltages. It is important to note that unlike a normal inverting amplifier, the magnitude of the output voltage is not necessarily equal to the voltage across \(R_2\). This is because the inverting terminal of the op amp is not normally a virtual ground. Instead, the voltage across \(R_3\) must also be considered. Because the two inputs of the op amp must be at approximately the same potential (i.e., \(V_{error}\) must be 0), the voltage at the inverting terminal must be the same as the voltage tapped off of the potentiometer. Representing the potentiometer's voltage divider factor as \(k\), we find:

\[ V_{out} = k V_{i n} −V_{R2} \label{4.13} \]

The drop across \(R_2\) is simply \(I_2 R_2\). \(I_2\) is found by Kirchhoff's Current Law and the appropriate voltage-resistor substitutions:

\[ I_2 = I_1 − I_3 \nonumber \]

\[ I_2 = \frac{V_{i n}−k V_{i n}}{R_1} − \frac{k V_{i n}}{R_3} \nonumber \]

\[ I_2 = V_{i n}\left( \frac{1−k}{R_1} − \frac{k}{R_3}\right) \nonumber \]

Thus, V_{R2} is found to be

\[ V_{R2} = V_{i n}\left( (1−k) \frac{R_2}{R_1} − k \frac{R_2}{R_3} \right) \label(4.14) \]

Combining Equations \ref{4.13} and \ref{4.14} and then solving for gain, we find

\[ A_v = k−\left( (1−k ) \frac{R_2}{R_1} −k \frac{R_2}{R_3} \right) \nonumber \]

\[ A_v = k−\left( \frac{R_2}{R_1} −k \frac{R_2}{R_1} −k \frac{R_2}{R_3} \right) \nonumber \]

\[ A_v =− \frac{R_2}{R_1} +k \left( 1+ \frac{R_2}{R_1} + k \frac{R_2}{R_3} \right) \nonumber \]

The value of \(R_3\) is chosen so that \(R_1 = R_2 || R_3\). This means that

\[ R_3 = \frac{1}{\frac{1}{R_1} − \frac{1}{R_2}} \nonumber \]

Substituting this into our gain Equation and simplifying yields

\[ A_v = \frac{R_2}{R_1} (2k−1) \nonumber \]

In essence, the resistors \(R_1\) and \(R_2\) set the maximum gain. The potentiometer sets \(k\) from 0 through 1. If \(k = 1\), then \(A_v = R_2/R_1\), or maximum noninverting gain. When \(k = 0\), then \(A_v = - R_2/R_1\), or maximum inverting gain. Finally, when the potentiometer is set to the mid-point, \(k = 0.5\) and \(A_v = 0\).

## References

^{1}Most notably, operational transconductance amplifiers and digital to analog converters, which we will examine in Chapters Six and Twelve, respectively.