In the above diagram,
Let O be the centre of the ring, R be the radius of the ring. The point P lie outside the ring on the axis, let the distance between the P and o be x, where we have to calculate the magnetic field.
Let →dB be the magnetic field due to a small length dl of the ring,
As per bio-severt rule,
→dB=μoIdl4πr2
We know that r=√(x2+R2)
So →db=μoIdl4π√x2+R2
This field have vertical→dBy=→dBsinθ and horizontal component→dBx=→dBcosθ,
Vertical component will cancel out each other, only horizontal components are responsible,
So, →B=→dB1+→dB2+.....
→dB=μoIdlsinθ4π√R2+x2
→dB=μoIx4π(R2+x2)32
The magnetic field due to the circular current loop of radius a at a point which is a distance R away, and is on its axis,
So →B=μoIx22(R2+x2)32