Cartesian coordinates and distance in the plane
Anchor (Master): Descartes 1637 La Geometrie; Fermat 1636 Ad Locos Planos et Solidos Isagoge; Lang Basic Mathematics Ch. 9
Intuition [Beginner]
A point in the plane needs two numbers to pin it down: how far left or right from a fixed reference point, and how far up or down. The horizontal number is and the vertical number is . Together they form a coordinate pair . The reference point where both numbers are zero is the origin .
The horizontal line through the origin is the -axis and the vertical line is the -axis. These two axes divide the plane into four regions called quadrants, numbered counterclockwise starting from the upper right. In the first quadrant both and are positive; the signs then alternate as you move around.
The distance between two points in the plane reduces to a right triangle. The horizontal gap between and is and the vertical gap is . These are the two legs of a right triangle whose hypotenuse is the straight-line distance. That is why the Cartesian coordinate system exists: it turns every geometric question about position and distance into arithmetic with pairs of numbers.
Visual [Beginner]
A flat grid with two perpendicular axes crossing at the origin. Two points and are marked with dots. Dashed horizontal and vertical lines from and meet at the corner , forming a right triangle with the direct segment as the hypotenuse.
The horizontal leg has length and the vertical leg has length . The Pythagorean theorem gives the hypotenuse: .
Worked example [Beginner]
Find the distance between and .
Step 1. Compute the horizontal gap: .
Step 2. Compute the vertical gap: .
Step 3. Apply the Pythagorean theorem: .
What this tells us: any two points determine a right triangle whose legs are parallel to the axes, and the distance is always the square root of the sum of the squared gaps.
Check your understanding [Beginner]
Formal definition [Intermediate+]
The Cartesian plane is the set of all ordered pairs with . The distance between points and is
The midpoint of the segment is
A line in is the solution set of a linear equation with . When the line can be written in slope-intercept form , where is the slope and is the -intercept [Lang — Basic Mathematics Ch. 9].
Three equivalent forms for the equation of a line:
- Point-slope. Through with slope : .
- Two-point. Through and with : .
- Slope-intercept. With slope and -intercept : .
Parallel and perpendicular conditions. Two non-vertical lines with slopes and are parallel iff , and perpendicular iff .
Counterexamples to common slips
- The distance formula uses squares inside the square root, not absolute values added together. Using gives the taxicab distance, which exceeds the straight-line distance in general: between and the Euclidean distance is but the taxicab distance is .
- The perpendicular condition requires both slopes to be finite. A vertical line has undefined slope and is perpendicular to a horizontal line (slope ), but the product formula does not apply directly to that case.
- The midpoint formula averages both coordinates independently. Between and the midpoint is , not .
Key theorem with proof [Intermediate+]
Theorem (distance formula). For any two points and in , the straight-line distance between them is
Proof. The horizontal displacement from to is and the vertical displacement is . Construct the right triangle with vertices , , and the corner point . The leg has length and the leg has length . By the Pythagorean theorem [Lang — Basic Mathematics Ch. 6], the hypotenuse satisfies
Since for every real , the absolute-value bars may be dropped:
Taking the positive square root (distance is non-negative) yields the distance formula.
Bridge. The distance formula builds toward the line-equation framework of 00.03.01, where slope-intercept and general forms describe the geometry of straight lines, and the same Pythagorean structure appears again in 00.06.01 as the hypotenuse-length computation underlying right-triangle trigonometry. The foundational reason the formula works is that the absolute value on from 00.01.02 extends to the Euclidean norm on via Pythagoras, and this is exactly the construction that makes the plane a metric space. Putting these together, the bridge is between one-dimensional distance and two-dimensional distance, and the pattern generalises to for any dimension via the same sum-of-squares structure.
Exercises [Intermediate+]
Advanced results [Master]
The Cartesian plane carries a norm and metric inherited from the Euclidean inner product, and the coordinate-geometry results at intermediate tier specialise a general framework for normed vector spaces.
Theorem 1 (Euclidean norm). The function on satisfies positivity ( with equality iff ), homogeneity (), and the triangle inequality (). Hence is a norm, and is a metric.
Theorem 2 (general form of a line). Every line in is the solution set of an equation with , and every such equation defines a line. Two equations define the same line iff their coefficient triples are proportional.
Theorem 3 (distance from a point to a line). The distance from to the line is
The formula is invariant under scaling the equation by a nonzero constant.
Theorem 4 (Cauchy-Schwarz in ). For all and in ,
Equality holds iff and are linearly dependent.
Theorem 5 (collinearity criterion). Three points , , are collinear iff the area of the triangle they form is zero, which is equivalent to the determinant condition
Theorem 6 (change of coordinates). Let be an invertible linear transformation with matrix . The distance between points and in the new coordinates , is . When is orthogonal (), distances are preserved: .
Synthesis. The Euclidean distance on is the foundational reason the plane admits a metric-space structure, and this is exactly the content that identifies the geometric plane with the normed vector space . The bridge is between the Pythagorean theorem (a geometric fact about right triangles) and the algebraic distance formula (a computation with coordinate pairs). The Cauchy-Schwarz inequality generalises to arbitrary inner-product spaces and the pattern recurs wherever angle and length coexist. The collinearity determinant identifies geometric alignment with an algebraic vanishing condition, and the change-of-coordinates theorem identifies distance-preserving transformations with orthogonal matrices. Putting these together, the Cartesian framework identifies every planar-geometry question with an algebraic question about pairs of real numbers, and the distance formula is the load-bearing equivalence that makes the identification coherent.
Full proof set [Master]
Proposition 1 (Cauchy-Schwarz in ). For all ,
Proof. Expand the non-negative quantity :
Add to both sides:
The left side factors as and the right side as . Taking square roots gives the result.
Proposition 2 (distance from a point to a line). The distance from to is .
Proof. The normal vector to the line is . The perpendicular through is parameterised as . Substituting into the line equation gives
The foot of the perpendicular is at this value of , and the distance from to the foot is , which gives
Proposition 3 (orthogonal transformations preserve distance). Let be a real matrix with . Then for all , .
Proof. . Taking square roots gives .
Connections [Master]
Absolute value and the triangle inequality
00.01.02. The distance formula in this unit extends the one-dimensional distance from the number line to the plane by adding the second coordinate. The absolute value on is the one-dimensional ancestor of the Euclidean norm on , and the triangle inequality proved for in that unit becomes the triangle inequality for in this one.Linear equations and the line
00.03.01. The line equations developed here (point-slope, slope-intercept, two-point, general form) are the coordinate-geometry realisation of the algebraic line equation studied in the linear-equations unit. The slope and intercept definitions here give geometric content to the algebraic solution sets, and the parallel-perpendicular conditions translate the algebraic classification of line systems into slope relations.Right-triangle trigonometry
00.06.01. The Pythagorean theorem, which provides the distance formula in this unit, is the same result that underlies the Pythagorean identity in right-triangle trigonometry. The right triangle connecting two points in the plane is the geometric bridge between coordinate distance and trigonometric ratios, and the distance formula reappears when computing side lengths in the trigonometric context.
Historical & philosophical context [Master]
Rene Descartes 1637 La Geometrie [Descartes 1637], published as an appendix to Discours de la methode, introduced the correspondence between algebraic equations and geometric curves by assigning numerical coordinates to points in the plane. Pierre de Fermat 1636, in the manuscript Ad Locos Planos et Solidos Isagoge (published posthumously in 1679) [Fermat 1636], independently developed the same idea, arriving at the coordinate description of conics through the locus approach. The two inventions differ in emphasis: Descartes starts from algebraic equations and reads off geometric curves; Fermat starts from geometric conditions on loci and writes the corresponding equations.
The modern formulation of as a normed vector space with the Euclidean distance crystallised with the development of analytic geometry in the eighteenth and nineteenth centuries. Euler 1748 Introductio in analysin infinitorum gave the first systematic treatment of curves via coordinate equations. The metric-space abstraction, in which the distance formula becomes the canonical example of a metric, is due to Frechet 1906 Sur quelques points du calcul fonctionnel (Rend. Circ. Mat. Palermo 22).
Bibliography [Master]
@book{Descartes1637,
author = {Descartes, Ren{\'e}},
title = {La G{\'e}om{\'e}trie},
note = {Appendix to {\em Discours de la m{\'e}thode}, Leiden. Modern edition: Smith, D. E. and Latham, M. L. (transl.), Dover 1954},
year = {1637}
}
@article{Fermat1636,
author = {Fermat, Pierre de},
title = {Ad Locos Planos et Solidos Isagoge},
journal = {Varia Opera Mathematica},
note = {Written 1636; published posthumously by Toulouse 1679},
year = {1636}
}
@book{Euler1748,
author = {Euler, Leonhard},
title = {Introductio in analysin infinitorum},
publisher = {Bousquet},
address = {Lausanne},
year = {1748}
}
@article{Frechet1906,
author = {Fr{\'e}chet, Maurice},
title = {Sur quelques points du calcul fonctionnel},
journal = {Rendiconti del Circolo Matematico di Palermo},
volume = {22},
pages = {1--74},
year = {1906}
}