Force of attraction between parallel currents
F1=⎡⎢
⎢
⎢⎣μ02π2II0(2η+1)a2⎤⎥
⎥
⎥⎦a
Similarly force of repulsion between antiparallel currents
F2=⎡⎢
⎢
⎢⎣μ02π2II0(η+1)a2⎤⎥
⎥
⎥⎦a
Net force of attraction between the square frame and the long straight wire
F=F1−F2=μ02πII04η2−1
Putting values: F=4×109N=40nN