If the rectangular coordinates of a point P are (1,√3,−2), find the spherical coordinates of P.
Solution We use the equations (2) to convert rectangular coordinates to spherical coordinates. Then ρ=√x2+y2+z2=√1+3+4=√8=2√2tanθ=yx=√31, so θ=tan−1√3=π3cosϕ=zρ=−22√2=−√22, so ϕ=cos−1(−√22)=3π4
The spherical coordinates of P are (2√2,π3,3π4).