Advanced Physics‹›⌂ 0:00 studied

Module 21 · 8 min read · Free chapter

Operational amplifiers and their applications: ideal op-amp, virtual ground, inverting and non-inverting amplifiers, adder, subtractor, integrator, differentiator, comparator, CMRR and slew rate

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: an amplifier that does maths

The operational amplifier got its name in the 1940s, when vacuum-tube versions were wired up to add, subtract, integrate and differentiate voltages in analog computers that solved equations for gun directors and aircraft. In 1968 Fairchild's μA741 put a complete op-amp on a single silicon chip, and it is still taught everywhere.

An op-amp by itself has an enormous gain, far too large to use directly. Its power comes from negative feedback (feedback): connect a couple of resistors or capacitors around it and the circuit's behaviour depends almost entirely on those passive components. Two simple rules then let you analyse nearly any op-amp circuit in a few lines.

The ideal and the real op-amp

An op-amp has an inverting input (−), a non-inverting input (+), an output and two supply rails (typically ±15 V). It amplifies the difference between its inputs:

vo=AOL(v+−v−)v_o = A_{OL}\left(v_+ - v_-\right)

Internally it is a differential-amplifier input stage, a high-gain middle stage and a push-pull output stage, all DC coupled so it amplifies down to zero frequency.

Parameter Ideal 741 (typical)
open-loop gain A ∞ 2 × 10⁵ (106 dB)
input resistance ∞ 2 MΩ
output resistance 0 75 Ω
bandwidth ∞ unity-gain 1 MHz
CMRR ∞ 90 dB
slew rate ∞ 0.5 V μs⁻¹
input offset voltage 0 1 mV

The two golden rules (ideal op-amp with negative feedback):

  1. No current flows into either input (infinite input resistance).
  2. The output adjusts so that v+=v−v_+ = v_- (virtual short). Since the output is limited to about ±14 V and A is about 10510^5, the input difference is at most about 0.1 mV, effectively zero.

Common-mode rejection. An ideal op-amp responds only to the difference signal vd=v+−v−v_d = v_+ - v_- and ignores the common-mode signal vc=v++v−2v_c = \dfrac{v_+ + v_-}{2}. A real one gives vo=Advd+Acvcv_o = A_d v_d + A_c v_c. The common-mode rejection ratio

CMRR=AdAc,in dB: 20log⁡10AdAc\text{CMRR} = \frac{A_d}{A_c}, \qquad \text{in dB: } 20\log_{10}\frac{A_d}{A_c}

measures its ability to reject interference (such as 50 Hz hum) picked up equally on both inputs.

Slew rate is the maximum rate of change of the output, SR=(dvodt)max⁡SR = \left(\dfrac{dv_o}{dt}\right)_{\max}. For a sine output of amplitude VmV_m, the maximum slope is 2πfVm2\pi f V_m, so undistorted output needs

f≤SR2πVmf \le \frac{SR}{2\pi V_m}

For the 741 with VmV_m = 10 V, fmax⁡=0.5×1062π×10≈8f_{\max} = \dfrac{0.5 \times 10^6}{2\pi \times 10} \approx 8 kHz.

Inverting, non-inverting and follower

Inverting amplifier. Input through R1R_1 to the (−) input; feedback resistor RfR_f from output to (−); (+) grounded.

By rule 2 the (−) input is at 0 V although not connected to ground: a virtual ground. The current through R1R_1 is viR1\dfrac{v_i}{R_1}. By rule 1 all of it flows on through RfR_f, so viR1=−voRf\dfrac{v_i}{R_1} = -\dfrac{v_o}{R_f}:

Av=vovi=−RfR1A_v = \frac{v_o}{v_i} = -\frac{R_f}{R_1}

The input resistance is just R1R_1. Gain is set by a resistor ratio; the minus sign means a 180° phase reversal.

Non-inverting amplifier. Input to (+); R1R_1 from (−) to ground and RfR_f from output to (−). The divider gives v−=R1R1+Rfvov_- = \dfrac{R_1}{R_1 + R_f}v_o, and v−=v+=viv_- = v_+ = v_i:

Av=1+RfR1A_v = 1 + \frac{R_f}{R_1}

No phase reversal, and the input resistance is very high (the op-amp's own input resistance multiplied by the loop gain).

Voltage follower (buffer). Output connected straight to (−), input to (+): vo=viv_o = v_i, gain 1. It isolates a high-resistance source from a low-resistance load.

Worked example. Inverting with R1R_1 = 10 kΩ, RfR_f = 100 kΩ: gain −10, input resistance 10 kΩ. An input of 0.5 V gives −5 V. An input of 2 V would ask for −20 V, beyond the rail, so the output saturates at about −14 V.

Exact gain with finite A. For the non-inverting amplifier, Af=A1+AβA_f = \dfrac{A}{1 + A\beta} with β=R1R1+Rf\beta = \dfrac{R_1}{R_1 + R_f}. For A = 10510^5 and ideal gain 11, the actual gain is 10.9988: the ideal formula is excellent.

Mathematical operations

Summing amplifier (adder). Several inputs, each through its own resistor, meet at the virtual ground of an inverting amplifier. The currents add:

vo=−Rf(v1R1+v2R2+v3R3)v_o = -R_f\left(\frac{v_1}{R_1} + \frac{v_2}{R_2} + \frac{v_3}{R_3}\right)

With all resistors equal, vo=−(v1+v2+v3)v_o = -(v_1 + v_2 + v_3). Audio mixers and digital-to-analog converters (binary-weighted resistors R,2R,4R,8RR, 2R, 4R, 8R) use this.

Difference amplifier (subtractor). v1v_1 through R1R_1 to (−) with RfR_f feedback; v2v_2 through R1R_1 to (+) with RfR_f to ground. By superposition

vo=RfR1(v2−v1)v_o = \frac{R_f}{R_1}\left(v_2 - v_1\right)

It rejects any voltage common to both inputs. Three op-amps (two buffers and a difference stage) make an instrumentation amplifier with very high input resistance and CMRR, used for ECG and strain-gauge bridges.

Integrator. Replace RfR_f by a capacitor C. The current viR\dfrac{v_i}{R} charges C, and vo=−qCv_o = -\dfrac{q}{C}:

vo(t)=−1RC∫0tvi dt+vo(0)v_o(t) = -\frac{1}{RC}\int_0^t v_i\,dt + v_o(0)

A square-wave input gives a triangular output; a constant input gives a linear ramp. In practice a large resistor across C prevents drift to saturation from offsets.

Differentiator. Capacitor C at the input and resistor R in feedback. The capacitor current CdvidtC\dfrac{dv_i}{dt} flows through R:

vo=−RC dvidtv_o = -RC\,\frac{dv_i}{dt}

A triangular input gives a square output. It amplifies high-frequency noise (gain rises with f), so a small series resistor is added.

Analog computer. Two integrators and an inverter in a loop solve d2xdt2=−ω2x\dfrac{d^2x}{dt^2} = -\omega^2 x, producing a sine wave: this is how analog computers modelled oscillators, rockets and reactors.

Log and antilog amplifiers. Putting a diode or transistor in the feedback path uses its exponential I-V law (diode equation) to give vo∝−ln⁡viv_o \propto -\ln v_i, enabling analog multiplication.

Comparators, Schmitt trigger and other uses

Comparator. With no feedback, the huge gain drives the output to a rail as soon as the inputs differ by a fraction of a millivolt:

vo=+Vsat if v+>v−,vo=−Vsat if v+<v−v_o = +V_{\text{sat}} \text{ if } v_+ > v_-, \qquad v_o = -V_{\text{sat}} \text{ if } v_+ < v_-

Applying a reference voltage to one input turns a sine wave into a square wave, detects when a signal crosses a level (zero-crossing detector), or switches a fan when a temperature sensor's voltage passes a set point.

Schmitt trigger. A noisy input near the threshold makes a simple comparator chatter. Adding positive feedback through a divider (R1R_1, R2R_2) from output to (+) gives two thresholds:

VUT=+R1R1+R2Vsat,VLT=−R1R1+R2VsatV_{UT} = +\frac{R_1}{R_1 + R_2}V_{\text{sat}}, \qquad V_{LT} = -\frac{R_1}{R_1 + R_2}V_{\text{sat}}

The output switches high-to-low only when the input rises above VUTV_{UT} and back only when it falls below VLTV_{LT}. The gap is the hysteresis VH=VUT−VLTV_H = V_{UT} - V_{LT}, which makes switching clean.

Other applications.

  • Active filters: op-amps with R and C make low-pass, high-pass and band-pass filters with gain and no inductors.
  • Precision rectifier: a diode inside the feedback loop rectifies signals of millivolts, since the op-amp's gain overcomes the diode's 0.6 V drop.
  • Oscillators: Wien bridge and phase-shift (oscillators), and a Schmitt trigger with an RC feedback makes a square-wave generator (astable multivibrator).
  • Current-to-voltage converter: a photodiode into a virtual ground with feedback resistor R gives vo=−IRv_o = -IR, the standard light meter.
  • Sample-and-hold, voltage regulators, ADC and DAC circuits.

Mains lens: how UPSC asks this

Op-amps are explicitly named in P2.4, and questions almost always ask for one or two applications with derivations.

Expect:

  • Ideal op-amp and virtual ground (10 marks): characteristics, golden rules.
  • Inverting and non-inverting amplifiers (10 marks): derive gains; compare.
  • Adder, subtractor, integrator, differentiator (10 to 15 marks): circuit and output expression for two of them.
  • CMRR and slew rate (short notes with a numerical).
  • Comparator and Schmitt trigger (10 marks).

Model answer plan: "Explain the concept of virtual ground. Show how an op-amp can be used as (i) an adder and (ii) an integrator." (15 marks).

  1. Ideal op-amp properties; golden rules with negative feedback; virtual ground in inverting configuration.
  2. Adder circuit; currents at summing junction; vo=−Rf∑vkRkv_o = -R_f\sum\dfrac{v_k}{R_k}.
  3. Integrator circuit; capacitor current; vo=−1RC∫vi dtv_o = -\dfrac{1}{RC}\int v_i\,dt; square to triangle.
  4. Practical notes: resistor across C; uses in analog computing.

Quick revision

  • vo=A(v+−v−)v_o = A(v_+ - v_-); ideal: A, RiR_i, bandwidth ∞, RoR_o = 0.
  • Golden rules: no input current; v+=v−v_+ = v_- (virtual short, virtual ground).
  • Inverting −RfR1-\dfrac{R_f}{R_1}; non-inverting 1+RfR11 + \dfrac{R_f}{R_1}; follower 1.
  • Adder −Rf∑vkRk-R_f\sum\dfrac{v_k}{R_k}; subtractor RfR1(v2−v1)\dfrac{R_f}{R_1}(v_2 - v_1).
  • Integrator −1RC∫vi dt-\dfrac{1}{RC}\int v_i\,dt; differentiator −RCdvidt-RC\dfrac{dv_i}{dt}.
  • CMRR =AdAc= \dfrac{A_d}{A_c}; slew rate limits f≤SR2πVmf \le \dfrac{SR}{2\pi V_m}; 741: 0.5 V μs⁻¹.
  • Comparator; Schmitt trigger thresholds ±R1R1+R2Vsat\pm\dfrac{R_1}{R_1 + R_2}V_{\text{sat}}, hysteresis.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. List the characteristics of an ideal operational amplifier. Explain the concept of virtual ground.

    Show answer points
    • v_o = A(v₊ − v₋), differential, DC coupled
    • ideal: A, R_i, bandwidth, CMRR infinite; R_o zero
    • with negative feedback: no input current, v₊ = v₋
    • inverting input held at 0 V without connection to ground
    • fails if op-amp saturates; 741 values for comparison
  2. Derive the voltage gain of inverting and non-inverting amplifiers using an op-amp. Find the output for an input of 0.5 V with R₁ = 10 kΩ and R_f = 100 kΩ in each case.

    Show answer points
    • inverting: v_i/R₁ = −v_o/R_f, A = −R_f/R₁
    • non-inverting: v₋ = R₁v_o/(R₁ + R_f) = v_i, A = 1 + R_f/R₁
    • inverting R_i = R₁; non-inverting very high
    • inverting: −10 × 0.5 = −5 V
    • non-inverting: 11 × 0.5 = 5.5 V
  3. Show how an op-amp can be used as (i) a summing amplifier, (ii) a difference amplifier and (iii) an integrator. Derive the output in each case.

    Show answer points
    • adder: currents v_k/R_k meet at virtual ground; v_o = −R_f Σ v_k/R_k
    • subtractor: superposition gives v_o = (R_f/R₁)(v₂ − v₁)
    • integrator: v_i/R = −C dv_o/dt
    • v_o = −(1/RC)∫v_i dt; square in, triangle out
    • resistor across C limits drift; DAC and analog computer uses
  4. Explain the working of an op-amp comparator and a Schmitt trigger. What is hysteresis and why is it useful?

    Show answer points
    • open loop: output ±V_sat depending on sign of v₊ − v₋
    • zero-crossing detector, sine to square
    • Schmitt: positive feedback via R₁, R₂ to non-inverting input
    • thresholds ±R₁V_sat/(R₁ + R₂)
    • hysteresis V_UT − V_LT prevents chatter from noise
  5. Define common-mode rejection ratio and slew rate of an op-amp. An op-amp with slew rate 0.5 V μs⁻¹ is to give a sinusoidal output of 10 V peak. Find the maximum frequency without distortion.

    Show answer points
    • v_o = A_d v_d + A_c v_c; v_c = (v₊ + v₋)/2
    • CMRR = A_d/A_c, in dB 20 log; ~90 dB for 741; rejects hum
    • SR = maximum dv_o/dt
    • sine slope max 2πfV_m ≤ SR
    • f_max = 0.5 × 10⁶/(2π × 10) ≈ 8 kHz

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

More in this module: Devices and electronics

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU PHE-10 Electrical Circuits and Electronics: Operational amplifiers and applications
  2. NPTEL Analog Electronic Circuits (IIT): Operational amplifiers