Calculate the voltage at node A (Vi) in two steps:
1.) Caused by Vin only (opamp output (controlled source) equal to zero)
2.) Caused by opamp output (input=0).
3.) Use V2=kVi
This is the basic principle of superposition of two signals in a linear network.
From this, it should be possible to derive V2/Vin.