Coordinates (mathematics)
From Free net encyclopedia
This article describes some of the common coordinate systems that appear in elementary mathematics. For advanced topics, please refer to coordinate system. For more background, see Cartesian coordinate system.
The coordinates of a point are the components of a tuple of numbers used to represent the location of the point in the plane or space. A coordinate system is a plane or space where the origin and axes are defined so that coordinates can be measured.
Contents |
Cartesian coordinates
In the two-dimensional Cartesian coordinate system, a point P in the xy-plane is represented by a tuple of two components <math>(x, y)</math>.
- <math>x</math> is the signed distance from the y-axis to the point P, and
- <math>y</math> is the signed distance from the x-axis to the point P.
In the three-dimensional Cartesian coordinate system, a point P in the xyz-space is represented by a tuple of three components <math>(x, y, z)</math>.
- <math>x</math> is the signed distance from the yz-plane to the point P,
- <math>y</math> is the signed distance from the xz-plane to the point P, and
- <math>z</math> is the signed distance from the xy-plane to the point P.
For advanced topics, please refer to Cartesian coordinate system.
Polar coordinates
The polar coordinate systems are coordinate systems in which a point is identified by a distance from some fixed feature in space and one or more subtended angles. They are the most common systems of curvilinear coordinates.
The term polar coordinates often refers to circular coordinates (two-dimensional). Other commonly used polar coordinates are cylindrical coordinates and spherical coordinates (both three-dimensional).
Circular coordinates
The circular coordinate system, commonly referred to as the polar coordinate system, is a two-dimensional polar coordinate system, defined by an origin, O, and a semi-infinite line L leading from this point. L is also called the polar axis. In terms of the Cartesian coordinate system, one usually picks O to be the origin (0,0) and L to be the positive x-axis (the right half of the x-axis).
In the circular coordinate system, a point P is represented by a tuple of two components <math>(r, \theta)</math>. Using terms of the Cartesian coordinate system,
- <math>0\leq{r}</math> (radius) is the distance from the origin to the point P, and
- <math>0\leq\theta<360^\circ</math> (azimuth) is the angle between the positive x-axis and the line from the origin to the point P.
Possible coordinate transformations from one circular coordinate system to another include:
- change of zero direction
- changing from the angle increasing anticlockwise to increasing clockwise or conversely
- change of scale
and combinations. More generally, transformations of the corresponding Cartesian coordinates can be translated into transformations from one circular coordinate system to another by basically transforming to Cartesian coordinates, transforming those, and transforming back to circular coordinates. This is e.g needed for:
- change of origin
- change of scale in one direction
A minor change is changing the range <math>0\leq\theta<360^\circ</math> to e.g. <math>-180^\circ<\theta\leq180^\circ</math>
Circular coordinates can be convenient in situations where only the distance, or only the direction to a fixed point matters, rotations about a point, etc. (by taking the special point as the origin).
A complex number can be viewed as a point or a position vector on a plane, the so-called complex plane or Argand diagram. Here the circular coordinates are r = |z|, called the absolute value or modulus of z, and φ = arg(z), called the complex argument of z. These coordinates (mod-arg form) are especially convenient for complex multiplication and powers.
Cylindrical coordinates
The cylindrical coordinate system is a three-dimensional polar coordinate system.
Image:CylindricalCoordinates.png
In the cylindrical coordinate system, a point P is represented by a tuple of three components <math>(r, \theta, h)</math>. Using terms of the Cartesian coordinate system,
- <math>0\leq{r}</math> (radius) is the distance between the z-axis and the point P,
- <math>0\leq\theta<360^\circ</math> (azimuth or longitude) is the angle between the positive x-axis and the line from the origin to the point P projected onto the xy-plane, and
- <math>h</math> (height) is the signed distance from xy-plane to the point P.
- Note: some sources use <math>z</math> for <math>h</math>; there is no "right" or "wrong" convention, but it is necessary to be aware of the convention being used.
Cylindrical coordinates involve some redundancy; <math>\theta</math> loses its significance if <math>r=0</math>.
Cylindrical coordinates are useful in analyzing systems that are symmetrical about an axis. For example the infinitely long cylinder that has the Cartesian equation <math>x^2+y^2=c^2</math> has the very simple equation <math>r=c</math> in cylindrical coordinates.
Spherical coordinates
The spherical coordinate system is a three-dimensional polar coordinate system.
Image:Spherical Coordinates.png
In the spherical coordinate system, a point <math>P</math> is represented by a tuple of three components <math>(\rho, \theta, \phi)</math>. Using terms of the Cartesian coordinate system,
- <math>0\leq\rho</math> (radius) is the distance between the point <math>P</math> and the origin,
- <math>0\leq\phi\leq 180^\circ</math> (zenith, colatitude or polar angle) is the angle between the <math>z</math>-axis and the line from the origin to the point P, and
- <math>0\leq\theta<360^\circ</math> (azimuth or longitude) is the angle between the positive <math>x</math>-axis and the line from the origin to the point P projected onto the <math>xy</math>-plane.
NB: The above convention is the standard used by American mathematicians and American calculus textbooks. However, most physicists, engineers, and non-American mathematicians interchange the symbols <math>\phi</math> and <math>\theta</math> above, using <math>\phi</math> to denote the azimuth and <math>\theta</math> the colatitude. One should be very careful to note which convention is being used by a particular author. One argument against the conventional American mathematical definition, regardless of how one labels the coordinates, is that it produces a left-handed coordinate system, rather than the usual convention of a right-handed coordinate system. One argument for it, on the other hand, is that it more closely resembles two-dimensional polar notation where <math>\theta</math> ranges from 0 to <math>2\pi</math>.
The latitude <math>\delta</math> is the complement of the colatitude <math>\phi</math>: <math>\delta=90^\circ-\phi</math>. The latitude is the angle between the <math>xy</math>-plane (the equator) and the line from the origin to the point P. Although here indicated with a <math>\delta</math>, the latitude is usually also indicated with the symbol <math>\phi</math>.
The spherical coordinate system also involves some redundancy; <math>\phi</math> loses its significance if <math>\rho=0</math>, and <math>\theta</math> loses its significance if <math>\rho=0</math> or <math>\phi=0</math> or <math>\phi=180^\circ</math>.
To construct a point from its spherical coordinates: from the origin, go <math>{\rho}</math> along the positive <math>z</math>-axis, rotate <math>\phi</math> about <math>y</math>-axis toward the direction of the positive <math>x</math>-axis, and rotate <math>\theta</math> about the <math>z</math>-axis toward the direction of the positive <math>y</math>-axis.
Spherical coordinates are useful in analyzing systems that are symmetrical about a point; a sphere that has the Cartesian equation <math>x^2+y^2+z^2=c^2</math> has the very simple equation <math>\rho=c</math> in spherical coordinates.
Spherical coordinates are the natural coordinates for physical situations where there is spherical symmetry. In such a situation, one can describe waves using spherical harmonics. Another application is ergonomic design, where <math>{\rho}</math> is the arm length of a stationary person and the angles describe the direction of the arm as it reaches out.
The concept of spherical coordinates can be extended to higher dimensional spaces and are then referred to as hyperspherical coordinates.
Conversion between coordinate systems
Cartesian and circular
- <math>x=r\,\cos\theta \quad</math>
- <math>y=r\,\sin\theta \quad</math>
- <math>r=\sqrt{x^2 + y^2}</math>
- <math>\theta
= \arctan\frac{y}{x} + \pi u_0(-x) \, \operatorname{sgn} y </math> where u0 is the Heaviside step function with <math> u_0(0)=0 </math> and sgn is the signum function. Here the u0 and sgn functions are being used as "logical" switches which are used as shorthand substitutes for several if ... then statements. Some computer languages include a bivariate arctangent function atan2(y,x) which finds the value for θ in the correct quadrant given x and y.
Cartesian and cylindrical
- <math>x=r\,\cos\theta</math>
- <math>y=r\,\sin\theta</math>
- <math>z=h \quad</math>
- <math>r=\sqrt{x^2 + y^2}</math>
- <math>\theta
=\arctan\frac{y}{x} + \pi u_0(-x) \, \operatorname{sgn} y </math>
- <math>h=z \quad</math>
- <math>
\begin{bmatrix}dx\\dy\\dz\end{bmatrix}= \begin{bmatrix} \cos\theta&-r\sin\theta&0\\ \sin\theta&r\cos\theta&0\\ 0&0&1 \end{bmatrix} \begin{bmatrix}dr\\d\theta\\dh\end{bmatrix} </math>
- <math>
\begin{bmatrix}dr\\d\theta\\dh\end{bmatrix}= \begin{bmatrix} \frac{x}{\sqrt{x^2+y^2}}&\frac{y}{\sqrt{x^2+y^2}}&0\\ \frac{-y}{x^2+y^2}&\frac{x}{x^2+y^2}&0\\ 0&0&1 \end{bmatrix} \begin{bmatrix}dx\\dy\\dz\end{bmatrix} </math>
- <math> dV=dx dy dz=r drdz\,d\theta </math>
Cartesian and spherical
- <math>{x}=\rho \, \sin\phi \, \cos\theta \quad </math>
- <math>{y}=\rho \, \sin\phi \, \sin\theta \quad </math>
- <math>{z}=\rho \, \cos\phi \quad </math>
- <math>{\rho}=\sqrt{x^2+y^2+z^2}</math>
- <math>{\phi}=\arccos\frac{z}{\rho}</math>
- <math>{\phi}=\arctan\frac{\sqrt{x^2+y^2}}{z}</math>
- <math>{\theta}
=\arctan\frac{y}{x} + \pi\, u_0(-x)\, \operatorname{sgn} y </math>
- <math>
\begin{bmatrix}dx\\dy\\dz\end{bmatrix}= \begin{bmatrix} \sin\phi\cos\theta&\rho\cos\phi\cos\theta&-\rho\sin\phi\sin\theta\\ \sin\phi\sin\theta&\rho\cos\phi\sin\theta&\rho\sin\phi\cos\theta\\ \cos\phi&-\rho\sin\phi&0 \end{bmatrix} \begin{bmatrix}d\rho\\d\phi\\d\theta\end{bmatrix} </math>
- <math>
\begin{bmatrix}d\rho\\d\phi\\d\theta\end{bmatrix}= \begin{bmatrix} \frac{x}{\rho}&\frac{y}{\rho}&\frac{z}{\rho}\\ \frac{xz}{\rho^2\sqrt{x^2+y^2}}&\frac{yz}{\rho^2\sqrt{x^2+y^2}}&\frac{-(x^2+y^2)}{\rho^2\sqrt{x^2+y^2}}\\ \frac{-y}{x^2+y^2}&\frac{x}{x^2+y^2}&0 \end{bmatrix} \begin{bmatrix}dx\\dy\\dz\end{bmatrix} </math>
- <math> dV=dx dy dz={\rho}^2\, \sin\phi d{\rho}\, d\phi d\theta </math>
Cylindrical and spherical
- <math>{r}=\rho \,\sin\phi</math>
- <math>{\theta}=\theta \quad</math>
- <math>{h}=\rho \,\cos\phi</math>
- <math>{\rho}=\sqrt{r^2+h^2}</math>
- <math>{\phi}
=\arctan\frac{r}{h} + \pi \, u_0(-r) \, \operatorname{sgn} h </math>
- <math>{\theta}=\theta \quad</math>
- <math>
\begin{bmatrix}dr\\d\theta\\dh\end{bmatrix}= \begin{bmatrix} \sin\phi&\rho\cos\phi&0\\ 0&0&1\\ \cos\phi&-\rho\sin\phi&0 \end{bmatrix} \begin{bmatrix}d\rho\\d\phi\\d\theta\end{bmatrix} </math>
- <math>
\begin{bmatrix}d\rho\\d\phi\\d\theta\end{bmatrix}= \begin{bmatrix} \frac{r}{\sqrt{r^2+h^2}}&0&\frac{h}{\sqrt{r^2+h^2}}\\ \frac{-h}{r^2+h^2}&0&\frac{r}{r^2+h^2}\\ 0&1&0 \end{bmatrix} \begin{bmatrix}dr\\d\theta\\dh\end{bmatrix} </math>
See also
- Cartesian coordinate system
- coordinate rotation
- coordinate system
- curvilinear coordinates
- nabla in cylindrical and spherical coordinates
- parabolic coordinates
- vector (spatial)
- vector fields in cylindrical and spherical coordinates
Spherical coordinates
External links
- Frank Wattenberg has made some attractive animations illustrating spherical and cylindrical coordinate systems.
- http://www.physics.oregonstate.edu/bridge/papers/spherical.pdf is a description of the different conventions in use for naming components of spherical coordinates, along with a proposal for standardizing this.de:Koordinaten
ko:극좌표 nl:Coördinaat ja:極座標系 pl:Sferyczny układ współrzędnych ro:Coordonate polare fi:Koordinaatisto sv:Koordinater