{
  "id": "cartesian-coordinate-system",
  "title": "Cartesian Coordinate System",
  "lang": "en",
  "source_lang": "en",
  "summary": "A Cartesian coordinate system locates points using signed distances along mutually perpendicular axes, connecting geometry with algebra, calculus, and computation.",
  "category": "mathematics",
  "subcategory": "geometry",
  "type": "concept",
  "aliases": [
    "Rectangular coordinate system",
    "Orthogonal Cartesian coordinate system"
  ],
  "generated_at": "2026-11-03",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/cartesian-coordinate-system/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/cartesian-coordinate-system/",
      "json": "https://aiwiki.page/zh/cartesian-coordinate-system.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A Cartesian coordinate system specifies the position of a point by an ordered collection of numbers relative to a fixed origin and mutually perpendicular axes. In a plane, two coordinates identify a point; in ordinary three-dimensional space, three are required. With a common unit of length, these coordinates are signed distances measured along the axis directions. The system is named after René Descartes, whose seventeenth-century work helped establish the systematic use of algebraic equations to study geometric objects.\n\nCartesian coordinates provide a central connection between geometry and algebra. They turn questions about points, lines, curves, and surfaces into questions about numbers and equations, while also giving geometric interpretations to algebraic relationships. Their extension to arbitrary finite dimensions underlies much of linear algebra, calculus, mechanics, scientific computing, and statistical modeling. The distinction between a geometric object and its coordinate description is fundamental: changing the coordinate system changes the numbers assigned to an object, not necessarily the object itself."
    },
    {
      "heading": "Historical development",
      "text": "The emergence of Cartesian coordinates was part of a broader development of analytic geometry, rather than the invention of a complete modern diagrammatic convention at a single moment. Ancient Greek mathematicians studied curves through relationships between lengths. Apollonius’s treatment of conic sections, for example, used relations between segments that can be translated into equations. These methods nevertheless remained embedded in geometric constructions rather than a general system assigning signed numerical coordinates to every point of a plane.\n\nMedieval and Renaissance work supplied additional precedents. In the fourteenth century, Nicole Oresme represented varying quantities by lengths erected along a baseline, producing diagrams that resemble later graphs. Such representations concerned the relationship between quantities rather than a fully developed Cartesian plane. The growth of symbolic algebra during the sixteenth and early seventeenth centuries made it increasingly practical to describe an unknown geometric length by a letter and manipulate equations involving it.\n\nThe decisive seventeenth-century contributions came independently from Descartes and Pierre de Fermat. Descartes published La Géométrie in 1637 as an appendix to the Discourse on Method. He showed how geometric problems could be expressed through algebraic relations between variable lengths, and how equations could classify and determine curves. His treatment of the problem of Pappus demonstrated the power of this approach: a condition involving distances from a variable point to given lines could be converted into an equation describing its locus. Fermat developed a closely related theory of plane loci during the 1630s; his Introduction to Plane and Solid Loci was published posthumously in 1679.\n\nNeither author simply presented the now-familiar school diagram of two perpendicular, fully signed axes with four numbered quadrants. Descartes often worked from a baseline and a variable segment meeting it at a fixed angle, and modern conventions for negative coordinates, axis labels, and graphing developed gradually. The historical importance of his work lies chiefly in the systematic interchange between geometric construction and algebraic equation. The adjective “Cartesian” derives from Cartesius, the Latinized form of his name.\n\nDuring the later seventeenth and eighteenth centuries, coordinate methods became integral to the calculus developed by Isaac Newton and Gottfried Wilhelm Leibniz. Curves could be studied through their tangents, rates of change, and enclosed areas. Eighteenth-century authors, including Leonhard Euler, helped systematize the language of functions and analytic geometry. Three-dimensional coordinate methods likewise became increasingly important in the study of surfaces and mechanics. Modern Cartesian coordinates therefore combine the algebraic-geometric program of the seventeenth century with later conventions concerning functions, vectors, signed quantities, and higher-dimensional spaces."
    },
    {
      "heading": "Axes, coordinates, and geometric frames",
      "text": "A Cartesian coordinate system in a Euclidean plane consists of an origin \\(O\\), two perpendicular directed axes, and a unit of length. The axes are conventionally called the \\(x\\)-axis and \\(y\\)-axis. Their positive directions are part of the specification; perpendicular lines without chosen directions do not determine signed coordinates. Usually the positive \\(x\\)-direction is drawn to the right and the positive \\(y\\)-direction upward, but these are drawing conventions rather than mathematical requirements.\n\nFor any point \\(P\\), perpendicular projections onto the axes determine its coordinates \\(x\\) and \\(y\\). Its coordinate representation is the ordered pair \\((x,y)\\). Order matters: \\((2,5)\\) and \\((5,2)\\) generally identify different points. The coordinate is negative when the corresponding projection lies in the negative direction from the origin. Thus \\((-3,2)\\) describes a point three units opposite the positive \\(x\\)-direction and two units along the positive \\(y\\)-direction. A point on the \\(x\\)-axis has \\(y=0\\), and the origin has coordinates \\((0,0)\\).\n\nThe axes divide the plane into four open quadrants. Under the usual orientation, quadrant I has signs \\((+,+)\\), quadrant II \\((-,+)\\), quadrant III \\((-,-)\\), and quadrant IV \\((+,-)\\). Points on the axes belong to none of these open quadrants. This sign structure expresses two independent positional choices and is not a classification by distance: points arbitrarily close to the origin can lie in any quadrant.\n\nA more structural definition uses an origin together with an orthonormal basis of displacement vectors. If \\(\\mathbf e_1\\) and \\(\\mathbf e_2\\) are perpendicular unit vectors, the coordinates of \\(P\\) are the unique numbers satisfying\n\n\\[\\overrightarrow{OP}=x\\mathbf e_1+y\\mathbf e_2.\\]\n\nThe same construction in three dimensions uses three mutually perpendicular unit vectors:\n\n\\[\\overrightarrow{OP}=x\\mathbf e_1+y\\mathbf e_2+z\\mathbf e_3.\\]\n\nThe existence and uniqueness of these coefficients follow from the basis property.\n\nA point and a displacement should not be identified without qualification. Points belong naturally to an affine space, in which differences of points are vectors but addition of two points has no origin-independent meaning. Selecting \\(O\\) allows each point to be represented by its position vector. Changing \\(O\\) changes position coordinates, whereas the displacement between two fixed points remains the same geometric vector.\n\nThe displayed scales also require attention. A graph may use one centimeter for one horizontal unit but one centimeter for ten vertical units. Its plotted axes remain perpendicular on the page, yet the drawing does not preserve the angles and length ratios of the standard numerical plane. Graphs of unlike physical quantities, such as time and temperature, are useful Cartesian-style plots without representing two interchangeable spatial directions."
    },
    {
      "heading": "Distance, angles, and orientation",
      "text": "The simple distance formulas of Cartesian geometry arise from perpendicular unit directions. For points \\(P=(x_1,y_1)\\) and \\(Q=(x_2,y_2)\\), the horizontal and vertical differences form the legs of a right triangle. The Pythagorean theorem therefore gives\n\n\\[d(P,Q)=\\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.\\]\n\nIn three dimensions, applying the same argument twice yields\n\n\\[d(P,Q)=\\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}.\\]\n\nThis is the standard Euclidean distance. The formula depends on both orthogonality and the use of unit basis vectors.\n\nFor vectors \\(\\mathbf u=(u_1,\\ldots,u_n)\\) and \\(\\mathbf v=(v_1,\\ldots,v_n)\\), the Euclidean dot product is\n\n\\[\\mathbf u\\cdot\\mathbf v=\\sum_{i=1}^{n}u_i v_i.\\]\n\nIt determines length through \\(\\|\\mathbf u\\|=\\sqrt{\\mathbf u\\cdot\\mathbf u}\\) and, for nonzero vectors, angle through\n\n\\[\\cos\\theta=\\frac{\\mathbf u\\cdot\\mathbf v}{\\|\\mathbf u\\|\\|\\mathbf v\\|}.\\]\n\nTwo nonzero vectors are perpendicular exactly when their dot product vanishes. These formulas let geometric questions be answered by arithmetic operations: for instance, \\((2,1)\\) and \\((-1,2)\\) are perpendicular because their dot product is zero.\n\nCoordinates also give weighted positions. The midpoint of \\(P\\) and \\(Q\\) has coordinate vector \\((P+Q)/2\\), interpreted component by component. More generally, the point\n\n\\[(1-t)P+tQ\\]\n\nlies on their joining line, and lies on the line segment when \\(0\\leq t\\leq1\\). Although the notation resembles addition of points, this is a well-defined affine combination because its coefficients sum to one. Its value is independent of the temporary choice of origin used to perform the calculation.\n\nOrientation is additional structure not fixed by distances alone. In three dimensions, an ordered set of axes is right-handed when the first two positive unit directions satisfy\n\n\\[\\mathbf e_1\\times\\mathbf e_2=\\mathbf e_3,\\]\n\nwhere \\(\\times\\) denotes the cross product. Reversing one axis changes handedness but preserves all distances. In a plane, the usual positive orientation is the counterclockwise turn from the positive \\(x\\)-axis toward the positive \\(y\\)-axis.\n\nOrientation affects signed areas, cross products, and normal directions. For two planar vectors, the quantity \\(u_1v_2-u_2v_1\\) is their signed parallelogram area. Its absolute value is the ordinary area, while its sign records orientation. In three dimensions, the scalar triple product gives signed volume. Consequently, two Cartesian systems can describe identical distances and angles while assigning opposite signs to orientation-dependent quantities. A coordinate convention must therefore specify axis order and handedness whenever these quantities matter."
    },
    {
      "heading": "Equations of lines, curves, and surfaces",
      "text": "The basic operation of analytic geometry is to associate a geometric set with the solutions of an equation. In a Cartesian plane, a line has the general form\n\n\\[ax+by+c=0,\\]\n\nwhere \\(a\\) and \\(b\\) are not both zero. The vector \\((a,b)\\) is perpendicular to the line. When \\(b\\neq0\\), this becomes \\(y=mx+k\\), where \\(m=-a/b\\) is the slope. The general form also includes vertical lines, such as \\(x=3\\), which cannot be written as a single-valued function \\(y=f(x)\\).\n\nA line can alternatively be represented parametrically:\n\n\\[(x,y)=(x_0,y_0)+t(u,v),\\qquad t\\in\\mathbb R,\\]\n\nwith \\((u,v)\\neq(0,0)\\). This representation identifies a point on the line and a direction along it. Intersections of lines become solutions of a system of linear equations. Two distinct lines in a plane either have one intersection or are parallel; in three dimensions, lines can also be skew, meaning that they neither intersect nor lie in a common plane.\n\nA circle with center \\((a,b)\\) and radius \\(r>0\\) is described by\n\n\\[(x-a)^2+(y-b)^2=r^2.\\]\n\nThis equation follows directly from the distance formula. Other conic sections have standard forms such as\n\n\\[y^2=4px,\\qquad \\frac{x^2}{a^2}+\\frac{y^2}{b^2}=1,\\qquad \\frac{x^2}{a^2}-\\frac{y^2}{b^2}=1,\\]\n\nfor a parabola, ellipse, and hyperbola respectively, with appropriate nonzero parameters. Translations and rotations place more general second-degree equations into these standard positions, while degenerate cases can produce points, intersecting lines, or empty real solution sets.\n\nA crucial distinction separates a general curve from the graph of a function. A graph \\(y=f(x)\\) assigns only one output to each allowed input. A circle fails this condition because most vertical lines crossing it meet two points. Implicit equations such as \\(F(x,y)=0\\) can represent such curves without choosing one variable as a globally defined function of the other. Parametric descriptions provide another option: \\(x=r\\cos t\\), \\(y=r\\sin t\\) traces a circle as \\(t\\) varies.\n\nIn three dimensions, one equation usually describes a surface rather than a curve. A plane has equation \\(ax+by+cz=d\\), and a sphere has equation\n\n\\[(x-a)^2+(y-b)^2+(z-c)^2=r^2.\\]\n\nTwo surface equations can describe a curve of intersection, although special or singular cases behave differently. The systematic study of geometric solution sets of polynomial equations leads to algebraic geometry. Cartesian coordinates make this correspondence explicit, but the dimension and shape of a solution set still depend on the equations’ independence and other structural properties."
    },
    {
      "heading": "Changes of Cartesian coordinates",
      "text": "Two Cartesian descriptions of the same Euclidean space can differ in their origins, axis directions, and handedness. With the same length unit, their relationship consists of a translation and an orthogonal change of basis. Let \\(\\mathbf x\\) be the coordinate column of a point in an original frame, let \\(\\mathbf a\\) be the original coordinates of a new origin, and let the columns of \\(Q\\) be the new unit basis vectors expressed in the original frame. Then\n\n\\[\\mathbf x=\\mathbf a+Q\\mathbf x', \\qquad \\mathbf x'=Q^{T}(\\mathbf x-\\mathbf a).\\]\n\nThe matrix \\(Q\\) satisfies \\(Q^{T}Q=I\\), making it an orthogonal matrix.\n\nA standard example is a counterclockwise rotation of the axes through an angle \\(\\theta\\), with the origin unchanged. The coordinates of a fixed point transform as\n\n\\[x'=x\\cos\\theta+y\\sin\\theta,\\qquad y'=-x\\sin\\theta+y\\cos\\theta.\\]\n\nThese equations are easily confused with an active rotation of the point. If the axes stay fixed and the point itself rotates counterclockwise, its new coordinates instead satisfy\n\n\\[x_{\\mathrm{new}}=x\\cos\\theta-y\\sin\\theta,\\qquad y_{\\mathrm{new}}=x\\sin\\theta+y\\cos\\theta.\\]\n\nThe two operations use inverse matrices because one changes the description and the other changes the object.\n\nOrthogonal coordinate changes preserve dot products:\n\n\\[(Q\\mathbf u)\\cdot(Q\\mathbf v)=\\mathbf u\\cdot\\mathbf v.\\]\n\nThey therefore preserve distances and angles. Their determinants are either \\(+1\\) or \\(-1\\). The value \\(+1\\) indicates preservation of orientation; in three dimensions these matrices describe rotations. The value \\(-1\\) indicates reversal of orientation, as occurs in a reflection. Translation does not affect vector differences and therefore also preserves distances. Together these transformations describe Euclidean isometries.\n\nA general invertible affine map has the form \\(\\mathbf x\\mapsto A\\mathbf x+\\mathbf b\\), but it need not preserve Cartesian metric structure. A shear changes angles, and unequal scaling changes the relative lengths of vectors in different directions. If the columns of \\(A\\) are used as basis vectors, the resulting coordinates remain valid affine coordinates, but they are not standard Cartesian coordinates unless those vectors are orthonormal. Their metric calculations must account for the changed basis.\n\nCoordinate transformations simplify equations without changing the underlying geometry. Translating to a circle’s center removes its linear terms. Rotating axes can eliminate the mixed term in a real quadratic form because its symmetric coefficient matrix admits an orthonormal basis of eigenvectors. For example, the equation \\(5x^2+6xy+5y^2=8\\) becomes \\(8u^2+2v^2=8\\) in suitable rotated coordinates. The ellipse is unchanged; the new axes expose its principal directions and semiaxis lengths."
    },
    {
      "heading": "Higher dimensions and abstract coordinate spaces",
      "text": "Cartesian coordinates extend directly to \\(n\\) dimensions. A point is represented by an ordered tuple\n\n\\[(x_1,x_2,\\ldots,x_n)\\]\n\nof real numbers. The set of all such tuples is denoted \\(\\mathbb R^n\\), the \\(n\\)-fold Cartesian product of \\(\\mathbb R\\) with itself. A Cartesian product is a set-theoretic construction and need not carry geometric structure: products of arbitrary sets are also Cartesian products. To obtain standard Euclidean geometry on \\(\\mathbb R^n\\), one additionally equips these tuples with componentwise vector operations and the usual inner product.\n\nIn an \\(n\\)-dimensional Euclidean space, selecting an origin and an ordered orthonormal basis produces Cartesian coordinates. A point \\(P\\) then satisfies\n\n\\[\\overrightarrow{OP}=\\sum_{i=1}^{n}x_i\\mathbf e_i, \\qquad x_i=\\overrightarrow{OP}\\cdot\\mathbf e_i.\\]\n\nThe second formula identifies each coordinate as an orthogonal projection onto a unit axis. Distance is given by\n\n\\[d(P,Q)^2=\\sum_{i=1}^{n}(x_i-y_i)^2.\\]\n\nThere is no need to visualize \\(n\\) perpendicular directions physically for these formulas to define a consistent geometry.\n\nA general vector space also admits coordinates after a basis is chosen, but those coordinates are not automatically Cartesian in the metric sense. A vector space may have no specified inner product, so perpendicularity and unit length may not yet be defined. Even when an inner product exists, an arbitrary basis need not be orthonormal. If its basis vectors are \\(\\mathbf b_i\\), their inner products form the Gram matrix \\(G\\), with entries \\(G_{ij}=\\mathbf b_i\\cdot\\mathbf b_j\\). For coordinate columns \\(\\mathbf u\\) and \\(\\mathbf v\\),\n\n\\[\\langle \\mathbf u,\\mathbf v\\rangle=\\mathbf u^{T}G\\mathbf v.\\]\n\nThe standard Cartesian formula is the special case \\(G=I\\).\n\nHigher-dimensional coordinates are indispensable when several independent quantities must be tracked. The instantaneous positions of \\(N\\) particles in ordinary space require \\(3N\\) position coordinates before constraints are imposed. A statistical observation with \\(p\\) numerical measurements can be stored as a point in \\(\\mathbb R^p\\). These constructions use coordinate spaces, although their appropriate distance functions depend on the application rather than merely on the number of entries.\n\nIn particular, coordinates with different physical dimensions cannot automatically be combined into a meaningful Euclidean distance. Adding a squared time difference to a squared mass difference has no unit-independent interpretation without specified scales or a suitable metric. Standardization or physically derived weights can define a useful geometry, but that geometry is an additional modeling choice. Similarly, an arbitrary manifold can have local coordinates without admitting one global Cartesian frame. The existence of numerical coordinates is therefore more general than the existence of Euclidean Cartesian structure."
    },
    {
      "heading": "Calculus and physical fields",
      "text": "Cartesian coordinates provide especially simple formulas for differentiation because their unit basis vectors are constant throughout space. For a differentiable scalar function \\(f(x,y,z)\\), the gradient is\n\n\\[\\nabla f= \\frac{\\partial f}{\\partial x}\\mathbf e_1+ \\frac{\\partial f}{\\partial y}\\mathbf e_2+ \\frac{\\partial f}{\\partial z}\\mathbf e_3.\\]\n\nEach partial derivative measures change while the other coordinates remain fixed. The gradient combines these rates into a geometric vector: its dot product with a unit direction gives the directional derivative in that direction. Under an orthogonal coordinate change, its components change consistently with the vector it represents.\n\nFor a vector field \\(\\mathbf F=(F_x,F_y,F_z)\\), divergence and curl also have simple Cartesian expressions:\n\n\\[\\nabla\\cdot\\mathbf F =\\frac{\\partial F_x}{\\partial x} +\\frac{\\partial F_y}{\\partial y} +\\frac{\\partial F_z}{\\partial z},\\]\n\n\\[\\nabla\\times\\mathbf F= \\left( \\frac{\\partial F_z}{\\partial y}-\\frac{\\partial F_y}{\\partial z}, \\frac{\\partial F_x}{\\partial z}-\\frac{\\partial F_z}{\\partial x}, \\frac{\\partial F_y}{\\partial x}-\\frac{\\partial F_x}{\\partial y} \\right).\\]\n\nDivergence measures local net outward flow per unit volume, while curl describes local circulation with an orientation convention. The Laplacian of a scalar field is\n\n\\[\\nabla^2 f= \\frac{\\partial^2f}{\\partial x^2} +\\frac{\\partial^2f}{\\partial y^2} +\\frac{\\partial^2f}{\\partial z^2}.\\]\n\nIts simple sum-of-second-derivatives form reflects the constant orthonormal coordinate basis.\n\nThese operators appear throughout mathematical physics. For constant thermal diffusivity \\(\\alpha\\) in an isotropic homogeneous medium, the heat equation is \\(\\partial T/\\partial t=\\alpha\\nabla^2T\\). The classical wave equation similarly relates a second time derivative to a spatial Laplacian. Cartesian expressions allow these laws to be reduced to explicit partial differential equations for numerical or analytic treatment. The coordinate system does not create the physical law; it supplies components in which the law can be calculated.\n\nIntegration likewise takes a particularly direct form. The Euclidean volume element in three-dimensional Cartesian coordinates is \\(dV=dx\\,dy\\,dz\\). Under a smooth invertible substitution \\(\\mathbf x=\\Phi(\\mathbf u)\\), it becomes\n\n\\[dV=\\left|\\det D\\Phi(\\mathbf u)\\right|\\,du_1\\,du_2\\,du_3,\\]\n\nwhere \\(D\\Phi\\) is the Jacobian matrix. For an orthogonal coordinate change, the absolute determinant is one, so volumes are preserved. For nonlinear coordinates, the determinant generally varies with position.\n\nIn classical mechanics, a particle’s position in a fixed Cartesian frame is \\(\\mathbf r(t)=(x(t),y(t),z(t))\\). Its velocity and acceleration follow by differentiating each component. Newton’s equation becomes three scalar equations, such as \\(m\\ddot x=F_x\\). If the coordinate frame itself rotates, its basis vectors depend on time, and differentiation introduces additional terms. This distinction explains why equations written in rotating frames contain centrifugal and Coriolis terms even though ordinary Cartesian differentiation in a fixed frame does not."
    },
    {
      "heading": "Relation to polar, cylindrical, and spherical coordinates",
      "text": "Cartesian coordinates are not always the most economical description of a geometric problem. Circular, axial, or spherical symmetry often favors coordinates adapted to that symmetry. In planar polar coordinates, a point is described by a radial distance \\(r\\geq0\\) and an angle \\(\\theta\\), related to Cartesian coordinates by\n\n\\[x=r\\cos\\theta,\\qquad y=r\\sin\\theta.\\]\n\nConversely, \\(r=\\sqrt{x^2+y^2}\\), while the angle must be chosen with the correct quadrant. The expression \\(\\arctan(y/x)\\) alone does not determine that quadrant and is undefined when \\(x=0\\).\n\nPolar coordinates illustrate an important distinction between a geometric singularity and a coordinate singularity. At the origin, every value of \\(\\theta\\) with \\(r=0\\) represents the same point. Nothing is singular about the Euclidean plane there; only the coordinate representation loses uniqueness. Angles differing by \\(2\\pi\\) also describe the same direction. A globally single-valued angle therefore requires a branch convention, introducing a discontinuity along some ray or excluding it from the domain.\n\nIn three dimensions, cylindrical coordinates combine planar polar coordinates with a Cartesian height:\n\n\\[x=r\\cos\\theta,\\qquad y=r\\sin\\theta,\\qquad z=z.\\]\n\nThey simplify cylinders, axial flows, and rotationally symmetric fields. Spherical coordinates use a radial distance \\(\\rho\\), an inclination \\(\\theta\\) from the positive \\(z\\)-axis, and an azimuth \\(\\phi\\):\n\n\\[x=\\rho\\sin\\theta\\cos\\phi,\\qquad y=\\rho\\sin\\theta\\sin\\phi,\\qquad z=\\rho\\cos\\theta.\\]\n\nAngle names and conventions vary between disciplines, so their meanings must be stated explicitly.\n\nThese systems can be orthogonal without being Cartesian. Their coordinate curves meet at right angles away from coordinate singularities, but some curves are circles and their unit directions vary from point to point. In polar coordinates, an angular increment \\(d\\theta\\) corresponds to an arc length \\(r\\,d\\theta\\), not simply \\(d\\theta\\). Accordingly,\n\n\\[ds^2=dr^2+r^2d\\theta^2, \\qquad dA=r\\,dr\\,d\\theta.\\]\n\nIn spherical coordinates,\n\n\\[ds^2=d\\rho^2+\\rho^2d\\theta^2+ \\rho^2\\sin^2\\theta\\,d\\phi^2.\\]\n\nThese scale factors are encoded by the metric tensor.\n\nA coordinate choice can greatly simplify both equations and integration domains. A disk is described in Cartesian coordinates by \\(x^2+y^2\\leq R^2\\), but in polar coordinates by \\(0\\leq r\\leq R\\) with a full angular range. A spherically symmetric function depends on \\(\\rho\\) alone rather than separately on \\(x,y,z\\). Conversely, rectangular boundaries and constant directional coefficients often favor Cartesian coordinates. The useful system is determined by the geometry and symmetries of the problem, not by any general superiority of one coordinate language."
    },
    {
      "heading": "Computation, measurement, and graphical conventions",
      "text": "Digital geometry commonly stores points as Cartesian coordinate tuples and transforms them using matrix operations. In computer graphics, a model may be described first in object coordinates, then placed in world coordinates, and finally expressed relative to a camera. Each stage has a distinct origin and axis convention. Converting between frames is therefore a practical application of coordinate transformations, not merely an abstract change of notation. Robotics uses closely related frame relationships to connect a tool, its supporting mechanism, and the surrounding workspace.\n\nTranslations can be combined with linear transformations by using homogeneous coordinates. A point \\((x,y,z)\\) is represented by \\((x,y,z,1)\\), allowing an affine transformation to be written\n\n\\[\\begin{pmatrix} \\mathbf x'\\\\1 \\end{pmatrix} = \\begin{pmatrix} A&\\mathbf b\\\\ 0&1 \\end{pmatrix} \\begin{pmatrix} \\mathbf x\\\\1 \\end{pmatrix}.\\]\n\nThis makes successive transformations ordinary matrix products. A displacement vector instead has final coordinate zero, so a translation does not alter it. Perspective projection can also be represented using homogeneous coordinates, followed by division by the final coordinate; that operation is not a Euclidean isometry.\n\nScreen and image coordinates frequently differ from the standard classroom convention. A raster image often places its origin near the upper-left corner, with the horizontal coordinate increasing rightward and the vertical coordinate increasing downward. Pixel indices are discrete, whereas geometric image coordinates may be continuous. Pixel centers may be assigned integer or half-integer locations depending on the convention. An unnoticed mismatch can produce reflections, vertical flips, or half-pixel offsets when images and geometric models are combined.\n\nMeasurement systems add further distinctions. A local surveying or laboratory frame can approximate space with Cartesian coordinates, but longitude and latitude are angular coordinates on a reference surface, not Cartesian distances. Earth-centered three-dimensional systems instead locate positions relative to axes fixed by geodetic conventions. Converting measurements requires attention to the reference origin, axis definitions, units, and the shape used to model Earth; identical numerical triples in different reference systems need not represent the same place.\n\nFinite computer precision also limits coordinate calculations. In floating-point arithmetic, the spacing between representable numbers generally grows with magnitude. Storing very large position coordinates can therefore obscure small separations, and subtracting nearby rounded coordinates may yield an inaccurate displacement. Working in a suitably chosen local frame can reduce this problem, although it cannot restore precision already lost in stored data.\n\nCartesian grids also support numerical approximations to fields. On a uniform grid with spacing \\(h\\), a second derivative can be approximated by\n\n\\[f''(x_i)\\approx \\frac{f(x_i+h)-2f(x_i)+f(x_i-h)}{h^2}.\\]\n\nAnalogous componentwise formulas build discrete Laplacians for heat flow, waves, and potential problems. Such grids make neighboring locations and coordinate directions easy to index, but curved boundaries may require special boundary treatments or different meshes. The coordinate representation and the discretization are separate choices: the former describes positions, while the latter selects finitely many values with which a computation approximates a continuous problem."
    }
  ],
  "links": [
    "rene-descartes",
    "geometry",
    "algebra",
    "linear-algebra",
    "calculus",
    "analytic-geometry",
    "pierre-de-fermat",
    "gottfried-wilhelm-leibniz",
    "leonhard-euler",
    "ordered-pair",
    "orthonormal-basis",
    "affine-space",
    "pythagorean-theorem",
    "euclidean-distance",
    "dot-product",
    "affine-combination",
    "cross-product",
    "equation",
    "system-of-linear-equations",
    "circle",
    "conic-section",
    "graph-of-a-function",
    "polynomial",
    "algebraic-geometry",
    "matrix",
    "orthogonal-matrix",
    "determinant",
    "isometry",
    "affine-map",
    "eigenvalues-and-eigenvectors",
    "real-number",
    "cartesian-product",
    "vector-space",
    "basis-linear-algebra",
    "inner-product",
    "gram-matrix",
    "manifold",
    "gradient",
    "partial-derivative",
    "directional-derivative",
    "vector-field",
    "laplace-operator",
    "heat-equation",
    "jacobian-matrix",
    "classical-mechanics",
    "polar-coordinate-system",
    "metric-tensor",
    "homogeneous-coordinates",
    "floating-point-arithmetic"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}