C618 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C6 · Lesson 18 · The op-amp golden rules

Two rules that solve almost every op-amp circuit

An op amp is a differential amplifier with enormous gain, typically 100,000 or more, and inputs that draw almost no current. On its own it's almost useless: the tiniest input difference slams its output into a supply rail. Wrapped in negative feedback, it becomes the most versatile part in analog electronics, and analyzing it becomes nearly trivial, thanks to two rules.

Play

  • A non-inverting amplifier: the signal goes into the + input, and a divider feeds a fraction of the output back to the − input. The meters read both inputs and the output.
  • Compare the two input voltages. How close are they?
  • Change Rf. The output changes, but the difference between the inputs doesn't. What sets the gain?

Predict

An op amp with negative feedback has 2.000 V on its + input. What's on its − input?

Name it

The golden rules

With negative feedback and an ideal op amp:

  1. No current flows into either input.
  2. The output does whatever it takes to make the two inputs equal: v+=v−.

Non-inverting amplifier. Input to +; output divided by Rf and Rg back to −. Rule 2 puts v− at vin, so the divider must have vin at its middle:

vout=vin(1+RfRg)

with a very high input impedance (rule 1).

Voltage follower. Rf=0, Rg removed: gain exactly 1. Its point is impedance: it reproduces a voltage from a weak source with the strength of the op amp's output, a buffer.

Inverting amplifier. + grounded; input through Rin to −; Rf from output to −. Rule 2 holds the − input at 0 V, a virtual ground, so the input current vin/Rin all flows on through Rf (rule 1):

vout=−RfRinvin

with an input impedance of exactly Rin.

When the rules fail. They assume the output can reach the needed voltage (it saturates near the supplies, lesson 35), that the frequency is low enough for the gain to still be huge, and that the feedback is negative. Without feedback, the op amp is a comparator (lesson 48).

With finite gain A, a non-inverting amplifier's gain is A/(1+Aβ) with β=Rg/(Rf+Rg) (lesson 16).

Worked example

A non-inverting amplifier has Rf = 47 kΩ and Rg = 10 kΩ. What does 0.5 V in give?

Show the solution
  1. Gain. G=1+4710=5.7
  2. Output. 0.5V×5.7=2.85V
  3. Loading. The input draws no current: the source sees the op amp's input resistance.

Answer 0.5 V in gives 2.85 V out.

Worked example

An inverting amplifier with Rin = 10 kΩ and Rf = 100 kΩ uses an op amp with a gain of only 10⁴. How far is its gain from −10?

Show the solution
  1. Gain with a finite op amp. G=−101+11/104=−9.989
  2. How far short. It's 0.11% short, which is the noise gain, 11, divided by the open-loop gain.

Answer the gain is −9.989, 0.11% short of −10.

Worked example

An op amp with a 1 MHz gain-bandwidth product is used as a non-inverting amplifier with gain 5.7, and as an inverting amplifier with gain −4.7 from the same resistors. What's each one's bandwidth?

Show the solution
  1. Noise gain. Both have the same feedback divider, so both have a noise gain of 1+RfRg=5.7
  2. Bandwidth. The closed loop's bandwidth is the gain-bandwidth product over the noise gain: f−3dB=1MHz5.7=175kHz for both.
  3. Why the inverting one matches. Its signal gain is only 4.7, but its bandwidth is set by the loop, which sees the same β, so the bandwidth follows the noise gain.

Answer both amplifiers have a bandwidth of 175 kHz.

Check

A non-inverting amplifier has Rf = 19 kΩ and Rg = 1 kΩ. What's its gain?

Check

An inverting amplifier has Rin = 1 kΩ and Rf = 47 kΩ. The input is 0.2 V. What's the output?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

In an inverting amplifier with Rin = 1 kΩ, 1 V is applied. What current flows through the feedback resistor?

Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.

Check

An op amp with open-loop gain 1000 is used as a non-inverting amplifier with Rf = 9 kΩ and Rg = 1 kΩ. What's the actual gain?

Check

Why is a voltage follower (gain 1) useful?

Check

An op amp with a 1 MHz gain-bandwidth product has Rg = 10 kΩ and Rf = 3 × Rg.

(a)

What's the bandwidth as an inverting amplifier?

Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.

(b)

And as a non-inverting amplifier with the same resistors?

Check

An op amp with open-loop gain A and gain-bandwidth f is used inverting with Rf/Rin = g.

Step 1

What's its closed-loop gain?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why do the two inputs of an op amp with negative feedback sit at almost the same voltage?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.