Cartesian coordinate system
This article needs additional citations for verification. (June 2012) (Learn how and when to remove this template message)

A Cartesian coordinate system is a coordinate system that specifies each point uniquely in a plane by a pair of numerical coordinates, which are the signed distances to the point from two fixed perpendicular directed lines, measured in the same unit of length. Each reference line is called a coordinate axis or just axis (plural axes) of the system, and the point where they meet is its origin, at ordered pair (0, 0). The coordinates can also be defined as the positions of the perpendicular projections of the point onto the two axes, expressed as signed distances from the origin.
One can use the same principle to specify the position of any point in threedimensional space by three Cartesian coordinates, its signed distances to three mutually perpendicular planes (or, equivalently, by its perpendicular projection onto three mutually perpendicular lines). In general, n Cartesian coordinates (an element of real nspace) specify the point in an ndimensional Euclidean space for any dimension n. These coordinates are equal, up to sign, to distances from the point to n mutually perpendicular hyperplanes.
The invention of Cartesian coordinates in the 17th century by René Descartes (Latinized name: Cartesius) revolutionized mathematics by providing the first systematic link between Euclidean geometry and algebra. Using the Cartesian coordinate system, geometric shapes (such as curves) can be described by Cartesian equations: algebraic equations involving the coordinates of the points lying on the shape. For example, a circle of radius 2, centered at the origin of the plane, may be described as the set of all points whose coordinates x and y satisfy the equation x^{2} + y^{2} = 4.
Cartesian coordinates are the foundation of analytic geometry, and provide enlightening geometric interpretations for many other branches of mathematics, such as linear algebra, complex analysis, differential geometry, multivariate calculus, group theory and more. A familiar example is the concept of the graph of a function. Cartesian coordinates are also essential tools for most applied disciplines that deal with geometry, including astronomy, physics, engineering and many more. They are the most common coordinate system used in computer graphics, computeraided geometric design and other geometryrelated data processing.
Contents
History
The adjective Cartesian refers to the French mathematician and philosopher René Descartes who published this idea in 1637. It was independently discovered by Pierre de Fermat, who also worked in three dimensions, although Fermat did not publish the discovery.^{[1]} The French cleric Nicole Oresme, used constructions similar to Cartesian coordinates well before the time of Descartes and Fermat.^{[citation needed]}.
Both Descartes and Fermat used a single axis in their treatments and have a variable length measured in reference to this axis. The concept of using a pair of axes was introduced later, after Descartes' La Géométrie was translated into Latin in 1649 by Frans van Schooten and his students. These commentators introduced several concepts while trying to clarify the ideas contained in Descartes' work.^{[2]}
The development of the Cartesian coordinate system would play a fundamental role in the development of the Calculus by Isaac Newton and Gottfried Wilhelm Leibniz.^{[3]} The twocoordinate description of the plane was later generalized into the concept of vector spaces.^{[4]}
Many other coordinate systems have been developed since Descartes, such as the polar coordinates for the plane, and the spherical and cylindrical coordinates for threedimensional space.
Description
One dimension
Choosing a Cartesian coordinate system for a onedimensional space – that is, for a straight line—involves choosing a point O of the line (the origin), a unit of length, and an orientation for the line. An orientation chooses which of the two halflines determined by O is the positive, and which is negative; we then say that the line "is oriented" (or "points") from the negative half towards the positive half. Then each point P of the line can be specified by its distance from O, taken with a + or − sign depending on which halfline contains P.
A line with a chosen Cartesian system is called a number line. Every real number has a unique location on the line. Conversely, every point on the line can be interpreted as a number in an ordered continuum such as the real numbers.
Two dimensions
The Cartesian coordinate system in two dimensions (also called a rectangular coordinate system or an orthogonal coordinate system^{[5]}) is defined by an ordered pair of perpendicular lines (axes), a single unit of length for both axes, and an orientation for each axis. (Early systems allowed "oblique" axes, that is, axes that did not meet at right angles.) The lines are commonly referred to as the x and yaxes where the xaxis is taken to be horizontal and the yaxis is taken to be vertical. The point where the axes meet is taken as the origin for both, thus turning each axis into a number line. For a given point P, a line is drawn through P perpendicular to the xaxis to meet it at X and second line is drawn through P perpendicular to the yaxis to meet it at Y. The coordinates of P are then X and Y interpreted as numbers x and y on the corresponding number lines. The coordinates are written as an ordered pair (x, y).
The point where the axes meet is the common origin of the two number lines and is simply called the origin. It is often labeled O and if so then the axes are called Ox and Oy. A plane with x and yaxes defined is often referred to as the Cartesian plane or xyplane. The value of x is called the xcoordinate or abscissa and the value of y is called the ycoordinate or ordinate.
The choices of letters come from the original convention, which is to use the latter part of the alphabet to indicate unknown values. The first part of the alphabet was used to designate known values.
In the Cartesian plane, reference is sometimes made to a unit circle or a unit hyperbola.
If a point on a twodimensional plane is (x, y), then the distance of the point from the xaxis is y and the distance of the point from the yaxis is x.
Three dimensions
Choosing a Cartesian coordinate system for a threedimensional space means choosing an ordered triplet of lines (axes) that are pairwise perpendicular, have a single unit of length for all three axes and have an orientation for each axis. As in the twodimensional case, each axis becomes a number line. The coordinates of a point P are obtained by drawing a line through P perpendicular to each coordinate axis, and reading the points where these lines meet the axes as three numbers of these number lines.
Alternatively, the coordinates of a point P can also be taken as the (signed) distances from P to the three planes defined by the three axes. If the axes are named x, y, and z, then the xcoordinate is the distance from the plane defined by the y and zaxes. The distance is to be taken with the + or − sign, depending on which of the two halfspaces separated by that plane contains P. The y and zcoordinates can be obtained in the same way from the xz and xyplanes respectively.
Higher dimensions
A Euclidean plane with a chosen Cartesian system is called a Cartesian plane. Since Cartesian coordinates are unique and nonambiguous, the points of a Cartesian plane can be identified with pairs of real numbers; that is with the Cartesian product , where is the set of all reals. In the same way, the points in any Euclidean space of dimension n be identified with the tuples (lists) of n real numbers, that is, with the Cartesian product .
Generalizations
The concept of Cartesian coordinates generalizes to allow axes that are not perpendicular to each other, and/or different units along each axis. In that case, each coordinate is obtained by projecting the point onto one axis along a direction that is parallel to the other axis (or, in general, to the hyperplane defined by all the other axes). In such an oblique coordinate system the computations of distances and angles must be modified from that in standard Cartesian systems, and many standard formulas (such as the Pythagorean formula for the distance) do not hold (see affine plane).
Notations and conventions
The Cartesian coordinates of a point are usually written in parentheses and separated by commas, as in (10, 5) or (3, 5, 7). The origin is often labelled with the capital letter O. In analytic geometry, unknown or generic coordinates are often denoted by the letters (x, y) in the plane, and (x, y, z) in threedimensional space. This custom comes from a convention of algebra, which uses letters near the end of the alphabet for unknown values (such as were the coordinates of points in many geometric problems), and letters near the beginning for given quantities.
These conventional names are often used in other domains, such as physics and engineering, although other letters may be used. For example, in a graph showing how a pressure varies with time, the graph coordinates may be denoted p and t. Each axis is usually named after the coordinate which is measured along it; so one says the xaxis, the yaxis, the taxis, etc.
Another common convention for coordinate naming is to use subscripts, as (x_{1}, x_{2}, ..., x_{n}) for the n coordinates in an ndimensional space, especially when n is greater than 3 or unspecified. Some authors prefer the numbering (x_{0}, x_{1}, ..., x_{n−1}). These notations are especially advantageous in computer programming: by storing the coordinates of a point as an array, instead of a record, the subscript can serve to index the coordinates.
In mathematical illustrations of twodimensional Cartesian systems, the first coordinate (traditionally called the abscissa) is measured along a horizontal axis, oriented from left to right. The second coordinate (the ordinate) is then measured along a vertical axis, usually oriented from bottom to top. Young children learning the Cartesian system, commonly learn the order to read the values before cementing the x, y, z axis concepts, by starting with 2D mnemonics (e.g. 'Walk along the hall then up the stairs' akin to straight across the x axis then up vertically along the y axis).^{[6]}
Computer graphics and image processing, however, often use a coordinate system with the yaxis oriented downwards on the computer display. This convention developed in the 1960s (or earlier) from the way that images were originally stored in display buffers.
For threedimensional systems, a convention is to portray the xyplane horizontally, with the zaxis added to represent height (positive up). Furthermore, there is a convention to orient the xaxis toward the viewer, biased either to the right or left. If a diagram (3D projection or 2D perspective drawing) shows the x and yaxis horizontally and vertically, respectively, then the zaxis should be shown pointing "out of the page" towards the viewer or camera. In such a 2D diagram of a 3D coordinate system, the zaxis would appear as a line or ray pointing down and to the left or down and to the right, depending on the presumed viewer or camera perspective. In any diagram or display, the orientation of the three axes, as a whole, is arbitrary. However, the orientation of the axes relative to each other should always comply with the righthand rule, unless specifically stated otherwise. All laws of physics and math assume this righthandedness, which ensures consistency.
For 3D diagrams, the names "abscissa" and "ordinate" are rarely used for x and y, respectively. When they are, the zcoordinate is sometimes called the applicate. The words abscissa, ordinate and applicate are sometimes used to refer to coordinate axes rather than the coordinate values.^{[5]}
Quadrants and octants
The axes of a twodimensional Cartesian system divide the plane into four infinite regions, called quadrants,^{[5]} each bounded by two halfaxes. These are often numbered from 1st to 4th and denoted by Roman numerals: I (where the signs of the two coordinates are I (+,+), II (−,+), III (−,−), and IV (+,−). When the axes are drawn according to the mathematical custom, the numbering goes counterclockwise starting from the upper right ("northeast") quadrant.
Similarly, a threedimensional Cartesian system defines a division of space into eight regions or octants,^{[5]} according to the signs of the coordinates of the points. The convention used for naming a specific octant is to list its signs, e.g. (+ + +) or (− + −). The generalization of the quadrant and octant to an arbitrary number of dimensions is the orthant, and a similar naming system applies.
Cartesian formulae for the plane
Distance between two points
The Euclidean distance between two points of the plane with Cartesian coordinates and is
This is the Cartesian version of Pythagoras's theorem. In threedimensional space, the distance between points and is
which can be obtained by two consecutive applications of Pythagoras' theorem.^{[7]}
Euclidean transformations
The Euclidean transformations or Euclidean motions are the (bijective) mappings of points of the Euclidean plane to themselves which preserve distances between points. There are four types of these mappings (also called isometries): translations, rotations, reflections and glide reflections.^{[8]}
Translation
Translating a set of points of the plane, preserving the distances and directions between them, is equivalent to adding a fixed pair of numbers (a, b) to the Cartesian coordinates of every point in the set. That is, if the original coordinates of a point are (x, y), after the translation they will be
Rotation
To rotate a figure counterclockwise around the origin by some angle is equivalent to replacing every point with coordinates (x,y) by the point with coordinates (x',y'), where
Thus:
Reflection
If (x, y) are the Cartesian coordinates of a point, then (−x, y) are the coordinates of its reflection across the second coordinate axis (the yaxis), as if that line were a mirror. Likewise, (x, −y) are the coordinates of its reflection across the first coordinate axis (the xaxis). In more generality, reflection across a line through the origin making an angle with the xaxis, is equivalent to replacing every point with coordinates (x, y) by the point with coordinates (x′,y′), where
Thus:
Glide reflection
A glide reflection is the composition of a reflection across a line followed by a translation in the direction of that line. It can be seen that the order of these operations does not matter (the translation can come first, followed by the reflection).
General matrix form of the transformations
These Euclidean transformations of the plane can all be described in a uniform way by using matrices. The result of applying a Euclidean transformation to a point is given by the formula
where A is a 2×2 orthogonal matrix and b = (b_{1}, b_{2}) is an arbitrary ordered pair of numbers;^{[9]} that is,
where

 [Note the use of row vectors for point coordinates and that the matrix is written on the right.]
To be orthogonal, the matrix A must have orthogonal rows with same Euclidean length of one, that is,
and
This is equivalent to saying that A times its transpose must be the identity matrix. If these conditions do not hold, the formula describes a more general affine transformation of the plane provided that the determinant of A is not zero.
The formula defines a translation if and only if A is the identity matrix. The transformation is a rotation around some point if and only if A is a rotation matrix, meaning that
A reflection or glide reflection is obtained when,
Assuming that translation is not used transformations can be combined by simply multiplying the associated transformation matrices.
Affine transformation
Another way to represent coordinate transformations in Cartesian coordinates is through affine transformations. In affine transformations an extra dimension is added and all points are given a value of 1 for this extra dimension. The advantage of doing this is that point translations can be specified in the final column of matrix A. In this way, all of the euclidean transformations become transactable as matrix point multiplications. The affine transformation is given by:

 [Note the matrix A from above was transposed. The matrix is on the left and column vectors for point coordinates are used.]
Using affine transformations multiple different euclidean transformations including translation can be combined by simply multiplying the corresponding matrices.
Scaling
An example of an affine transformation which is not a Euclidean motion is given by scaling. To make a figure larger or smaller is equivalent to multiplying the Cartesian coordinates of every point by the same positive number m. If (x, y) are the coordinates of a point on the original figure, the corresponding point on the scaled figure has coordinates
If m is greater than 1, the figure becomes larger; if m is between 0 and 1, it becomes smaller.
Shearing
A shearing transformation will push the top of a square sideways to form a parallelogram. Horizontal shearing is defined by:
Shearing can also be applied vertically:
Orientation and handedness
In two dimensions
Fixing or choosing the xaxis determines the yaxis up to direction. Namely, the yaxis is necessarily the perpendicular to the xaxis through the point marked 0 on the xaxis. But there is a choice of which of the two half lines on the perpendicular to designate as positive and which as negative. Each of these two choices determines a different orientation (also called handedness) of the Cartesian plane.
The usual way of orienting the axes, with the positive xaxis pointing right and the positive yaxis pointing up (and the xaxis being the "first" and the yaxis the "second" axis) is considered the positive or standard orientation, also called the righthanded orientation.
A commonly used mnemonic for defining the positive orientation is the righthand rule. Placing a somewhat closed right hand on the plane with the thumb pointing up, the fingers point from the xaxis to the yaxis, in a positively oriented coordinate system.
The other way of orienting the axes is following the left hand rule, placing the left hand on the plane with the thumb pointing up.
When pointing the thumb away from the origin along an axis towards positive, the curvature of the fingers indicates a positive rotation along that axis.
Regardless of the rule used to orient the axes, rotating the coordinate system will preserve the orientation. Switching any two axes will reverse the orientation, but switching both will leave the orientation unchanged.
In three dimensions
Once the x and yaxes are specified, they determine the line along which the zaxis should lie, but there are two possible directions on this line. The two possible coordinate systems which result are called 'righthanded' and 'lefthanded'. The standard orientation, where the xyplane is horizontal and the zaxis points up (and the x and the yaxis form a positively oriented twodimensional coordinate system in the xyplane if observed from above the xyplane) is called righthanded or positive.
The name derives from the righthand rule. If the index finger of the right hand is pointed forward, the middle finger bent inward at a right angle to it, and the thumb placed at a right angle to both, the three fingers indicate the relative directions of the x, y, and zaxes in a righthanded system. The thumb indicates the xaxis, the index finger the yaxis and the middle finger the zaxis. Conversely, if the same is done with the left hand, a lefthanded system results.
Figure 7 depicts a left and a righthanded coordinate system. Because a threedimensional object is represented on the twodimensional screen, distortion and ambiguity result. The axis pointing downward (and to the right) is also meant to point towards the observer, whereas the "middle"axis is meant to point away from the observer. The red circle is parallel to the horizontal xyplane and indicates rotation from the xaxis to the yaxis (in both cases). Hence the red arrow passes in front of the zaxis.
Figure 8 is another attempt at depicting a righthanded coordinate system. Again, there is an ambiguity caused by projecting the threedimensional coordinate system into the plane. Many observers see Figure 8 as "flipping in and out" between a convex cube and a concave "corner". This corresponds to the two possible orientations of the coordinate system. Seeing the figure as convex gives a lefthanded coordinate system. Thus the "correct" way to view Figure 8 is to imagine the xaxis as pointing towards the observer and thus seeing a concave corner.
Representing a vector in the standard basis
A point in space in a Cartesian coordinate system may also be represented by a position vector, which can be thought of as an arrow pointing from the origin of the coordinate system to the point.^{[10]} If the coordinates represent spatial positions (displacements), it is common to represent the vector from the origin to the point of interest as . In two dimensions, the vector from the origin to the point with Cartesian coordinates (x, y) can be written as:
where , and are unit vectors in the direction of the xaxis and yaxis respectively, generally referred to as the standard basis (in some application areas these may also be referred to as versors). Similarly, in three dimensions, the vector from the origin to the point with Cartesian coordinates can be written as:^{[11]}
where is the unit vector in the direction of the zaxis.
There is no natural interpretation of multiplying vectors to obtain another vector that works in all dimensions, however there is a way to use complex numbers to provide such a multiplication. In a two dimensional cartesian plane, identify the point with coordinates (x, y) with the complex number z = x + iy. Here, i is the imaginary unit and is identified with the point with coordinates (0, 1), so it is not the unit vector in the direction of the xaxis. Since the complex numbers can be multiplied giving another complex number, this identification provides a means to "multiply" vectors. In a three dimensional cartesian space a similar identification can be made with a subset of the quaternions.
Applications
Cartesian coordinates are an abstraction that have a multitude of possible applications in the real world. However, three constructive steps are involved in superimposing coordinates on a problem application. 1) Units of distance must be decided defining the spatial size represented by the numbers used as coordinates. 2) An origin must be assigned to a specific spatial location or landmark, and 3) the orientation of the axes must be defined using available directional cues for all but one axis.
Consider as an example superimposing 3D Cartesian coordinates over all points on the Earth (i.e. geospatial 3D). What units make sense? Kilometers are a good choice, since the original definition of the kilometer was geospatial...10,000 km equalling the surface distance from the Equator to the North Pole. Where to place the origin? Based on symmetry, the gravitational center of the Earth suggests a natural landmark (which can be sensed via satellite orbits). Finally, how to orient X, Y and Zaxis directions? The axis of Earth's spin provides a natural direction strongly associated with "up vs. down", so positive Z can adopt the direction from geocenter to North Pole. A location on the Equator is needed to define the Xaxis, and the prime meridian stands out as a reference direction, so the Xaxis takes the direction from geocenter out to [ 0 degrees longitude, 0 degrees latitude ]. Note that with 3 dimensions, and two perpendicular axes directions pinned down for X and Z, the Yaxis is determined by the first two choices. In order to obey the righthand rule, the Yaxis must point out from the geocenter to [ 90 degrees longitude, 0 degrees latitude ]. So what are the geocentric coordinates of the Empire State Building in New York City? Using [ longitude = −73.985656, latitude = 40.748433 ], Earth radius = 40,000/2π, and transforming from spherical > Cartesian coordinates, you can estimate the geocentric coordinates of the Empire State Building, [ x, y, z ] = [ 1330.53 km, –4635.75 km, 4155.46 km ]. GPS navigation relies on such geocentric coordinates.
In engineering projects, agreement on the definition of coordinates is a crucial foundation. One cannot assume that coordinates come predefined for a novel application, so knowledge of how to erect a coordinate system where there is none is essential to applying René Descartes' ingenious thinking.
While spatial apps employ identical units along all axes, in business and scientific apps, each axis may have different units of measurement associated with it (such as kilograms, seconds, pounds, etc.). Although four and higherdimensional spaces are difficult to visualize, the algebra of Cartesian coordinates can be extended relatively easily to four or more variables, so that certain calculations involving many variables can be done. (This sort of algebraic extension is what is used to define the geometry of higherdimensional spaces.) Conversely, it is often helpful to use the geometry of Cartesian coordinates in two or three dimensions to visualize algebraic relationships between two or three of many nonspatial variables.
The graph of a function or relation is the set of all points satisfying that function or relation. For a function of one variable, f, the set of all points (x, y), where y = f(x) is the graph of the function f. For a function g of two variables, the set of all points (x, y, z), where z = g(x, y) is the graph of the function g. A sketch of the graph of such a function or relation would consist of all the salient parts of the function or relation which would include its relative extrema, its concavity and points of inflection, any points of discontinuity and its end behavior. All of these terms are more fully defined in calculus. Such graphs are useful in calculus to understand the nature and behavior of a function or relation.
See also
 Horizontal and vertical
 Jones diagram, which plots four variables rather than two
 Orthogonal coordinates
 Polar coordinate system
 Spherical coordinate system
References
 ^ Bix, Robert A.; D'Souza, Harry J. "Analytic geometry". Encyclopædia Britannica. Retrieved 20170806.
 ^ Burton 2011, p. 374
 ^ A Tour of the Calculus, David Berlinski
 ^ Axler, Sheldon. Linear Algebra Done Right  Springer. p. 1. doi:10.1007/9783319110806.
 ^ ^{a} ^{b} ^{c} ^{d} "Cartesian orthogonal coordinate system". Encyclopedia of Mathematics. Retrieved 20170806.
 ^ "Charts and Graphs: Choosing the Right Format". www.mindtools.com. Retrieved 20170829.
 ^ HughesHallett, Deborah; McCallum, William G.; Gleason, Andrew M. (2013). Calculus : Single and Multivariable (6 ed.). John wiley. ISBN 9780470888612.
 ^ Smart 1998, Chap. 2
 ^ Brannan, Esplen & Gray 1998, pg. 49
 ^ Brannan, Esplen & Gray 1998, Appendix 2, pp. 377–382
 ^ David J. Griffiths (1999). Introduction to Electrodynamics. Prentice Hall. ISBN 013805326X.
Sources
 Brannan, David A.; Esplen, Matthew F.; Gray, Jeremy J. (1998), Geometry, Cambridge: Cambridge University Press, ISBN 0521597870
 Burton, David M. (2011), The History of Mathematics/An Introduction (7th ed.), New York: McGrawHill, ISBN 9780073383156
 Smart, James R. (1998), Modern Geometries (5th ed.), Pacific Grove: Brooks/Cole, ISBN 0534351883
Further reading
 Descartes, René (2001). Discourse on Method, Optics, Geometry, and Meteorology. Translated by Paul J. Oscamp (Revised ed.). Indianapolis, IN: Hackett Publishing. ISBN 0872205673. OCLC 488633510.
 Korn GA, Korn TM (1961). Mathematical Handbook for Scientists and Engineers (1st ed.). New York: McGrawHill. pp. 55–79. LCCN 5914456. OCLC 19959906.
 Margenau H, Murphy GM (1956). The Mathematics of Physics and Chemistry. New York: D. van Nostrand. LCCN 5510911.
 Moon P, Spencer DE (1988). "Rectangular Coordinates (x, y, z)". Field Theory Handbook, Including Coordinate Systems, Differential Equations, and Their Solutions (corrected 2nd, 3rd print ed.). New York: SpringerVerlag. pp. 9–11 (Table 1.01). ISBN 9780387184302.
 Morse PM, Feshbach H (1953). Methods of Theoretical Physics, Part I. New York: McGrawHill. ISBN 007043316X. LCCN 5211515.
 Sauer R, Szabó I (1967). Mathematische Hilfsmittel des Ingenieurs. New York: Springer Verlag. LCCN 6725285.
External links
 Cartesian Coordinate System
 "Cartesian coordinates". PlanetMath.
 MathWorld description of Cartesian coordinates
 Coordinate Converter – converts between polar, Cartesian and spherical coordinates
 Coordinates of a point Interactive tool to explore coordinates of a point
 open source JavaScript class for 2D/3D Cartesian coordinate system manipulation