Coordinate geometry — distance, lines, and circles
Anchor (Master): Descartes 1637 La Géométrie (Leiden) Book II; Fermat 1636 Ad Locos Planos et Solidos Isagoge.
Intuition Beginner
The coordinate plane turns geometry into algebra. Every point becomes a pair of numbers . A straight line becomes an equation you can write down and solve. A circle becomes an equation too. Shape questions — how far apart, do they meet, are they parallel — become number questions you handle with arithmetic.
Distance comes from a right triangle. The horizontal gap between two points is one leg and the vertical gap is the other. The straight-line distance is the hypotenuse, so Pythagoras gives it. A line's steepness is its slope, the ratio of rise to run. Two lines are parallel when their slopes match and perpendicular when their slopes multiply to .
A circle is every point at a fixed distance (the radius) from a center. Writing that condition as an equation produces the circle form. Once lines and circles both have equations, you can answer geometric questions by algebra: solving the equations together tells you whether and where the shapes meet.
Visual Beginner
| Object | Geometric description | Equation |
|---|---|---|
| Distance | hypotenuse of the gap right triangle | |
| Line | constant slope between any two of its points | |
| Perpendicular lines | slopes multiply to | |
| Circle | all points at distance from |
The pattern is the same throughout: a geometric condition (fixed distance, fixed slope, fixed direction) becomes an algebraic equation. Reading the equation tells you the shape and reading the shape tells you the equation.
Worked example Beginner
Example 1 — distance. Find the distance between and .
Horizontal gap: . Vertical gap: . These are the legs. The distance is the hypotenuse:
Example 2 — a line. Find the equation of the line through and .
Slope is rise over run: . Using point-slope through : . Solving for gives . The slope is and the -intercept is .
Example 3 — a circle. Write the equation of the circle centered at with radius .
Every point on the circle is distance from . Squaring the distance condition gives .
Check your understanding Beginner
Formal definition Intermediate+
Throughout, and are points in [Stewart — Precalculus Ch. 1].
Distance and midpoint. The straight-line distance is
and the midpoint of the segment is
Slope. For the slope of the line through and is . A vertical line has undefined slope.
Line equations — four interchangeable forms.
- Slope-intercept: , with slope and -intercept .
- Point-slope: , through with slope .
- Two-point: for .
- General: with . When this is .
Converting between forms is mechanical: expand point-slope to read off slope and intercept, or collect terms of into . The general form uniquely handles vertical lines (), which the slope-intercept form cannot write.
Parallel and perpendicular. Two non-vertical lines with slopes are parallel iff and perpendicular iff . A vertical line is perpendicular to a horizontal line.
Circle as a locus. The circle with center and radius is the set of points at distance from :
Expanding gives the general second-degree circle equation (the coefficients of and are equal and there is no term). Completing the square recovers the center and radius:
The equation represents a genuine circle iff , a single point iff it equals , and the empty set iff it is negative.
Converting between descriptions and equations
- Three points circle: substituting each point into yields three linear equations in .
- Center and tangent line circle: if a line is tangent to the circle, the distance from the center to the line equals the radius.
- Diameter circle: for endpoints , the center is the midpoint of and the radius is .
Key theorem with proof [Intermediate+] {#key-theorem}
Theorem (distance formula, Pythagorean origin). For and in ,
Proof. Form the right triangle with vertices , , and the corner whose sides run parallel to the axes. The leg is horizontal with length and the leg is vertical with length . The segment is the hypotenuse. By the Pythagorean theorem,
since for every real . Taking the non-negative square root gives the distance formula.
Corollary (circle equation). The locus of points at distance from is , because substituting the distance formula into and squaring produces exactly this equation.
Bridge. The distance formula builds toward the whole circle-and-line machinery of this unit, and the same Pythagorean sum-of-squares appears again in 00.06.01 as the identity underlying right-triangle trigonometry and in 00.10.01 as the metric that defines conic sections by focus-directrix conditions. This is exactly the construction that promotes one-dimensional absolute-value distance 00.03.02 into the Euclidean metric on the plane, and the central insight is that squaring the distance kills the absolute values and turns a geometric locus into a polynomial equation. The bridge is between measurement (geometry) and equations (algebra): every planar locus becomes an algebraic condition on coordinate pairs, and the pattern generalises to the distance on and to the complex modulus on in 00.14.01. Putting these together, the Pythagorean theorem is the foundational reason coordinate geometry works at all.
Exercises Intermediate+
Advanced results Master
The intermediate results specialise a coordinate framework in which lines and circles are solution sets of polynomial equations of degree one and two. The master-tier results handle the general second-degree circle, the distance from a point to a line, tangency, and the radical axis of two circles.
Theorem 1 (general second-degree circle). An equation represents a circle with center and radius when ; a single point when it is ; and the empty set when it is negative. The proof is completing the square in and in .
Theorem 2 (distance from a point to a line). The distance from to the line is
The formula is invariant under scaling by a nonzero constant, so it depends only on the line.
Theorem 3 (tangency criterion). A line is tangent to the circle with center and radius iff . Equivalently the system of the line and circle equations has exactly one solution. The proof inserts the parameterisation of into the circle equation and observes that the resulting quadratic has a repeated root exactly when its discriminant vanishes, which is the same condition as .
Theorem 4 (radical axis). Given two non-concentric circles and , the set of points with equal power with respect to both circles is the line . Subtracting the equations cancels the quadratic terms, leaving a linear locus.
Theorem 5 (reflection across a line). The reflection of across is
Reflections preserve distance (they are orthogonal transformations), so the circle and its reflected image have equal radii.
Synthesis. The distance formula is the foundational reason every geometric locus in this unit admits an algebraic equation, and this is exactly the identification Descartes made between curves and equations. The bridge is between the metric structure of the plane and the algebra of polynomials: lines are degree-one loci, circles are degree-two loci, and tangency is the algebraic condition that a line and a circle share a single point. The general-circle formula generalises to arbitrary conic sections in 00.10.01, where completing the square becomes classifying a general second-degree curve, and the point-to-line distance generalises to the projection onto an affine subspace. Putting these together, the perpendicular-slope, tangency, and radical-axis results are all instances of one pattern: a geometric relation among points becomes the vanishing or equality of an algebraic expression, and the central insight is that the coordinates make the translation automatic.
Full proof set Master
Proposition 1 (perpendicular slope condition). Two non-vertical lines with slopes and are perpendicular iff .
Proof. A line of slope has direction vector . For two lines through a common point with slopes the direction vectors are and , with dot product
Two vectors are perpendicular iff their dot product vanishes, giving , i.e. . Translation does not change slope, so the same condition holds for lines not through a common point.
Proposition 2 (general circle via completing the square). For real ,
Proof. Add and to both sides of . The left becomes a sum of two perfect squares:
i.e. . Reading off the radius requires the right-hand side to be positive; it is for a point-circle and negative for the empty set.
Proposition 3 (distance from a point to a line). The distance from to is .
Proof. The vector is normal to the line. Parametrise the perpendicular through as . Substituting into gives
so . The distance from to the foot of the perpendicular is , hence
Connections Master
Cartesian coordinates and distance
00.09.01. This unit deepens the coordinate-and-distance foundation of00.09.01by adding the full line-equation family (four interchangeable forms with conversions), the perpendicular-slope relation, and the circle as a locus. The distance formula proved there becomes the load-bearing tool here: the circle equation is the distance formula squared, and the midpoint becomes the center of a diameter-defined circle.Linear equations and the line
00.03.01. The general line studied abstractly in00.03.01acquires geometric content here through slope, intercepts, and the parallel-perpendicular classification. Solving a linear system — the core skill of that unit — is exactly the tool used to find where a line meets a circle or where two perpendicular bisectors cross.Quadratic equations and completing the square
00.03.02. Recovering the center and radius from runs the completing-the-square technique of00.03.02twice, once per variable. The sign of the constant that remains decides whether the locus is a circle, a point, or empty, paralleling how the discriminant there decides the number of real roots.Conic sections
00.10.01. The circle is the special case of an ellipse with coincident foci, and the focus-directrix definition of conics in00.10.01uses the same distance formula developed here. Completing the square in two variables, the central technique of this unit, is the entry point to classifying the general second-degree curve as parabola, ellipse, or hyperbola.
Historical & philosophical context Master
René Descartes published La Géométrie in 1637 as an appendix to the Discours de la méthode [Descartes 1637], introducing the systematic correspondence between algebraic equations and geometric curves. By assigning numerical coordinates to points, Descartes showed that a curve could be studied through its equation: the distance and locus problems of classical Euclidean geometry became algebraic manipulations. Pierre de Fermat, working independently in the 1636 manuscript Ad Locos Planos et Solidos Isagoge (published posthumously in 1679) [Fermat 1636], arrived at the same correspondence from the opposite direction, starting from geometric locus conditions and writing the equations they imply.
The two inventions differ in emphasis and complement each other. Descartes proceeds from equations to curves, using algebraic operations (including what we now call completing the square) to construct and classify curves. Fermat proceeds from geometric conditions — fixed distance from a point (a circle), fixed ratio of distances (a conic) — to the equations encoding them, which is precisely the locus viewpoint that defines the circle in this unit. The modern formulation of as a metric space, in which the distance formula is the canonical example of a metric and the circle is a metric sphere, crystallised with Fréchet's 1906 Sur quelques points du calcul fonctionnel and the twentieth-century development of normed vector spaces.
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, Toulouse, 1679},
year = {1636}
}
@book{Stewart2016,
author = {Stewart, James and Redlin, Lothar and Watson, Saleem},
title = {Precalculus: Mathematics for Calculus},
edition = {7},
publisher = {Cengage Learning},
year = {2016}
}
@book{Sullivan2019,
author = {Sullivan, Michael},
title = {Precalculus},
edition = {11},
publisher = {Pearson},
year = {2019}
}
@book{Apostol1967,
author = {Apostol, Tom M.},
title = {Calculus, Volume 1},
publisher = {Wiley},
year = {1967}
}
@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}
}