Final answer:
Use Ampère's Law to derive the magnetic field B outside and inside a cylindrical conductor with varying current density. Outside the conductor, B is proportional to the total current and inversely proportional to the radius. Inside the conductor, B depends on the current enclosed by a circle with radius r.
Step-by-step explanation:
To calculate the magnetic field B inside and outside a cylindrical conductor with non-uniform current density using Ampère's Law, we first note that for r ≥ a (outside the cylinder), the enclosed current equals the total current I.
Applying Ampère's law in integral form ∫ B ⋅ dl = μ_0 I_enclosed, and using symmetry, we see that B is constant along a circle of radius r.
Therefore, the integral simplifies to B(2r) = μ_0 I, giving us B = μ_0 I / (2r) for the region outside the conductor.
For r ≤ a (inside the cylinder), the current I' within a radius r from the cylinder's axis is computed by integrating the provided current density function over the cross-sectional area, yielding I' = ∫∫ J ⋅ dA.
Inserting the given J into the integral and solving provides I' as a function of r.
We then apply Ampère's Law again inside the wire to find B by considering the symmetrical path within the cylinder, with the result being B = μ_0 I' / (2r).