Understanding Operational Amplifiers
An operational amplifier is a high-gain voltage amplifier with two input terminals and a single output. The inverting input (−) and non-inverting input (+) allow the op-amp to process differential signals—it amplifies the voltage difference between them. Practical op-amps have extremely high input impedance (the inputs draw almost no current) and very low output impedance, making them ideal building blocks for precision circuits.
Op-amps require external resistors or capacitors to set their behavior through feedback networks. Without feedback, an op-amp saturates instantly because internal gain is enormous. Negative feedback—routing a fraction of the output back to the inverting input—stabilizes the circuit and allows you to control gain precisely using simple resistor ratios.
Common applications include signal amplification, filtering, integration, differentiation, and converting between voltage and current domains. They appear in audio preamps, sensor interfaces, active filters, and instrumentation.
Voltage Gain Formulas
The gain of an op-amp circuit depends on its configuration. For an inverting amplifier, you set gain using two resistors: the input resistor and the feedback resistor. For a non-inverting amplifier, the formula includes an additional unity-gain term.
Inverting gain: Av = −Rf / Rin
Non-inverting gain: Av = 1 + (Rf / Rin)
R<sub>f</sub>— Feedback resistance in ohmsR<sub>in</sub>— Input resistance in ohmsA<sub>v</sub>— Voltage gain (dimensionless ratio)
Inverting vs. Non-Inverting Configurations
Inverting amplifier: The input signal connects to the inverting terminal through an input resistor. The non-inverting terminal ties to ground. Gain magnitude equals the ratio of feedback resistance to input resistance, but the output is inverted (180° phase shift). If you apply a +1 V input with Rf = 10 kΩ and Rin = 1 kΩ, you get a −10 V output.
Non-inverting amplifier: The input signal connects directly to the non-inverting terminal. The inverting terminal receives part of the output through a voltage divider. The output is in-phase with the input. The same 1 kΩ and 10 kΩ resistors yield a gain of 11 (output: +11 V for a +1 V input). This configuration also presents higher input impedance to the source.
Choose inverting when you need phase reversal or when the input source can tolerate the low input impedance. Choose non-inverting when input impedance matters or when you need positive gain.
Real-World Op-Amp Behavior
Ideal op-amps have infinite input impedance, zero output impedance, infinite gain, and flat frequency response to infinity. Real devices fall short. Input offset voltage (typically 1–10 mV) causes output errors even with zero input. Finite bandwidth limits the maximum frequency at which the op-amp can maintain specified gain—crossing the gain-bandwidth product boundary causes gain to roll off.
Temperature changes cause thermal drift: gain, bias currents, and offset voltage all shift. A 1°C rise might change gain by 0.1%. Power supply rejection ratio (PSRR) determines how much supply-voltage noise couples to the output. Choose an op-amp with low offset voltage, adequate bandwidth, and low thermal drift if your application demands precision, such as sensor conditioning or audio.
Practical Gain-Design Tips
Selecting resistor values and op-amps requires attention to several practical constraints.
- Resistor tolerance and accuracy — Standard 5% resistors introduce gain errors. For precision circuits, use 1% metal-film resistors. If you need gain of exactly 10, use 1% parts: e.g., 10 kΩ and 1 kΩ resistors from a matched pair to minimize mismatch error.
- Frequency response limits — Gain extends only within the bandwidth. A ±15 V op-amp with 1 MHz gain-bandwidth product and gain of 10 maintains that gain only up to 100 kHz. Beyond that, gain rolls off at −20 dB/decade. Choose an op-amp with sufficient gain-bandwidth product for your signal frequency.
- Input impedance considerations — Inverting amplifiers present low input impedance (approximately equal to R<sub>in</sub>) because the inverting node is a virtual ground. High-impedance sources see significant loading. Non-inverting amplifiers present input impedance in the megaohm range and suit high-impedance sensor outputs better.
- Stability and compensation — Adding a small capacitor across R<sub>f</sub> (typically 1–100 pF) compensates for parasitic reactances and prevents oscillation at high gains. This capacitor rolls off high-frequency noise and stabilizes the feedback loop.