Magnetic Field on the Axis of a Solenoid Having N Turns Per Unit Length and Carrying a Current I
The field at a point on the axis of a solenoid can be obtained by superposition of fields due to a large number of identical coils all having their center on the axis of solenoid.
The magnetic field due this coil
dB=μ0NIR22(R2+x2)3/2
dN=ndx,x=Rtanϕ and dx=Rsec2ϕdϕ
dB=μ0ndx×IR22(R2+R2tan2ϕ)3/2
B=∫dB=μ02nI∫βαcosϕdϕ
B=μ0nI2[sinα+sinβ]
For a point inside a long solenoid, α=β=90∘ therefore, B=μ0nI.
At one end of a long solenoid, α=0∘,b=90o therefore, B=μ0nI/2