This is a list of some of the most commonly used coordinate transformations.
Let be the standard Cartesian coordinates, and the standard polar coordinates.
By using complex numbers , the transformation can be written as
That is, it is given by the complex exponential function.
Note: solving for returns the resultant angle in the first quadrant (). To find one must refer to the original Cartesian coordinate, determine the quadrant in which lies (for example, (3,âÂÂ3) [Cartesian] lies in QIV), then use the following to solve for
The value for must be solved for in this manner because for all values of , is only defined for , and is periodic (with period ). 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.
Note that one can also use
Where 2c is the distance between the poles.
Let (x, y, z) be the standard Cartesian coordinates, and (ÃÂ, ø, ÃÂ) the spherical coordinates, with ø the angle measured away from the +Z axis (as illustrated). 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.
So for the volume element:
So for the volume element:
See also the article on atan2 for how to elegantly handle some edge cases.
So for the element: