Operational Amplifiers
CSIR NET electronics: ideal op-amp rules, inverting and non-inverting amplifiers, integrators, filters, comparators, oscillators, slew rate, GBW, offsets.
- 17 min
On this page · 15 sections
- Prerequisites
- The Hook: A Bad Amplifier Made Perfect
- The Ideal Op-Amp
- Standard Linear Circuits
- Negative Feedback in General
- Real Op-Amps: The Non-idealities Part C Uses
- Non-linear Circuits: Comparators and Schmitt Triggers
- Oscillators
- Memory Tricks
- Don’t Confuse
- Common Mistakes
- Practice
- Quick Revision Table
- Key Takeaways
- What’s Next
Prerequisites
- Semiconductor Devices: Junctions, Diodes, BJTs, FETs and Heterojunctions: an op-amp is a differential transistor amplifier; the emitter-degeneration idea there is negative feedback in miniature.
- Kirchhoff’s laws and complex impedance \( Z_C = 1/j\omega C \), \( Z_L = j\omega L \).
- Linear first-order ODEs, from Linear ODEs and Special Functions: integrators, differentiators and filters are ODEs in circuit form.
The Hook: A Bad Amplifier Made Perfect
The Ideal Op-Amp
An op-amp is a differential amplifier: \( V_o = A(V_+ - V_-) \). The ideal device has
| Parameter | Ideal | Typical general-purpose (741 class) |
|---|---|---|
| Open-loop gain \( A \) | \( \infty \) | of order \( 10^5 \) |
| Input impedance | \( \infty \) | of order MΩ (BJT input); far higher with FET inputs |
| Output impedance | 0 | tens of ohms |
| Bandwidth | \( \infty \) | unity-gain bandwidth of order 1 MHz |
| CMRR | \( \infty \) | of order 90 dB |
| Slew rate | \( \infty \) | about 0.5 V/µs |
The two golden rules
With negative feedback and the output not saturated:
- No current flows into either input (infinite input impedance).
- The output does whatever is needed to make \( V_+ = V_- \) (the virtual short). Because \( V_o \) is finite and \( A \to \infty \), \( V_+ - V_- = V_o/A \to 0 \).
Rule 2 holds only with negative feedback. With positive feedback or no feedback (comparators, Schmitt triggers) the output sits at \( \pm V_{sat} \) and the inputs are not equal.
Standard Linear Circuits
Inverting amplifier
Input through \( R_1 \) to the inverting node, feedback \( R_f \), non-inverting input grounded. The inverting node is a virtual ground. KCL: \( V_i/R_1 = -V_o/R_f \):
$$\boxed{\frac{V_o}{V_i} = -\frac{R_f}{R_1}}, \qquad Z_{in} = R_1$$Non-inverting amplifier
Input to \( V_+ \); \( R_1 \) from \( V_- \) to ground, \( R_f \) from output to \( V_- \). Then \( V_- = V_oR_1/(R_1 + R_f) = V_i \):
$$\boxed{\frac{V_o}{V_i} = 1 + \frac{R_f}{R_1}}, \qquad Z_{in} \to \infty$$With \( R_f = 0 \) (or \( R_1 \to \infty \)) this is the voltage follower, gain 1, used as a buffer between a high-impedance source and a load.
Summing, difference and instrumentation amplifiers
$$\text{Summing (inverting): } V_o = -R_f\left(\frac{V_1}{R_1} + \frac{V_2}{R_2} + \cdots\right)$$$$\text{Difference (matched ratios } R_2/R_1\text{): } V_o = \frac{R_2}{R_1}(V_2 - V_1)$$The three-op-amp instrumentation amplifier puts two non-inverting buffers in front of a difference stage. With buffer resistors \( R \), gain resistor \( R_G \) and difference stage ratio \( R_3/R_2 \):
$$V_o = \left(1 + \frac{2R}{R_G}\right)\frac{R_3}{R_2}(V_2 - V_1)$$It has very high input impedance on both inputs, gain set by a single resistor, and high CMRR. It is the standard front end for bridge sensors and thermocouples.
Current-to-voltage (transimpedance) converter
A current source (a photodiode, say) into the virtual ground with feedback \( R_f \): \( V_o = -I_{in}R_f \). The photodiode sees zero voltage across it, so its capacitance is not charged and the response is linear.
Integrator and differentiator
Replace \( R_f \) by a capacitor \( C \): the capacitor current \( C\,dV_o/dt \) must equal \( -V_i/R \):
$$\boxed{V_o(t) = -\frac{1}{RC}\int_0^tV_i\,dt' + V_o(0)}$$A constant input gives a ramp; a square wave gives a triangle; a sine gives a cosine shifted by 90°, with gain \( 1/\omega RC \). A practical integrator puts a large resistor across \( C \), since otherwise any DC input offset is integrated until the output saturates.
Swap the positions of \( R \) and \( C \) for the differentiator: \( V_o = -RC\,dV_i/dt \). Its gain \( \omega RC \) grows with frequency, so it amplifies noise; a small series resistor with \( C \) limits the high-frequency gain.
Logarithmic and exponential amplifiers
A diode (or transistor) in the feedback path of an inverting amplifier gives \( V_o = -V_T\ln\left(\dfrac{V_i}{RI_s}\right) \): each decade of input changes the output by \( V_T\ln10 \approx 60 \) mV. Swapping diode and resistor gives the antilog (exponential) amplifier.
Active filters
Put \( C_f \) in parallel with \( R_f \) in the inverting amplifier: the gain is \( -\dfrac{R_f/R_1}{1 + j\omega R_fC_f} \). This is a first-order low-pass with DC gain \( -R_f/R_1 \) and
$$\boxed{f_c = \frac{1}{2\pi R_fC_f}}$$rolling off at 20 dB per decade (6 dB per octave) above \( f_c \). A capacitor in series with \( R_1 \) instead gives a high-pass, \( f_c = 1/2\pi R_1C_1 \). An \( n \)-th order filter rolls off at \( 20n \) dB/decade. Active filters need no inductors and can provide gain and buffering.
Negative Feedback in General
Let the amplifier have gain \( A \) and a feedback network return a fraction \( \beta \) of the output. Then
$$\boxed{G = \frac{A}{1 + A\beta}} \quad \xrightarrow{A\beta \gg 1} \quad \frac{1}{\beta}$$\( A\beta \) is the loop gain. Large loop gain buys:
- Gain desensitivity: \( \dfrac{dG}{G} = \dfrac{1}{1 + A\beta}\dfrac{dA}{A} \).
- Bandwidth extension: for a single-pole amplifier, gain × bandwidth is constant (next section).
- Impedance control: series (voltage) mixing at the input raises input impedance by \( 1 + A\beta \); shunt sampling at the output lowers output impedance by \( 1 + A\beta \). The non-inverting amplifier does both.
- Reduced distortion and noise generated inside the loop.
For the non-inverting amplifier \( \beta = R_1/(R_1 + R_f) \), so \( 1/\beta \) is its ideal gain. For the inverting amplifier the feedback fraction is the same \( \beta \), but the signal gain is \( -R_f/R_1 \); the quantity \( 1/\beta = 1 + R_f/R_1 \) is called the noise gain and is what sets the bandwidth.
Real Op-Amps: The Non-idealities Part C Uses
Gain–bandwidth product
An internally compensated op-amp has a single dominant pole: \( A(f) = A_0/(1 + jf/f_b) \). Above \( f_b \) the gain falls as \( 1/f \), so the product of gain and frequency is constant and equal to the unity-gain frequency \( f_T \). With feedback,
$$\boxed{f_{-3\,\text{dB}} = \frac{f_T}{1/\beta} = \frac{\text{GBW}}{\text{noise gain}}}$$A 1 MHz op-amp at non-inverting gain 11 has a bandwidth of 91 kHz; at gain 101, 9.9 kHz.
Slew rate
The output cannot change faster than the slew rate \( S \) (V/µs). A sine of amplitude \( V_p \) has maximum slope \( 2\pi fV_p \), so it is distorted (towards a triangle) unless
$$\boxed{f \leq f_{\max} = \frac{S}{2\pi V_p}}$$This is the full-power bandwidth. Slew rate is a large-signal limit; GBW is a small-signal limit. A question can be limited by either: compute both.
Offsets and bias currents
- Input offset voltage \( V_{os} \): the differential input needed for zero output. It appears at the output multiplied by the noise gain: \( V_{o,\text{off}} = (1 + R_f/R_1)V_{os} \).
- Input bias current \( I_B \): flows into each input. Through \( R_f \) it gives an output error \( I_BR_f \). Putting a resistor \( R_1 \parallel R_f \) in series with the non-inverting input cancels this to first order, leaving only the offset current \( I_{os} = \lvert I_{B+} - I_{B-}\rvert \) times \( R_f \).
CMRR
$$\text{CMRR} = \frac{A_d}{A_{cm}}, \qquad \text{CMRR (dB)} = 20\log_{10}\frac{A_d}{A_{cm}}$$and \( V_o = A_dV_d + A_{cm}V_{cm} \) with \( V_d = V_2 - V_1 \), \( V_{cm} = (V_1 + V_2)/2 \). In a resistor-based difference amplifier, resistor mismatch usually limits CMRR more than the op-amp does.
Non-linear Circuits: Comparators and Schmitt Triggers
A comparator has no feedback: \( V_o = +V_{sat} \) if \( V_+ > V_- \), else \( -V_{sat} \). A noisy input near the threshold makes it chatter.
The Schmitt trigger adds positive feedback. In the inverting form, the input goes to \( V_- \) and a divider (\( R_2 \) to ground, \( R_1 \) from the output) sets \( V_+ = \beta V_o \) with \( \beta = R_2/(R_1 + R_2) \). The thresholds are
$$\boxed{V_{UT} = +\beta V_{sat}, \qquad V_{LT} = -\beta V_{sat}, \qquad V_H = 2\beta V_{sat}}$$The output switches low when the rising input crosses \( V_{UT} \), and high again only when the falling input crosses \( V_{LT} \). The hysteresis \( V_H \) rejects noise smaller than itself. The transfer curve is a rectangular hysteresis loop. For the inverting form the output is certainly high for inputs below \( V_{LT} \), certainly low above \( V_{UT} \), and in between it remembers its previous state.
Astable (square-wave) multivibrator: add an RC from the output to the inverting input of an inverting Schmitt trigger. The capacitor charges between \( \pm\beta V_{sat} \), giving
$$T = 2RC\ln\frac{1 + \beta}{1 - \beta} = 2RC\ln\left(1 + \frac{2R_2}{R_1}\right)$$For \( \beta = 1/2 \), \( T = 2RC\ln3 \approx 2.2RC \).
Oscillators
A linear oscillator is an amplifier with frequency-selective positive feedback. The Barkhausen criterion: at the oscillation frequency the loop gain \( A\beta = 1 \), with total phase shift 0° (or 360°). In practice the gain is set slightly above 1 to start oscillation, and a non-linearity (diode, lamp, thermistor or automatic gain control) holds the amplitude.
| Oscillator | Feedback network | Frequency | Amplifier gain needed |
|---|---|---|---|
| Wien bridge | series RC + parallel RC (\( \beta = 1/3 \), 0° at \( f_0 \)) | \( f_0 = \dfrac{1}{2\pi RC} \) | non-inverting, \( 1 + R_f/R_1 = 3 \) |
| RC phase shift (3 sections) | three RC sections, 180° at \( f_0 \) | \( f_0 = \dfrac{1}{2\pi\sqrt6\,RC} \) | inverting, \( \lvert A\rvert = 29 \) |
| LC (Colpitts, Hartley) | LC tank | \( f_0 = \dfrac{1}{2\pi\sqrt{LC_{eq}}} \) | set by the capacitor or inductor ratio |
| Crystal | quartz resonator | very stable | used for clocks |
Memory Tricks
Don’t Confuse
| This | With this | The difference |
|---|---|---|
| Virtual ground | Real ground | inverting node held at 0 V by feedback, but no current flows to ground through it |
| Comparator | Schmitt trigger | no feedback, single threshold; positive feedback, two thresholds, hysteresis |
| Slew-rate limit | GBW limit | large-signal, depends on amplitude; small-signal, depends on closed-loop gain |
| Signal gain | Noise gain | \( -R_f/R_1 \) for the inverting amplifier; \( 1 + R_f/R_1 \), which sets bandwidth and offset amplification |
| Offset voltage | Bias current | a differential input voltage error; currents into the inputs, giving \( I_BR_f \) at the output |
| Negative feedback | Positive feedback | stabilises gain and linear operation; drives the output to a rail or makes it oscillate |
Common Mistakes
Practice
All questions below are original practice questions written for this page. They are not from any CSIR NET paper. Op-amps are ideal unless a non-ideality is stated.
Level 1: Foundation
- An inverting amplifier has \( R_1 = 10 \) kΩ and \( R_f = 100 \) kΩ. What is the output for \( V_i = 0.2 \) V?
- What is the gain of a voltage follower?
- An amplifier has \( A_d = 10^5 \) and \( A_{cm} = 1 \). What is its CMRR in dB?
Answers
- −2 V. \( -(100/10)(0.2) \).
- 1 (non-inverting, \( R_f = 0 \)).
- 100 dB. \( 20\log_{10}10^5 \).
Level 2: Part B Style
Practice Q1. An inverting summing amplifier has \( R_f = 10 \) kΩ and three inputs: 1 V through 10 kΩ, −0.5 V through 5 kΩ, and 0.2 V through 2 kΩ. The output is:
(a) −1 V (b) +1 V (c) −3 V (d) 0 V
Answer: (a) −1 V
\( V_o = -10\,\text{k}\left(\frac{1}{10\,\text{k}} - \frac{0.5}{5\,\text{k}} + \frac{0.2}{2\,\text{k}}\right) = -(1 - 1 + 1) = -1 \) V. (c) ignores the sign of the second input; (b) drops the inversion.
Practice Q2. An op-amp with slew rate 0.5 V/µs must deliver an undistorted sine of 10 V peak. The highest usable frequency is about:
(a) 50 kHz (b) 16 kHz (c) 8 kHz (d) 0.8 kHz
Answer: (c) 8 kHz
\( f_{\max} = S/(2\pi V_p) = 0.5\times10^6/(2\pi \times 10) = 7.96 \) kHz. (a) omits \( 2\pi \); (b) uses \( \pi \) instead of \( 2\pi \).
Practice Q3. An op-amp with gain–bandwidth product 1 MHz is used as a non-inverting amplifier with \( R_1 = 1 \) kΩ and \( R_f = 100 \) kΩ. The closed-loop −3 dB bandwidth is about:
(a) 1 MHz (b) 100 kHz (c) 10 kHz (d) 1 kHz
Answer: (c) 10 kHz
Gain \( = 1 + 100/1 = 101 \); bandwidth \( = 10^6/101 = 9.9 \) kHz.
Practice Q4. An inverting Schmitt trigger uses \( \pm V_{sat} = \pm12 \) V, \( R_1 = 10 \) kΩ from output to \( V_+ \), and \( R_2 = 2 \) kΩ from \( V_+ \) to ground. The hysteresis width is:
(a) 2 V (b) 4 V (c) 2.4 V (d) 4.8 V
Answer: (b) 4 V
\( \beta = R_2/(R_1 + R_2) = 2/12 = 1/6 \). Thresholds \( \pm12/6 = \pm2 \) V; hysteresis \( 2 \times 2 = 4 \) V. (d) uses \( \beta = R_2/R_1 = 0.2 \).
Level 3: Part C Style
Practice Q5. An ideal integrator with \( R = 10 \) kΩ and \( C = 0.1 \) µF is driven by a symmetric ±1 V square wave of frequency 1 kHz, starting with zero average output. Consider:
- The output is a triangle wave of 0.5 V peak to peak.
- While the input is +1 V, the output falls.
- At 100 Hz with the same amplitude, the output would be 5 V peak to peak.
- Without a resistor across \( C \), a small DC offset at the input eventually drives the output into saturation.
Which are correct?
(a) 1 and 2 only (b) 1, 2 and 4 only (c) 1, 2, 3 and 4 (d) 2, 3 and 4 only
Answer: (c) 1, 2, 3 and 4
\( RC = 10^4 \times 10^{-7} = 1 \) ms.
- In each half-period of 0.5 ms the output changes by \( (1\ \text{V})(0.5\ \text{ms})/(1\ \text{ms}) = 0.5 \) V. True.
- \( V_o = -\frac{1}{RC}\int V_i\,dt \): positive input, falling output. True.
- Half-period 5 ms: change \( = 5 \) V (provided the supply allows it). True.
- A constant offset integrates to a ramp without limit; the DC gain of an ideal integrator is infinite. True.
Practice Q6. A Wien-bridge oscillator uses \( R = 10 \) kΩ and \( C = 10 \) nF in both arms of the frequency-selective network. Consider:
- It oscillates near 1.6 kHz.
- At that frequency the Wien network returns one third of the output with zero phase shift.
- The non-inverting amplifier needs \( R_f/R_1 \) at least 2 to sustain oscillation.
- Replacing the network by a three-section RC phase-shift network with the same \( R \) and \( C \) would oscillate at the same frequency.
Which are correct?
(a) 1, 2 and 3 only (b) 1 and 2 only (c) 2, 3 and 4 only (d) 1, 2, 3 and 4
Answer: (a) 1, 2 and 3 only
- \( f_0 = 1/(2\pi RC) = 1/(2\pi \times 10^{-4}) = 1592 \) Hz. True.
- At \( f_0 \) the network’s transfer function is \( 1/3 \) and real. True.
- Barkhausen: \( A \times \frac{1}{3} = 1 \Rightarrow A = 1 + R_f/R_1 = 3 \), so \( R_f/R_1 \geq 2 \). True.
- The phase-shift oscillator runs at \( 1/(2\pi\sqrt6\,RC) = 650 \) Hz and needs an inverting gain of 29. False.
Practice Q7. A non-inverting amplifier has \( R_1 = 1 \) kΩ, \( R_f = 100 \) kΩ, and an op-amp with open-loop gain \( 10^5 \), input offset voltage 2 mV and input bias current 100 nA (each input). The non-inverting input is driven from a source of negligible resistance. Consider:
- Finite open-loop gain lowers the closed-loop gain below 101 by about 0.1%.
- The offset voltage alone produces about 0.2 V at the output.
- The bias current alone produces about 10 mV at the output.
- Adding about 1 kΩ in series with the non-inverting input would reduce the bias-current error.
Which are correct?
(a) 1 and 2 only (b) 2 and 3 only (c) 1, 2 and 3 only (d) 1, 2, 3 and 4
Answer: (d) 1, 2, 3 and 4
- \( G = A/(1 + A\beta) = 10^5/(1 + 10^5/101) = 100.90 \): 0.10% low. True.
- \( (1 + R_f/R_1)V_{os} = 101 \times 2 \) mV \( = 0.202 \) V. True.
- With \( V_+ = 0 \), \( V_- = 0 \) and no current through \( R_1 \), the bias current into \( V_- \) must flow through \( R_f \): \( I_BR_f = 10^{-7} \times 10^5 = 10 \) mV. True.
- A resistor \( R_1 \parallel R_f = 0.99 \) kΩ in series with \( V_+ \) makes the bias current produce \( -I_B(R_1 \parallel R_f) \) at \( V_+ \), which, amplified by 101, gives \( -10 \) mV, cancelling the error to first order (leaving only the offset-current term). True.
Quick Revision Table
| Circuit | Result |
|---|---|
| Inverting | \( -R_f/R_1 \), \( Z_{in} = R_1 \) |
| Non-inverting | \( 1 + R_f/R_1 \), \( Z_{in} \to \infty \) |
| Summing | \( -R_f\sum V_i/R_i \) |
| Difference | \( (R_2/R_1)(V_2 - V_1) \) |
| Instrumentation | \( (1 + 2R/R_G)(R_3/R_2) \) |
| Transimpedance | \( -I_{in}R_f \) |
| Integrator | \( -\frac{1}{RC}\int V_i\,dt \) |
| Differentiator | \( -RC\,dV_i/dt \) |
| Log amp | \( -V_T\ln(V_i/RI_s) \), 60 mV/decade |
| Low-pass | \( f_c = 1/2\pi R_fC_f \), 20 dB/decade |
| Feedback | \( G = A/(1 + A\beta) \) |
| GBW | \( f_{-3\,\text{dB}} = f_T/\text{noise gain} \) |
| Slew rate | \( f_{\max} = S/2\pi V_p \) |
| Schmitt | \( \pm\beta V_{sat} \), \( V_H = 2\beta V_{sat} \) |
| Astable | \( T = 2RC\ln[(1 + \beta)/(1 - \beta)] \) |
| Wien / phase shift | \( 1/2\pi RC \), gain 3 / \( 1/2\pi\sqrt6RC \), gain 29 |
Key Takeaways
What’s Next
- Digital Techniques: Logic, Registers, Counters and Comparators: from analogue comparators to digital ones.
- A/D and D/A Converters, Microprocessors and Microcontrollers: op-amps are the summing node of every DAC and the integrator of the dual-slope ADC.
- Opto-electronic Devices: the photodiode that the transimpedance amplifier reads.
- Electronics and Experimental Methods (Core) overview.