Derive the expression for the magnetic field (near its centre) due to an air-filled long solenoid carrying a current $I$ and having $n$ number of turns per unit length.
In the above diagram, a strong bar magnet is moving towards solenoid-2 from solenoid-1. The direction of induced current in solenoid-1 and that in solenoid-2, respectively, are through the directions :