The point in cylindrical coordinate system is
.
To convert cylindrical coordinate system to spherical coordinate system, use the conversion equations
,
and
.
Substitute
in the above conversion equations.

Consider
.

Consider
.

The point in spherical coordinate system is
.
The point in spherical coordinate system is
.