A basic differential amplifier can be used as a sub-tractor. We can get the difference of two input voltages in the output of op-amp as output voltage. The circuit diagram of a basic differential amplifier is drawn below.
This is a linear bilateral network. So, applying super position theorem, we can find the output voltage equation.
Let, assume that only Va is applied and Vb is short.