A charge $q$ is distributed uniformly around a thin ring of radius $r$. The ring is rotating about an axis through its center and perpendicular to its plane, at an angular speed $\omega$. (a) Show that the magnetic moment due to the rotating charge has magnitude $\mu=\frac{1}{2} q \omega r^{2} .$ (b) What is the direction of this magnetic moment if the charge is positive?