Using Gauss's Law for Magnetism. In a certain region of space, the magnetic field $B$ is not uniform. The magnetic
field has both a z-component and a component that points radially
away from or toward the $z$ -axis. The $z$ -component is given by $B _ { z } ( z ) = \beta z ,$ where $\beta$ is a positive constant. The radial component
$B _ { r }$ depends only on $r ,$ the radial distance from the $z$ -axis. (a) Use Gauss's law for magnetism, Eq. $( 27.8 ) ,$ to find the radial component $B _ { r }$ as a function of $r .$ Hint: Try a cylindrical Gaussian surface
of radius $r$ concentric with the $z$ -axis, with one end at $z = 0$ and
the other at $z = L .$ (b) Sketch the magnetic field lines.