Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Cartesian coordinate system
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Most common coordinate system (geometry)}} {{Use dmy dates|date=December 2022}} [[File:Cartesian-coordinate-system.svg|thumb|Illustration of a Cartesian coordinate plane. Four points are marked and labeled with their coordinates: {{nowrap|(2, 3)}} in green, {{nowrap|(−3, 1)}} in red, {{nowrap|(−1.5, −2.5)}} in blue, and the origin {{nowrap|(0, 0)}} in purple.]] In [[geometry]], a '''Cartesian coordinate system''' ({{IPAc-en|UK|k|ɑːr|ˈ|t|iː|zj|ə|n}}, {{IPAc-en|US|k|a:r|'|t|i:|ʒ|ə|n}}) in a [[plane (geometry)|plane]] is a [[coordinate system]] that specifies each [[point (geometry)|point]] uniquely by a pair of [[real number]]s called ''coordinates'', which are the [[positive and negative numbers|signed]] distances to the point from two fixed [[perpendicular]] [[oriented line]]s, called ''[[coordinate line]]s'', ''coordinate axes'' or just ''axes'' (plural of ''axis'') of the system. The point where the axes meet is called the ''[[Origin (mathematics)|origin]]'' and has {{math|(0, 0)}} as coordinates. The axes [[direction (geometry)|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]] can be specified by three ''Cartesian coordinates'', which are the signed distances from the point to three mutually perpendicular planes. More generally, {{math|''n''}} Cartesian coordinates specify the point in an {{math|''n''}}-dimensional [[Euclidean space]] for any [[dimension]] {{math|''n''}}. These coordinates are the signed distances from the point to {{math|''n''}} mutually perpendicular fixed [[hyperplane]]s. [[File:Cartesian-coordinate-system-with-circle.svg|thumb|Cartesian coordinate system with a circle of radius 2 centered at the origin marked in red. The equation of a circle is {{nowrap|1=(''x'' − ''a'')<sup>2</sup> + (''y'' − ''b'')<sup>2</sup> = ''r''<sup>2</sup>}} where ''a'' and ''b'' are the coordinates of the center {{nowrap|(''a'', ''b'')}} and ''r'' is the radius.]] Cartesian coordinates are named for [[René Descartes]], whose invention of them in the 17th century revolutionized mathematics by allowing the expression of problems of geometry in terms of [[algebra]] and [[calculus]]. Using the Cartesian coordinate system, geometric shapes (such as [[curve]]s) can be described by [[equation]]s involving the coordinates of points of the shape. For example, a [[circle]] of radius 2, centered at the origin of the plane, may be described as the [[set (mathematics)|set]] of all points whose coordinates {{math|''x''}} and {{math|''y''}} satisfy the equation {{math|1=''x''<sup>2</sup> + ''y''<sup>2</sup> = 4}}; the [[area]], the [[perimeter]] and the [[tangent line]] at any point can be computed from this equation by using [[integral]]s and [[derivative]]s, in a way that can be applied to any curve. 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]], [[computer-aided geometric design]] and other [[computational geometry|geometry-related data processing]]. ==History== {{Descartes}} The adjective ''Cartesian'' refers to the French [[mathematician]] and [[philosopher]] [[René Descartes]], who published this idea in 1637 while he was resident in the Netherlands. It was independently discovered by [[Pierre de Fermat]], who also worked in three dimensions, although Fermat did not publish the discovery.<ref>{{Cite web|url=https://www.britannica.com/topic/analytic-geometry|title=Analytic geometry|last1=Bix|first1=Robert A.|last2=D'Souza|first2=Harry J.|website=Encyclopædia Britannica|access-date=2017-08-06}}</ref> The French cleric [[Nicole Oresme#Mathematics|Nicole Oresme]] used constructions similar to Cartesian coordinates well before the time of Descartes and Fermat.<ref>{{harvnb|Kent|Vujakovic|2017|loc=See [https://books.google.com/books?id=EVRSDwAAQBAJ&q=Nicole+Oresme+coordinate&pg=PT307 here]}}</ref> Both Descartes and Fermat used a single axis in their treatments and have a variable length measured in reference to this axis.<ref>{{Cite book |last=Katz |first=Victor J. |url=https://www.worldcat.org/title/71006826 |title=A history of mathematics: an introduction |date=2009 |publisher=Addison-Wesley |isbn=978-0-321-38700-4 |edition=3rd |location=Boston |pages=484 |oclc=71006826}}</ref> 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's work.<ref>{{harvnb|Burton|2011|loc=p. 374}}.</ref> 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]].<ref>{{harvnb|Berlinski|2011}}</ref> The two-coordinate description of the plane was later generalized into the concept of [[vector spaces]].<ref>{{harvnb|Axler|2015|p=1}}</ref> Many other coordinate systems have been developed since Descartes, such as the [[Polar coordinate system|polar coordinates]] for the plane, and the [[Spherical coordinate system|spherical]] and [[Cylindrical coordinate system|cylindrical coordinates]] for three-dimensional space. ==Description== {{Anchor|Cartesian coordinates in one dimension}} ===One dimension=== {{Main|Number line}} 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 [[degree of freedom|degrees of freedom]] 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]]s (most commonly zero and one). Other points can then be uniquely assigned to numbers by [[linear interpolation]]. Equivalently, one point can be assigned to a specific real number, for instance an ''origin'' point corresponding to zero, and an [[Curve orientation|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.{{efn|Consider the two [[ray (geometry)|rays]] or half-lines resulting from splitting the line at the origin. One of the half-lines can be assigned to positive numbers, and the other half-line to negative numbers.}} Each point corresponds to its signed distance from the origin (a number with an absolute value equal to the distance and a {{math|+}} or {{math|−}} sign chosen based on direction). A [[geometric transformation]] of the line can be represented by a [[function of a real variable]], for example [[translation (geometry)|translation]] of the line corresponds to addition, and [[scaling (geometry)|scaling]] the line corresponds to multiplication. Any two Cartesian coordinate systems on the line can be related to each-other by a [[linear function]] (function of the form {{nobr|<math>x \mapsto ax + b</math>)}} 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 transformation|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. {{Anchor|Cartesian coordinates in two dimensions}} ===Two dimensions=== {{Further|Two-dimensional space}} A Cartesian coordinate system in two dimensions (also called a '''rectangular coordinate system''' or an '''orthogonal coordinate system'''<ref name=":0" />) is defined by an [[ordered pair]] of [[perpendicular]] 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]]. 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 {{nowrap|(3, −10.5)}}. Thus the origin has coordinates {{nowrap|(0, 0)}}, and the points on the positive half-axes, one unit away from the origin, have coordinates {{nowrap|(1, 0)}} and {{nowrap|(0, 1)}}. 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]] 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]] with a chosen Cartesian coordinate system is called a '''{{vanchor|Cartesian plane}}'''. In a Cartesian plane, one can define canonical representatives of certain geometric figures, such as the [[unit circle]] (with radius equal to the length unit, and center at the origin), the [[unit square]] (whose diagonal has endpoints at {{nowrap|(0, 0)}} and {{nowrap|(1, 1)}}), the [[unit hyperbola]], and so on. The two axes divide the plane into four [[right angle]]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 {{nowrap|(''x'', ''y'')}}, then its [[distance from a point to a line|distances]] from the ''X''-axis and from the ''Y''-axis are {{abs|''y''}} and {{abs|''x''}}, respectively; where {{abs}} denotes the [[absolute value (algebra)|absolute value]] of a number. {{Anchor|Cartesian coordinates in three dimensions}} ===Three dimensions=== {{Further|Three-dimensional space}} [[File:Coord system CA 0.svg|thumb|A three dimensional Cartesian coordinate system, with origin ''O'' and axis lines ''X'', ''Y'' and ''Z'', oriented as shown by the arrows. The tick marks on the axes are one length unit apart. The black dot shows the point with coordinates {{math|1=''x'' = 2}}, {{math|1=''y'' = 3}}, and {{math|1=''z'' = 4}}, or {{math|(2, 3, 4)}}.]] 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 ''[[octant (solid geometry)|octants]]''. The octants are: <math display=block> \begin{align} (+x,+y,+z) && (-x,+y,+z) && (+x,-y,+z) && (+x,+y,-z) \\ (+x,-y,-z) && (-x,+y,-z) && (-x,-y,+z) && (-x,-y,-z) \end{align} </math> The coordinates are usually written as three numbers (or algebraic formulas) surrounded by parentheses and separated by commas, as in {{math|(3, −2.5, 1)}} or {{math|(''t'', ''u'' + ''v'', ''π''/2)}}. Thus, the origin has coordinates {{math|(0, 0, 0)}}, and the unit points on the three axes are {{math|(1, 0, 0)}}, {{math|(0, 1, 0)}}, and {{math|(0, 0, 1)}}. Standard names for the coordinates in the three axes are ''abscissa'', ''ordinate'' and ''applicate''.<ref>{{Cite web |title=Cartesian coordinates |url=https://planetmath.org/cartesiancoordinates |access-date=2024-08-25 |website=planetmath.org}}</ref> 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 {{math|(0, 0, 1)}}; a convention that is commonly called ''the [[right-hand rule]]''. [[File:Cartesian coordinate surfaces.png|thumb| The [[Coordinate system#Coordinate surface|coordinate surfaces]] of the Cartesian coordinates {{math|(''x'', ''y'', ''z'')}}. The ''z''-axis is vertical and the ''x''-axis is highlighted in green. Thus, the red plane shows the points with {{math|1=''x'' = 1}}, the blue plane shows the points with {{math|1=''z'' = 1}}, and the yellow plane shows the points with {{math|1=''y'' = −1}}. The three surfaces intersect at the point ''P'' (shown as a black sphere) with the Cartesian coordinates {{math|(1, −1, 1}}).]] ===Higher dimensions=== Since Cartesian coordinates are unique and non-ambiguous, the points of a Cartesian plane can be identified with pairs of [[real number]]s; that is, with the [[Cartesian product]] <math>\R^2 = \R\times\R</math>, where <math>\R</math> is the set of all real numbers. In the same way, the points in any [[Euclidean space]] of dimension ''n'' be identified with the [[tuple]]s (lists) of ''n'' real numbers; that is, with the Cartesian product <math>\R^n</math>. ===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== <!-- [[Abscissa]] redirects here --> The Cartesian coordinates of a point are usually written in [[parentheses]] and separated by commas, as in {{nowrap|(10, 5)}} or {{nowrap|(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 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]] 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 ''x-axis'', the ''y-axis'', the ''t-axis'', etc. Another common convention for coordinate naming is to use subscripts, as (''x''<sub>1</sub>, ''x''<sub>2</sub>, ..., ''x''<sub>''n''</sub>) for the ''n'' coordinates in an ''n''-dimensional space, especially when ''n'' is greater than 3 or unspecified. Some authors prefer the numbering (''x''<sub>0</sub>, ''x''<sub>1</sub>, ..., ''x''<sub>''n''−1</sub>). These notations are especially advantageous in [[computer programming]]: by storing the coordinates of a point as an [[Array data type|array]], instead of a [[record (computer science)|record]], the [[subscript]] 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 plane|horizontal]] axis, oriented from left to right. The second coordinate (the [[ordinate]]) is then measured along a [[vertical direction|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]], 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 [[framebuffer|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]] or [[Perspective (graphical)|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 (graphical)|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]], unless specifically stated otherwise. All laws of physics and math assume this [[#Orientation and handedness|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.<ref name=":0">{{Cite web|url=https://www.encyclopediaofmath.org/index.php/Cartesian_orthogonal_coordinate_system|title=Cartesian orthogonal coordinate system|website=Encyclopedia of Mathematics|language=en|access-date=2017-08-06}}</ref> ===Quadrants and octants=== {{Main|Octant (solid geometry)|Quadrant (plane geometry)}} <!-- This section is linked from [[Heraldry]] and from [[Quadrant (Cartesian coordinate system)]]--> [[File:Cartesian coordinates 2D.svg|thumb|The four quadrants of a Cartesian coordinate system]] The axes of a two-dimensional Cartesian system divide the plane into four infinite regions, called ''quadrants'',<ref name=":0" /> each bounded by two half-axes. These are often numbered from 1st to 4th and denoted by [[Roman numeral]]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 [[clockwise|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''',<ref name=":0" /> 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, {{nowrap|(+ + +)}} or {{nowrap|(− + −)}}. 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 <math>(x_1, y_1)</math> and <math>(x_2, y_2)</math> is <math display=block>d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}.</math> This is the Cartesian version of [[Pythagoras's theorem]]. In three-dimensional space, the distance between points <math>(x_1,y_1,z_1)</math> and <math>(x_2,y_2,z_2)</math> is <math display=block>d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2+ (z_2-z_1)^2} ,</math> which can be obtained by two consecutive applications of Pythagoras' theorem.<ref>{{harvnb|Hughes-Hallett|McCallum|Gleason|2013}}</ref> ===Euclidean transformations=== The [[Euclidean plane isometry|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): [[Translation (geometry)|translations]], [[Rotation (mathematics)|rotations]], [[Reflection (mathematics)|reflections]] and [[glide reflection]]s.<ref>{{harvnb|Smart|1998|loc=Ch. 2}}.</ref> ====Translation==== [[Translation (geometry)|Translating]] a set of points of the plane, preserving the distances and directions between them, is equivalent to adding a fixed pair of numbers {{nowrap|(''a'', ''b'')}} to the Cartesian coordinates of every point in the set. That is, if the original coordinates of a point are {{nowrap|(''x'', ''y'')}}, after the translation they will be <math display=block>(x', y') = (x + a, y + b) .</math> ====Rotation==== To [[rotation (geometry)|rotate]] a figure [[clockwise|counterclockwise]] around the origin by some angle <math>\theta</math> is equivalent to replacing every point with coordinates (''x'',''y'') by the point with coordinates (''x<nowiki>'</nowiki>'',''y<nowiki>'</nowiki>''), where <math display=block> \begin{align} x' &= x \cos \theta - y \sin \theta \\ y' &= x \sin \theta + y \cos \theta . \end{align} </math> Thus: <math display="block">(x',y') = ((x \cos \theta - y \sin \theta\,) , (x \sin \theta + y \cos \theta\,)) .</math> ====Reflection==== If {{nowrap|(''x'', ''y'')}} are the Cartesian coordinates of a point, then {{nowrap|(−''x'', ''y'')}} are the coordinates of its [[coordinate rotations and reflections|reflection]] across the second coordinate axis (the y-axis), as if that line were a mirror. Likewise, {{nowrap|(''x'', −''y'')}} 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 <math>\theta</math> with the x-axis, is equivalent to replacing every point with coordinates {{nowrap|(''x'', ''y'')}} by the point with coordinates {{nowrap|(''x''′,''y''′)}}, where <math display=block> \begin{align} x' &= x \cos 2\theta + y \sin 2\theta \\ y' &= x \sin 2\theta - y \cos 2\theta . \end{align} </math> Thus: <math display="block">(x',y') = ((x \cos 2\theta + y \sin 2\theta\,) , (x \sin 2\theta - y \cos 2\theta\,)) .</math> ====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]]s of the plane can be described in a uniform way by using matrices. For this purpose, the coordinates <math>(x,y)</math> of a point are commonly represented as the [[column matrix]] <math>\begin{pmatrix}x\\y\end{pmatrix}.</math> The result <math>(x', y')</math> of applying an affine transformation to a point <math>(x,y)</math> is given by the formula <math display=block>\begin{pmatrix}x'\\y'\end{pmatrix} = A \begin{pmatrix}x\\y\end{pmatrix} + b,</math> where <math display=block>A = \begin{pmatrix} A_{1,1} & A_{1,2} \\ A_{2,1} & A_{2,2} \end{pmatrix}</math> is a 2×2 [[Square matrix|matrix]] and <math>b=\begin{pmatrix}b_1\\b_2\end{pmatrix}</math> is a column matrix.<ref>{{harvnb|Brannan|Esplen|Gray|1998|p=49}}.</ref> That is, <math display=block> \begin{align} x' &= x A_{1,1} + y A_{1,1} + b_{1} \\ y' &= x A_{2,1} + y A_{2, 2} + b_{2}. \end{align} </math> Among the affine transformations, the [[Euclidean transformation]]s are characterized by the fact that the matrix <math>A</math> is [[orthogonal matrix|orthogonal]]; that is, its columns are [[orthogonal vectors]] of [[Euclidean norm]] one, or, explicitly, <math display=block>A_{1,1} A_{1, 2} + A_{2,1} A_{2, 2} = 0</math> and <math display=block>A_{1, 1}^2 + A_{2,1}^2 = A_{1,2}^2 + A_{2, 2}^2 = 1.</math> This is equivalent to saying that {{math|''A''}} times its [[transpose]] is the [[identity matrix]]. If these conditions do not hold, the formula describes a more general [[affine transformation]]. The transformation is a translation [[if and only if]] {{math|''A''}} is the [[identity matrix]]. The transformation is a rotation around some point if and only if {{math|''A''}} is a [[rotation matrix]], meaning that it is orthogonal and <math display=block> A_{1, 1} A_{2, 2} - A_{2, 1} A_{1, 2} = 1 .</math> A reflection or glide reflection is obtained when, <math display=block> A_{1, 1} A_{2, 2} - A_{2, 1} A_{1, 2} = -1 .</math> Assuming that translations are not used (that is, <math>b_1=b_2=0</math>) transformations can be [[function composition|composed]] by simply multiplying the associated transformation matrices. In the general case, it is useful to use the [[augmented matrix]] of the transformation; that is, to rewrite the transformation formula <math display=block>\begin{pmatrix}x'\\y'\\1\end{pmatrix} = A' \begin{pmatrix}x\\y\\1\end{pmatrix},</math> where <math display=block>A' = \begin{pmatrix} A_{1,1} & A_{1,2}&b_1 \\ A_{2,1} & A_{2,2}&b_2\\0&0&1 \end{pmatrix}.</math> With this trick, the composition of affine transformations is obtained by multiplying the augmented matrices. ===Affine transformation=== [[File:2D_affine_transformation_matrix.svg|thumb|Effect of applying various 2D affine transformation matrices on a unit square (reflections are special cases of scaling)]] [[Affine transformation]]s of the [[Euclidean plane]] 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: <math display=block>\begin{pmatrix} A_{1,1} & A_{2,1} & b_{1} \\ A_{1,2} & A_{2,2} & b_{2} \\ 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} x \\ y \\ 1 \end{pmatrix} = \begin{pmatrix} x' \\ y' \\ 1 \end{pmatrix}.</math> The Euclidean transformations are the affine transformations such that the 2×2 matrix of the <math>A_{i,j}</math> is [[orthogonal matrix|orthogonal]]. The augmented matrix that represents the [[function composition|composition]] 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 {{nowrap|(''x'', ''y'')}} are the coordinates of a point on the original figure, the corresponding point on the scaled figure has coordinates <math display=block>(x',y') = (m x, m y).</math> If ''m'' is greater than 1, the figure becomes larger; if ''m'' is between 0 and 1, it becomes smaller. ====Shearing==== A [[shear mapping|shearing transformation]] will push the top of a square sideways to form a [[parallelogram]]. Horizontal shearing is defined by: <math display=block>(x',y') = (x+y s, y)</math> Shearing can also be applied vertically: <math display=block>(x',y') = (x, x s+y)</math> ==Orientation and handedness== {{Main|Orientability}} {{See also|Right-hand rule|Axes conventions}} ===In two dimensions=== [[File:Rechte-hand-regel.jpg|left|thumb|The [[right-hand rule]] ]] Fixing or choosing the ''x''-axis determines the ''y''-axis up to direction. Namely, the ''y''-axis is necessarily the [[perpendicular]] 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]]''. 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=== [[File:Cartesian coordinate system handedness.svg|left|thumb|Fig. 7 – The left-handed orientation is shown on the left, and the right-handed on the right.]] [[File:Right hand cartesian.svg|thumb|Fig. 8 – The right-handed Cartesian coordinate system indicating the coordinate planes]] Once the ''x''- and ''y''-axes are specified, they determine the [[line (geometry)|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'.<ref>{{harvnb|Anton|Bivens|Davis|2021|p=[https://books.google.com/books?id=001EEAAAQBAJ&pg=PA657 657]}}</ref> 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'''. [[File:3D Cartesian Coodinate Handedness.jpg|thumb|3D Cartesian coordinate handedness]] The name derives from the [[right-hand 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 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 [[wikt:convex|convex]] cube and a [[wikt:concave|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. {{Clear}} ==Representing a vector in the standard basis== A point in space in a Cartesian coordinate system may also be represented by a position [[Euclidean vector|vector]], which can be thought of as an arrow pointing from the origin of the coordinate system to the point.<ref>{{harvnb|Brannan|Esplen|Gray|1998|loc=Appendix 2, pp. 377–382}}</ref> If the coordinates represent spatial positions (displacements), it is common to represent the vector from the origin to the point of interest as <math>\mathbf{r}</math>. In two dimensions, the vector from the origin to the point with Cartesian coordinates (x, y) can be written as: <math display=block> \mathbf{r} = x \mathbf{i} + y \mathbf{j},</math> where <math>\mathbf{i} = \begin{pmatrix} 1 \\ 0 \end{pmatrix}</math> and <math>\mathbf{j} = \begin{pmatrix} 0 \\ 1 \end{pmatrix}</math> are [[unit vectors]] in the direction of the ''x''-axis and ''y''-axis respectively, generally referred to as the ''[[standard basis]]'' (in some application areas these may also be referred to as [[versor]]s). Similarly, in three dimensions, the vector from the origin to the point with Cartesian coordinates <math>(x,y,z)</math> can be written as:<ref>{{harvnb|Griffiths|1999}}</ref> <math display=block> \mathbf{r} = x \mathbf{i} + y \mathbf{j} + z \mathbf{k},</math> where <math>\mathbf{i} = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix},</math> <math>\mathbf{j} = \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix},</math> and <math>\mathbf{k} = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix}.</math> 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]]s to provide such a multiplication. In a two-dimensional cartesian plane, identify the point with coordinates {{nowrap|(''x'', ''y'')}} with the complex number {{nowrap|1=''z'' = ''x'' + ''iy''}}. Here, ''i'' is the [[imaginary unit]] and is identified with the point with coordinates {{nowrap|(0, 1)}}, 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]]s. ==See also== * [[Cartesian coordinate robot]] * [[Horizontal and vertical]] * [[Jones diagram]], which plots four variables rather than two * [[Orthogonal coordinates]] * [[Polar coordinate system]] * [[Regular grid]] * [[Spherical coordinate system]] ==Notes== {{Noteslist}} ==Citations== {{Reflist}} ==General and cited references== * {{cite book | last = Axler | first = Sheldon | year = 2015 | title = Linear Algebra Done Right | publisher = Springer | isbn = 978-3-319-11079-0 | doi = 10.1007/978-3-319-11080-6 | series = Undergraduate Texts in Mathematics | url = https://zenodo.org/record/4461746 | access-date = 17 April 2022 | archive-date = 27 May 2022 | archive-url = https://web.archive.org/web/20220527195708/https://zenodo.org/record/4461746 | url-status = dead }} * {{cite book | last = Berlinski | first = David | title = A Tour of the Calculus | year = 2011 | publisher = Knopf Doubleday Publishing Group | isbn = 9780307789730 | url = https://books.google.com/books?id=Com9OzFJgRcC }} * {{cite book | last1 = Brannan | first1 = David A. | last2 = Esplen | first2 = Matthew F. | last3 = Gray | first3 = Jeremy J. | title= Geometry | publisher = Cambridge University Press | place = Cambridge | year = 1998 | isbn = 978-0-521-59787-6 }} * {{cite book | last = Burton | first = David M. | title = The History of Mathematics/An Introduction | year = 2011 | edition = 7th | publisher = McGraw-Hill | place = New York | isbn = 978-0-07-338315-6 }} * {{cite book | last = Griffiths | first = David J. | title = Introduction to Electrodynamics | publisher = Prentice Hall | year = 1999 | isbn = 978-0-13-805326-0 | url-access = registration | url = https://archive.org/details/introductiontoel00grif_0 }} * {{cite book | last1 = Hughes-Hallett | first1 = Deborah | last2 = McCallum | first2 = William G. | last3 = Gleason | first3 = Andrew M. | title = Calculus: Single and Multivariable | date = 2013 | publisher = [[John Wiley & Sons]] | isbn = 978-0470-88861-2 | edition = 6th }} * {{cite book | last1 = Kent | first1 = Alexander J. | last2 = Vujakovic | first2 = Peter | url = https://books.google.com/books?id=EVRSDwAAQBAJ | title = The Routledge Handbook of Mapping and Cartography | date = 2017-10-04 | publisher = Routledge | isbn = 9781317568216 | language = en}} * {{citation |last=Smart |first=James R. |title=Modern Geometries |edition=5th |publisher=Brooks/Cole |place=Pacific Grove |year=1998 |isbn=978-0-534-35188-5}} * {{cite book | last1 = Anton | first1 = Howard | last2 = Bivens | first2 = Irl C. | last3 = Davis | first3 = Stephen | year = 2021 | title = Calculus: Multivariable | url = https://books.google.com/books?id=001EEAAAQBAJ | page = 657 | publisher = [[John Wiley & Sons]] | isbn = 978-1-119-77798-4 }} ==Further reading== * {{cite book |author=Descartes, René |author-link=René Descartes |translator=Paul J. Oscamp |year=2001 |title=Discourse on Method, Optics, Geometry, and Meteorology |edition=Revised |publisher=Hackett Publishing |location=Indianapolis, IN |isbn=978-0-87220-567-3 |oclc=488633510 |url=https://books.google.com/books?id=XKVvclclrnwC}} * {{cite book |vauthors=Korn GA, [[Theresa M. Korn|Korn TM]] |year=1961 |title=Mathematical Handbook for Scientists and Engineers |url=https://archive.org/details/mathematicalhand0000korn |url-access=registration |publisher=McGraw-Hill |location=New York |edition=1st |lccn=59-14456 |oclc= 19959906 |pages=[https://archive.org/details/mathematicalhand0000korn/page/55 55–79]}} * {{cite book |vauthors=Margenau H, Murphy GM |author-link=Henry Margenau |year=1956 |title=The Mathematics of Physics and Chemistry |url=https://archive.org/details/mathematicsofphy0002marg |url-access=registration |publisher=D. van Nostrand |location=New York |lccn=55-10911}} * {{cite book |vauthors=Moon P, Spencer DE |year=1988 |chapter=Rectangular Coordinates (x, y, z) |title=Field Theory Handbook, Including Coordinate Systems, Differential Equations, and Their Solutions |edition=corrected 2nd, 3rd print |publisher=Springer-Verlag |location=New York |pages=9–11 (Table 1.01) |isbn=978-0-387-18430-2}} * {{cite book |vauthors=Morse PM, Feshbach H |author-link=Philip M. Morse |author2-link=Herman Feshbach |year=1969 |title=Methods of Theoretical Physics, Part I |publisher=McGraw-Hill |edition=1st |location=New York |isbn=978-0-07-043316-8 |lccn=52-11515}} * {{cite book |vauthors=Sauer R, Szabó I |year=1967 |title=Mathematische Hilfsmittel des Ingenieurs |publisher=Springer Verlag |location=New York |lccn=67-25285}} ==External links== * [https://www.cut-the-knot.org/Curriculum/Calculus/Coordinates.shtml Cartesian Coordinate System] * {{mathworld|title=Cartesian Coordinates|urlname=CartesianCoordinates}} * [https://www.random-science-tools.com/maths/coordinate-converter.htm Coordinate Converter – converts between polar, Cartesian and spherical coordinates] * [https://www.mathopenref.com/coordpoint.html Coordinates of a point] – interactive tool to explore coordinates of a point * [https://github.com/DanIsraelMalta/CoordSysJS open source JavaScript class for 2D/3D Cartesian coordinate system manipulation] {{Orthogonal coordinate systems}} {{Authority control}} {{DEFAULTSORT:Cartesian Coordinate System}} [[Category:Analytic geometry]] [[Category:Elementary mathematics]] [[Category:René Descartes]] [[Category:Orthogonal coordinate systems]] [[Category:Three-dimensional coordinate systems]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Abs
(
edit
)
Template:Anchor
(
edit
)
Template:Authority control
(
edit
)
Template:Citation
(
edit
)
Template:Cite book
(
edit
)
Template:Cite web
(
edit
)
Template:Clear
(
edit
)
Template:Descartes
(
edit
)
Template:Efn
(
edit
)
Template:Further
(
edit
)
Template:Harvnb
(
edit
)
Template:IPAc-en
(
edit
)
Template:Main
(
edit
)
Template:Math
(
edit
)
Template:Mathworld
(
edit
)
Template:Nobr
(
edit
)
Template:Noteslist
(
edit
)
Template:Nowrap
(
edit
)
Template:Orthogonal coordinate systems
(
edit
)
Template:Reflist
(
edit
)
Template:See also
(
edit
)
Template:Short description
(
edit
)
Template:Use dmy dates
(
edit
)
Template:Vanchor
(
edit
)