Can I derive an equation for magnetic field inside a solenoid using the formula for magnetic field on the axis of a current carrying coil?
B = μI/2r ( Magnetic field at the centre of a current carrying coil)
The Attempt at a Solution
B = μI/2r
Let the number of turns per unit length of the solenoid be 'n' and its length be 'a'
B = μnaI/2r
Which is definitely not equal to μnI (Calculated using Ampere's Circuital Law)