10.3 Coordinate Geometry: Distance Formula, Midpoint Formula & Analytic Proofs

Key Takeaways

  • The Euclidean distance formula d = √((x2 - x1)^2 + (y2 - y1)^2) is an analytic expression of the Pythagorean theorem, measuring line segment lengths between any two coordinate pairs.

  • The midpoint formula M = ((x1 + x2)/2, (y1 + y2)/2) computes the arithmetic center of a segment, while segment partitioning formula P = (x1 + (m/(m+n))(x2 - x1), y1 + (m/(m+n))(y2 - y1)) divides a directed segment into ratio m:n.

  • Parallel lines possess identical slopes (m1 = m2 with distinct y-intercepts), while non-vertical perpendicular lines have opposite reciprocal slopes whose product equals -1 (m1 * m2 = -1).

  • Strategic coordinate assignment places figures with vertices at the origin (0,0) and along coordinate axes using general variables (such as (0,0), (a,0), (a,b), (0,b) for rectangles) to ensure proofs remain universal without loss of generality.

  • Analytic proofs establish quadrilateral properties with algebraic tests: shared diagonal midpoints prove a parallelogram, and for a parallelogram, congruent diagonals prove a rectangle while perpendicular diagonals prove a rhombus.

Last updated: September 2026

Foundations of the Cartesian Plane and Metric Geometry

Analytic geometry (coordinate geometry), developed by René Descartes and Pierre de Fermat, unifies synthetic Euclidean geometry and symbolic algebra. By establishing a one-to-one correspondence between points in a two-dimensional geometric plane and ordered pairs of real numbers (x,y)∈R2(x, y) \in \mathbb{R}^2, geometric assertions concerning congruence, parallelism, perpendicularity, and collinearity are transformed into solvable algebraic equations.

In the standard Cartesian coordinate system, the plane is structured by two mutually perpendicular real number lines:

  • The horizontal xx-axis (abscissa)
  • The vertical yy-axis (ordinate)

These axes intersect at the origin O(0,0)O(0, 0) and partition the plane into four infinite quadrants numbered I, II, III, and IV counterclockwise starting from the upper right.


The Distance Formula: Derivation and Geometric Applications

The fundamental metric governing Cartesian space is the distance formula, which quantifies the straight-line Euclidean distance dd between any two points P1(x1,y1)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2).

Pythagorean Derivation

To derive the formula, construct an auxiliary right triangle by dropping a vertical segment from P2P_2 and extending a horizontal segment from P1P_1. The segments intersect at vertex R(x2,y1)R(x_2, y_1):

  1. The length of horizontal leg P1R‾\overline{P_1 R} is the absolute difference in horizontal coordinates: ∣x2−x1∣|x_2 - x_1|.
  2. The length of vertical leg RP2‾\overline{R P_2} is the absolute difference in vertical coordinates: ∣y2−y1∣|y_2 - y_1|.
  3. The straight-line segment P1P2‾\overline{P_1 P_2} forms the hypotenuse of right triangle ΔP1RP2\Delta P_1 R P_2.

Applying the Pythagorean Theorem (a2+b2=c2a^2 + b^2 = c^2):

d2=(x2−x1)2+(y2−y1)2d^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2

Taking the principal (non-negative) square root yields the Distance Formula:

d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Core Geometric Applications

  • Side Length Congruence: Establishing whether a triangle is scalene (all three lengths unequal), isosceles (two lengths equal), or equilateral (all three lengths equal).
  • Right Triangle Classification: Verifying whether three coordinates satisfy the converse of the Pythagorean Theorem (d122+d232=d132d_{12}^2 + d_{23}^2 = d_{13}^2).
  • Perimeter and Polygon Classification: Verifying side congruence in rhombi, kites, and squares.

Midpoint and Directed Line Segment Partitioning Formulas

The Midpoint Formula

The midpoint MM of a line segment P1P2‾\overline{P_1 P_2} is the unique point on the segment that divides it into two congruent sub-segments (P1M=MP2P_1 M = M P_2). The coordinates of MM are the arithmetic means of the respective endpoint coordinates:

M=(x1+x22,y1+y22)M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)

Partitioning a Directed Line Segment into Ratio m:nm:n

A more general problem requires finding the point P(xp,yp)P(x_p, y_p) that divides a directed segment from P1(x1,y1)P_1(x_1, y_1) to P2(x2,y2)P_2(x_2, y_2) into a given ratio m:nm:n (meaning P1PPP2=mn\frac{P_1 P}{P P_2} = \frac{m}{n}).

If the segment is split into m+nm + n equal parts, point PP lies a fraction k=mm+nk = \frac{m}{m + n} of the total distance from P1P_1 toward P2P_2:

  • Total horizontal displacement: Δx=x2−x1\Delta x = x_2 - x_1
  • Total vertical displacement: Δy=y2−y1\Delta y = y_2 - y_1

Adding the fractional displacement to starting point P1P_1 yields the Directed Segment Partitioning Formula:

xp=x1+(mm+n)(x2−x1)=nx1+mx2m+nx_p = x_1 + \left(\frac{m}{m + n}\right)(x_2 - x_1) = \frac{n x_1 + m x_2}{m + n} yp=y1+(mm+n)(y2−y1)=ny1+my2m+ny_p = y_1 + \left(\frac{m}{m + n}\right)(y_2 - y_1) = \frac{n y_1 + m y_2}{m + n}

Special Case: When m=1m = 1 and n=1n = 1, the ratio is 1:11:1 (bisection). The fraction is 11+1=12\frac{1}{1 + 1} = \frac{1}{2}, recovering the midpoint formula: (x1+x22,y1+y22)\left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right).


Slope Criteria: Parallel and Perpendicular Lines

The slope mm of a non-vertical line passing through points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) measures its rate of vertical change relative to horizontal change:

m=ΔyΔx=y2−y1x2−x1(x1≠x2)m = \frac{\Delta y}{\Delta x} = \frac{y_2 - y_1}{x_2 - x_1} \quad (x_1 \neq x_2)

Parallel Line Criterion

Two non-vertical lines ℓ1\ell_1 and ℓ2\ell_2 in the Cartesian plane are parallel (ℓ1∥ℓ2\ell_1 \parallel \ell_2) if and only if their slopes are strictly equal and their yy-intercepts are distinct:

m1=m2andb1≠b2m_1 = m_2 \quad \text{and} \quad b_1 \neq b_2

(All vertical lines with undefined slope are parallel to one another).

Perpendicular Line Criterion

Two non-vertical lines ℓ1\ell_1 and ℓ2\ell_2 are perpendicular (ℓ1⊥ℓ2\ell_1 \perp \ell_2) if and only if their slopes are negative reciprocals of each other, meaning their product equals −1-1:

m1⋅m2=−1  ⟺  m2=−1m1m_1 \cdot m_2 = -1 \iff m_2 = -\frac{1}{m_1}

Proof via Rotation: Consider a line with positive slope m1=bam_1 = \frac{b}{a}. Rotating this line 90∘90^\circ counterclockwise sends the horizontal run vector ⟨a,b⟩\langle a, b \rangle to ⟨−b,a⟩\langle -b, a \rangle. The slope of the rotated perpendicular line is m2=a−b=−abm_2 = \frac{a}{-b} = -\frac{a}{b}. Multiplying the two slopes yields m1⋅m2=(ba)(−ab)=−1m_1 \cdot m_2 = \left(\frac{b}{a}\right) \left(-\frac{a}{b}\right) = -1. (A horizontal line with slope m=0m = 0 is perpendicular to a vertical line with undefined slope).


Principles of Analytic Coordinate Proofs: Variable Placement Without Loss of Generality

An analytic coordinate proof establishes a geometric theorem by placing the figure in the coordinate plane, assigning algebraic variable coordinates to its vertices, and applying algebraic formulas (distance, midpoint, slope) to verify the required geometric relationship.

Strategic Guidelines for Coordinate Assignment

To maximize algebraic simplicity while maintaining mathematical rigor and without loss of generality:

  1. Anchor at the Origin: Position one vertex at the origin O(0,0)O(0, 0).
  2. Orient with Coordinate Axes: Position at least one side along the positive xx-axis so that all points on that side have y=0y = 0.
  3. Use General Variables: Use independent variables (a,b,c,da, b, c, d) rather than specific numbers. Never assume sides are equal or perpendicular unless specified by theorem premises.
  4. Anticipate Midpoints with Multiples of 2: If the proof involves midpoints or fractional divisions, assign coordinates as multiples of 2 (e.g., (2a,0)(2a, 0) or (2b,2c)(2b, 2c)) to eliminate fractional terms from intermediate algebra.

Canonical Coordinate Placements for Common Figures

Geometric FigureCanonical Vertex CoordinatesDegrees of Freedom / Geometric Constraints
General Triangle(0,0),(a,0),(b,c)(0, 0), (a, 0), (b, c)3 parameters (a,b,ca, b, c). Fully general.
Isosceles Triangle(0,0),(2a,0),(a,b)(0, 0), (2a, 0), (a, b)Vertex lies on perpendicular bisector line x=ax = a.
Right Triangle(0,0),(a,0),(0,b)(0, 0), (a, 0), (0, b)Legs lie along xx- and yy-axes; right angle at origin.
General Parallelogram(0,0),(a,0),(a+b,c),(b,c)(0, 0), (a, 0), (a + b, c), (b, c)Opposite sides are horizontal with length aa and height cc.
Rectangle(0,0),(a,0),(a,b),(0,b)(0, 0), (a, 0), (a, b), (0, b)All angles 90∘90^\circ; width aa, height bb.
Rhombus(0,0),(a,0),(a+b,c),(b,c)(0, 0), (a, 0), (a + b, c), (b, c)Requires side constraint a=b2+c2  ⟹  a2=b2+c2a = \sqrt{b^2 + c^2} \implies a^2 = b^2 + c^2.
Square(0,0),(a,0),(a,a),(0,a)(0, 0), (a, 0), (a, a), (0, a)Single parameter aa.
Trapezoid(0,0),(a,0),(d,c),(b,c)(0, 0), (a, 0), (d, c), (b, c)Parallel horizontal bases along y=0y = 0 and y=cy = c.
Isosceles Trapezoid(0,0),(2a+b,0),(a+b,c),(a,c)(0, 0), (2a + b, 0), (a + b, c), (a, c)Symmetric legs; congruent base angles.

Canonical Coordinate Proofs of Geometric Theorems

Theorem 1: The Diagonals of a Parallelogram Bisect Each Other

  • Hypothesis: Quadrilateral ABCDABCD is a parallelogram.
  • Conclusion: Diagonals AC‾\overline{AC} and BD‾\overline{BD} share the identical midpoint.
  • Proof: Place parallelogram ABCDABCD with vertices at A(0,0)A(0, 0), B(a,0)B(a, 0), C(a+b,c)C(a + b, c), and D(b,c)D(b, c). Calculate the midpoint of diagonal AC‾\overline{AC} connecting (0,0)(0, 0) and (a+b,c)(a + b, c): MAC=(0+(a+b)2,0+c2)=(a+b2,c2)M_{AC} = \left(\frac{0 + (a + b)}{2}, \frac{0 + c}{2}\right) = \left(\frac{a + b}{2}, \frac{c}{2}\right) Calculate the midpoint of diagonal BD‾\overline{BD} connecting (a,0)(a, 0) and (b,c)(b, c): MBD=(a+b2,0+c2)=(a+b2,c2)M_{BD} = \left(\frac{a + b}{2}, \frac{0 + c}{2}\right) = \left(\frac{a + b}{2}, \frac{c}{2}\right) Because MAC=MBDM_{AC} = M_{BD}, both diagonals intersect at their exact midpoints. Therefore, the diagonals bisect each other. ■\blacksquare

Theorem 2: The Diagonals of a Rhombus are Perpendicular

  • Hypothesis: Quadrilateral ABCDABCD is a rhombus (AB=BC=CD=DAAB = BC = CD = DA).
  • Conclusion: Diagonals AC‾⊥BD‾\overline{AC} \perp \overline{BD}.
  • Proof: Assign coordinates A(0,0)A(0, 0), B(a,0)B(a, 0), C(a+b,c)C(a + b, c), and D(b,c)D(b, c). Because ABCDABCD is a rhombus, side length ADAD must equal side length AB=aAB = a: AD2=(b−0)2+(c−0)2=b2+c2=a2  ⟹  a2−b2=c2AD^2 = (b - 0)^2 + (c - 0)^2 = b^2 + c^2 = a^2 \implies a^2 - b^2 = c^2 Calculate the slope of diagonal AC‾\overline{AC}: mAC=c−0(a+b)−0=ca+bm_{AC} = \frac{c - 0}{(a + b) - 0} = \frac{c}{a + b} Calculate the slope of diagonal BD‾\overline{BD}: mBD=c−0b−a=cb−am_{BD} = \frac{c - 0}{b - a} = \frac{c}{b - a} Compute the product of the slopes: mAC⋅mBD=(ca+b)(cb−a)=c2(b+a)(b−a)=c2b2−a2m_{AC} \cdot m_{BD} = \left(\frac{c}{a + b}\right) \left(\frac{c}{b - a}\right) = \frac{c^2}{(b + a)(b - a)} = \frac{c^2}{b^2 - a^2} Substitute b2−a2=−c2b^2 - a^2 = -c^2 from the rhombus side constraint: mAC⋅mBD=c2−c2=−1m_{AC} \cdot m_{BD} = \frac{c^2}{-c^2} = -1 Because the product of their slopes is −1-1, diagonals AC‾\overline{AC} and BD‾\overline{BD} are perpendicular. ■\blacksquare

Theorem 3: The Triangle Midsegment Theorem

  • Hypothesis: In ΔABC\Delta ABC, segment MN‾\overline{MN} connects the midpoint MM of side AB‾\overline{AB} to the midpoint NN of side AC‾\overline{AC}.
  • Conclusion: MN‾∥BC‾\overline{MN} \parallel \overline{BC} and MN=12BCMN = \frac{1}{2} BC.
  • Proof: Assign coordinates using multiples of 2: A(2b,2c)A(2b, 2c), B(0,0)B(0, 0), and C(2a,0)C(2a, 0). Side BC‾\overline{BC} lies along the xx-axis with length BC=2aBC = 2a and slope mBC=0m_{BC} = 0. Find midpoint MM of AB‾\overline{AB} connecting (0,0)(0, 0) and (2b,2c)(2b, 2c): M=(0+2b2,0+2c2)=(b,c)M = \left(\frac{0 + 2b}{2}, \frac{0 + 2c}{2}\right) = (b, c) Find midpoint NN of AC‾\overline{AC} connecting (2b,2c)(2b, 2c) and (2a,0)(2a, 0): N=(2b+2a2,2c+02)=(a+b,c)N = \left(\frac{2b + 2a}{2}, \frac{2c + 0}{2}\right) = (a + b, c) Compute the slope of midsegment MN‾\overline{MN}: mMN=c−c(a+b)−b=0a=0m_{MN} = \frac{c - c}{(a + b) - b} = \frac{0}{a} = 0 Because mMN=mBC=0m_{MN} = m_{BC} = 0, MN‾∥BC‾\overline{MN} \parallel \overline{BC}. Compute the length of midsegment MN‾\overline{MN} via the distance formula: MN=((a+b)−b)2+(c−c)2=a2+02=aMN = \sqrt{((a + b) - b)^2 + (c - c)^2} = \sqrt{a^2 + 0^2} = a Because BC=2aBC = 2a, MN=a=12(2a)=12BCMN = a = \frac{1}{2}(2a) = \frac{1}{2} BC. ■\blacksquare

Summary Reference Table of Coordinate Metrics and Proof Strategies

Geometric PropertyAnalytic Formulation / TestAlgebraic Criterion
Side Congruence (AB=CDAB = CD)Distance Formula(xB−xA)2+(yB−yA)2=(xD−xC)2+(yD−yC)2\sqrt{(x_B - x_A)^2 + (y_B - y_A)^2} = \sqrt{(x_D - x_C)^2 + (y_D - y_C)^2}
Segment BisectionMidpoint FormulaMAB=(xA+xB2,yA+yB2)=MCDM_{AB} = \left(\frac{x_A + x_B}{2}, \frac{y_A + y_B}{2}\right) = M_{CD}
Segment Partitioning (m:nm:n)Fractional Ratio DisplacementP=(x1+mm+n(x2−x1),y1+mm+n(y2−y1))P = \left(x_1 + \frac{m}{m+n}(x_2 - x_1), y_1 + \frac{m}{m+n}(y_2 - y_1)\right)
Parallel Lines (AB∥CDAB \parallel CD)Slope EqualityyB−yAxB−xA=yD−yCxD−xC\frac{y_B - y_A}{x_B - x_A} = \frac{y_D - y_C}{x_D - x_C} (mAB=mCDm_{AB} = m_{CD})
Perpendicular Lines (AB⊥CDAB \perp CD)Negative Reciprocal SlopesmAB⋅mCD=−1  ⟺  mCD=−1mABm_{AB} \cdot m_{CD} = -1 \iff m_{CD} = -\frac{1}{m_{AB}}
Collinear Points (A,B,CA, B, C)Slopes Between PairsmAB=mBCm_{AB} = m_{BC}
Right Angle ValidationConverse of Pythagorean Theorem(dAB)2+(dBC)2=(dAC)2(d_{AB})^2 + (d_{BC})^2 = (d_{AC})^2

Worked Step-by-Step Examples

Worked Example 1: Partitioning a Directed Segment in Ratio 3:23:2

Problem: Directed line segment AB‾\overline{AB} connects point A(−4,7)A(-4, 7) to point B(6,−8)B(6, -8). Determine the coordinates of point PP that partitions AB‾\overline{AB} from AA to BB in the ratio 3:23:2.

Solution: Step 1: Identify the partitioning fraction kk: The ratio is m:n=3:2m:n = 3:2. The total number of equal parts is m+n=3+2=5m + n = 3 + 2 = 5. The fraction of the total distance from AA to BB is:

k=mm+n=35=0.6k = \frac{m}{m + n} = \frac{3}{5} = 0.6

Step 2: Calculate total horizontal and vertical displacements:

Δx=xB−xA=6−(−4)=10\Delta x = x_B - x_A = 6 - (-4) = 10 Δy=yB−yA=−8−7=−15\Delta y = y_B - y_A = -8 - 7 = -15

Step 3: Apply the partitioning coordinates formula:

xP=xA+k⋅Δx=−4+35(10)=−4+6=2x_P = x_A + k \cdot \Delta x = -4 + \frac{3}{5}(10) = -4 + 6 = 2 yP=yA+k⋅Δy=7+35(−15)=7−9=−2y_P = y_A + k \cdot \Delta y = 7 + \frac{3}{5}(-15) = 7 - 9 = -2

Point PP has coordinates (2,−2)(2, -2).

Worked Example 2: Classifying a Quadrilateral in the Coordinate Plane

Problem: Quadrilateral JKLMJKLM has vertices J(−2,3)J(-2, 3), K(4,5)K(4, 5), L(6,−1)L(6, -1), and M(0,−3)M(0, -3). Provide a complete analytic classification of JKLMJKLM (trapezoid, parallelogram, rectangle, rhombus, or square).

Solution: Step 1: Calculate slopes of all four sides to test for parallelism:

  • mJK=5−34−(−2)=26=13m_{JK} = \frac{5 - 3}{4 - (-2)} = \frac{2}{6} = \frac{1}{3}
  • mKL=−1−56−4=−62=−3m_{KL} = \frac{-1 - 5}{6 - 4} = \frac{-6}{2} = -3
  • mLM=−3−(−1)0−6=−2−6=13m_{LM} = \frac{-3 - (-1)}{0 - 6} = \frac{-2}{-6} = \frac{1}{3}
  • mMJ=3−(−3)−2−0=6−2=−3m_{MJ} = \frac{3 - (-3)}{-2 - 0} = \frac{6}{-2} = -3 Because mJK=mLM=13m_{JK} = m_{LM} = \frac{1}{3} and mKL=mMJ=−3m_{KL} = m_{MJ} = -3, opposite sides are parallel (JK∥LMJK \parallel LM and KL∥MJKL \parallel MJ). JKLMJKLM is a parallelogram.

Step 2: Check for perpendicular adjacent sides:

mJK⋅mKL=(13)(−3)=−1m_{JK} \cdot m_{KL} = \left(\frac{1}{3}\right) (-3) = -1

Adjacent sides are perpendicular, meaning all four interior angles are 90∘90^\circ. JKLMJKLM is a rectangle.

Step 3: Check for side length equality to test for a rhombus/square:

  • JK=(4−(−2))2+(5−3)2=62+22=36+4=40=210JK = \sqrt{(4 - (-2))^2 + (5 - 3)^2} = \sqrt{6^2 + 2^2} = \sqrt{36 + 4} = \sqrt{40} = 2\sqrt{10}
  • KL=(6−4)2+(−1−5)2=22+(−6)2=4+36=40=210KL = \sqrt{(6 - 4)^2 + (-1 - 5)^2} = \sqrt{2^2 + (-6)^2} = \sqrt{4 + 36} = \sqrt{40} = 2\sqrt{10} Adjacent sides are congruent (JK=KL=210JK = KL = 2\sqrt{10}). A rectangle with congruent adjacent sides is a square. JKLMJKLM is classified as a square.

Diagnostic Misconceptions & Pedagogical Strategies

  1. Midpoint Subtraction Error: Middle school students frequently confuse the midpoint formula with the distance or slope formulas by subtracting coordinates rather than adding them: computing x2−x12\frac{x_2 - x_1}{2} instead of x1+x22\frac{x_1 + x_2}{2}. Pedagogical remedy: Anchor the midpoint concept to the arithmetic average (mean). If a student scores 80 and 100 on two tests, their midpoint score is 80+1002=90\frac{80 + 100}{2} = 90, not 100−802=10\frac{100 - 80}{2} = 10. The midpoint is the physical average of position coordinates.
  2. Ratio m:nm:n vs. Fraction m/nm/n Confusion: When asked to partition a segment in the ratio 2:32:3, students frequently multiply Δx\Delta x by 23\frac{2}{3} rather than 22+3=25\frac{2}{2 + 3} = \frac{2}{5}. Remind students that a ratio compares part-to-part (22 parts to 33 parts), which means the entire whole consists of 2+3=52 + 3 = 5 parts.
  3. Loss of Generality in Analytic Proofs: Certification candidates often commit the logical error of assigning numerical constants (e.g., (0,0),(4,0),(4,6),(0,6)(0,0), (4,0), (4,6), (0,6)) when asked to prove a theorem for all rectangles. A proof with numbers proves the theorem only for that single numerical instance. Emphasize that variables (a,b,ca, b, c) represent arbitrary real numbers, ensuring the proof holds universally.
Loading diagram...
Coordinate Proof Decision Flow for Classifying Quadrilaterals
Test Your Knowledge

A directed line segment connects point A(-6, 4) to point B(9, -6). What are the coordinates of the point P that partitions the segment from A to B into a ratio of 2 to 3?

A

(1.5, -1)

B

(3, -2)

C

(0, 0)

D

(4, -2.67)

Test Your Knowledge

An educator is structuring a general analytic coordinate proof to establish that the diagonals of any rhombus are perpendicular. Vertices are assigned as A(0, 0), B(a, 0), C(a + b, c), and D(b, c). Which algebraic condition uniquely embodies the definition of a rhombus and enables the conclusion that the product of the diagonal slopes equals -1?

A

c = a + b

B

a^2 = b^2 + c^2

C

b = 2a

D

a^2 + b^2 = 2c^2

Test Your Knowledge

Triangle ABC has vertices at A(0, 0), B(8, 0), and C(4, 6). A midsegment connects the midpoint D of side AC to the midpoint E of side BC. What are the slope and length of midsegment DE, and how do they relate to base AB?

A

Slope = 0, Length = 4 units; exactly parallel to and half the length of base AB

B

Slope = 1.5, Length = 8 units; perpendicular to base AB

C

Slope = 0, Length = 8 units; parallel and congruent to base AB

D

Slope = -0.75, Length = 2 units; intersecting base AB

Sections you finish are checked off in the contents.