This amplifier uses both inverting and non-inverting inputs. If all resistors are equal it becomes a straight difference amplifier. If
then it gives an amplified difference.
The behavior of most configurations of op-amps can be determined by applying the "golden rules".The voltage at 3 is given by
so by the voltage rule that voltage appears at A. The current rule at A gives
Substitution gives the expression at right.