To solve this problem, the application of the Ampere law is necessary.
This law relates the integrated magnetic field around a closed loop to the electric current passing through the loop.
The equation is defined as,
[tex]\int Bdl=\mu_0J\pi r^2[/tex]
Where,
B= Magnetic field
[tex]\mu_0 =[/tex]Permeability constant
J = Total current density
r = Radius
Integrating we have:
[tex]B(2\pi r) = \mu_0 j\pi r^2[/tex]
[tex]J = \frac{2B}{\mu_0 r}[/tex]
Therefore with that condition the previous equation represent the current density in this region of space