Home/Analog Electronics/Op-amp applications/Difference amplifier

Difference amplifier using Op-Amp (IC 741) – Virtual Lab

The difference amplifier combines an inverting and a non-inverting amplifier in one op-amp. Signals common to both inputs cancel, which is the basis of instrumentation amplifiers and noise-rejecting measurement circuits.

Aim

To build a difference amplifier (subtractor) using IC 741 and verify that the output equals the difference of the two inputs.

Circuit components

ComponentValuePurpose
IC 741OA1—
R110 kΩV1 to − input
Rf10 kΩFeedback
R3, R410 kΩ eachDivider for V2 at + input
VR10 kΩ potDC source V2

Supply: ±12 V dual power supply. Instruments: function generator and two-channel digital storage oscilloscope, all on the virtual bench.

Theory

By superposition, V1 alone sees an inverting amplifier with gain −Rf/R1, and V2 alone sees the divider R3–R4 followed by a non-inverting amplifier. When the resistor ratios match, the two gains are equal in magnitude and the output depends only on V2 − V1.

Any voltage applied equally to both inputs (common-mode voltage) produces no output. Mismatched resistors reduce this common-mode rejection, which is why precision difference amplifiers use matched resistor networks.

Vo = (Rf/R1)(V2 − V1)valid when R4/R3 = Rf/R1
Vo = V2 − V1with all resistors equal

Procedure

  1. Open the Op-Amp Trainer Kit simulator; it starts with the Difference amplifier application selected.
  2. In Guided mode follow the highlighted connections to place the components from the parts bank and wire the circuit on the kit, or wire it yourself in Free mode.
  3. Set the dual power supply to ±12 V and switch it on.
  4. Switch on the function generator and set: Sine, 2 Vpp, 1 kHz (V1).
  5. Connect CH1 and CH2 of the oscilloscope as shown and set: CH1 1 V/div, CH2 2 V/div, 200 µs/div.
  6. Set the pot to 20 % (V2 ≈ 2.4 V DC).
  7. Observe CH2: an inverted copy of the sine riding on +V2.
  8. Change the pot and confirm the output DC level follows V2 while the sine part stays inverted.
  9. Capture the oscilloscope screen and compare it with the expected result below.
Function generatorSine, 2 Vpp, 1 kHz (V1)OscilloscopeCH1 1 V/div, CH2 2 V/div, 200 µs/divSupply±12 V, ON

Expected result

The output is an inverted 2 Vpp sine centred at about +2.2 V, i.e. Vo = V2 − V1.

Viva questions

What is common-mode rejection?
The ability of a differential amplifier to reject a voltage that is applied equally to both inputs. It is expressed as CMRR = differential gain / common-mode gain.
What condition must the resistors satisfy for a true subtractor?
R4/R3 = Rf/R1, so that the gains seen by V1 and V2 have the same magnitude.
Where is a difference amplifier used?
In instrumentation amplifiers, bridge sensor measurement, and current sensing across a shunt resistor.

Other op-amp applications