Skip to main content
Electronics (3.13) (Optional module)›Operational amplifier in (3.13.4)

Operational amplifier in (3.13.4)

Master op-amp circuits, including inverting, non-inverting and summing designs, plus virtual earth and real-world limitations.
10 min

In an inverting amplifier configuration, the operational amplifier’s output voltage is fed back into its inverting input.

This forms a closed-loop negative feedback circuit, allowing the operational amplifier’s gain to reach much lower values.

The image shows a circuit diagram featuring an operational amplifier. The input voltage, labeled as V_in, is connected to a resistor labeled R_in, depicted as a blue rectangle. This resistor is connected to the inverting input (marked with a minus sign) of the operational amplifier, represented by an orange triangle. The non-inverting input (marked with a plus sign) is grounded. A feedback resistor, labeled R_f and shown as a green rectangle, connects the output of the operational amplifier back to its inverting input. The output voltage is labeled V_out and is shown on the right side of the amplifier. The diagram is labeled with © Medify at the bottom.
Add to favourites

The output voltage equation is known as the transfer function, and with two assumptions, we can derive an expression for it using virtual-earth analysis:

  1. The operational amplifier can be considered ideal, meaning it has infinite open-loop gain,
  2. The operational amplifier is not saturated, (the magnitude must be less than the supply voltage), meaning it is operating in its linear region.

The diagram shows that the non-inverting input voltage is connected to ground and therefore must be at 0 V.

A diagram of an operational amplifier (op-amp) circuit. The input voltage labeled as V_in is connected to a blue resistor labeled R_in. This resistor is connected to the inverting input of the op-amp, indicated by a minus sign. The non-inverting input, indicated by a plus sign, is grounded. A feedback resistor labeled R_f, colored green, connects from the output of the op-amp back to the inverting input. The op-amp's output is labeled V_out. The op-amp is represented by a yellow triangle pointing to the right, with inputs on the left and output on the right.

Substituting these two assumptions into the open-loop transfer function gives:

Rearrange this to make the subject:

This result proves that the voltage at is also at 0 V, even though it is not physically connected to earth.

Add to favourites

A point in a circuit with a voltage of 0 V, even though it is not connected to earth, is known as a virtual earth.

Virtual earth is useful in circuit analysis because it provides a reference potential.

A circuit diagram featuring an operational amplifier. The input voltage V_in is connected to a blue resistor labeled R_in. This connects to a point labeled P, marked as 'Virtual earth' with a red arrow pointing to it. The negative input of the op-amp is connected to P, while the positive input is grounded. A feedback loop is formed with a green resistor labeled R_f connecting the output V_out back to the point P. The op-amp symbol is triangular, with the negative and positive inputs labeled on the left side. The output V_out is shown on the right side of the op-amp.
Add to favourites

The circuit diagram illustrated below contains a virtual earth.

The diagram shows an operational amplifier circuit with labeled components and paths. On the left, there is an input voltage labeled V_in with a current labeled I_in entering a blue resistor labeled R_in. This connects to a junction labeled P, marked with an arrow pointing to the text 'Virtual earth' in red. From this junction, a current labeled I_P enters the negative terminal of an orange triangular amplifier symbol with positive and negative inputs. The positive input is grounded. From the junction, another path with a current labeled I_f goes upward through a green resistor labeled R_f, connecting to the output. The output voltage is labeled V_out. The diagram includes arrows indicating current direction and is credited to Medify at the bottom.

Derivation of the transfer function can be broken down into the following steps:

1. The input resistance is infinite because the operational amplifier is ideal. If the resistance is infinite, there is no current, and Real op-amps have small bias currents.
2. Using Kirchhoff’s current law, it is clear that the current passing through is the same as the current passing through
3. Ohm’s law can be used to provide expressions for the current through the resistors:

4. As these currents are equal, we can equate the two expressions and make the subject:

5. Applying Kirchhoff’s voltage law to the loop involving and gives the following expression:

6. Substitute the expression in step 4 into this equation and rearrange to get the transfer function:

Add to favourites

Question walkthrough

Calculating inverting amplifier output voltage

Converts millivolt and kilohm/megohm values to standard form, then applies V_out = −(R_f/R_in)×V_in to find the output voltage of an inverting operational amplifier circuit.

Question walkthrough

Finding inverting amplifier input voltage

Rearranges the transfer equation V_out/V_in = −R_f/R_in to find the input voltage of an inverting operational amplifier from a given output voltage and feedback/input resistor values.

An inverting amplifier amplifies the input voltage and reverses (inverts) the signal polarity.

This can be shown clearly by plotting the input voltage, and the output voltage, on a voltage–time graph.

A graph with the vertical axis labeled 'V' and the horizontal axis labeled 'Time'. Two sinusoidal waves are plotted: a blue wave labeled 'V_i' and a red wave labeled 'V_o'. The blue wave starts above the horizontal axis, oscillates with decreasing amplitude, and crosses the axis multiple times. The red wave starts below the horizontal axis, oscillates with varying amplitude, and also crosses the axis multiple times. © Medify is noted at the bottom.

The input signal of an inverting amplifier configuration typically exhibits lower distortion than that of a non-inverting configuration.

Add to favourites

If it is important that the signal’s original polarity does not change, a non-inverting amplifier configuration can be used instead.

In this configuration, the operational amplifier’s output feeds back into its input. As with the inverting amplifier configuration, this creates a closed-loop circuit with negative feedback.

The image shows a circuit diagram of an operational amplifier. The input voltage is labeled as V_in, connected to a resistor labeled R_in, which then connects to the inverting input of the operational amplifier. The non-inverting input is grounded. The amplifier is depicted as a triangle with a positive and negative sign on its inputs. There is a feedback loop from the output, labeled V_out, to the inverting input through a resistor labeled R_f. The output is shown as an open circle at the end of the connection from the amplifier.

The gain of a non-inverting amplifier configuration has a minimum value of one as seen by the transfer function:

In this configuration, the input signal is directly connected to the operational amplifier. The operational amplifier has infinite input resistance, so the entire circuit draws no current.

This is an advantage of the inverting operational amplifier: it draws current through

Add to favourites

Question walkthrough

Finding input resistance for non-inverting amplifier

Rearranges the non-inverting amplifier gain formula (V_out/V_in = 1 + R_f/R_in) to find the input resistor value from a given gain and feedback resistor.

It is easy to get confused between inverting and non-inverting amplifiers. Both configurations use an operational amplifier with feedback, but the gain equations are different, and the inverting amplifier introduces a negative sign.

Keeping track of the sign and the correct formula for each configuration will help you avoid common calculation errors.

Do

Remember that the minimum gain of a non-inverting amplifier is one.

Don't

Forget to include the negative sign when calculating the gain for an inverting amplifier.

Add to favourites

In certain situations, a unity gain buffer is formed. A unity gain buffer is a circuit with no amplification, or in other words, a gain of one.

For this to happen, either the resistance of must be infinite, or the resistance of must be zero. This effectively forms the circuit below:

The image shows a schematic of a non-inverting operational amplifier circuit. An orange triangle represents the op-amp, with the positive input marked by a plus sign (+) and the negative input marked by a minus sign (-). The input voltage labeled as V_in is connected to the positive terminal. The output voltage labeled as V_out is connected to the output terminal of the op-amp. The output is fed back to the negative input through a feedback loop shown as a wire connecting the output back to the inverting input. © Medify is noted at the bottom of the image.

Unity gain buffers are useful as an interface between devices with low input resistance and an input signal. They do not disturb the original circuit, but they will output the same input signal and draw no current.

Add to favourites

A summing amplifier configuration can be used when multiple signals are present. This configuration allows each signal to be amplified independently, even though they are all connected to the inverting amplifier. This is due to the virtual earth, which prevents any interference between the signals.

A circuit diagram featuring an operational amplifier. The amplifier is represented by a yellow triangle with a plus sign at the bottom and a minus sign at the top. The input voltages are labeled V1, V2, and Vn, each connected to a resistor labeled R1, R2, and Rn, respectively. These resistors are drawn as gray rectangles. The resistors are connected to the inverting input of the amplifier (marked with a minus sign) via black lines. There is a dashed-line box between R2 and Rn, indicating a potential additional resistor. The non-inverting input (marked with a plus sign) is grounded. A feedback resistor labeled Rf, shown as a green rectangle, connects the output of the amplifier (labeled Vout) back to the inverting input. The output Vout is on the right side of the amplifier. All connections are shown with black lines and dots at junctions.

The transfer function is given by:

Audio mixers use a summing amplifier configuration so that different audio signals can be input and merged whilst still enabling the individual signals to be amplified independently.

Add to favourites

Question walkthrough

Finding feedback resistance in summing amplifier

Uses the summing-amplifier transfer function V_out = −R_f(V₁/R₁+V₂/R₂+V₃/R₃) to find the feedback resistor value from three equal input voltages, their input resistors, and the output voltage.

A difference amplifier configuration calculates the difference between two signals and subtracts it from the original signals.

Most uses of this configuration require the gains of both signal inputs to be the same. For this to be the case, must be equal to and must be equal to

The transfer function for this circuit is:

The diagram depicts an op-amp circuit. Two input voltages, V1 and V2, are connected to resistors R1 and R2, respectively. These resistors are in series with the inverting input (-) of an operational amplifier (op-amp). The non-inverting input (+) is grounded. The output of the op-amp, labeled Vout, is connected through a feedback resistor Rf back to the inverting input. Another resistor, Rg, is connected from the inverting input to ground. The feedback loop and resistors are highlighted with different colors to distinguish them.
Add to favourites

Question walkthrough

Finding difference amplifier output voltage

Applies the difference-amplifier transfer function V_out = (V₊ − V₋)(R_f/R₁) to find the output voltage from two input voltages and the input/feedback resistor values.

A common use of a difference amplifier is noise cancellation. A couple of examples of this are outlined below:

Microphones are often affected by interference due to the mains electricity at 50 Hz. If all 50 Hz signals were filtered out, this would also remove any parts of the original signal at
50 Hz. However, using a difference amplifier allows both the original signal and an inverted signal as inputs. When these signals are subtracted, the interference is cancelled out.

The image depicts a signal flow diagram. On the left, a labeled circle indicates 'Input', with a wavy line representing 'Signal + Noise' leading to a blue rectangle labeled 'Filter'. Below the filter, a vertical line with ground symbol and label 'Noise' leads downward. On the right, another wavy line labeled 'Signal' continues from the filter to a labeled circle indicating 'Output'.

An electrocardiogram (ECG) measures the potential differences generated by the heart. Electrodes are attached to the body for this measurement. Because this measurement is extremely sensitive, the leads frequently pick up interference from the mains electricity.

This interference is removed using a difference amplifier and an extra electrode. This additional electrode is typically placed far from the heart, often on the ankle. Since its signal is primarily caused by interference, the difference amplifier can use it to cancel out the unwanted signal from the main measurement.

Add to favourites

Real operational amplifiers are not ideal, although their performance is optimised for their particular application. For example, factors such as temperature of the environment in which they operate will also impact their performance.

Ideal Real
Open-loop gain Infinite 106
Input resistance Infinite (draws no current) 1012
Output resistance Zero
Output voltage

Bandwidth Operates at any input frequency (infinite bandwidth) Typical open loop:

Typical closed loop:

The differences between real and ideal operational amplifiers will affect their operations in the following ways:

  • Input resistance is not infinite, and therefore, a current will be drawn. This is very small (typically nA) due to the high resistance.
  • The output resistance is higher than that of an ideal amplifier, limiting the current it can deliver.
  • In a negative feedback circuit, the output resistance is reduced.

The open-loop gain of a real operational amplifier is still extremely high, and it is a reasonable assumption to take it as infinite.

Add to favourites

An ideal operational amplifier has an output voltage of 0 V when the inverting and non-inverting terminals are the same. However, this is not true for a real operational amplifier. A real operational amplifier has a small output voltage (the offset voltage).

The offset voltage must be cancelled out using the ‘Offset Null’ pin connection, which connects the operational amplifier to an external potential divider circuit.

The image shows a schematic of an operational amplifier with eight labeled pins. Pin 1 is labeled 'Offset Null.' Pin 2 is labeled 'Inverting (-).' Pin 3 is labeled 'Non-Inverting (+).' Pin 4 is labeled '(Power) V-' in red text. Pin 5 is labeled 'Offset Null.' Pin 6 is labeled 'Output.' Pin 7 is labeled 'V+ (Power)' in red text. Pin 8 is labeled 'NC (Not Connected).' The amplifier symbol in the center is a triangle pointing to the right, with a minus symbol at the top input and a plus symbol at the bottom input. Dashed lines connect the power pins (4 and 7) to the triangle, indicating power supply connections.

In a real operational amplifier, there is always some power loss due to resistance in the circuit itself and voltage drops across internal transistors and protection circuitry, meaning the output voltage is not equal to the supply voltage.

Add to favourites

We can illustrate how the voltage gain of an operational amplifier varies with the input signal frequency using a frequency response curve.

It is important to note that gain and frequency often have large values, so these curves can be plotted on logarithmic rather than linear scales.

A graph showing the relationship between open-loop voltage gain and signal frequency. The y-axis is labeled 'Open-loop voltage gain', and the x-axis is labeled 'Signal frequency'. A black curve starts high on the left and slopes downward to the right. Two dashed blue lines are labeled 'Lower extrapolated line' and 'Upper extrapolated line'. A red dashed vertical line labeled 'Break frequency' intersects the curve. The extrapolated lines intersect at the break frequency, extending outward from the curve.

Break frequency is defined as the frequency at which the gain begins to change.

Break frequency is the point of intersection of the two linear sections of the graph and can be found by extrapolating the lines.

Add to favourites

In an open-loop circuit, the frequency response curve shows that above the break frequency, the operational amplifier’s performance decreases rapidly.

This performance issue can be overcome by using the operational amplifier in a closed-loop circuit. This increases the break frequency’s value.

Graph showing 'Open-loop voltage gain' on the y-axis and 'Signal frequency' on the x-axis. The graph displays a curve that starts high on the left and slopes downward to the right, eventually leveling off. A lower extrapolated line is shown in blue, intersecting the main curve at a downward slope. An upper extrapolated line in blue is also present, running horizontally from the point where the main curve levels off. A red dashed vertical line labeled 'Break frequency' intersects the x-axis at the point where the main curve begins to slope downward. The curve is plotted in black, while the extrapolated lines are in blue, and the break frequency line is red. The background is labeled '© Medify'.

At frequencies above the break frequency, the relationship between gain and bandwidth is linear, as shown by the graph.

Mathematically, this can be written as:

This can be used to predict the circuit bandwidth for a given operational amplifier.

Add to favourites

Ideal operational amplifiers are theoretical and describe perfect operating conditions. In reality, these conditions are never achieved.

Do

Remember that ideal operational amplifiers have infinite gain, draw no current, and operate at infinite bandwidth.

Don't

Forget that real operational amplifiers have limitations that will affect how they operate.

Add to favourites