For the past hour, I've been trying to calculate the gain of a differential amplifier in the following form: \$ \frac{V_{out}}{V_{in}} = \$ some function of resistors
I went to this site and tried to figure out what they were doing but I just cannot follow. I understand the current equations, and I understand that \$ V_a = V_b \$ for ideal op-amps but I just don't get the rest. Why do you get two different equations for \$ V_{out} \$ when \$ V_b=0 \$ and \$ V_a=0 \$, if they are both equal. Can someone explain?