# Coordinate system

In geometry, a **coordinate system** is a system that uses one or more numbers, or **coordinates**, to uniquely determine the position of the points or other geometric elements on a manifold such as Euclidean space.^{[1]}^{[2]} The order of the coordinates is significant, and they are sometimes identified by their position in an ordered tuple and sometimes by a letter, as in "the *x*-coordinate". The coordinates are taken to be real numbers in elementary mathematics, but may be complex numbers or elements of a more abstract system such as a commutative ring. The use of a coordinate system allows problems in geometry to be translated into problems about numbers and *vice versa*; this is the basis of analytic geometry.^{[3]}

The simplest example of a coordinate system is the identification of points on a line with real numbers using the *number line*. In this system, an arbitrary point *O* (the *origin*) is chosen on a given line. The coordinate of a point *P* is defined as the signed distance from *O* to *P*, where the signed distance is the distance taken as positive or negative depending on which side of the line *P* lies. Each point is given a unique coordinate and each real number is the coordinate of a unique point.^{[4]}

The prototypical example of a coordinate system is the Cartesian coordinate system. In the plane, two perpendicular lines are chosen and the coordinates of a point are taken to be the signed distances to the lines.

In three dimensions, three mutually orthogonal planes are chosen and the three coordinates of a point are the signed distances to each of the planes.^{[5]} This can be generalized to create *n* coordinates for any point in *n*-dimensional Euclidean space.

Depending on the direction and order of the coordinate axes, the three-dimensional system may be a right-handed or a left-handed system. This is one of many coordinate systems.

Another common coordinate system for the plane is the *polar coordinate system*.^{[6]} A point is chosen as the *pole* and a ray from this point is taken as the *polar axis*. For a given angle θ, there is a single line through the pole whose angle with the polar axis is θ (measured counterclockwise from the axis to the line). Then there is a unique point on this line whose signed distance from the origin is *r* for given number *r*. For a given pair of coordinates (*r*, θ) there is a single point, but any point is represented by many pairs of coordinates. For example, (*r*, θ), (*r*, θ+2π) and (−*r*, θ+π) are all polar coordinates for the same point. The pole is represented by (0, θ) for any value of θ.

There are two common methods for extending the polar coordinate system to three dimensions. In the **cylindrical coordinate system**, a *z*-coordinate with the same meaning as in Cartesian coordinates is added to the *r* and *θ* polar coordinates giving a triple (*r*, *θ*, *z*).^{[7]} Spherical coordinates take this a step further by converting the pair of cylindrical coordinates (*r*, *z*) to polar coordinates (*ρ*, *φ*) giving a triple (*ρ*, *θ*, *φ*).^{[8]}

A point in the plane may be represented in *homogeneous coordinates* by a triple (*x*, *y*, *z*) where *x*/*z* and *y*/*z* are the Cartesian coordinates of the point.^{[9]} This introduces an "extra" coordinate since only two are needed to specify a point on the plane, but this system is useful in that it represents any point on the projective plane without the use of infinity. In general, a homogeneous coordinate system is one where only the ratios of the coordinates are significant and not the actual values.

There are ways of describing curves without coordinates, using intrinsic equations that use invariant quantities such as curvature and arc length. These include:

Coordinates systems are often used to specify the position of a point, but they may also be used to specify the position of more complex figures such as lines, planes, circles or spheres. For example, Plücker coordinates are used to determine the position of a line in space.^{[10]} When there is a need, the type of figure being described is used to distinguish the type of coordinate system, for example the term *line coordinates* is used for any coordinate system that specifies the position of a line.

It may occur that systems of coordinates for two different sets of geometric figures are equivalent in terms of their analysis. An example of this is the systems of homogeneous coordinates for points and lines in the projective plane. The two systems in a case like this are said to be *dualistic*. Dualistic systems have the property that results from one system can be carried over to the other since these results are only different interpretations of the same analytical result; this is known as the *principle of duality*.^{[11]}

Because there are often many different possible coordinate systems for describing geometrical figures, it is important to understand how they are related. Such relations are described by *coordinate transformations* which give formulas for the coordinates in one system in terms of the coordinates in another system. For example, in the plane, if Cartesian coordinates (*x*, *y*) and polar coordinates (*r*, *θ*) have the same origin, and the polar axis is the positive *x* axis, then the coordinate transformation from polar to Cartesian coordinates is given by *x* = *r* cos*θ* and *y* = *r* sin*θ*.

With every bijection from the space to itself two coordinate transformations can be associated:

For example, in 1D, if the mapping is a translation of 3 to the right, the first moves the origin from 0 to 3, so that the coordinate of each point becomes 3 less, while the second moves the origin from 0 to −3, so that the coordinate of each point becomes 3 more.

In two dimensions, if one of the coordinates in a point coordinate system is held constant and the other coordinate is allowed to vary, then the resulting curve is called a **coordinate curve**. In the Cartesian coordinate system the coordinate curves are, in fact, straight lines, thus **coordinate lines**. Specifically, they are the lines parallel to one of the coordinate axes. For other coordinate systems the coordinates curves may be general curves. For example, the coordinate curves in polar coordinates obtained by holding *r* constant are the circles with center at the origin. A coordinate system for which some coordinate curves are not lines is called a curvilinear coordinate system.^{[12]} This procedure does not always make sense, for example there are no coordinate curves in a homogeneous coordinate system.

In three-dimensional space, if one coordinate is held constant and the other two are allowed to vary, then the resulting surface is called a **coordinate surface**. For example, the coordinate surfaces obtained by holding ρ constant in the spherical coordinate system are the spheres with center at the origin. In three-dimensional space the intersection of two coordinate surfaces is a coordinate curve. In the Cartesian coordinate system we may speak of **coordinate planes**.

Similarly, **coordinate hypersurfaces** are the (*n* − 1)-dimensional spaces resulting from fixing a single coordinate of an *n*-dimensional coordinate system.^{[13]}

The concept of a *coordinate map*, or *coordinate chart* is central to the theory of manifolds. A coordinate map is essentially a coordinate system for a subset of a given space with the property that each point has exactly one set of coordinates. More precisely, a coordinate map is a homeomorphism from an open subset of a space *X* to an open subset of **R**^{n}.^{[14]} It is often not possible to provide one consistent coordinate system for an entire space. In this case, a collection of coordinate maps are put together to form an atlas covering the space. A space equipped with such an atlas is called a *manifold* and additional structure can be defined on a manifold if the structure is consistent where the coordinate maps overlap. For example, a differentiable manifold is a manifold where the change of coordinates from one coordinate map to another is always a differentiable function.

In geometry and kinematics, coordinate systems are used to describe the (linear) position of points and the angular position of axes, planes, and rigid bodies.^{[15]} In the latter case, the orientation of a second (typically referred to as "local") coordinate system, fixed to the node, is defined based on the first (typically referred to as "global" or "world" coordinate system). For instance, the orientation of a rigid body can be represented by an orientation matrix, which includes, in its three columns, the Cartesian coordinates of three points. These points are used to define the orientation of the axes of the local system; they are the tips of three unit vectors aligned with those axes.