Skip to content

Summing and difference amplifiers

Find the output of an inverting summer, vo = −(Rf/R₁)v₁ − (Rf/R₂)v₂, and of a difference amplifier, (R₂/R₁)(v₂ − v₁), and say what a resistor mismatch does.

It opens on

Two signals, 2 V through 20 kΩ and 1 V through 10 kΩ, share one 40 kΩ feedback resistor on an inverting op-amp. Is vo −3 V, −8 V or −12 V?

Why it matters

Adding and subtracting signals is what op-amps are used for in mixers, bridges and sensor interfaces. Exams give the resistors and ask for the output, or the resistors for a target equation, and often ask what happens when they are not matched.

Good to know first

  • The inverting and noninverting amplifier gains
  • the ideal op-amp rules
  • superposition

Step by step

  1. The inverting summer

    Write KCL at the virtual ground with several input resistors and find vo as a weighted sum of the inputs.

    i₁ = 2 V / 20 kΩ = 0.1 mA and i₂ = 1 V / 10 kΩ = 0.1 mA. KCL at the − node sends if = 0.2 mA through Rf, so vo = −0.2 mA × 40 kΩ = −8 V.

    vo = −Rf(v₁/R₁ + v₂/R₂)

    A common mix-up

    All the inputs share one gain.

    In fact: Each input has its own weight Rf/Rk, set by its own resistor.

  2. The difference amplifier

    Find vo = (R₂/R₁)(v₂ − v₁) when R₄/R₃ = R₂/R₁, by superposition and nodal analysis, and state each source's input resistance.

    Set v₂ = 0. No current flows in R₃, so v₊ = 0 and this is an inverting amplifier of gain −R₂/R₁ = −4. The contribution is −4v₁.

    A common mix-up

    Any resistors on the + side will do.

    In fact: The cancellation needs R₄/R₃ equal to R₂/R₁.

  3. When the resistors do not match

    Find the common-mode error and the changed output of a difference amplifier whose R₄ is off, and compute its common-mode rejection.

    Let v₁ = v₂ = 5 V, a common voltage with nothing to subtract. Then v₊ = 5 × 42/52 = 4.038 V and v₋ = 4.038 V. KCL at the − input gives (5 − 4.038)/10 kΩ = 0.0962 mA through R₂, so vo = 4.038 − 40 kΩ × 0.0962 mA = 0.192 V. It should be zero.

    vo = 0.192 V for v₁ = v₂ = 5 V

    A common mix-up

    Small resistor errors give small output errors.

    In fact: The error is judged against the tiny difference signal, so it can be half of it.

Try it

A summer has Rf = 60 kΩ, v₁ = 1.5 V through 30 kΩ and v₂ = −2 V through 20 kΩ. Find vo.Answer

+3 V, since −(2 × 1.5 + 3 × (−2))

Hint: Weights 2 and 3

A difference amplifier has R₁ = R₃ = 2 kΩ and R₂ = R₄ = 10 kΩ, with v₁ = 1 V and v₂ = 1.4 V. Find vo.Answer

2 V

Hint: Gain 5 on the difference

In the same circuit R₄ is 38 kΩ. With v₁ = v₂ = 5 V find vo.Answer

−0.208 V

Hint: v₊ = 5 × 38/48

Change v₂ to −2 V. What is vo now?Answer

+4 V, since i₂ = −0.2 mA, if = −0.1 mA and vo = −(−0.1 mA)(40 kΩ)

Put v₁ = v₂ = 1 V. What is vo?Answer

0 V, since a common voltage cancels

Summing and difference amplifiers

30 minutes every month. No card.