Electronic – Why does this dual summing op amp have this equation

operational-amplifier

enter image description here

enter image description here

I understand the voltage input at Rb gives the first two additions of the equations. But why is this subtracted from R3 and R4?

Best Answer

The equation is correct, although the unsimplified form would be clearer. The first stage sums in the inverting input, which means that those terms should be negative when summed in the second stage. And then it inverts in the second stage.

-(-(a + b) + c + d) = a + b - c - d