Distance and Midpoint

Summary

The distance formula is the Pythagorean theorem in coordinates. The midpoint formula averages coordinates. Together they define length and midpoints of segments in the plane and in space.

Prerequisites

Coordinate plane (and optionally R3 ). Hub: Analytic Geometry.

Object / Concept

For points P and Q , the distance d(P,Q) is the Euclidean length of the segment PQ . The midpoint M is the point halfway from P to Q along that segment.

Coordinate System

Cartesian coordinates in R2 or R3 with the standard Euclidean metric.

Notation

Symbol Meaning
P=(x1,y1) , Q=(x2,y2) points in the plane
P=(x1,y1,z1) , Q=(x2,y2,z2) points in space
d(P,Q) Euclidean distance
M midpoint of PQ

Conditions / Assumptions

Equations

Plane

d(P,Q)=(x2x1)2+(y2y1)2, M=(x1+x22,y1+y22).

Space

d(P,Q)=(x2x1)2+(y2y1)2+(z2z1)2, M=(x1+x22,y1+y22,z1+z22).

Circle with center C=(h,k) and radius r>0 : all points P with d(P,C)=r , i.e.

(xh)2+(yk)2=r2.

Worked Example

Points A=(1,2) and B=(4,6) :

d(A,B)=(41)2+(62)2=9+16=5, M=(1+42,2+62)=(52,4).

Common Mistakes

Connections

References

Distance and midpoint formulas are standard in OpenStax Precalculus analytic geometry.[1]


  1. OpenStax, Precalculus 2e, https://openstax.org/details/books/precalculus-2e ↩︎