Distance and Section in the Plane
Distance and Section in the Plane are the two foundational metric formulas of coordinate geometry: the distance formula gives the straight-line length between two points from their coordinates, and the section formula gives the coordinates of a point dividing a line segment in a given ratio. Both follow directly from the Pythagorean theorem and similar triangles. They apply throughout analytic geometry, vector algebra, computer graphics, and physics. Systematized by René Descartes (1637) and used by every student of coordinate geometry since.Given two points and in the Cartesian plane, the distance formula computes the length , while the section formula locates the point that splits the segment in the ratio . These two results convert geometric statements — "how far apart," "where is the midpoint," "which point cuts this in 2:3" — into pure arithmetic on coordinates. They matter because they are the bridge between algebra and geometry: with them, every theorem about lengths, midpoints, centroids, and divisions becomes a calculation. A surprising fact is that the same section formula handles external division simply by allowing a negative ratio, so one formula governs points both inside and outside the segment.
The Core Insight
Coordinates turn the plane into a grid of numbers. Once a point is a pair , horizontal and vertical separations become subtractions (, ), the Pythagorean theorem converts those separations into a straight-line distance, and proportional reasoning (similar triangles) lets us weight coordinates to find any dividing point. Distance is "Pythagoras in coordinates"; section is "weighted average in coordinates."
Formal Statement
Distance Between Two Points
Let and be points in the Cartesian plane. The distance between them is the length of the straight segment joining them:
Symbols: are the coordinates of the first point; of the second; is the resulting length, in the same units as the coordinate axes.
A useful special case is the distance from the origin to a point :
Internal Section Formula
Let divide the segment joining and internally in the ratio , meaning with between and . Then the coordinates of are:
Symbols: and are positive numbers giving the ratio of the two parts; the part nearer to carries the weight on . Note the cross-pattern: multiplies the second point's coordinates.
Midpoint Formula
The midpoint of segment is the special case :
External Section Formula
If divides externally in the ratio (so lies on the line but outside the segment, with measured with opposite signs), then:
Centroid of a Triangle
The centroid of a triangle with vertices , , is the average of the three vertices:
Why It Holds / Derivation
Distance Formula from the Pythagorean Theorem
Step 1. Take points and . Construct the point — directly below or above and level with — so that forms a right triangle with the right angle at . Step 2. The horizontal leg runs from to at the same height, so its length is . Step 3. The vertical leg runs from to at the same -value, so its length is . Step 4. By the Pythagorean theorem, . The squares remove the need for absolute-value signs. Step 5. Taking the non-negative square root gives equation [1].Internal Section Formula from Similar Triangles
Step 1. Let lie on with . Drop perpendiculars from , , to the -axis, meeting it at , , . Step 2. Lines , , are all vertical, hence parallel. By the basic proportionality theorem, the parallels cut the transversal and the -axis in equal ratios: . Step 3. Therefore , giving . Step 4. Expand: , so , hence . Step 5. Repeating with perpendiculars to the -axis gives . Together these give equation [3].Right triangle for the distance formula and a dividing point P on segment AB
René Descartes | 1596–1650
The French philosopher and mathematician introduced the system of coordinates in La Géométrie (1637), an appendix to his Discourse on Method. By labeling points with number pairs, Descartes made it possible to study curves through equations and lengths through arithmetic — the move that created analytic geometry. The distance and section formulas are immediate consequences of his framework, though Descartes himself wrote in a less symbolic notation than ours. The Cartesian plane bears his Latinized name, Cartesius.
Building Intuition
Think of going from to as a walk on a city grid. You can only count blocks east-west () and blocks north-south (). The distance formula answers: "If instead of walking the streets I could fly straight, how far is it?" — and the answer is the diagonal hypotenuse of the right triangle the two legs make.
For the section formula, picture a tug-of-war on the segment. The ratio is how strongly each end pulls. Equilibrium lands the point closer to the stronger pull. Crucially the heavier weight sits on the far endpoint : a split puts three-quarters of the way to , because three parts of the journey are behind and one ahead. The midpoint is the perfectly balanced case — just average the coordinates.
Worked Examples
Distance Between Two Given Points
Given: and , coordinates in metres. Find: the distance . Step 1 — horizontal separation: . Step 2 — vertical separation: . Step 3 — apply equation [1]:(This is a 5–12–13 Pythagorean triple, a clean integer result.)
Internal Division in a Given Ratio
Given: and ; point divides internally in ratio . Find: the coordinates of , and verify with the midpoint as a check. Step 1 — identify weights: (on ), (on ), so . Step 2 — x-coordinate via equation [3]:Common Misconceptions
Mixing Up Which Endpoint Gets Which Weight
A frequent error is writing — putting on the first point. The formula uses the cross-pattern: the weight (the first number in the ratio ) multiplies the coordinates of the second point . Reason: a larger means is larger, so sits farther from and nearer to , which requires to be weighted more heavily. Always re-derive from " near ⟹ big weight on ."
Forgetting to Square — or Square-Root
Two slips ruin the distance formula. First, some students compute without squaring; that is the grid (taxicab) distance, not the straight-line distance. Second, some stop at and forget the final square root. The correct chain is: subtract, square, add, then take the square root.
The Distance Formula Is Not Additive Along Coordinates
One might guess that the distance from to equals . The actual straight-line distance is , not 7. The value 7 is the path length along the axes (3 across, then 4 up). The gap (7 vs. 5) is exactly why "as the crow flies" beats walking the grid — and it shows distance is governed by Pythagoras, never by plain addition of separations.
Connections
The distance formula is the two-dimensional shadow of the Pythagorean Theorem and generalizes directly to three dimensions as , and to the abstract notion of a Metric Space. The section formula is a special case of the Vector Position Formula: , linking it to Vectors in the Plane and to the Convex Combination of two points. The centroid formula [6] feeds into Coordinate Geometry of Triangles and the study of Lines in the Plane, where the same coordinates determine slopes and equations.
Real-World Applications
- GPS and navigation: the straight-line ("great-circle"-approximated, locally planar) distance between two points uses equation [1] as its flat-earth foundation; route-planning software repeatedly evaluates it.
- Computer graphics and games: collision detection checks whether the distance between two object centres is less than the sum of their radii; the section formula interpolates ("lerps") positions between keyframes.
- Surveying and civil engineering: plotting boundary corners and finding the midpoint of a property line, or dividing a road segment for placing markers, uses the section formula directly.
- Robotics: a robot arm computes the distance to a target and divides its path into ratio-based waypoints for smooth motion planning.
- Physics — centre of mass: the centroid formula [6] is the equal-mass case of locating a centre of mass, central to mechanics and balancing problems.
- Machine learning: the Euclidean distance [1] is the core measure in -nearest-neighbours classification and -means clustering of data points.
- Cartography and GIS: geographic information systems store features as coordinates and compute distances and proportional subdivisions for zoning and resource allocation.
Historical Development
- c. 300 BCE — Euclid's Elements establishes the Pythagorean theorem (Book I, Proposition 47), the geometric ancestor of the distance formula, without any coordinate system.
- c. 1370 — Nicole Oresme uses proto-coordinate "latitudes and longitudes" to graph qualities, an early hint of plotting points by pairs.
- 1637 — René Descartes publishes La Géométrie, introducing coordinates and founding analytic geometry; distances and divisions become computable from numbers.
- 1637 — Pierre de Fermat, independently, develops coordinate methods in his Ad Locos Planos et Solidos Isagoge, sharing credit for the analytic approach.
- 1748 — Leonhard Euler, in Introductio in analysin infinitorum, systematizes analytic geometry and standardizes much modern notation.
- 1799 — Caspar Wessel and (1806) Jean-Robert Argand represent complex numbers as points in the plane, where is the distance formula in disguise.
- 1827 — August Möbius introduces barycentric (weighted) coordinates, generalizing the section and centroid formulas.
- 1906 — Maurice Fréchet abstracts distance into the general concept of a metric space, with the Euclidean distance [1] as the prototype.
Subtleties & Limits
The distance and section formulas as stated assume a flat, Euclidean plane with perpendicular axes and equal unit scales. Several subtleties deserve thought. (1) Non-Euclidean settings: on the surface of a sphere (the Earth), straight-line "chord" distance differs from the geodesic (great-circle) distance, and equation [1] is only a local approximation. (2) Oblique axes: if the coordinate axes are not perpendicular, the distance formula acquires extra cross terms involving the angle between them. (3) The external division degenerate case: when in equation [5], the denominator and the "external dividing point" runs off to infinity — geometrically the point that would divide externally in ratio is the point at infinity in the direction of , a notion made rigorous in projective geometry. (4) Choice of metric: the Euclidean distance is one of infinitely many valid metrics; the taxicab () and Chebyshev () distances obey the metric axioms too, and which distance is "right" depends entirely on the problem.