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 . 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?
Very nearly 2.000 V. With an open-loop gain of 100,000, any output within the supply rails needs an input difference of well under a millivolt. The feedback adjusts the output until the − input matches the + input. This "virtual short" is the second golden rule; it holds only while feedback is negative and the output isn't stuck at a rail.
Name it
The golden rules
With negative feedback and an ideal op amp:
- No current flows into either input.
- The output does whatever it takes to make the two inputs equal: .
Non-inverting amplifier. Input to ; output divided by and back to . Rule 2 puts at , so the divider must have at its middle:
with a very high input impedance (rule 1).
Voltage follower. , 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 to ; from output to . Rule 2 holds the input at 0 V, a virtual ground, so the input current all flows on through (rule 1):
with an input impedance of exactly .
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 with (lesson 16).
Worked example
A non-inverting amplifier has = 47 kΩ and = 10 kΩ. What does 0.5 V in give?
Show the solution
- Gain.
- Output.
- 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 = 10 kΩ and = 100 kΩ uses an op amp with a gain of only 10⁴. How far is its gain from −10?
Show the solution
- Gain with a finite op amp.
- 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
- Noise gain. Both have the same feedback divider, so both have a noise gain of
- Bandwidth. The closed loop's bandwidth is the gain-bandwidth product over the noise gain: for both.
- 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 = 19 kΩ and = 1 kΩ. What's its gain?
Check
An inverting amplifier has = 1 kΩ and = 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 = 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 = 9 kΩ and = 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 = 10 kΩ and = 3 × .
(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 = 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°.
Step 2
What's its bandwidth?
Explain why
Why do the two inputs of an op amp with negative feedback sit at almost the same voltage?
The op amp's output is its enormous gain times the difference between its inputs. If the inputs differed by more than a tiny amount, the output would race toward a supply rail. But with negative feedback, that output change is fed back to the inverting input in the direction that reduces the difference. The circuit settles where the output is just right to make the difference tiny, the output divided by the gain, which for a gain of 100,000 is microvolts. In practice the two inputs are equal.
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.