Hi there!
Recall Ampere's Law:
[tex]\oint B \cdot dl = \mu_0 i_{encl}[/tex]
B = Magnetic Field Strength (T)
μ₀ = Permeability of Free Space (Tm/A)
i = Enclosed Current (A)
dL = differential path length
To begin, we must derive an expression for the magnetic field strength inside a wire that contains a uniformly-distributed current.
Using the expression:
[tex]i = \int J \cdot dA[/tex]
Where 'J' is the density of current, and A is the cross-sectional area:
[tex]A = \pi r^2\\\\dA = 2\pi r dr[/tex]
We know that:
[tex]J = \frac{i_0 }{A}\\\\J = \frac{i_0}{\pi a^2}[/tex]
This is the current density. We can now integrate:
[tex]i = \int\limits^r_0 {\frac{i_0}{\pi a^2} \cdot 2\pi r} \, dr\\ \\i =\frac{i_0}{a^2}\int\limits^r_0 {2r } \, dr\\\\i = \frac{i_0}{a^2} \cdot r^2 = \frac{i_0 r^2}{a^2}[/tex]
Now, substitute this expression back into the above equation for the magnetic field:
[tex]\oint B \cdot dl = \mu _0 \frac{i_0r^2}{a^2}[/tex]
The path of integration is a closed loop of length 2πr, so:
[tex]B \cdot 2\pi r = \mu_0 \frac{i_0r^2}{a^2}\\\\B = \frac{\mu_0 i_0r}{2\pi a^2}[/tex]
We can now use this equation for the first 2 parts.
a)
If 'r' equals 0:
[tex]B = \frac{\mu _0 i_0 (0)}{2\pi a^2} = \boxed{0 T}[/tex]
b)
If 'r' equals a/2:
[tex]B = \frac{\mu _0 i_0 (\frac{a}{2})}{2\pi a^2} =B =\boxed{ \frac{\mu _0 i_0 }{4\pi a} T}[/tex]
c)
At the wire's surface, 'r' = a:
[tex]B = \frac{\mu _0 i_0 (a)}{2\pi a^2} =B =\boxed{ \frac{\mu _0 i_0 }{2\pi a} T}[/tex]
d)
At 'r' = 2a, since this is outside of the wire, the relationship between magnetic field and distance from the wire becomes a 1/r (inverse) relationship. This is found using Ampere's Law:
[tex]B = \frac{\mu_0 i_0}{2\pi r}\\[/tex]
[tex]B = \frac{\mu_0 i_0}{2\pi (2a)} \\\\\boxed{B = \frac{\mu_0 i_0}{4\pi a}\\}[/tex]