This article illustrates some typical operational amplifier applications. Operational amplifiers are optimised for use with
negative feedback
Negative feedback (or balancing feedback) occurs when some function (Mathematics), function of the output of a system, process, or mechanism is feedback, fed back in a manner that tends to reduce the fluctuations in the output, whether caused ...
, and this article discusses only negative-feedback applications. When positive feedback is required, a
comparator is usually more appropriate. See
Comparator applications for further information.
Practical considerations

In this article, a simplified schematic notation is used that ignores details such as device selection and power supply connections. Non-ideal properties (such as those shown in Fig. 1) are ignored.
Operational amplifiers parameter requirements
In order for a particular device to be used in an application, it must satisfy certain requirements. The operational amplifier must
* have large open-loop signal gain (voltage gain of 200,000 is obtained in early integrated circuit exemplars), and
* have input impedance large with respect to values present in the feedback network.
With these requirements satisfied, one can use the method of
virtual ground to quickly and intuitively grasp the behavior of the op-amp circuits.
Component specification
Resistors used in practical solid-state op-amp circuits are typically in the kΩ range. Resistors much greater than 1 MΩ cause excessive
thermal noise
A thermal column (or thermal) is a rising mass of buoyant air, a convective current in the atmosphere, that transfers heat energy vertically. Thermals are created by the uneven heating of Earth's surface from solar radiation, and are an example ...
and make the circuit operation susceptible to significant errors due to bias or leakage currents.
Input bias currents and input offset
Practical operational amplifiers draw a small current from each of their inputs due to bias requirements (in the case of bipolar junction transistor-based inputs) or leakage (in the case of MOSFET-based inputs).
These currents flow through the resistances connected to the inputs and produce small voltage drops across those resistances. Appropriate design of the feedback network can alleviate problems associated with input bias currents and common-mode gain, as explained below. The heuristic rule is to ensure that the impedance "looking out" of each input terminal is identical.
To the extent that the input bias currents do not match, there will be an effective
input offset voltage present, which can lead to problems in circuit performance. Many commercial op-amp offerings provide a method for tuning the operational amplifier to balance the inputs (e.g., "offset null" or "balance" pins that can interact with an external voltage source attached to a potentiometer). Alternatively, a tunable external voltage can be added to one of the inputs in order to balance out the offset effect. In cases where a design calls for one input to be short-circuited to ground, that short circuit can be replaced with a variable resistance that can be tuned to mitigate the offset problem.
Operational amplifiers using
MOSFET
upright=1.3, Two power MOSFETs in amperes">A in the ''on'' state, dissipating up to about 100 watt">W and controlling a load of over 2000 W. A matchstick is pictured for scale.
In electronics, the metal–oxide–semiconductor field- ...
-based input stages have input leakage currents that will be, in many designs, negligible.
Power supply effects
Although power supplies are not indicated in the (simplified) operational amplifier designs below, they are nonetheless present and can be critical in operational amplifier circuit design.
Supply noise
Power supply imperfections (e.g., power signal ripple, non-zero source impedance) may lead to noticeable deviations from ideal operational amplifier behavior. For example, operational amplifiers have a specified
power supply rejection ratio that indicates how well the output can reject signals that appear on the power supply inputs. Power supply inputs are often noisy in large designs because the power supply is used by nearly every component in the design, and inductance effects prevent current from being instantaneously delivered to every component at once. As a consequence, when a component requires large injections of current (e.g., a digital component that is frequently switching from one state to another), nearby components can experience sagging at their connection to the power supply. This problem can be mitigated with appropriate use of
bypass capacitors connected across each power supply pin and ground. When bursts of current are required by a component, the component can ''bypass'' the power supply by receiving the current directly from the nearby capacitor (which is then slowly recharged by the power supply).
Using power supply currents in the signal path
Additionally, current drawn into the operational amplifier from the power supply can be used as inputs to external circuitry that augment the capabilities of the operational amplifier. For example, an operational amplifier may not be fit for a particular high-gain application because its output would be required to generate signals outside of the safe range generated by the amplifier. In this case, an external
push–pull amplifier can be controlled by the current into and out of the operational amplifier. Thus, the operational amplifier may itself operate within its factory specified bounds while still allowing the negative feedback path to include a large output signal well outside of those bounds.
Amplifiers
The first example is the differential amplifier, from which many of the other applications can be derived, including the
inverting,
non-inverting, and
summing amplifier, the
voltage follower,
integrator
An integrator in measurement and control applications is an element whose output signal is the time integral of its input signal. It accumulates the input quantity over a defined time to produce a representative output.
Integration is an importan ...
,
differentiator, and
gyrator.
Differential amplifier (difference amplifier)

Amplifies the difference in voltage between its inputs.
:The name "differential amplifier" must not be confused with the "
differentiator", which is also shown on this page.
:The "
instrumentation amplifier", which is also shown on this page, is a modification of the differential amplifier that also provides high
input impedance.
The circuit shown computes the
difference of two voltages, multiplied by some gain factor. The output voltage
:
Or, expressed as a function of the common-mode input ''V''
com and difference input ''V''
dif:
:
the output voltage is
:
In order for this circuit to produce a signal proportional to the voltage difference of the input terminals, the coefficient of the ''V''
com term (the common-mode gain) must be zero, or
:
With this constraint
[If you think of the left-hand side of the relation as the closed-loop gain of the inverting input, and the right-hand side as the gain of the non-inverting input, then matching these two quantities provides an output insensitive to the common-mode voltage of and .] in place, the
common-mode rejection ratio
In electronics, the common mode rejection ratio (CMRR) of a differential amplifier (or other device) is a metric used to quantify the ability of the device to reject common-mode signals, i.e. those that appear simultaneously and in-phase on both ...
of this circuit is infinitely large, and the output
:
where the simple expression ''R''
''f'' / ''R''
1 represents the closed-loop gain of the differential amplifier.
The special case when the closed-loop gain is unity is a differential follower, with
:
Inverting amplifier

An inverting amplifier is a special case of the
differential amplifier
A differential amplifier is a type of electronic amplifier that amplifies the difference between two input voltages but suppresses any voltage common to the two inputs. It is an analog circuit with two inputs V_\text^- and V_\text^+ and one outp ...
in which that circuit's non-inverting input ''V''
2 is grounded, and inverting input ''V''
1 is identified with ''V''
in above. The closed-loop gain is ''R''
f / ''R''
in, hence
:
.
The simplified circuit above is like the differential amplifier in the limit of ''R''
2 and ''R''
g very small. In this case, though, the circuit will be susceptible to input bias current drift because of the mismatch between ''R''
f and ''R''
in.
To intuitively see the gain equation above, calculate the current in ''R''
in:
:
then recall that this same current must be passing through ''R''
f, therefore (because ''V''
− = ''V''
+ = 0):
:
A mechanical analogy is a seesaw, with the ''V''
− node (between ''R''
in and ''R''
f) as the fulcrum, at ground potential. ''V''
in is at a length ''R''
in from the fulcrum; ''V''
out is at a length ''R''
f. When ''V''
in descends "below ground", the output ''V''
out rises proportionately to balance the seesaw, and ''vice versa''.
As the negative input of the op-amp acts as a virtual ground, the input impedance of this circuit is equal to ''R''
in.
Non-inverting amplifier

A non-inverting amplifier is a special case of the
differential amplifier
A differential amplifier is a type of electronic amplifier that amplifies the difference between two input voltages but suppresses any voltage common to the two inputs. It is an analog circuit with two inputs V_\text^- and V_\text^+ and one outp ...
in which that circuit's inverting input ''V''
1 is grounded, and non-inverting input ''V''
2 is identified with ''V''
in above, with ''R''
1 ≫ ''R''
2.
Referring to the circuit immediately above,
:
.
To intuitively see this gain equation, use the virtual ground technique to calculate the current in resistor ''R''
1:
:
then recall that this same current must be passing through ''R''
2, therefore:
:
Unlike the inverting amplifier, a non-inverting amplifier cannot have a gain of less than 1.
A mechanical analogy is a
class-2 lever, with one terminal of ''R''
1 as the fulcrum, at ground potential. ''V''
in is at a length ''R''
1 from the fulcrum; ''V''
out is at a length ''R''
2 further along. When ''V''
in ascends "above ground", the output ''V''
out rises proportionately with the lever.
The input impedance of the simplified non-inverting amplifier is high:
:
where ''Z''
dif is the op-amp's input impedance to differential signals, and ''A''
OL is the open-loop voltage gain of the op-amp (which varies with frequency), and ''B'' is the
feedback factor (the fraction of the output signal that returns to the input).
In the case of the ideal op-amp, with ''A''
OL infinite and ''Z''
dif infinite, the input impedance is also infinite. In this case, though, the circuit will be susceptible to input bias current drift because of the mismatch between the impedances driving the ''V''
+ and ''V''
− op-amp inputs.
The feedback loop similarly decreases the output impedance:
:
where ''Z''
out is the output impedance with feedback, and ''Z''
OL is the open-loop output impedance.
Voltage follower (unity buffer amplifier)

Used as a
buffer amplifier to eliminate loading effects (e.g., connecting a device with a high
source impedance to a device with a low
input impedance).
:
:
(realistically, the differential input impedance of the op-amp itself (1 MΩ to 1 TΩ), multiplied by the open-loop gain of the op-amp)
Due to the strong (i.e.,
unity gain) feedback and certain non-ideal characteristics of real operational amplifiers, this feedback system is prone to have poor
stability margins. Consequently, the system may be
unstable
In dynamical systems instability means that some of the outputs or internal state (controls), states increase with time, without bounds. Not all systems that are not Stability theory, stable are unstable; systems can also be marginal stability ...
when connected to sufficiently capacitive loads. In these cases, a
lag compensation
In computers, lag is delay (Latency (engineering), latency) between the action of the User (computing), user (input) and the reaction of the Server (computing), server supporting the Task (computing), task, which has to be sent back to the Client ...
network (e.g., connecting the load to the voltage follower through a resistor) can be used to restore stability. The manufacturer
data sheet for the operational amplifier may provide guidance for the selection of components in external compensation networks. Alternatively, another operational amplifier can be chosen that has more appropriate internal compensation.
The input and output impedance are affected by the feedback loop in the same way as the non-inverting amplifier, with ''B''=1.
Summing amplifier

A summing amplifier produces the negative of the sum of several (weighted) voltages:
:
* When
, and
independent
:
* When
:
* Input impedance of the ''n''th input is
(
is a
virtual ground)
Instrumentation amplifier

Combines very high
input impedance, high
common-mode rejection, low
DC offset, and other properties used in making very accurate, low-noise measurements
* Is made by adding a
non-inverting buffer to each input of the
differential amplifier
A differential amplifier is a type of electronic amplifier that amplifies the difference between two input voltages but suppresses any voltage common to the two inputs. It is an analog circuit with two inputs V_\text^- and V_\text^+ and one outp ...
to increase the input impedance.
Oscillators
Wien bridge oscillator

Produces a very low distortion
sine wave
A sine wave, sinusoidal wave, or sinusoid (symbol: ∿) is a periodic function, periodic wave whose waveform (shape) is the trigonometric function, trigonometric sine, sine function. In mechanics, as a linear motion over time, this is ''simple ...
. Uses negative temperature compensation in the form of a light bulb or diode.
Filters
Operational amplifiers can be used in construction of
active filters, providing high-pass, low-pass, band-pass, reject and delay functions. The high input impedance and gain of an op-amp allow straightforward calculation of element values, allowing accurate implementation of any desired filter topology with little concern for the loading effects of stages in the filter or of subsequent stages. However, the frequencies at which active filters can be implemented is limited; when the behavior of the amplifiers departs significantly from the ideal behavior assumed in elementary design of the filters, filter performance is degraded.
Comparator

An operational amplifier can, if necessary, be forced to act as a comparator. The smallest difference between the input voltages will be amplified enormously, causing the output to swing to nearly the supply voltage. However, it is usually better to use a dedicated comparator for this purpose, as its output has a higher slew rate and can reach either power supply rail. Some op-amps have clamping diodes on the input that prevent use as a comparator.
Integration and differentiation
Inverting integrator
The integrator is mostly used in
analog computer
An analog computer or analogue computer is a type of computation machine (computer) that uses physical phenomena such as Electrical network, electrical, Mechanics, mechanical, or Hydraulics, hydraulic quantities behaving according to the math ...
s,
analog-to-digital converter
In electronics, an analog-to-digital converter (ADC, A/D, or A-to-D) is a system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a Digital signal (signal processing), digi ...
s and wave-shaping circuits. A simple version is:

Assuming ideal elements, it
integrates the input signal (multiplied by
) over a time interval from ''t''
0 to ''t''
1, yielding an output voltage at time ''t'' = ''t''
1 of:
:
where ''V''
out(''t''
0) is the capacitor's initial voltage at time ''t'' = ''t''
0. In other words, the circuit's output voltage changes over the time interval by an amount proportional to the time integral of the input voltage:
:
This circuit can be viewed as an active
low-pass
A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filt ...
electronic filter
Electronic filters are a type of signal processing filter in the form of electrical circuits. This article covers those filters consisting of lumped-element model, lumped electronic components, as opposed to distributed-element filters. That ...
with a single
pole at DC (i.e., where
).
Its practicality is limited by a significant problem: unless the capacitor is periodically discharged, the output voltage will eventually drift outside of the operational amplifier's operating range. This can be due to any combination of:
* a non-zero
DC component
In signal processing, when describing a periodic function in the time domain, the DC bias, DC component, DC offset, or DC coefficient is the mean value of the waveform. A waveform with zero mean or no DC bias is known as a ''DC balanced'' or ''DC ...
in the input ''V''
in,
* a non-zero opamp input bias current,
* a non-zero opamp input offset voltage.
The following slightly more complex circuit can ameliorate the second two problems, and in some cases, the first as well, but has a limited bandwidth of integration:

Here, the feedback resistor R
f provides a discharge path for capacitor C
f. The series resistor R
n at the non-inverting input alleviates input bias current and common-mode problems, provided it is set to the parallel resistance of R
i , , R
f:
:
explains the output drift adds a small finite DC error voltage:
:
Because the circuit is a first-order low-pass filter with a flat response up to its cutoff frequency
, it only functions as an integrator for frequencies significantly higher than that cutoff.
Inverting differentiator

Assuming ideal elements, this circuit
differentiates the signal (multiplied by
) over time:
:
where
and
are functions of time.
The transfer function of the inverting differentiator has a single
zero
0 (zero) is a number representing an empty quantity. Adding (or subtracting) 0 to any number leaves that number unchanged; in mathematical terminology, 0 is the additive identity of the integers, rational numbers, real numbers, and compl ...
in the origin (i.e., where
angular frequency
In physics, angular frequency (symbol ''ω''), also called angular speed and angular rate, is a scalar measure of the angle rate (the angle per unit time) or the temporal rate of change of the phase argument of a sinusoidal waveform or sine ...
). The high-pass characteristics of a differentiating amplifier can lead to stability challenges when the circuit is used in an analog servo loop (e.g., in a
PID controller with a significant derivative gain). In particular, as a
root locus analysis would show, increasing feedback gain will drive a closed-loop pole toward marginal stability at the DC zero introduced by the differentiator.
Synthetic elements
Inductance gyrator

Simulates an
inductor
An inductor, also called a coil, choke, or reactor, is a Passivity (engineering), passive two-terminal electronic component, electrical component that stores energy in a magnetic field when an electric current flows through it. An inductor typic ...
(i.e., provides
inductance
Inductance is the tendency of an electrical conductor to oppose a change in the electric current flowing through it. The electric current produces a magnetic field around the conductor. The magnetic field strength depends on the magnitude of the ...
without the use of a possibly costly inductor). The circuit exploits the fact that the current flowing through a capacitor behaves through time as the voltage across an inductor. The capacitor used in this circuit is geometrically smaller than the inductor it simulates, and its capacitance is less subject to changes in value due to environmental changes. Applications where this circuit may be superior to a physical inductor are simulating a variable inductance or simulating a very large inductance.
This circuit is of limited use in applications relying on the
back EMF property of an inductor, as this effect will be limited in a gyrator circuit to the voltage supplies of the op-amp.
Negative impedance converter (NIC)

Creates a
resistor
A resistor is a passive two-terminal electronic component that implements electrical resistance as a circuit element. In electronic circuits, resistors are used to reduce current flow, adjust signal levels, to divide voltages, bias active e ...
having a negative value for any signal generator.
In this case, the ratio between the input voltage and the input current (thus the input resistance) is given by
:
In general, the components
,
, and
need not be resistors; they can be any component that can be described with an
impedance.
Non-linear
Precision rectifier

The voltage drop ''V''
F across the forward-biased diode in the circuit of a passive rectifier is undesired. In this active version, the problem is solved by connecting the diode in the negative feedback loop. The op-amp compares the output voltage across the load with the input voltage and increases its own output voltage with the value of ''V''
F. As a result, the voltage drop ''V''
F is compensated, and the circuit behaves very nearly as an ideal (''super'')
diode
A diode is a two-Terminal (electronics), terminal electronic component that conducts electric current primarily in One-way traffic, one direction (asymmetric electrical conductance, conductance). It has low (ideally zero) Electrical resistance ...
with ''V''
F = 0 V.
The circuit has speed limitations at high frequency because of the slow negative feedback and due to the low slew rate of many non-ideal op-amps.
Exponential output

The
Shockley diode equation gives the
current–voltage relationship for an ideal semiconductor
diode
A diode is a two-Terminal (electronics), terminal electronic component that conducts electric current primarily in One-way traffic, one direction (asymmetric electrical conductance, conductance). It has low (ideally zero) Electrical resistance ...
:
:
where
is the
saturation current,
is the forward voltage across the diode, and
is the
thermal voltage (approximately 26 mV at room temperature). When
the diode's current is approximately proportional to an
exponential function:
:
The opamp's inverting input is virtually grounded and ideally draws no current. Thus, the output voltage will be:
:
The output voltage
is thus approximately an exponential function of the input voltage
:
:
This implementation does not consider temperature stability and other non-ideal effects.
Logarithmic output
Since the
logarithm
In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
is the
inverse function
In mathematics, the inverse function of a function (also called the inverse of ) is a function that undoes the operation of . The inverse of exists if and only if is bijective, and if it exists, is denoted by f^ .
For a function f\colon ...
of exponentiation, the exponential output circuit described above can be rearranged by swapping the diode into the feedback path of the opamp to form a
log amplifier:

Since the opamp's inverting input is virtually grounded and ideally draws no current,
and the current flowing from the source through the resistor and diode is:
:
where
is the current through the diode, which as described earlier is approximately:
:
Solving for
gives an approximately logarithmic relationship between the input voltage
and the output voltage
:
:
This implementation does not consider temperature stability and other non-ideal effects.
Piecewise linear output
Piecewise linear functions can approximate
non-linear functions as a series of connected
line segments.
Gain compression circuits (like
sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
or
square root
In mathematics, a square root of a number is a number such that y^2 = x; in other words, a number whose ''square'' (the result of multiplying the number by itself, or y \cdot y) is . For example, 4 and −4 are square roots of 16 because 4 ...
) use diodes or transistors to switch between line segments with slopes determined by resistive
voltage divider networks. Expansion circuits may be built using a compression circuit as feedback of an opamp.
Temperature-compensated compression

The schematic shown for a "temperature-compensated three-segment compression function"
produces a gain compression transfer function where each subsequent line segment reduces the steepness of the transfer function. For small signals, transistors Q2 and Q3 produce very little base current, and so the circuit's gain is determined just by the feedback resistance of R2 divided by the input resistance of R1. Once the output voltage exceeds around 2 V (whose exact voltage depends on R3 and R4 and the -15 V supply), then Q3 saturates, so the circuit's feedback resistance is determined by R4 in parallel with R2, reducing the gain. As the output voltage increases more, Q2 will saturate, so the circuit's gain is again reduced by the additional inclusion of R6 into the parallel feedback resistance. Temperature-compensation transistors Q4 and Q1 cancel out the temperature-dependent
p–n junction base-emitter forward voltage drop of Q3 and Q2. Additional linear segments can be added using additional copies of the resistor-transistor-resistor chains (like the chain R5, Q2, R6 or the chain R3, Q3, R4 but with different values) in a similar manner to further compress the input. This circuit's compression function only works for negative inputs. Diode D1 forces the output to zero if a positive input is applied.
Other applications
* audio and video
preamplifiers and
buffers
*
filters
*
voltage regulator
A voltage regulator is a system designed to automatically maintain a constant voltage. It may use a simple feed-forward design or may include negative feedback. It may use an electromechanical mechanism or electronic components. Depending on the ...
and
current regulator
*
analog-to-digital converter
In electronics, an analog-to-digital converter (ADC, A/D, or A-to-D) is a system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a Digital signal (signal processing), digi ...
*
digital-to-analog converter
In electronics, a digital-to-analog converter (DAC, D/A, D2A, or D-to-A) is a system that converts a digital signal into an analog signal. An analog-to-digital converter (ADC) performs the reverse function.
DACs are commonly used in musi ...
*
voltage clamp
*
oscillators and
waveform generator
A signal generator is one of a class of electronic devices that generates electrical signals with set properties of amplitude, frequency, and wave shape. These generated signals are used as a stimulus for electronic measurements, typically used ...
s
*
Analog computer
An analog computer or analogue computer is a type of computation machine (computer) that uses physical phenomena such as Electrical network, electrical, Mechanics, mechanical, or Hydraulics, hydraulic quantities behaving according to the math ...
*
Capacitance multiplier
*
Charge amplifier
See also
*
Current-feedback operational amplifier
*
Frequency compensation
*
Operational amplifier
An operational amplifier (often op amp or opamp) is a direct coupling, DC-coupled Electronic component, electronic voltage amplifier with a differential input, a (usually) Single-ended signaling, single-ended output, and an extremely high gain ( ...
*
Operational transconductance amplifier
The operational transconductance amplifier (OTA) is an amplifier that outputs a Electric current, current proportional to its input voltage. Thus, it is a voltage controlled current source. Three types of OTAs are single-input single-output, di ...
*
Transimpedance amplifier
In electronics, a transimpedance amplifier (TIA) is a current to voltage converter, almost exclusively implemented with one or more operational amplifiers. The TIA can be used to amplify the current output of Geiger–Müller tubes, photo multipl ...
Notes
References
Further reading
External links
*
*
* –
Analog Devices
Analog Devices, Inc. (ADI), also known simply as Analog, is an American multinational corporation, multinational semiconductor company specializing in data conversion, signal processing, and power management technology, headquartered in Wilming ...
Application note
*
* –
Texas Instruments
Texas Instruments Incorporated (TI) is an American multinational semiconductor company headquartered in Dallas, Texas. It is one of the top 10 semiconductor companies worldwide based on sales volume. The company's focus is on developing analog ...
Application note
Low Side Current Sensing Using Operational Amplifiers
*
*
ttp://www.philbrickarchive.org/1964-1_v12_no1_the_lightning_empiricist.htm Impedance and admittance transformations using operational amplifiersby D. H. Sheingold
''High Speed Amplifier Techniques ''very practical and readable{{spaced ndashwith photos and real waveforms
Properly terminating an unused op-amp
Linear integrated circuits