Question
Question: A direct current flows in a solenoid of length L and radius R, (L >> R), producing a magnetic field ...
A direct current flows in a solenoid of length L and radius R, (L >> R), producing a magnetic field of magnitude B0 inside the solenoid. Magnetic field line which leaves end penpendicularly is at distance 'a' from axis of solenoid. If a = nR, find n

2
Solution
For a long solenoid of length L and radius R with L≫R, carrying a current I, the magnetic field inside is approximately uniform and parallel to the axis, with magnitude B0=μ0ntI, where nt is the number of turns per unit length. The magnetic field outside is very weak except near the ends.
The problem states that a magnetic field line leaves the end perpendicularly at a distance 'a' from the axis. This means that at a point on the end face at a radial distance 'a' from the axis, the magnetic field vector is parallel to the axis. Let the axis of the solenoid be along the x-axis, and let the end face be at x=L/2. In cylindrical coordinates (r,ϕ,x), the magnetic field at a point (r,ϕ,L/2) is B(r,ϕ,L/2)=Br(r,ϕ,L/2)r^+Bϕ(r,ϕ,L/2)ϕ^+Bx(r,ϕ,L/2)x^. Due to symmetry, Bϕ=0 and Br and Bx are independent of ϕ. So, B(r,L/2)=Br(r,L/2)r^+Bx(r,L/2)x^.
The condition that a magnetic field line leaves the end perpendicularly at distance 'a' from the axis means that at r=a on the end face, the magnetic field is purely axial, i.e., Br(a,L/2)=0.
For a long solenoid, it is known that the magnetic field line that leaves the end perpendicularly is at a distance a=R/2 from the axis. This result comes from calculating the magnetic field components at the end face. At this radius, the radial component of the magnetic field is zero.
Given a=nR, and a=2R, we have nR=2R. Squaring both sides, n1=21, so n=2.