An infinitely long ferromagnetic cylinder of radius \(R\) is magnetized to have the magnetization
\(\mathbf M(r)=kr\hat z\)
inside the cylinder. Here \(k\) is a constant, \(r\) is the distance measured from the central axis of the cylinder, and \(\hat z\) is the unit vector in the direction of the cylinder axis.
(a) (10pt) Find the magnetic induction B and magnetic field H inside and outside the cylinder due to \(\mathbf M(r)\).
(b) (10pt) Find the vector potential corresponding to the B field obtained in (a).