Sub topic 2
What 'Ideal' Means: The Assumptions of the Model
This chapter assumes you can apply Ohm's law and Kirchhoff's current law (KCL), write node-voltage equations for resistor circuits, and recognize a dependent source. It covers the assumptions that define an ideal op amp, the physical quantity each one idealizes, and the errors that come from misusing them.
Why we need a model
A real op amp, such as a 741 or an OP07, contains dozens of transistors. Analyzing it at that level for every circuit would be impractical. Instead we replace the device with a small set of rules. The rules are not exactly true, but they are close enough for most design and analysis work, provided you know where they fail.
The ideal model is a deliberate simplification. Each assumption stands for one physical property of the real device, taken to its limit. If you know which property each assumption stands for, you can tell when a real circuit violates it.
The assumptions
An ideal op amp has these properties:
- Infinite open-loop voltage gain.
- Infinite input resistance, so the input terminals draw zero current.
- Zero output resistance, so the output acts as a perfect voltage source.
- Infinite bandwidth, so the gain is the same at every frequency.
- Zero input offset voltage, so the output is zero when both inputs are equal.
- Infinite common-mode rejection, so only the difference between the inputs matters.
- Unlimited output swing and slew rate in the pure linear model. Saturation is handled separately, as a later chapter explains.
The table pairs each assumption with the real quantity it idealizes and with typical values for a general-purpose device.
| Ideal assumption | Real quantity | Typical real value |
|---|---|---|
| Infinite gain | Open-loop gain A | 10^5 to 10^7 at DC |
| Infinite input resistance | Differential input resistance | 1 MΩ (bipolar) to 10^12 Ω (FET) |
| Zero output resistance | Open-loop output resistance | 10 Ω to 100 Ω |
| Infinite bandwidth | Gain-bandwidth product | 1 MHz to 100 MHz |
| Zero offset | Input offset voltage | 10 µV to 5 mV |
| Infinite CMRR | Common-mode rejection ratio | 70 dB to 120 dB |
The equivalent circuit
The ideal op amp is a voltage-controlled voltage source (VCVS). Its two inputs are the noninverting terminal (+) with voltage v+ and the inverting terminal (−) with voltage v−. The output voltage is
vo = A (v+ − v−)
where A is the open-loop gain. The input side is an open circuit, and the output side is a dependent source with no series resistance.
Two consequences follow directly from this picture.
- Nothing flows into either input, because the input side is an open circuit.
- The output voltage is set by the input difference alone, and the load connected to the output cannot change it.
Assumption by assumption
Infinite gain
Infinite gain means that a finite output requires a differential input of
v+ − v− = vo / A → 0.
With A = 10^5 and vo = 5 V, the difference is 50 µV. Compared with signals of volts, that is negligible. This idea becomes the virtual short, which the chapter on negative feedback and virtual shorts develops. Note that the conclusion v+ = v− holds only when feedback keeps the output finite. Without feedback, even a tiny difference saturates the output.
The code below shows the effect. A 1 mV difference drives the output to a supply rail, while a 50 µV difference stays in the linear range.
def ideal_opamp_output(v_plus, v_minus, gain=1e5, v_neg=-15.0, v_pos=15.0):
"""Open-loop output of an op amp, limited to the supply rails."""
v = gain * (v_plus - v_minus)
return max(v_neg, min(v_pos, v))
# Without feedback, a 1 mV difference drives the output to a rail (comparator behavior).
print(ideal_opamp_output(0.001, 0.0)) # 15.0
print(ideal_opamp_output(-0.001, 0.0)) # -15.0
# With a tiny differential input the output stays in its linear range.
print(ideal_opamp_output(50e-6, 0.0)) # 5.0Infinite input resistance
Infinite input resistance means the currents into the + and − terminals are both zero:
i+ = i− = 0.
This constraint is what lets you treat the feedback network as a simple resistor chain. The same current that flows through the input resistor must continue through the feedback resistor, because none of it can leave through the op amp input.
The real limit is the input bias current. A bipolar device draws nanoamps to microamps. A FET-input device draws picoamps or less. If the resistors in the circuit are very large, such as 10 MΩ, the bias current produces a voltage drop of volts and the zero-current assumption breaks.
Zero output resistance
With zero output resistance, the output voltage does not change when the load changes. You can connect any load resistance and the output equals A (v+ − v−) as before. This is why a circuit built from an op amp can be analyzed one stage at a time. The stage that follows does not load the stage that precedes it.
In a real device the output resistance is tens of ohms in open loop, and negative feedback reduces it further. The assumption fails when the load demands more current than the device can supply. Typical limits are 10 mA to 40 mA for a general-purpose part.
Infinite bandwidth
An ideal op amp has the same gain at all frequencies. A real op amp has a dominant pole, which makes the open-loop gain fall at 20 dB per decade above a corner frequency often near 10 Hz. The gain-bandwidth product (GBW) is the frequency at which the open-loop gain reaches 1, and it is a fixed number for a given part.
For a closed-loop amplifier of gain G, the usable bandwidth is roughly GBW / G. A part with a 1 MHz GBW gives only about 100 kHz at a gain of 10. The ideal model gives no hint of this limit, so you must check it separately for any AC signal.
Zero offset and infinite common-mode rejection
A real op amp has a small voltage mismatch inside its input stage, called the input offset voltage. It acts as if a small battery sat in series with one input. The ideal model sets it to zero.
Common-mode rejection is the ability to ignore the voltage that appears on both inputs equally. A real op amp responds slightly to the average of the two inputs, so the output depends on both the difference and the common-mode voltage. The ideal model sets the common-mode gain to zero, so only the difference matters.
What the assumptions give you
Combining the assumptions with negative feedback gives two working rules for analysis:
- The virtual short: v+ = v− when the output is in the linear range.
- Zero input current: i+ = i− = 0.
The output current is not constrained. It is whatever the circuit needs, and you find it from KCL at the output or from Ohm's law on the load.
The following example shows how these rules produce a gain without ever using A. The circuit is an op amp with the noninverting input grounded, a 1 kΩ resistor from the source to the inverting input, and a 10 kΩ resistor from the output back to the inverting input.
The virtual short makes v− = v+ = 0 V. The current through the input resistor is vin / 1 kΩ. By the zero-current rule, this same current flows through the feedback resistor. The voltage across the feedback resistor is then 10 kΩ × vin / 1 kΩ = 10 vin, and since v− is 0 V, vo = −10 vin.
A SPICE check confirms this. The op amp is modeled as a VCVS with a gain of 10^6.
Inverting amplifier with an ideal op amp modeled as a VCVS
Vin in 0 DC 1
R1 in inn 1k
R2 inn out 10k
E1 out 0 0 inn 1e6
.op
.endThe operating point gives V(out) very close to −10 V, which is the ideal gain −R2/R1 times 1 V.
Checking the error from finite gain
The ideal result is an approximation, and you can estimate its error. The Python functions below compare the ideal gain with the gain for a finite open-loop gain A.
def inverting_gain(rf, rin, a=None):
"""Closed-loop gain Vout/Vin of the inverting amplifier.
a=None uses the ideal model; otherwise a is the finite open-loop gain."""
ideal = -rf / rin
if a is None:
return ideal
return ideal / (1 + (1 + rf / rin) / a)
def noninverting_gain(rf, rg, a=None):
"""Closed-loop gain Vout/Vin of the non-inverting amplifier."""
ideal = 1 + rf / rg
if a is None:
return ideal
return ideal / (1 + ideal / a)
print(inverting_gain(10e3, 1e3)) # -10.0
print(inverting_gain(10e3, 1e3, a=1e5)) # about -9.9989
print(noninverting_gain(9e3, 1e3)) # 10.0
print(noninverting_gain(9e3, 1e3, a=1e5)) # about 9.999With A = 10^5, the gain error is about 0.01%. This is why the ideal model works so well for gains up to a few hundred at low frequency.
Common errors
- Applying the virtual short to a circuit with no feedback, or with positive feedback. The output then saturates, and v+ ≠ v−.
- Assuming the output current is zero. Only the input currents are zero. The output supplies whatever current the feedback and load need.
- Ignoring the supply rails. The output cannot exceed the supply, so a computed gain of −10 with a 2 V input would demand −20 V and fails on a ±15 V supply.
- Treating the virtual short as a real connection. No current flows through it. You cannot write KCL as though the two input nodes were wired together, and you cannot add a current path between them.
- Using the ideal model at high frequency, with very large resistors, or for heavy loads, where the assumptions for bandwidth, input current, and output resistance fail.
Exercise
An inverting amplifier uses Rin = 2 kΩ and Rf = 18 kΩ with a ±12 V supply. (a) What is the ideal gain? (b) What input voltage does the ideal model say gives vo = −10 V? (c) What is the output for vin = 2 V, and is the ideal result valid?
Show answer
(a) The gain is −Rf/Rin = −18 kΩ / 2 kΩ = −9. (b) vin = −10 V / −9 ≈ 1.11 V. (c) The ideal result is −9 × 2 V = −18 V. That is beyond the −12 V rail, so the linear model does not apply. The output saturates near −12 V (slightly less in a real part), and the virtual short no longer holds.
Exercise
Name the physical quantity that each of these ideal assumptions stands for, and describe one situation in which the assumption fails: (a) infinite input resistance, (b) infinite bandwidth, (c) zero output resistance.
Show answer
(a) Differential input resistance, with the real effect being input bias current. It fails when the circuit uses very large resistors, such as 10 MΩ, so that the bias current causes a voltage drop of volts. (b) Gain-bandwidth product. It fails for signals near or above GBW divided by the closed-loop gain, for example a 500 kHz signal at a gain of 10 on a 1 MHz part. (c) Open-loop output resistance. It fails when the load needs more current than the output can supply, for example a 100 Ω load driven to 10 V on a part limited to about 25 mA.