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 is the magnetic field at point Q, which is at a position a distance r<R from the axis of the wire?