The formula to calculate the magnetic field inside the conducting wire is given by
Bin =2μ0Jr...(1)
The formula to calculate the magnetic field outside the conducting wire is given by
Bout =2rμ0Ja2...(2)
From equation (1), it can be concluded that the magnetic field is directly proportional to the radial distance inside the wire, whereas from equation (2), it can be concluded that the magnetic field is inversely proportional to the radial distance outside the wire.