Skip to content
Applied Electronics

The ideal op-amp: inverting, non-inverting and adder

The ideal op-amp and the virtual short, inverting and non-inverting amplifiers with proof, follower, adder, difference amplifier and a design example.

The operational amplifier is the most widely used analogue component: a differential amplifier with enormous gain that, on its own, is almost unusable, but with two feedback resistors becomes a precise amplifier, an adder, a filter, an integrator. Its behaviour is computed with two very simple rules. In this lesson we derive them and apply them to the fundamental configurations.

The ideal op-amp

An op-amp has two inputs, inverting (−) and non-inverting (+), and one output:

    \[ v_{out} = A\,(v_+ - v_-) \]

The ideal op-amp has infinite gain A, infinite input impedance (it draws no current from its inputs), zero output impedance and infinite bandwidth. Real ones come close: A between 10^5 and 10^7, input currents of nanoamperes or picoamperes.

The virtual short

The two rules. If the op-amp is connected with negative feedback (part of the output returns to the inverting input) and is not saturated:

  1. the input currents are zero;
  2. v_+ = v_-: there is a virtual short between the two inputs.

Why. The first is the definition of infinite input impedance. For the second: the output is finite (limited by the supply), so v_+ - v_- = v_{out}/A tends to zero as A \to \infty. Negative feedback is what sets the output at exactly the value that makes the difference zero: if v_- exceeds v_+, the output falls and brings v_- back down. Without negative feedback the rule does not hold: the output goes to one of its two extremes (comparator operation).

Inverting and non-inverting amplifiers with their gains
On the left the inverting configuration: the signal enters the inverting input through R1, R2 brings the output back to the same input, the non-inverting input is grounded; the gain is −R2/R1. On the right the non-inverting configuration: the signal enters the non-inverting input, the output returns to the inverting one through the R2-R1 divider; the gain is 1 + R2/R1.

The inverting amplifier

Theorem. \dfrac{v_{out}}{v_{in}} = -\dfrac{R_2}{R_1}, and the input impedance is R_1.

Proof. The non-inverting input is grounded, so by the virtual short v_- = 0 (a virtual ground). The current in R_1 is v_{in}/R_1; since it cannot enter the op-amp, it all flows on through R_2: v_{in}/R_1 = (0 - v_{out})/R_2. The gain follows. The input source sees R_1 towards a point at zero potential, so the input impedance is R_1. ∎

The gain depends only on the ratio of two resistors, not on the op-amp: with 1% resistors the gain is accurate to 1 to 2%, whatever the value of A and its drift with temperature.

The non-inverting amplifier

Theorem. \dfrac{v_{out}}{v_{in}} = 1 + \dfrac{R_2}{R_1}, with (ideally) infinite input impedance.

Proof. By the virtual short v_- = v_{in}. The inverting input is connected to the output through the R_2–R_1 divider: v_- = v_{out}\,R_1/(R_1 + R_2). Equating gives the gain. The signal goes straight into the input, which draws no current. ∎

The voltage follower. With R_2 = 0 (output connected directly to the inverting input) and no R_1, the gain is 1. It looks useless, but it is invaluable: it copies the voltage of a source that cannot supply current (a sensor, a high-impedance divider) onto any load. It is a buffer.

Adder and difference amplifier

Inverting adder. Several inputs, each with its own resistor R_k, into the same virtual-ground node: the currents add up in R_f, and

    \[ v_{out} = -R_f\left(\frac{v_1}{R_1} + \frac{v_2}{R_2} + \dots\right) \]

With equal resistors it is a sum, with different weights a weighted sum: the principle of audio mixers and digital-to-analogue converters.

Difference amplifier. With four resistors (R_1 and R_2 on the inverting input as in the inverting amplifier, and an R_1–R_2 divider on the non-inverting input), by superposition

    \[ v_{out} = \frac{R_2}{R_1}\,(v_2 - v_1) \]

It amplifies the difference between two voltages and ignores what they have in common. It is the basis of bridge-sensor measurements and of instrumentation amplifiers, which we will see in the lesson on linear circuits.

Example. A sensor produces 0 to 100 mV and the analogue-to-digital converter accepts 0 to 3.3 V. A gain of 33 is needed: a non-inverting amplifier with R_1 = 1 kΩ and R_2 = 32 kΩ, or, with standard values, R_2 = 33 kΩ (gain 34, full scale at 3.4 V, slightly beyond: one picks 31.6 kΩ from the 1% series).

The limits

The two rules are excellent approximations as long as the required gain is much smaller than A at the operating frequency, the output stays within the supplies and the current drawn from the output is within the component’s limits. The next lesson says what happens when these conditions fail.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x