Sub topic 15
Where the ideal model stops working
This chapter assumes you can already analyze the standard op amp circuits with the virtual short and zero input current. It also assumes you know the closed-loop gain formulas for the inverting and non-inverting amplifiers, and that you are comfortable with node-voltage analysis and with a capacitor's i = C dv/dt behavior. It does not assume any knowledge of op amp datasheets.
The ideal model is a deliberate simplification. It gives correct answers when the real device operates well inside its limits, so the skill to learn here is spotting when you are near those limits.
What the ideal model assumes
The ideal op amp has infinite open-loop gain, infinite input resistance, zero output resistance, infinite bandwidth, no offset, and unlimited output swing and current. Each real device departs from these in a specific, measurable way. The table pairs each assumption with the real-world effect that replaces it.
| Ideal assumption | Real effect | Where it shows up |
|---|---|---|
| Infinite open-loop gain | Finite gain A, which falls with frequency | Gain error, limited bandwidth |
| Infinite bandwidth | Gain-bandwidth product (GBW) | Closed-loop gain drops at high frequency |
| Unlimited output rate of change | Slew rate (SR) | Distorted large, fast signals |
| Unlimited output swing | Saturation near the supply rails | Clipping |
| Unlimited output current | Output current limit | Heavy loads, low-resistance feedback networks |
| Zero input current | Input bias current | DC error, large with big resistors |
| Equal inputs at zero error | Input offset voltage | DC error at the output |
| Infinite input resistance | Finite differential and common-mode input resistance | Matters with very high source resistance |
| Zero output resistance | Nonzero open-loop output resistance | Matters with capacitive loads and stability |
| Perfect rejection of common-mode signals | Finite common-mode rejection ratio (CMRR) | Difference amplifier accuracy |
Most hand analysis only needs the first six rows.
Finite gain, and why bandwidth is the bigger problem
Earlier you saw that a finite DC gain A changes the inverting gain by the factor 1 / (1 + (1 + Rf/Rin) / A). With A = 100,000 and a gain of -10, the error is about 0.011%. That is negligible.
The catch is that A is not constant. A typical general-purpose op amp behaves like a single-pole low-pass filter, so its gain falls at 20 dB per decade above a low corner frequency. Past that corner, A(f) is approximately GBW / f. A device with GBW = 1 MHz has A = 10 at 100 kHz, not 100,000.
The feedback network then sets how much of that gain is needed. The quantity that matters is the noise gain, which is 1 + Rf/Rg for the non-inverting amplifier and 1 + Rf/Rin for the inverting amplifier. The closed-loop bandwidth is approximately
f_bw ≈ GBW / noise gain
This is why an inverting amplifier with a signal gain of -10 has a noise gain of 11 and a bandwidth below GBW/10. It also explains the common trade-off: more gain per stage means less bandwidth, so a gain of 1000 is often built from two stages of about 32 each.
Slew rate and full-power bandwidth
Bandwidth describes small signals. Slew rate limits how fast the output can change regardless of the input, and it is the cause of distortion on large signals. A sine wave of peak amplitude Vp and frequency f has a maximum slope of 2π f Vp. If that exceeds SR, the output becomes a triangle-like wave. The highest frequency that can be reproduced undistorted at full amplitude is the full-power bandwidth:
f_fp = SR / (2π Vp)
A device with SR = 0.5 V/µs driving a 10 V peak sine wave is limited to about 8 kHz, even if its small-signal bandwidth is much higher.
DC errors: offset voltage and bias current
Two DC effects move the output away from the ideal value even with no input signal.
The input offset voltage Vos acts like a small battery in series with one input. The feedback network amplifies it by the noise gain, so the output error is approximately Vos × noise gain. With Vos = 1 mV and a noise gain of 11, the output is off by 11 mV. This matters little for a 10 V signal but a lot for a 1 mV sensor signal.
The input bias current Ib flows into (or out of) each input terminal. It breaks the zero input current assumption, and the resistors it flows through convert it into voltage error. In the inverting amplifier with the non-inverting input grounded, the output error is about Ib × Rf. So 100 nA through 10 kΩ gives 1 mV, but through 10 MΩ it gives 1 V. This is why high-impedance circuits such as photodiode amplifiers use FET-input devices, whose bias currents are in the picoampere range.
Saturation and output limits
The linear analysis assumes the output can reach whatever voltage the gain equations demand. The output cannot exceed the supply rails, and many devices stop 1 to 2 V short of them unless they are labeled rail-to-rail. When the computed output exceeds the available swing, the output clips and the virtual short no longer holds. The inverting input is no longer forced to match the non-inverting input, because feedback has lost control of the output.
A quick check catches this: compute the ideal output first, compare it with the supply limits, and only then trust the result. A gain of 10 on a 2 V input needs 20 V of swing, which a ±15 V supply cannot give. The output current limit works the same way. A 1 kΩ load at 10 V needs 10 mA, which some devices cannot supply, and the feedback network itself is also a load.
A calculator for the limits
This script computes the three quantities above. Run it before committing to a design.
import math
def closed_loop_bandwidth(gbw_hz, noise_gain):
"""Approximate -3 dB bandwidth of a single-pole op amp circuit."""
return gbw_hz / noise_gain
def full_power_bandwidth(slew_v_per_s, v_peak):
"""Highest undistorted sine frequency at amplitude v_peak."""
return slew_v_per_s / (2 * math.pi * v_peak)
def output_offset(vos, noise_gain):
"""Output error caused by input offset voltage."""
return vos * noise_gain
# Inverting amplifier, Rf = 10k, Rin = 1k: signal gain -10, noise gain 11
noise_gain = 1 + 10e3 / 1e3
print(f"Bandwidth: {closed_loop_bandwidth(1e6, noise_gain):.1f} Hz")
print(f"Full-power bandwidth: {full_power_bandwidth(0.5e6, 10):.1f} Hz")
print(f"Offset at output: {output_offset(1e-3, noise_gain) * 1e3:.1f} mV")The output is:
Bandwidth: 90909.1 Hz
Full-power bandwidth: 7957.7 Hz
Offset at output: 11.0 mVThe small-signal bandwidth is about 91 kHz, but the same circuit cannot reproduce a 10 V peak sine wave above roughly 8 kHz. The smaller of the two limits sets the usable range for large signals.
Other effects worth naming
Several effects rarely appear in hand calculations but explain real failures:
- Output resistance and capacitive loads. The op amp's output resistance and a load capacitance form an extra pole inside the feedback loop. This can turn negative feedback into oscillation. A small series resistor at the output often cures it.
- CMRR. A real op amp responds slightly to the average of its two inputs. In a difference amplifier, resistor mismatch usually dominates, but with 0.1% resistors the amplifier's CMRR can matter too.
- Noise. Voltage and current noise add to the signal and are amplified by the noise gain.
- Input common-mode range. Both inputs must stay within a range set by the supplies. A voltage follower on a single supply may fail near a rail even when the output swing would allow it.
- Temperature. Offset and bias current drift with temperature.
Deciding whether the ideal model is enough
Work through the checks in order. Each one is a quick calculation, and the first failure tells you which effect to study more closely.
As a rule of thumb, keep the signal frequency at least a factor of 10 below GBW divided by the noise gain. At that point the gain error from the falling A(f) is about 1%.
Verifying with simulation
The SPICE example from earlier used a VCVS with a gain of 1e6, which is only the finite-gain effect. To explore bandwidth, replace the VCVS with a model that has a pole, or use a manufacturer's macromodel, and run an AC sweep. Compare the -3 dB frequency with GBW divided by noise gain. A mismatch usually means an output load or an input capacitance is adding a second pole.
Exercise
A non-inverting amplifier has Rf = 49 kΩ and Rg = 1 kΩ, using an op amp with GBW = 2 MHz, SR = 1 V/µs and Vos = 2 mV. (a) What is the signal gain and the approximate bandwidth? (b) What is the output offset error from Vos? (c) What is the highest frequency at which a 5 V peak output sine wave is undistorted?
Show answer
(a) Gain = 1 + 49 = 50. For the non-inverting amplifier the noise gain equals the signal gain, so bandwidth ≈ 2 MHz / 50 = 40 kHz. (b) Output offset ≈ 2 mV × 50 = 100 mV. (c) f_fp = SR / (2π Vp) = 1e6 / (2π × 5) ≈ 31.8 kHz. The slew limit (about 32 kHz) is below the small-signal bandwidth (40 kHz), so slew rate sets the usable range for a 5 V output.
Exercise
An inverting amplifier uses Rin = 10 kΩ and Rf = 100 kΩ on ±12 V supplies, and the input is a 1.5 V DC level. Does the ideal gain equation give a valid output? What happens to the virtual short?
Show answer
The ideal gain is -Rf/Rin = -10, so the ideal output would be -15 V. That exceeds the -12 V supply, and real devices stop short of the rail. The output saturates, the inverting input is no longer held at the non-inverting input voltage, and the virtual short fails. The equation is not valid. Reduce the gain, reduce the input, or use higher supply voltages.