9. (10 %) Convert the rectangular equation \( x^2 + y^2 + z^2 - 2z = 0 \) to an equation in (a) cylindrical coordinates and (b) spherical coordinates.
9. (10 %) Convert the rectangular equation \( x^2 + y^2 + z^2 - 2z = 0 \) to an equation in (a) cylindrical coordinates and (b) spherical coordinates.