Determine gain, Vo/Vin, of an amplifier for values of x
Your equation for Vin is wrong. The same current flows through R1 and R2, hence express V1 in terms of Vin.

Also, the last term in the node V1 equation is wrong: \$\Sigma\$currents away from node \$=0\$