
S2 is a solenoid with more radius than S1, the magnetic field of the solenoid S2 will be along the axis and constant, so the magnetic force on an element of solenoid S1 will be,
dF1=i(l×B)
dF1=ilB(j^×(−i^))=iBlk^
Similarly, for just next coil the magnetic field is in same direction, but the current element is in opposite direction, so,
dF1=ilB(−j^×(−i^))=−iBlk^.
From Symmetry, we can say that the overall force will be cancelled to the whole coil, hence, F1=0
Similarly, from coil S1 to S2, The magnetic field of the inner solenoid is symmetric about its axis, but not exactly along the axis of the outer solenoid. As the outer solenoid is placed symmetrically the push of any coil will be equal and opposite to the pull of coil placed exactly the opposite distance from the centre. Hence, the net force on the outer coil will be zero, i.e., F2=0.