Stereos

What Is an Operational Amplifier and How Does It Work?

· 8 min read · Home Stereo

In this article
  1. Background and History
  2. How an Op-Amp Works Internally
  3. Negative Feedback and the Golden Rules
  4. Common Op-Amp Circuits and Applications
  5. Choosing an Op-Amp: Key Parameters
  6. Common Problems and How to Avoid Them
  7. Safety and Practical Handling
  8. Frequently Asked Questions

An operational amplifier (op-amp) is a high-gain voltage amplifier with two inputs (inverting and non-inverting) and one output. It amplifies the voltage difference between its inputs by a very large factor (typically 100,000 to 1,000,000 times). In practice, it is almost always used with negative feedback—a resistor network that feeds part of the output back to the inverting input—which trades that enormous gain for predictable, stable behavior. The op-amp is the building block of analog electronics: it can add, subtract, integrate, differentiate, filter, compare, and buffer signals. Its name comes from "operational" because early analog computers used it to perform mathematical operations.

Background and History

The operational amplifier was first developed in the 1940s for use in analog computers, which solved differential equations for military and engineering applications. The original designs used vacuum tubes and were large, power-hungry, and expensive. The first integrated-circuit op-amp, the μA702, appeared in the 1960s, but it was the μA741 (introduced in 1968) that made op-amps cheap, reliable, and easy to use. The 741's internal compensation capacitor meant it would not oscillate even without external frequency compensation, and its dual-supply operation (±15 V was typical) became the standard for decades. Today, op-amps are manufactured in surface-mount packages smaller than a grain of rice, but the fundamental symbol—a triangle with two inputs and one output—has not changed.

How an Op-Amp Works Internally

Inside an op-amp is a differential input stage, a gain stage, and an output stage. The differential stage uses a pair of matched transistors to measure the voltage difference between the two inputs. This difference is called the differential input voltage (Vid). The output stage provides low output impedance so the op-amp can drive external loads without significant voltage drop.

Key internal parameters that define real op-amps:

  • Open-loop gain (AOL): The gain with no feedback. It is very high but not infinite, and it drops with frequency.
  • Input impedance: The resistance seen by the inputs. Ideally infinite; real op-amps have values from 1 MΩ to 1012 Ω (for FET-input types).
  • Output impedance: Ideally zero; real values are a few ohms to tens of ohms.
  • Input offset voltage (Vos): The small voltage that must be applied between the inputs to make the output zero. Typically a few millivolts.
  • Input bias current: The tiny current flowing into the inputs (microamps for bipolar, picoamps for FET).

When the op-amp is used without feedback, even a tiny input difference will drive the output to one of the supply rails—this is the open-loop mode, used only for comparators. With negative feedback, the output adjusts itself so that the two inputs are nearly equal (virtual short). This is the basis of all linear op-amp circuits.

Negative Feedback and the Golden Rules

Negative feedback is the key to making op-amps useful. The two "golden rules" for analyzing ideal op-amp circuits:

  1. No current flows into the inputs (infinite input impedance).
  2. The voltage at the inverting input equals the voltage at the non-inverting input (the virtual short, which holds when negative feedback is present).

These rules let you solve any op-amp circuit with simple algebra. For example, in a non-inverting amplifier (input to +, feedback from output to − via a resistor divider), the gain is 1 + Rf/Rg. In an inverting amplifier (input to − via a resistor, feedback to −), the gain is −Rf/Rin. The negative sign means the output is inverted relative to the input.

Why does feedback work? The op-amp's high gain forces the output to whatever value makes the two inputs equal. If the output is too high, the feedback reduces the voltage at the inverting input, which reduces the output. The loop settles at the point where the inputs are balanced. This is what makes the gain depend only on the external resistors, not on the op-amp's own (poorly controlled) open-loop gain.

Common Op-Amp Circuits and Applications

Op-amps appear in nearly every analog signal chain. Some of the most common configurations:

  • Voltage follower (buffer): Output is connected directly to the inverting input. Gain is 1, but the buffer provides high input impedance and low output impedance, isolating a sensitive source from a heavy load.
  • Inverting amplifier: Gain = −Rf/Rin. Used for scaling and polarity inversion.
  • Non-inverting amplifier: Gain = 1 + Rf/Rg. Used for amplification without inversion.
  • Differential amplifier: Uses both inputs to subtract two signals, rejecting common-mode noise (e.g., in instrumentation).
  • Integrator: A capacitor in the feedback path. Output is the time integral of the input. Used in analog computers and signal shaping.
  • Differentiator: A capacitor at the input. Output is the derivative of the input (less common due to noise amplification).
  • Active filter: Combines op-amps with resistors and capacitors to create low-pass, high-pass, band-pass, or notch filters with sharper cutoff than passive RC filters.
  • Comparator: Operates open-loop; output saturates to one rail or the other depending on which input is higher. Used in zero-crossing detectors and analog-to-digital conversion front ends.

In audio equipment, op-amps are used in preamplifiers, equalizers, and headphone amplifiers. In sensor interfaces, they condition signals from thermocouples, strain gauges, and photodiodes. In motor control, they sense current and provide feedback to the controller.

Choosing an Op-Amp: Key Parameters

Not all op-amps are the same. When selecting one for a project, consider these specifications:

  • Supply voltage: Some op-amps work with a single supply (e.g., 3.3 V or 5 V), others need dual supplies (+/−15 V). Check the datasheet's absolute maximum ratings.
  • Bandwidth: The gain-bandwidth product (GBW) tells you the frequency at which the open-loop gain drops to 1. For a gain of 10, the usable bandwidth is GBW/10.
  • Slew rate: How fast the output voltage can change (V/µs). Too low a slew rate distorts high-frequency, large-amplitude signals.
  • Input offset voltage and drift: For precision DC measurement, a low offset (e.g., <50 µV) and low drift are essential. Chopper-stabilized op-amps have near-zero offset.
  • Input bias current: For high-impedance sources (e.g., pH sensors), choose an op-amp with FET inputs (bias currents in picoamps).
  • Output swing: Many op-amps cannot drive the output all the way to the supply rails. "Rail-to-rail" output types can.
  • Noise: For low-level signals, look at the voltage noise density (nV/√Hz). Lower is better.

For most hobby and educational projects, a general-purpose op-amp like the LM358 (dual, single-supply) or TL072 (FET input, low noise) is sufficient. For precision applications, use an op-amp specifically designed for that purpose, not a general-purpose part.

Common Problems and How to Avoid Them

Op-amp circuits are easy to design but can fail in subtle ways. Here are the most frequent issues:

  • Oscillation: If the output rings or oscillates at high frequency, the layout may have too much parasitic capacitance, or the op-amp may be unstable with the chosen feedback network. Use short leads, a ground plane, and add a small capacitor (e.g., 10–100 pF) across the feedback resistor if needed.
  • Output saturation: If the output hits the supply rail, the op-amp is no longer in linear operation. Check that the input signal and gain do not exceed the output swing range.
  • Input offset error: In DC circuits, a few millivolts of offset can be significant. Use a trimmer or choose a low-offset op-amp.
  • Power supply decoupling: Always place a 0.1 µF ceramic capacitor from each supply pin to ground, close to the op-amp. Without it, high-frequency noise can cause instability.
  • Exceeding common-mode input range: If the input voltage goes outside the allowed common-mode range (often not the full supply range), the op-amp will not function correctly. Check the datasheet.

Safety and Practical Handling

Op-amps themselves are low-voltage devices, but the circuits they are in may not be. If you are working with mains-powered equipment (e.g., an audio amplifier that uses an op-amp in its preamp stage), always unplug the equipment before opening it. Do not open any amplifier or tube gear that contains high voltage inside—capacitors can hold lethal charges even after unplugging. If you are not trained to work with high voltages, leave the repair to a professional.

For prototyping with op-amps on a breadboard, use a regulated bench supply (e.g., 5 V or ±12 V) and never exceed the absolute maximum supply voltage listed in the datasheet. Double-check pinouts before inserting the IC; reverse polarity can destroy it instantly. Electrostatic discharge (ESD) can damage CMOS-input op-amps, so use an ESD-safe workstation or at least touch a grounded metal object before handling them.

Frequently Asked Questions

What is the difference between an op-amp and a comparator?

An op-amp is designed for linear amplification with negative feedback, while a comparator is designed to operate open-loop and produce a digital high or low output. Many op-amps can be used as comparators, but they are slower and may behave unpredictably due to internal compensation. Comparators are optimized for speed and have output stages that interface directly with logic.

Can an op-amp work with a single supply?

Yes, but the inputs and output must be biased to a reference voltage (usually half the supply voltage) because the output cannot go below the negative rail (ground). Many modern op-amps are designed for single-supply operation and have rail-to-rail output stages. For example, the LM358 operates from a single 3 V to 32 V supply.

Why is the open-loop gain so high?

The high open-loop gain (typically 100 dB or more) is what makes negative feedback work. The gain is intentionally huge so that the output can be driven to any value within the supply rails with only a tiny input difference. With feedback, the circuit's gain is set by external resistors, not by the op-amp's internal gain, which varies with temperature and manufacturing.

What does "rail-to-rail" mean?

It means the output voltage can swing very close to the positive and negative supply rails. Standard op-amps may only swing to within 1–2 V of the rails. Rail-to-rail output op-amps are useful in low-voltage single-supply circuits where every millivolt of headroom matters.

How do I choose the right op-amp for a simple audio preamp?

For a basic audio preamp, look for an op-amp with low noise (e.g., <10 nV/√Hz), a gain-bandwidth product of at least 1 MHz, and a slew rate above 2 V/µs. The TL072 or NE5532 are common choices. For low-power battery devices, consider a CMOS op-amp like the MCP6002. Always check the supply voltage range to match your circuit.