List of common coordinate transformations

This is a list of some of the most commonly used coordinate transformations.

cosh ⁡ τ − cos ⁡ σ

cosh ⁡ τ − cos ⁡ σ

returns the resultant angle in the first quadrant (

one must refer to the original Cartesian coordinate, determine the quadrant in which

This means that the inverse function will only give values in the domain of the function, but restricted to a single period.

Hence, the range of the inverse function is only half a full circle.

Let (x, y, z) be the standard Cartesian coordinates, and (ρ, θ, φ) the spherical coordinates, with θ the angle measured away from the +Z axis (as [1], see conventions in spherical coordinates).

As φ has a range of 360° the same considerations as in polar (2 dimensional) coordinates apply whenever an arctangent of it is taken.

θ has a range of 180°, running from 0° to 180°, and does not pose any problem when calculated from an arccosine, but beware for an arctangent.

If, in the alternative definition, θ is chosen to run from −90° to +90°, in opposite direction of the earlier definition, it can be found uniquely from an arcsine, but beware of an arccotangent.

In this case in all formulas below all arguments in θ should have sine and cosine exchanged, and as derivative also a plus and minus exchanged.

All divisions by zero result in special cases of being directions along one of the main axes and are in practice most easily solved by observation.

sin ⁡ θ cos ⁡ φ

∂ ( ρ , θ , φ )

sin ⁡ θ cos ⁡ φ

ρ cos ⁡ θ sin ⁡ φ

ρ sin ⁡ θ cos ⁡ φ

− ρ sin ⁡ θ

∂ ( ρ , θ , φ )

ρ , θ , φ

See also the article on atan2 for how to elegantly handle some edge cases.

∂ ( ρ , θ , φ )

∂ ( ρ , θ , φ )

∂ ( ρ , θ , φ )

= ρ sin ⁡ φ

∂ ( ρ , φ , θ )

− ρ sin ⁡ φ

∂ ( ρ , φ , θ )

{\displaystyle {\begin{aligned}s&=\int _{0}^{t}{\sqrt {{x'}^{2}+{y'}^{2}+{z'}^{2}}}\,dt\\[3pt]\kappa &={\frac {\sqrt {\left(z''y'-y''z'\right)^{2}+\left(x''z'-z''x'\right)^{2}+\left(y''x'-x''y'\right)^{2}}}{\left({x'}^{2}+{y'}^{2}+{z'}^{2}\right)^{\frac {3}{2}}}}\\[3pt]\tau &={\frac {x'''\left(y'z''-y''z'\right)+y'''\left(x''z'-x'z''\right)+z'''\left(x'y''-x''y'\right)}{{\left(x'y''-x''y'\right)}^{2}+{\left(x''z'-x'z''\right)}^{2}+{\left(y'z''-y''z'\right)}^{2}}}\end{aligned}}}