# Math Help - Current Makes Magnetic Field

1. ## Current Makes Magnetic Field

A student brought me this problem and I'd like to help him solve it, but it has been so long since I've looked at these sorts of things. Can anyone help me out some with this?

A long hollow cylindrical conductor of outer radius "b" and inner radius "a" carries a current whose current density (current/area) is $J=J_o\frac{b}{r}$ where "r" is the distance from the axis of the conductor. Determine an expression for the magnetic field within the conductor (a<r<b) in terms of $\mu_o, J_o,$ a, b, and r.

In the attached picture, the current would be travelling into the paper throughout the area from the circle with radius a to the circle with radius b.

I started with this: $J=\frac{I}{A}=J_o\frac{b}{r}$ and so I figure: $I=J_o\frac{b}{r}*A$

Here is my best shot:
$\oint{B*dr} = \mu_o*I$
$\oint{B*dr} = \mu_o*J_o\frac{b}{r}*A$
$B\oint{dr} = \mu_o*J_o\frac{b}{r}*(\pi b^2-\pi a^2)$
$B*[2\pi r]_{a}^{b} = \mu_o*J_o\frac{b}{r}*(\pi b^2-\pi a^2)$
$B*2\pi(b-a) = \mu_o*J_o\frac{b}{r}*(\pi b^2-\pi a^2)$
$B*2\pi(b-a)=\frac{\mu_o*J_ob\pi (b^2-a^2)}{r}$
$B=\frac{\mu_o*J_ob(b^2-a^2)}{2r(b-a)}$

Is this a decent approach?

I'm wondering if I'm mixed up on my limits of integration. Should they be zero to r instead (this is what my student thinks)? How can I account for the current passing though the entire area (and not just at r)?

2. ( I suppose that the current is going along the axis, not along the circle).
It is my opinion I may be not right.

$J(r
$J(r>b)=0$

$\oint B dl\:=\:\mu_0I$
$B\:2\pi r \:=\:\mu_0\int_{a}^{r}J(x)dS\:=\:\mu_0\int_{a}^{r} J_0 \frac{b}{x} \:\:2\pi xdx\:=\:2\pi\mu_0 J_0 b\int_{a}^{r} dx\:=\:2\pi\mu_0 J_0 b(r-a)$

$B\:=\:\mu_0 J_0 b \frac{(r-a)}{r} \:\:\:a

$B=0 \:\:r

$B\:=\:\mu_0 J_0 b \frac{(b-a)}{r} \:\:\:r>b$