We are given a point in cylindrical coordinates $(r, \theta , z)$ and we want to write it into spherical coordinates $(\rho , \theta , \phi)$.
To do that do we have to write them first into cartesian coordinates and then into spherical using the formulas $\rho=\sqrt{x^2+y^2+z^2}, \ \ \theta=\theta , \ \ \phi=\arccos \left (\frac{z}{\rho}\right )$ ??
Or is there also a direct way??
$\rho = \sqrt{z^2 + r^2}$, $\varphi = \arctan\left(\dfrac rz\right)$, and $\theta = \theta$.
This picture might be useful in figuring out why: