Operational Amplifiers

The op-amp is one of the most useful ICs in analog electronics. A single chip gives you a high-gain differential amplifier that, with a few resistors and capacitors, becomes a precision amplifier, active filter, integrator, comparator, signal conditioner, or oscillator. It's the Swiss Army knife of analog design — understanding op-amp circuits means being able to build almost any linear analog function from scratch.

The Ideal Op-Amp

PropertyIdeal valueTypical real valueImpact of non-ideality
Open-loop voltage gain (A_OL)Infinite10,000–1,000,000Negligible with negative feedback
Input impedanceInfinite10 MΩ – 10 TΩ (FET input)Loads the signal source slightly
Output impedanceZero10–100 Ω open-loop; ~mΩ with feedbackLimits drive capability
BandwidthInfinite1 MHz – 1 GHz (gain-dependent)Gain falls at high frequency
Input offset voltage (Vos)Zero0.1–10 mVDC error at output = Vos × gain
Input bias currentZero1 pA – 1 µAVoltage error across source impedance
CMRRInfinite60–120 dBCommon-mode signals leak through

The Golden Rules (for negative feedback circuits)

1. The output does whatever it must to make V+ = V−  (virtual short)
2. No current flows into either input                 (infinite Zin)

Apply these two rules to any op-amp circuit in negative feedback and you can derive the gain without knowing anything else about the part.

Negative feedback in inverting and non-inverting op-amp circuits Side-by-side op-amp schematics show an inverting amplifier feeding the signal through Rin to the minus input and a non-inverting amplifier feeding the signal directly to the plus input. Both return part of the output through Rf as negative feedback. Inverting Gain = −Rf / Rin + Rin Vin Vout Rf Output polarity flips Non-inverting Gain = 1 + Rf / Rg + Vin Vout Rf Rg Output stays in phase Negative feedback drives V− toward V+ in both circuits
Negative feedback makes the op-amp adjust its output until its two inputs are nearly equal. The inverting circuit applies the signal through Rin and reverses its polarity; the non-inverting circuit applies the signal to the high-impedance + input and preserves polarity.

Common Circuit Configurations

Inverting Amplifier

Inverting Amplifier An op-amp with input signal Vin connected through resistor R_in to the inverting input, feedback resistor R_f from output to inverting input, and non-inverting input grounded. + Vin R_in R_f Vout
Inverting op-amp amplifier: Vin passes through R_in to the − input, while R_f feeds the output back; the grounded + input makes the output invert the input signal.
Gain = −R_f / R_in    (negative = phase inverted)

R_in=10kΩ, R_f=100kΩ → Gain = −10
1V in → −10V out

Input impedance = R_in

Non-Inverting Amplifier

Non-Inverting Amplifier An op-amp with Vin at the non-inverting input. A voltage divider formed by R_f and R_g connects the output to the inverting input. + Vin R_f R_g Vout
Non-inverting op-amp amplifier: Vin drives the + input and the R_f–R_g divider feeds the output to the − input, producing an in-phase amplified output.
Gain = 1 + R_f / R_g    (positive = same phase)

R_f=9kΩ, R_g=1kΩ → Gain = 10
1V in → +10V out

Input impedance ≈ infinite (looking into + terminal)

Voltage Follower (Unity-Gain Buffer)

Voltage Follower An op-amp with Vin at the non-inverting input, and a direct wire connecting the output to the inverting input. + Vin Vout
Voltage follower: direct output-to-inverting-input feedback makes Vout follow Vin at unity gain while providing current drive.
Gain = 1

The output follows the input exactly in voltage but provides current drive. The critical use: isolating a high-impedance source from a low-impedance load without loading the source. The sensor output doesn't care what's downstream.

Summing Amplifier (Mixer)

Summing Amplifier An op-amp with three inputs V1, V2, V3 connected through resistors R1, R2, R3 respectively to the inverting input. A feedback resistor R_f connects the output to the inverting input. + V1 R1 V2 R2 V3 R3 R_f Vout
Summing amplifier: three input voltages feed the inverting input through R1, R2, and R3, and R_f produces their weighted, inverted sum at the output.
Vout = −R_f × (V1/R1 + V2/R2 + V3/R3)

If R1=R2=R3=R_f:  Vout = −(V1 + V2 + V3)

A simple audio mixer. Each input is independent (virtual ground at −). Adding more input resistors doesn't change the others' gain.

Difference Amplifier (Subtractor)

Difference Amplifier An op-amp with V1 connected through R1 to the inverting input, V2 connected through R2 to the non-inverting input. Feedback R_f is across the op-amp, and R_g grounds the non-inverting input. + V1 R1 V2 R2 R_f R_g Vout
Difference amplifier: resistor networks apply V1 and V2 to opposite op-amp inputs so the output amplifies their voltage difference.
If R1=R2=R, R_f=R_g:  Vout = (R_f/R) × (V2 − V1)

Amplifies the difference between two signals, rejecting common-mode voltage (CMRR). The basis of instrumentation amplifiers for sensor signals.

Integrator

Integrator Amplifier An op-amp with input Vin through resistor R, and feedback capacitor C from output to inverting input. + Vin R C Vout
Op-amp integrator: an input resistor and feedback capacitor make the output the inverted time integral of Vin.
Vout = −(1/RC) × ∫Vin dt

Output is the running integral of the input. A square wave in produces a triangle wave out. Used in PID controllers, waveform generators, ADCs, and signal processing. Without a reset switch across C or high-value parallel resistor, DC drift causes the output to rail.

Differentiator

Differentiator Amplifier An op-amp with input Vin through capacitor C, and feedback resistor R_f from output to inverting input. + Vin C R_f Vout
Op-amp differentiator: an input capacitor and feedback resistor make the output proportional to the inverted rate of change of Vin.
Vout = −R_f × C × dVin/dt

Output proportional to rate of change. Edge detector — a sudden step produces a spike at the output. Sensitive to noise (noise is fast = high derivative); usually needs an input resistor to limit high-frequency gain.

Comparator (Open-Loop)

Open-Loop Comparator An op-amp with no feedback. V_ref to the inverting input and Vin to the non-inverting input. + V_ref Vin Vout (rail-to-rail)
Open-loop comparator: Vin at the + input is compared with V_ref at the − input, driving Vout to a supply rail according to which voltage is higher.

No feedback. Output slams to +rail or −rail depending on which input is higher.

Use a dedicated comparator IC (LM393, LM339, TLV1801) instead of an op-amp for this — comparators have faster response, open-collector outputs, and are designed not to latch. An op-amp used as a comparator often has slow response and can oscillate in the transition region.

Common Op-Amp ICs

PartSupplyGBWVosNotes
LM741±15V1 MHz1–6 mVHistoric, teaching only — poor in modern designs. High offset, limited bandwidth.
LM3583–32V single1 MHz3 mVSingle-supply, two channels. Cheap and everywhere. Slow, limited rail-to-rail.
TL071 / TL081±15V3 MHz3 mVJFET input — high input impedance, low bias current. Audio, general analog.
NE5532±5 to ±15V10 MHz0.5 mVLow noise, high drive current. The studio audio standard.
OPA2134±2.5 to ±18V8 MHz0.05 mVLow distortion, JFET input. Hi-fi audio.
AD8620±2.3 to ±16.5V25 MHz0.025 mVPrecision FET, very low noise and offset.
MCP60021.8–6V single1 MHz3 mVRail-to-rail, microcontroller compatible. Microchip's workhorse for 3.3V/5V systems.
LMV3212.7–5V single1 MHz7 mVSingle-supply, tiny packages. Sensor conditioning near microcontrollers.

Gain-Bandwidth Product

GBW = open-loop gain × frequency  (constant for a given op-amp)

A_v_max at frequency f:  A_v = GBW / f

Example: TL071 GBW = 3 MHz
  At f=30 kHz: max gain = 3,000,000 / 30,000 = 100
  At f=300 kHz: max gain = 10
  At f=3 MHz: max gain = 1

Always check: GBW / desired_gain  >  highest signal frequency + margin

Single-Supply Operation

Many op-amps require dual supplies (±12V, ±15V). For single-supply operation (5V or 3.3V), use a rail-to-rail op-amp and create a virtual ground at V_supply/2 for the signal reference:

Single-Supply Virtual Ground A voltage divider using R1 and R2 across V_supply and ground, providing V_ref at the midpoint. V_supply R1 V_ref (= V_supply/2) R2
Single-supply virtual ground: equal divider resistors R1 and R2 create V_ref at half the supply voltage for biasing analog signals.
Buffer V_ref with a voltage follower to provide low impedance.
AC-couple the input and output with capacitors to block DC bias.

References