
In
geometry
Geometry (; ) is a branch of mathematics concerned with properties of space such as the distance, shape, size, and relative position of figures. Geometry is, along with arithmetic, one of the oldest branches of mathematics. A mathematician w ...
, a Cartesian coordinate system (, ) in a
plane is a
coordinate system
In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the position of the points or other geometric elements on a manifold such as Euclidean space. The coordinates are ...
that specifies each
point uniquely by a pair of
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s called ''coordinates'', which are the
signed distances to the point from two fixed
perpendicular
In geometry, two geometric objects are perpendicular if they intersect at right angles, i.e. at an angle of 90 degrees or π/2 radians. The condition of perpendicularity may be represented graphically using the '' perpendicular symbol'', � ...
oriented lines, called ''
coordinate lines'', ''coordinate axes'' or just ''axes'' (plural of ''axis'') of the system. The point where the axes meet is called the ''
origin'' and has as coordinates. The axes
directions represent an
orthogonal basis. The combination of origin and basis forms a
coordinate frame called the Cartesian frame.
Similarly, the position of any point in
three-dimensional space
In geometry, a three-dimensional space (3D space, 3-space or, rarely, tri-dimensional space) is a mathematical space in which three values ('' coordinates'') are required to determine the position of a point. Most commonly, it is the three- ...
can be specified by three ''Cartesian coordinates'', which are the signed distances from the point to three mutually perpendicular planes. More generally, Cartesian coordinates specify the point in an -dimensional
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
for any
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
. These coordinates are the signed distances from the point to mutually perpendicular fixed
hyperplane
In geometry, a hyperplane is a generalization of a two-dimensional plane in three-dimensional space to mathematical spaces of arbitrary dimension. Like a plane in space, a hyperplane is a flat hypersurface, a subspace whose dimension is ...
s.

Cartesian coordinates are named for
René Descartes
René Descartes ( , ; ; 31 March 1596 – 11 February 1650) was a French philosopher, scientist, and mathematician, widely considered a seminal figure in the emergence of modern philosophy and Modern science, science. Mathematics was paramou ...
, whose invention of them in the 17th century revolutionized mathematics by allowing the expression of problems of geometry in terms of
algebra
Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
and
calculus
Calculus is the mathematics, mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizations of arithmetic operations.
Originally called infinitesimal calculus or "the ...
. Using the Cartesian coordinate system, geometric shapes (such as
curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that ...
s) can be described by
equation
In mathematics, an equation is a mathematical formula that expresses the equality of two expressions, by connecting them with the equals sign . The word ''equation'' and its cognates in other languages may have subtly different meanings; for ...
s involving the coordinates of points of the shape. For example, a
circle
A circle is a shape consisting of all point (geometry), points in a plane (mathematics), plane that are at a given distance from a given point, the Centre (geometry), centre. The distance between any point of the circle and the centre is cal ...
of radius 2, centered at the origin of the plane, may be described as the
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of all points whose coordinates and satisfy the equation ; the
area
Area is the measure of a region's size on a surface. The area of a plane region or ''plane area'' refers to the area of a shape or planar lamina, while '' surface area'' refers to the area of an open surface or the boundary of a three-di ...
, the
perimeter
A perimeter is the length of a closed boundary that encompasses, surrounds, or outlines either a two-dimensional shape or a one-dimensional line. The perimeter of a circle or an ellipse is called its circumference.
Calculating the perimet ...
and the
tangent line
In geometry, the tangent line (or simply tangent) to a plane curve at a given point is, intuitively, the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points o ...
at any point can be computed from this equation by using
integral
In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
s and
derivative
In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
s, in a way that can be applied to any curve.
Cartesian coordinates are the foundation of
analytic geometry
In mathematics, analytic geometry, also known as coordinate geometry or Cartesian geometry, is the study of geometry using a coordinate system. This contrasts with synthetic geometry.
Analytic geometry is used in physics and engineering, and als ...
, and provide enlightening geometric interpretations for many other branches of mathematics, such as
linear algebra
Linear algebra is the branch of mathematics concerning linear equations such as
:a_1x_1+\cdots +a_nx_n=b,
linear maps such as
:(x_1, \ldots, x_n) \mapsto a_1x_1+\cdots +a_nx_n,
and their representations in vector spaces and through matrix (mathemat ...
,
complex analysis
Complex analysis, traditionally known as the theory of functions of a complex variable, is the branch of mathematical analysis that investigates functions of complex numbers. It is helpful in many branches of mathematics, including algebraic ...
,
differential geometry
Differential geometry is a Mathematics, mathematical discipline that studies the geometry of smooth shapes and smooth spaces, otherwise known as smooth manifolds. It uses the techniques of Calculus, single variable calculus, vector calculus, lin ...
, multivariate
calculus
Calculus is the mathematics, mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizations of arithmetic operations.
Originally called infinitesimal calculus or "the ...
,
group theory
In abstract algebra, group theory studies the algebraic structures known as group (mathematics), groups.
The concept of a group is central to abstract algebra: other well-known algebraic structures, such as ring (mathematics), rings, field ( ...
and more. A familiar example is the concept of the
graph of a function
In mathematics, the graph of a function f is the set of ordered pairs (x, y), where f(x) = y. In the common case where x and f(x) are real numbers, these pairs are Cartesian coordinates of points in a plane (geometry), plane and often form a P ...
. Cartesian coordinates are also essential tools for most applied disciplines that deal with geometry, including
astronomy
Astronomy is a natural science that studies celestial objects and the phenomena that occur in the cosmos. It uses mathematics, physics, and chemistry in order to explain their origin and their overall evolution. Objects of interest includ ...
,
physics
Physics is the scientific study of matter, its Elementary particle, fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge whi ...
,
engineering
Engineering is the practice of using natural science, mathematics, and the engineering design process to Problem solving#Engineering, solve problems within technology, increase efficiency and productivity, and improve Systems engineering, s ...
and many more. They are the most common coordinate system used in
computer graphics
Computer graphics deals with generating images and art with the aid of computers. Computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications. ...
,
computer-aided geometric design
Computer-aided design (CAD) is the use of computers (or ) to aid in the creation, modification, analysis, or optimization of a design. This software is used to increase the productivity of the designer, improve the quality of design, improve c ...
and other
geometry-related data processing.
History
The adjective ''Cartesian'' refers to the French
mathematician
A mathematician is someone who uses an extensive knowledge of mathematics in their work, typically to solve mathematical problems. Mathematicians are concerned with numbers, data, quantity, mathematical structure, structure, space, Mathematica ...
and
philosopher
Philosophy ('love of wisdom' in Ancient Greek) is a systematic study of general and fundamental questions concerning topics like existence, reason, knowledge, Value (ethics and social sciences), value, mind, and language. It is a rational an ...
René Descartes
René Descartes ( , ; ; 31 March 1596 – 11 February 1650) was a French philosopher, scientist, and mathematician, widely considered a seminal figure in the emergence of modern philosophy and Modern science, science. Mathematics was paramou ...
, who published this idea in 1637 while he was resident in the Netherlands. It was independently discovered by
Pierre de Fermat
Pierre de Fermat (; ; 17 August 1601 – 12 January 1665) was a French mathematician who is given credit for early developments that led to infinitesimal calculus, including his technique of adequality. In particular, he is recognized for his d ...
, who also worked in three dimensions, although Fermat did not publish the discovery. The French cleric
Nicole Oresme used constructions similar to Cartesian coordinates well before the time of Descartes and Fermat.
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
''La Géométrie'' () was published in 1637 as an appendix to ''Discours de la méthode'' ('' Discourse on the Method''), written by René Descartes. In the ''Discourse'', Descartes presents his method for obtaining clarity on any subject. ''La ...
'' was translated into Latin in 1649 by
Frans van Schooten
Frans van Schooten Jr. also rendered as Franciscus van Schooten (15 May 1615 – 29 May 1660) was a Dutch mathematician who is most known for popularizing the analytic geometry of René Descartes. He translated La Géométrie in Latin and wrote c ...
and his students. These commentators introduced several concepts while trying to clarify the ideas contained in Descartes's work.
The development of the Cartesian coordinate system would play a fundamental role in the development of the
calculus
Calculus is the mathematics, mathematical study of continuous change, in the same way that geometry is the study of shape, and algebra is the study of generalizations of arithmetic operations.
Originally called infinitesimal calculus or "the ...
by
Isaac Newton
Sir Isaac Newton () was an English polymath active as a mathematician, physicist, astronomer, alchemist, theologian, and author. Newton was a key figure in the Scientific Revolution and the Age of Enlightenment, Enlightenment that followed ...
and
Gottfried Wilhelm Leibniz
Gottfried Wilhelm Leibniz (or Leibnitz; – 14 November 1716) was a German polymath active as a mathematician, philosopher, scientist and diplomat who is credited, alongside Sir Isaac Newton, with the creation of calculus in addition to ...
. The two-coordinate description of the plane was later generalized into the concept of
vector spaces
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called ''vectors'', can be added together and multiplied ("scaled") by numbers called ''scalars''. The operations of vector addition and sc ...
.
Many other coordinate systems have been developed since Descartes, such as the
polar coordinates
In mathematics, the polar coordinate system specifies a given point (mathematics), point in a plane (mathematics), plane by using a distance and an angle as its two coordinate system, coordinates. These are
*the point's distance from a reference ...
for the plane, and the
spherical and
cylindrical coordinates
A cylinder () has traditionally been a three-dimensional solid, one of the most basic of curvilinear geometric shapes. In elementary geometry, it is considered a prism with a circle as its base.
A cylinder may also be defined as an infinite ...
for three-dimensional space.
Description
One dimension
An
affine line with a chosen Cartesian coordinate system is called a ''number line''. Every point on the line has a real-number coordinate, and every real number represents some point on the line.
There are two
degrees of freedom
In many scientific fields, the degrees of freedom of a system is the number of parameters of the system that may vary independently. For example, a point in the plane has two degrees of freedom for translation: its two coordinates; a non-infinite ...
in the choice of Cartesian coordinate system for a line, which can be specified by choosing two distinct points along the line and assigning them to two distinct
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s (most commonly zero and one). Other points can then be uniquely assigned to numbers by
linear interpolation
In mathematics, linear interpolation is a method of curve fitting using linear polynomials to construct new data points within the range of a discrete set of known data points.
Linear interpolation between two known points
If the two known po ...
. Equivalently, one point can be assigned to a specific real number, for instance an ''origin'' point corresponding to zero, and an
oriented length along the line can be chosen as a unit, with the orientation indicating the correspondence between directions along the line and positive or negative numbers. Each point corresponds to its signed distance from the origin (a number with an absolute value equal to the distance and a or sign chosen based on direction).
A
geometric transformation of the line can be represented by a
function of a real variable
In mathematical analysis, and applications in geometry, applied mathematics, engineering, and natural sciences, a function of a real variable is a function (mathematics), function whose domain of a function, domain is the real numbers \mathbb, or ...
, for example
translation
Translation is the communication of the semantics, meaning of a #Source and target languages, source-language text by means of an Dynamic and formal equivalence, equivalent #Source and target languages, target-language text. The English la ...
of the line corresponds to addition, and
scaling the line corresponds to multiplication. Any two Cartesian coordinate systems on the line can be related to each-other by a
linear function
In mathematics, the term linear function refers to two distinct but related notions:
* In calculus and related areas, a linear function is a function whose graph is a straight line, that is, a polynomial function of degree zero or one. For di ...
(function of the form taking a specific point's coordinate in one system to its coordinate in the other system. Choosing a coordinate system for each of two different lines establishes an
affine map from one line to the other taking each point on one line to the point on the other line with the same coordinate.
Two dimensions
A Cartesian coordinate system in two dimensions (also called a rectangular coordinate system or an orthogonal coordinate system
) is defined by an
ordered pair
In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
of
perpendicular
In geometry, two geometric objects are perpendicular if they intersect at right angles, i.e. at an angle of 90 degrees or π/2 radians. The condition of perpendicularity may be represented graphically using the '' perpendicular symbol'', � ...
lines (axes), a single
unit of length for both axes, and an orientation for each axis. The point where the axes meet is taken as the origin for both, thus turning each axis into a
number line
A number line is a graphical representation of a straight line that serves as spatial representation of numbers, usually graduated like a ruler with a particular origin point representing the number zero and evenly spaced marks in either dire ...
. For any point ''P'', a line is drawn through ''P'' perpendicular to each axis, and the position where it meets the axis is interpreted as a number. The two numbers, in that chosen order, are the ''Cartesian coordinates'' of ''P''. The reverse construction allows one to determine the point ''P'' given its coordinates.
The first and second coordinates are called the ''
abscissa'' and the ''
ordinate'' of ''P'', respectively; and the point where the axes meet is called the ''origin'' of the coordinate system. The coordinates are usually written as two numbers in parentheses, in that order, separated by a comma, as in . Thus the origin has coordinates , and the points on the positive half-axes, one unit away from the origin, have coordinates and .
In mathematics, physics, and engineering, the first axis is usually defined or depicted as horizontal and oriented to the right, and the second axis is vertical and oriented upwards. (However, in some
computer graphics
Computer graphics deals with generating images and art with the aid of computers. Computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications. ...
contexts, the ordinate axis may be oriented downwards.) The origin is often labeled ''O'', and the two coordinates are often denoted by the letters ''X'' and ''Y'', or ''x'' and ''y''. The axes may then be referred to as the ''X''-axis and ''Y''-axis. 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.
A
Euclidean plane
In mathematics, a Euclidean plane is a Euclidean space of Two-dimensional space, dimension two, denoted \textbf^2 or \mathbb^2. It is a geometric space in which two real numbers are required to determine the position (geometry), position of eac ...
with a chosen Cartesian coordinate system is called a . In a Cartesian plane, one can define canonical representatives of certain geometric figures, such as the
unit circle
In mathematics, a unit circle is a circle of unit radius—that is, a radius of 1. Frequently, especially in trigonometry, the unit circle is the circle of radius 1 centered at the origin (0, 0) in the Cartesian coordinate system in the Eucli ...
(with radius equal to the length unit, and center at the origin), the
unit square
In mathematics, a unit square is a square whose sides have length . Often, ''the'' unit square refers specifically to the square in the Cartesian plane with corners at the four points ), , , and .
Cartesian coordinates
In a Cartesian coordinat ...
(whose diagonal has endpoints at and ), the
unit hyperbola, and so on.
The two axes divide the plane into four
right angle
In geometry and trigonometry, a right angle is an angle of exactly 90 Degree (angle), degrees or radians corresponding to a quarter turn (geometry), turn. If a Line (mathematics)#Ray, ray is placed so that its endpoint is on a line and the ad ...
s, called ''quadrants''. The quadrants may be named or numbered in various ways, but the quadrant where all coordinates are positive is usually called the ''first quadrant''.
If the coordinates of a point are , then its
distances from the ''X''-axis and from the ''Y''-axis are and , respectively; where denotes the
absolute value
In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if x is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), ...
of a number.
Three dimensions

A Cartesian coordinate system for a three-dimensional space consists of an ordered triplet of lines (the ''axes'') that go through a common point (the ''origin''), and are pair-wise perpendicular; an orientation for each axis; and a single unit of length for all three axes. As in the two-dimensional case, each axis becomes a number line. For any point ''P'' of space, one considers a plane through ''P'' perpendicular to each coordinate axis, and interprets the point where that plane cuts the axis as a number. The Cartesian coordinates of ''P'' are those three numbers, in the chosen order. The reverse construction determines the point ''P'' given its three coordinates.
Alternatively, each coordinate of a point ''P'' can be taken as the distance from ''P'' to the plane defined by the other two axes, with the sign determined by the orientation of the corresponding axis.
Each pair of axes defines a ''coordinate plane''. These planes divide space into eight ''
octants''. The octants are:
The coordinates are usually written as three numbers (or algebraic formulas) surrounded by parentheses and separated by commas, as in or . Thus, the origin has coordinates , and the unit points on the three axes are , , and .
Standard names for the coordinates in the three axes are ''abscissa'', ''ordinate'' and ''applicate''. The coordinates are often denoted by the letters ''x'', ''y'', and ''z''. The axes may then be referred to as the ''x''-axis, ''y''-axis, and ''z''-axis, respectively. Then the coordinate planes can be referred to as the ''xy''-plane, ''yz''-plane, and ''xz''-plane.
In mathematics, physics, and engineering contexts, the first two axes are often defined or depicted as horizontal, with the third axis pointing up. In that case the third coordinate may be called ''height'' or ''altitude''. The orientation is usually chosen so that the 90-degree angle from the first axis to the second axis looks counter-clockwise when seen from the point ; a convention that is commonly called ''the
right-hand rule
In mathematics and physics, the right-hand rule is a Convention (norm), convention and a mnemonic, utilized to define the orientation (vector space), orientation of Cartesian coordinate system, axes in three-dimensional space and to determine the ...
''.
Higher dimensions
Since Cartesian coordinates are unique and non-ambiguous, the points of a Cartesian plane can be identified with pairs of
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s; that is, with the
Cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets and , denoted , is the set of all ordered pairs where is an element of and is an element of . In terms of set-builder notation, that is
A\times B = \.
A table c ...
, where
is the set of all real numbers. In the same way, the points in any
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
of dimension ''n'' be identified with the
tuple
In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
s (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
In geometry, a hyperplane is a generalization of a two-dimensional plane in three-dimensional space to mathematical spaces of arbitrary dimension. Like a plane in space, a hyperplane is a flat hypersurface, a subspace whose dimension is ...
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 or . 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 three-dimensional space. This custom comes from a convention of algebra, which uses letters near the end of the alphabet for unknown values (such as 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
Pressure (symbol: ''p'' or ''P'') is the force applied perpendicular to the surface of an object per unit area over which that force is distributed. Gauge pressure (also spelled ''gage'' pressure)The preferred spelling varies by country and eve ...
varies with
time
Time is the continuous progression of existence that occurs in an apparently irreversible process, irreversible succession from the past, through the present, and into the future. It is a component quantity of various measurements used to sequ ...
, 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 ''x-axis'', the ''y-axis'', the ''t-axis'', etc.
Another common convention for coordinate naming is to use subscripts, as (''x''
1, ''x''
2, ..., ''x''
''n'') for the ''n'' coordinates in an ''n''-dimensional 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
Computer programming or coding is the composition of sequences of instructions, called computer program, programs, that computers can follow to perform tasks. It involves designing and implementing algorithms, step-by-step specifications of proc ...
: by storing the coordinates of a point as an
array, instead of a
record, the
subscript
A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line of type, respectively. It is usually smaller than the rest of the text. Subscripts appear at or below the baseline, wh ...
can serve to index the coordinates.
In mathematical illustrations of two-dimensional 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''-, and ''z''-axis concepts, by starting with 2D mnemonics (for example, 'Walk along the hall then up the stairs' akin to straight across the ''x''-axis then up vertically along the ''y''-axis).
Computer graphics and
image processing
An image or picture is a visual representation. An image can be two-dimensional, such as a drawing, painting, or photograph, or three-dimensional, such as a carving or sculpture. Images may be displayed through other media, including a pr ...
, however, often use a coordinate system with the ''y''-axis 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 three-dimensional systems, a convention is to portray the ''xy''-plane horizontally, with the ''z''-axis added to represent height (positive up). Furthermore, there is a convention to orient the ''x''-axis toward the viewer, biased either to the right or left. If a diagram (
3D projection
A 3D projection (or graphical projection) is a Design, design technique used to display a three-dimensional (3D) object on a two-dimensional (2D) surface. These projections rely on perspective (graphical), visual perspective and aspect analysi ...
or
2D perspective drawing) shows the ''x''- and ''y''-axis horizontally and vertically, respectively, then the ''z''-axis should be shown pointing "out of the page" towards the viewer or camera. In such a 2D diagram of a 3D coordinate system, the ''z''-axis 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
right-hand rule
In mathematics and physics, the right-hand rule is a Convention (norm), convention and a mnemonic, utilized to define the orientation (vector space), orientation of Cartesian coordinate system, axes in three-dimensional space and to determine the ...
, unless specifically stated otherwise. All laws of physics and math assume this
right-handedness, which ensures consistency.
For 3D diagrams, the names "abscissa" and "ordinate" are rarely used for ''x'' and ''y'', respectively. When they are, the ''z''-coordinate is sometimes called the applicate. The words ''abscissa'', ''ordinate'' and ''applicate'' are sometimes used to refer to coordinate axes rather than the coordinate values.
Quadrants and octants

The axes of a two-dimensional Cartesian system divide the plane into four infinite regions, called ''quadrants'',
each bounded by two half-axes. These are often numbered from 1st to 4th and denoted by
Roman numeral
Roman numerals are a numeral system that originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into the Late Middle Ages. Numbers are written with combinations of letters from the Latin alphabet, ea ...
s: I (where the coordinates both have positive signs), II (where the abscissa is negative − and the ordinate is positive +), III (where both the abscissa and the ordinate are −), and IV (abscissa +, ordinate −). When the axes are drawn according to the mathematical custom, the numbering goes
counter-clockwise starting from the upper right ("north-east") quadrant.
Similarly, a three-dimensional Cartesian system defines a division of space into eight regions or octants,
according to the signs of the coordinates of the points. The convention used for naming a specific octant is to list its signs; for example, or . The generalization of the quadrant and octant to an arbitrary number of dimensions is the
orthant
In geometry, an orthant or hyperoctant is the analogue in ''n''-dimensional Euclidean space of a quadrant in the plane or an octant in three dimensions.
In general an orthant in ''n''-dimensions can be considered the intersection of ''n'' mutu ...
, and a similar naming system applies.
Cartesian formulae for the plane
Distance between two points
The
Euclidean distance
In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
between two points of the plane with Cartesian coordinates
and
is
This is the Cartesian version of
Pythagoras's theorem. In three-dimensional space, the distance between points
and
is
which can be obtained by two consecutive applications of Pythagoras' theorem.
Euclidean transformations
The
Euclidean transformations or Euclidean motions are the (
bijective
In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equival ...
) mappings of points of the
Euclidean plane
In mathematics, a Euclidean plane is a Euclidean space of Two-dimensional space, dimension two, denoted \textbf^2 or \mathbb^2. It is a geometric space in which two real numbers are required to determine the position (geometry), position of eac ...
to themselves which preserve distances between points. There are four types of these mappings (also called isometries):
translations,
rotations,
reflections and
glide reflections.
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 to the Cartesian coordinates of every point in the set. That is, if the original coordinates of a point are , after the translation they will be
Rotation
To
rotate a figure
counterclockwise
Two-dimensional rotation can occur in two possible directions or senses of rotation. Clockwise motion (abbreviated CW) proceeds in the same direction as a clock's hands relative to the observer: from the top to the right, then down and then to ...
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 are the Cartesian coordinates of a point, then are the coordinates of its
reflection across the second coordinate axis (the y-axis), as if that line were a mirror. Likewise, are the coordinates of its reflection across the first coordinate axis (the x-axis). In more generality, reflection across a line through the origin making an angle
with the x-axis, is equivalent to replacing every point with coordinates by the point with coordinates , 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
All
affine transformation
In Euclidean geometry, an affine transformation or affinity (from the Latin, '' affinis'', "connected with") is a geometric transformation that preserves lines and parallelism, but not necessarily Euclidean distances and angles.
More general ...
s of the plane can be described in a uniform way by using matrices. For this purpose, the coordinates
of a point are commonly represented as the
column matrix
A column or pillar in architecture and structural engineering is a structural element that transmits, through compression (physical), compression, the weight of the structure above to other structural elements below. In other words, a column i ...
The result
of applying an affine transformation to a point
is given by the formula
where
is a 2×2
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
and
is a column matrix. That is,
Among the affine transformations, the
Euclidean transformations are characterized by the fact that the matrix
is
orthogonal
In mathematics, orthogonality (mathematics), orthogonality is the generalization of the geometric notion of ''perpendicularity''. Although many authors use the two terms ''perpendicular'' and ''orthogonal'' interchangeably, the term ''perpendic ...
; that is, its columns are
orthogonal vectors
In mathematics, an inner product space (or, rarely, a Hausdorff space, Hausdorff pre-Hilbert space) is a real vector space or a complex vector space with an operation (mathematics), operation called an inner product. The inner product of two v ...
of
Euclidean norm
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces'' ...
one, or, explicitly,
and
This is equivalent to saying that times its
transpose
In linear algebra, the transpose of a Matrix (mathematics), matrix is an operator which flips a matrix over its diagonal;
that is, it switches the row and column indices of the matrix by producing another matrix, often denoted by (among other ...
is the
identity matrix
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the obje ...
. If these conditions do not hold, the formula describes a more general
affine transformation
In Euclidean geometry, an affine transformation or affinity (from the Latin, '' affinis'', "connected with") is a geometric transformation that preserves lines and parallelism, but not necessarily Euclidean distances and angles.
More general ...
.
The transformation is a translation
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
is the
identity matrix
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the obje ...
. The transformation is a rotation around some point if and only if is a
rotation matrix
In linear algebra, a rotation matrix is a transformation matrix that is used to perform a rotation (mathematics), rotation in Euclidean space. For example, using the convention below, the matrix
:R = \begin
\cos \theta & -\sin \theta \\
\sin \t ...
, meaning that it is orthogonal and
A reflection or glide reflection is obtained when,
Assuming that translations are not used (that is,
) transformations can be
composed by simply multiplying the associated transformation matrices. In the general case, it is useful to use the
augmented matrix
In linear algebra, an augmented matrix (A \vert B) is a k \times (n+1) matrix obtained by appending a k-dimensional column vector B, on the right, as a further column to a k \times n-dimensional matrix A. This is usually done for the purpose of p ...
of the transformation; that is, to rewrite the transformation formula
where
With this trick, the composition of affine transformations is obtained by multiplying the augmented matrices.
Affine transformation
Affine transformation
In Euclidean geometry, an affine transformation or affinity (from the Latin, '' affinis'', "connected with") is a geometric transformation that preserves lines and parallelism, but not necessarily Euclidean distances and angles.
More general ...
s of the
Euclidean plane
In mathematics, a Euclidean plane is a Euclidean space of Two-dimensional space, dimension two, denoted \textbf^2 or \mathbb^2. It is a geometric space in which two real numbers are required to determine the position (geometry), position of eac ...
are transformations that map lines to lines, but may change distances and angles. As said in the preceding section, they can be represented with augmented matrices:
The Euclidean transformations are the affine transformations such that the 2×2 matrix of the
is
orthogonal
In mathematics, orthogonality (mathematics), orthogonality is the generalization of the geometric notion of ''perpendicularity''. Although many authors use the two terms ''perpendicular'' and ''orthogonal'' interchangeably, the term ''perpendic ...
.
The augmented matrix that represents the
composition
Composition or Compositions may refer to:
Arts and literature
*Composition (dance), practice and teaching of choreography
* Composition (language), in literature and rhetoric, producing a work in spoken tradition and written discourse, to include ...
of two affine transformations is obtained by multiplying their augmented matrices.
Some affine transformations that are not Euclidean transformations have received specific names.
Scaling
An example of an affine transformation which is not Euclidean 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 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
In Euclidean geometry, a parallelogram is a simple polygon, simple (non-list of self-intersecting polygons, self-intersecting) quadrilateral with two pairs of Parallel (geometry), parallel sides. The opposite or facing sides of a parallelogram a ...
. Horizontal shearing is defined by:
Shearing can also be applied vertically:
Orientation and handedness
In two dimensions

Fixing or choosing the ''x''-axis determines the ''y''-axis up to direction. Namely, the ''y''-axis is necessarily the
perpendicular
In geometry, two geometric objects are perpendicular if they intersect at right angles, i.e. at an angle of 90 degrees or π/2 radians. The condition of perpendicularity may be represented graphically using the '' perpendicular symbol'', � ...
to the ''x''-axis through the point marked 0 on the ''x''-axis. 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 plane, with the positive ''x''-axis pointing right and the positive ''y''-axis pointing up (and the ''x''-axis being the "first" and the ''y''-axis the "second" axis), is considered the ''positive'' or ''standard'' orientation, also called the ''right-handed'' orientation.
A commonly used mnemonic for defining the positive orientation is the ''
right-hand rule
In mathematics and physics, the right-hand rule is a Convention (norm), convention and a mnemonic, utilized to define the orientation (vector space), orientation of Cartesian coordinate system, axes in three-dimensional space and to determine the ...
''. Placing a somewhat closed right hand on the plane with the thumb pointing up, the fingers point from the ''x''-axis to the ''y''-axis, in a positively oriented coordinate system.
The other way of orienting the plane 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 plane, rotating the coordinate system will preserve the orientation. Switching any one axis will reverse the orientation, but switching both will leave the orientation unchanged.
In three dimensions

Once the ''x''- and ''y''-axes are specified, they determine the
line along which the ''z''-axis should lie, but there are two possible orientations for this line. The two possible coordinate systems, which result are called 'right-handed' and 'left-handed'. The standard orientation, where the ''xy''-plane is horizontal and the ''z''-axis points up (and the ''x''- and the ''y''-axis form a positively oriented two-dimensional coordinate system in the ''xy''-plane if observed from ''above'' the ''xy''-plane) is called right-handed or positive.

The name derives from the
right-hand rule
In mathematics and physics, the right-hand rule is a Convention (norm), convention and a mnemonic, utilized to define the orientation (vector space), orientation of Cartesian coordinate system, axes in three-dimensional space and to determine the ...
. If the
index finger
The index finger (also referred to as forefinger, first finger, second finger, pointer finger, trigger finger, digitus secundus, digitus II, and many other terms) is the second digit of a human hand. It is located between the thumb and the m ...
of the right hand is pointed forward, the
middle finger
The middle finger, long finger, second finger, third finger, toll finger or tall man is the third digit of the human hand, typically located between the index finger and the ring finger. It is typically the longest digit. In anatomy, it is al ...
bent inward at a right angle to it, and the
thumb
The thumb is the first digit of the hand, next to the index finger. When a person is standing in the medical anatomical position (where the palm is facing to the front), the thumb is the outermost digit. The Medical Latin English noun for thumb ...
placed at a right angle to both, the three fingers indicate the relative orientation of the ''x''-, ''y''-, and ''z''-axes in a ''right-handed'' system. The thumb indicates the ''x''-axis, the index finger the ''y''-axis and the middle finger the ''z''-axis. Conversely, if the same is done with the left hand, a left-handed system results.
Figure 7 depicts a left and a right-handed coordinate system. Because a three-dimensional object is represented on the two-dimensional 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 ''xy''-plane and indicates rotation from the ''x''-axis to the ''y''-axis (in both cases). Hence the red arrow passes ''in front of'' the ''z''-axis.
Figure 8 is another attempt at depicting a right-handed coordinate system. Again, there is an ambiguity caused by projecting the three-dimensional coordinate system into the plane. Many observers see Figure 8 as "flipping in and out" between a
convex
Convex or convexity may refer to:
Science and technology
* Convex lens, in optics
Mathematics
* Convex set, containing the whole line segment that joins points
** Convex polygon, a polygon which encloses a convex set of points
** Convex polytop ...
cube and a
concave "corner". This corresponds to the two possible orientations of the space. Seeing the figure as convex gives a left-handed coordinate system. Thus the "correct" way to view Figure 8 is to imagine the ''x''-axis 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
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
, which can be thought of as an arrow pointing from the origin of the coordinate system to the point. 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 ''x''-axis and ''y''-axis respectively, generally referred to as the ''
standard basis
In mathematics, the standard basis (also called natural basis or canonical basis) of a coordinate vector space (such as \mathbb^n or \mathbb^n) is the set of vectors, each of whose components are all zero, except one that equals 1. For exampl ...
'' (in some application areas these may also be referred to as
versor
In mathematics, a versor is a quaternion of Quaternion#Norm, norm one, also known as a unit quaternion. Each versor has the form
:u = \exp(a\mathbf) = \cos a + \mathbf \sin a, \quad \mathbf^2 = -1, \quad a \in ,\pi
where the r2 = −1 conditi ...
s). Similarly, in three dimensions, the vector from the origin to the point with Cartesian coordinates
can be written as:
where
and
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 number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s to provide such a multiplication. In a two-dimensional cartesian plane, identify the point with coordinates with the complex number . Here, ''i'' is the
imaginary unit
The imaginary unit or unit imaginary number () is a mathematical constant that is a solution to the quadratic equation Although there is no real number with this property, can be used to extend the real numbers to what are called complex num ...
and is identified with the point with coordinates , so it is ''not'' the unit vector in the direction of the ''x''-axis. 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
quaternion
In mathematics, the quaternion number system extends the complex numbers. Quaternions were first described by the Irish mathematician William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. The algebra of quater ...
s.
See also
*
Cartesian coordinate robot
*
Horizontal and vertical
*
Jones diagram, which plots four variables rather than two
*
Orthogonal coordinates
In mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. ...
*
Polar coordinate system
In mathematics, the polar coordinate system specifies a given point in a plane by using a distance and an angle as its two coordinates. These are
*the point's distance from a reference point called the ''pole'', and
*the point's direction from ...
*
Regular grid
A regular grid is a tessellation of ''n''-dimensional Euclidean space by Congruence_(geometry), congruent parallelepiped#Parallelotope, parallelotopes (e.g. bricks). Its opposite is Unstructured grid, irregular grid.
Grids of this type appear on ...
*
Spherical coordinate system
In mathematics, a spherical coordinate system specifies a given point in three-dimensional space by using a distance and two angles as its three coordinates. These are
* the radial distance along the line connecting the point to a fixed point ...
Notes
Citations
General and cited references
*
*
*
*
*
*
*
*
*
Further reading
*
*
*
*
*
*
External links
Cartesian Coordinate System*
*
ttps://www.mathopenref.com/coordpoint.html Coordinates of a point– interactive tool to explore coordinates of a point
open source JavaScript class for 2D/3D Cartesian coordinate system manipulation
{{DEFAULTSORT:Cartesian Coordinate System
Analytic geometry
Elementary mathematics
René Descartes
Orthogonal coordinate systems
Three-dimensional coordinate systems