Operational amplifiers
Operational amplifiers: ideal model, practical parameters (gain, input/output resistance, CMRR, slew rate, bandwidth), golden rules, negative feedback and closed-loop behavior, stability and frequency response, comparator vs amplifier use, and preparation for common op-amp circuits.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Operational amplifiers (op-amps) are the basic building blocks of analog electronics used in sensor signal conditioning, filters, instrumentation, control systems, audio, and data acquisition. Understanding their ideal behavior, practical limitations, and how feedback shapes performance is essential before using specific op-amp circuits like inverting, non-inverting, and summing amplifiers.
Key ideas
What to draw: A triangle with the left top input marked “+ (non-inverting)”, left bottom input marked “− (inverting)”, right tip as output “vo”, supply pins shown on top and bottom as “+VCC” and “−VEE” (or +V and −V), and input voltages marked as v+ and v−.
Differential input and open-loop gain: The instantaneous output voltage is vo = A·(v+ − v−), where A is the open-loop gain (dimensionless) typically very large (10^5 to 10^6) at low frequency.
- Assumption: Linear operation within supply limits and bandwidth; no saturation or slew-rate limiting.
Ideal op-amp model: An ideal op-amp has infinite open-loop gain (A → ∞), infinite input resistance (Ri → ∞), zero output resistance (Ro → 0), infinite bandwidth, zero input offset, infinite slew rate, and perfect common-mode rejection.
- Consequences in negative feedback: (1) The input currents are zero (no current into either input). (2) The input voltages become equal (v+ = v−), called the “virtual short” or “equal-input” condition.
Golden rules (for ideal op-amp with negative feedback):
- No current flows into either input terminal (iin+ = iin− = 0 A).
- The op-amp drives the output so that the two input node voltages are equal (v+ = v−).
- Assumptions: The op-amp is powered, not saturated, and there is negative feedback linking output to the inverting input or non-inverting input in a stabilizing way.
Negative feedback: Feeding a portion of the output to the inverting input to reduce error and set a predictable closed-loop gain. Negative feedback makes the closed-loop gain depend mainly on passive components (resistors) and less on the exact value of A.
- What to draw: A block with input vin to a summing junction comparing with feedback β·vo, producing error ve = vin − β·vo, driving a gain block A, output vo fed back through β.
Closed-loop gain (general form): With feedback factor β (dimensionless), closed-loop gain Af = vo/vin = A/(1 + Aβ) times the forward path from input to difference node. For large A, Af ≈ 1/β.
- Assumption: Linear, time-invariant behavior; loop gain Aβ is positive and large in magnitude; signs chosen for negative feedback.
Input resistance and output resistance with feedback: Negative feedback greatly increases effective input resistance and lowers effective output resistance compared to the op-amp alone, improving interfacing between stages.
Practical parameters (non-idealities):
- Input bias current (Ib): Small DC currents flowing into the input terminals, typically nA to pA depending on technology (BJT vs JFET/CMOS). Causes voltage drops across input resistances.
- Input offset current (Ios): Difference between the two input bias currents, Ios = |Ib+ − Ib−|.
- Input offset voltage (VOS): Small DC voltage that must be applied between inputs to force vo = 0 V when the op-amp is used in a closed-loop configuration.
- Common-mode voltage (vCM): The average of the two input voltages, vCM = (v+ + v−)/2.
- Common-mode rejection ratio (CMRR): The ratio of differential gain Ad to common-mode gain Acm, CMRR = Ad/Acm. Expressed often in decibels: CMRR(dB) = 20·log10(CMRR). High CMRR means the amplifier rejects signals common to both inputs (e.g., noise pickup).
- Power supply rejection ratio (PSRR): Sensitivity of output to changes in supply voltages. Higher PSRR is better.
- Slew rate (SR): Maximum rate of change of the output voltage, SR = max(|dvo/dt|), typically specified in V/µs; SI unit is V/s. Limits large-signal speed and causes distortion for fast or large-amplitude signals.
- Gain–bandwidth product (GBW or unity-gain frequency fu): The frequency where the magnitude of the op-amp’s open-loop gain equals 1 (0 dB). For a single-pole op-amp, closed-loop bandwidth ≈ GBW/|Af|.
- Input common-mode range (ICMR): The allowed range of vCM where the input stage operates correctly. Exceeding ICMR causes distortion or incorrect operation.
- Output swing: The maximum peak output voltage relative to ground that the op-amp can produce without clipping, limited by supply rails and internal saturation. Not all op-amps are rail-to-rail.
Comparator vs amplifier:
- Comparator: Uses the op-amp or a dedicated comparator without negative feedback; the output saturates high or low depending on the sign of (v+ − v−). Fast transition, used for decision-making (threshold detection). No linear amplification.
- Linear amplifier: Uses negative feedback to keep operation in the linear region; produces proportional output.
Transfer characteristics:
- Open-loop (no feedback): A very steep S-shaped transition between saturation levels; output saturates when |A·(v+ − v−)| exceeds the output swing limit.
- Closed-loop (with negative feedback): Linear relationship vo ≈ Af·vin over a wide range until limited by output swing or slew rate.
- What to draw: (1) Open-loop vo vs (v+ − v−): a near-vertical line through zero with horizontal saturations at +Vsat and −Vsat. (2) Closed-loop vo vs vin: a straight line with slope Af within ±Vsat.
Frequency response and stability:
- Most op-amps are internally compensated to behave like a single-pole system at low frequency: A(jω) ≈ A0/(1 + jω/ωp).
- Phase margin: Angle by which the phase at unity loop gain is above −180°. Adequate phase margin (e.g., ~45°–60°) avoids ringing/oscillation.
- Bode plots: Magnitude of A rolls off at −20 dB/decade per pole; phase shifts up to −90° per pole. Unity-gain crossover is where |Aβ| = 1.
- External compensation or proper feedback networks may be needed for stability in some configurations or for very high-speed op-amps.
Input and output resistances (definitions):
- Input resistance (Ri or Zin): Ratio of small change in input voltage to the small input current entering the terminal, measured with output held appropriately, unit ohm (Ω).
- Output resistance (Ro or Zout): Small-signal Thevenin resistance seen looking into the output with inputs set to zero signal, unit ohm (Ω).
Offset nulling and trimming: Some op-amps (e.g., general-purpose types) provide pins to apply a small trim to cancel input offset voltage using a potentiometer.
- What to draw: Op-amp symbol with two offset-null pins connected to a 10 kΩ potentiometer between the two null pins, with the wiper tied to the appropriate supply per datasheet.
Power supply and decoupling:
- Always show supply rails; add bypass capacitors (e.g., 0.1 µF ceramic close to pins, plus a larger electrolytic like 1–10 µF) between each supply and ground to reduce noise and oscillations. Place close to device pins.
Protection and practical use:
- Limit input currents using resistors if inputs may exceed rails; add clamping diodes in sensitive designs; avoid driving capacitive loads directly unless the op-amp is stable with them or use series isolation resistor.
Building block: differential amplifier:
- A resistor network around an op-amp can realize a true differential amplifier with gain for (v2 − v1) and high CMRR when resistor ratios are matched (R2/R1 = R4/R3). Used in instrumentation.
- What to draw: Four-resistor diff-amp: v1 to inverting via R1 with feedback R2, v2 to non-inverting via R3 with top resistor R4 to ground; label node voltages and resistor values, show the ratio condition.
Note: Specific circuit topologies like inverting, non-inverting, and summing amplifiers are covered in the later topic “Op-amp circuits: inverting, non-inverting and summing.” Here we focus on the op-amp device and feedback behavior they rely on.
Formulas
vo = A·(v+ − v−) — A: open-loop voltage gain (dimensionless), v+, v−: input voltages (V), vo: output voltage (V). Applies in linear region without saturation and within bandwidth.
Af = vo/vin = A/(1 + Aβ) — Af: closed-loop gain (dimensionless) for basic feedback block, A: open-loop gain, β: feedback factor (dimensionless). Valid for linear negative feedback, single input path.
Af ≈ 1/β — When Aβ ≫ 1 (large loop gain). Dimensionless.
Loop gain = Aβ — Determines accuracy and bandwidth; dimensionless.
Error factor = 1/(1 + Aβ) — Fractional error at the summing node; dimensionless.
CMRR = Ad/Acm — Ad: differential gain (dimensionless), Acm: common-mode gain (dimensionless). Higher is better.
CMRR(dB) = 20·log10(CMRR) — Decibel form of CMRR.
vCM = (v+ + v−)/2 — Common-mode voltage (V). Must lie within ICMR.
SR = max(|dvo/dt|) — Slew rate; unit V/s. Limits large-signal response.
fmax (for sine) = SR/(2π·Vpk) — Highest sine-wave frequency without slew limiting for a given peak output Vpk (V); fmax in Hz; assumes symmetric slew.
Bandwidth_cl ≈ GBW/|Af| — Closed-loop −3 dB bandwidth (Hz) for a single-pole op-amp; GBW (Hz); Af magnitude (dimensionless).
vo(sat) ≈ ±(Vrail − headroom) — Output swing limit (V), headroom depends on op-amp type; check datasheet.
Vos_out = Af·VOS — Output offset due to input offset voltage in a closed-loop amplifier; VOS (V), Af (dimensionless).
Ib_error = Ib·Req_input — Input bias current induced error voltage (V); Req_input (Ω) is resistance seen by that input to its reference.
Zin_closed ≈ Zin_open·(1 + Aβ) — Input resistance with feedback (Ω) for series-shunt feedback; topology dependent.
Zout_closed ≈ Zout_open/(1 + Aβ) — Output resistance with feedback (Ω) for series-shunt feedback; topology dependent.
Worked examples
Example 1: Closed-loop gain with finite A and bandwidth estimate Given: An op-amp has A0 = 2.0×10^5 (low-frequency open-loop gain). It is internally compensated to a single pole with GBW = 1.0 MHz. It is used in a non-inverting amplifier with nominal gain 11 (i.e., Af,ideal = 11). Find (a) the actual closed-loop gain considering finite A0, (b) the closed-loop bandwidth.
Steps:
- Find β from ideal gain: Af,ideal = 1/β ⇒ β = 1/11 ≈ 0.090909.
- Compute loop gain at low frequency: A0β = 2.0×10^5 × 0.090909 ≈ 1.818×10^4.
- Actual closed-loop gain (low frequency): Af = A0/(1 + A0β).
- First compute A0/(1 + A0β) = 2.0×10^5 / (1 + 1.818×10^4) ≈ 2.0×10^5 / 1.818×10^4 ≈ 11.0.
- Use the compact form for the non-inverting case: Af = 1/(β + 1/A0).
- For standard feedback: Af = A0/(1 + A0β) × G, where G from input to summing node is 1 (non-inverting). The simpler, correct expression is Af = 1/(β + 1/A0). Thus Af = 1/(0.090909 + 1/2.0×10^5).
- Compute 1/A0 = 5.0×10^−6. Then β + 1/A0 ≈ 0.090909 + 0.000005 = 0.090914.
- Af = 1/0.090914 ≈ 10.9995. Answer (a): Af ≈ 10.9995 (very close to 11).
- Bandwidth using GBW: Bandwidth_cl ≈ GBW/|Af| = 1.0×10^6 Hz / 10.9995 ≈ 90.91 kHz. Answer (b): f−3 dB ≈ 90.9 kHz.
Final: (a) Actual low-frequency gain ≈ 10.9995 (dimensionless). (b) Closed-loop bandwidth ≈ 90.9 kHz. Final answers: (a) ≈ 10.9995, (b) ≈ 9.09×10^4 Hz.
Example 2: Slew-rate limit on maximum undistorted sine frequency Given: Required output is a 10 Vp-p sine wave (i.e., Vpk = 5 V). Op-amp slew rate SR = 0.5 V/µs. Find the highest sine frequency without slew-induced distortion.
Steps:
- Formula: fmax = SR/(2π·Vpk).
- Convert SR to SI: 0.5 V/µs = 0.5 × 10^6 V/s.
- Substitute: fmax = (0.5×10^6 V/s)/(2π × 5 V) = (0.5×10^6)/(31.4159) s^−1.
- Compute: 0.5×10^6 / 31.4159 ≈ 15,915.5 Hz.
Final: Highest undistorted sine frequency ≈ 1.592×10^4 Hz (about 15.9 kHz). Final answer: fmax ≈ 15.9 kHz.
Example 3: CMRR in dB and output error due to common-mode input Given: An amplifier has differential gain Ad = 10^5 and CMRR = 80 dB. The inputs both see the same common-mode signal vCM = 0.2 V (i.e., v+ = v− = 0.2 V). Find (a) common-mode gain Acm, (b) output contribution due to common-mode, (c) comment on significance.
Steps:
- Convert CMRR(dB) to ratio: CMRR = 10^(CMRR(dB)/20) = 10^(80/20) = 10^4.
- Find Acm: CMRR = Ad/Acm ⇒ Acm = Ad/CMRR = 10^5 / 10^4 = 10.
- Output due to common-mode: vo,cm = Acm·vCM = 10 × 0.2 V = 2 V.
- Comment: Even with high CMRR of 80 dB, a 0.2 V common-mode can produce 2 V output error if not canceled; emphasizes need for high CMRR and proper differential front-end design.
Final: (a) Acm = 10 (dimensionless). (b) vo,cm = 2 V. (c) Significant error; use better CMRR or reduce vCM.
Example 4: Output swing and saturation check Given: Op-amp powered from ±12 V rails; datasheet output swing is to within 2 V of rails at 10 kΩ load. A closed-loop amplifier with gain 5 receives a 3 Vpk sine input. Check if the output will clip.
Steps:
- Expected output peak: Vout,pk = Af·Vin,pk = 5 × 3 V = 15 V.
- Available positive swing: +Vsat ≈ +12 V − 2 V = +10 V; negative swing: −Vsat ≈ −12 V + 2 V = −10 V.
- Since the required ±15 V exceeds ±10 V capability, the op-amp will saturate/clip.
Final: The output will clip; maximum undistorted peak is about 10 V. Final answer: clipping occurs.
Common mistakes
- Forgetting supply rails in diagrams; ideal equations predict outputs beyond rails, which is impossible.
- Ignoring slew rate and bandwidth; predicting perfect sine outputs at high frequency or large amplitude.
- Treating CMRR(dB) as 10·log10 instead of 20·log10 for voltage ratios.
- Not balancing input resistances seen by the two inputs, causing large output offset due to bias currents.
- Using GBW/Av for bandwidth when the op-amp has multiple poles; the approximation may not hold if not internally compensated.
- Mixing units (V/µs vs V/s) or forgetting to convert when calculating fmax from SR.
- Forgetting that not all op-amps are rail-to-rail; assuming output or inputs can go to the supply rails when they cannot.
- Using an op-amp as a comparator without considering recovery time or input common-mode limits; better to use a dedicated comparator.
For your exam
- Short notes: ideal vs practical op-amp, frequency response and GBW, comparator vs amplifier, input and output resistance with feedback, offset nulling.
- Derivations: closed-loop gain Af = 1/(β + 1/A) for non-inverting configuration; Af = A/(1 + Aβ) general feedback relationship; input/output resistance with feedback (qualitative or with expressions). Show block diagram, define β, and list assumptions.
- Numericals: compute fmax from SR, compute bandwidth from GBW and gain, evaluate CMRR in dB and output due to common-mode, check saturation with given rails and headroom, estimate output offset from VOS and gain, bias current induced error across input resistors.
- Diagrams: op-amp symbol with labeled pins, open-loop transfer characteristic with saturation, feedback block diagram, differential amplifier with resistor ratio condition, decoupling capacitors across supplies. Label all voltages and polarities.
- Full-marks answers: start with a clear definition, draw and label the correct diagram, state assumptions, present step-by-step derivation, substitute numbers with units if numerical, conclude with a boxed or clearly highlighted final result.
Quick check
- State the two golden rules of the ideal op-amp under negative feedback.
- An op-amp has GBW = 2 MHz and is configured for gain 20. Estimate the closed-loop bandwidth.
- Define CMRR and give its unit.
Answers: 1) (i) Input currents are zero, (ii) the op-amp drives the output so that v+ = v− (with negative feedback and no saturation). 2) Bandwidth ≈ GBW/|Af| = 2 MHz/20 = 0.1 MHz = 100 kHz. 3) CMRR = ratio of differential gain to common-mode gain; unit is dimensionless (often expressed in dB).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?