Use the Ampere’s law,
Write the expression for the magnetic field in the region .
Substitutefor,
Write the expression for line integral of magnetic field in the region .
Substitute for ,
According to right hand thumb rule, , magnetic field is directed towards negative y-axis.
Write the expression magnetic field .
Write the expression magnetic field .
Write the expression magnetic field
Thus, the magnetic field inside the slab is .
Thus, the magnetic field outside the slab for is .
Thus, the magnetic field outside the slab for is .