A cylindrical wire of radius R carries a current directed out of the page as shown below. The current has a cross-sectional area density J that varies with distance r from the wire's axis according to the function J=Cr.
According to Ampere's Law, the current creates magnetic field both within the wire and outside the wire.
What current is enclosed in a circular loop that is centered on the wire's axis and has a radius r<R?