Difference Amplifier

A difference amplifier is an op-amp configuration that subtracts two voltages in addition to adding a gain to each of them, such that , where and .