MathLabs
TheoremProved

Euclidean Distance Formula in the Plane

Statement

For any two points A(x1,y1)A(x_1,y_1) and B(x2,y2)B(x_2,y_2) in the Cartesian plane, the distance between them is AB=(x2−x1)2+(y2−y1)2AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}.

Why is it true?

Dropping lines parallel to the axes from AA and BB forms a right triangle whose legs have lengths ∣x2−x1∣|x_2-x_1| and ∣y2−y1∣|y_2-y_1|, so the hypotenuse ABAB follows directly from the Pythagorean theorem.

Proof sketch

Introduce the auxiliary point C(x2,y1)C(x_2,y_1), which shares the second coordinate y1y_1 with A(x1,y1)A(x_1,y_1) and the first coordinate x2x_2 with B(x2,y2)B(x_2,y_2).

The segment ACAC is parallel to the first axis with length AC=∣x2−x1∣AC=|x_2-x_1|, while the segment CBCB is parallel to the second axis with length CB=∣y2−y1∣CB=|y_2-y_1|. Since the two coordinate axes are perpendicular, ∠ACB=90∘\angle ACB=90^\circ.

Applying the Pythagorean theorem to the right triangle △ACB\triangle ACB gives AB2=AC2+CB2=∣x2−x1∣2+∣y2−y1∣2=(x2−x1)2+(y2−y1)2AB^2=AC^2+CB^2=|x_2-x_1|^2+|y_2-y_1|^2=(x_2-x_1)^2+(y_2-y_1)^2. Taking the nonnegative square root yields AB=(x2−x1)2+(y2−y1)2AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2} (which also holds when x1=x2x_1=x_2 or y1=y2y_1=y_2).

Topics that use this theorem

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. René Descartes (trans. David Eugene Smith, Marcia L. Latham) (1954). The Geometry of René Descartes
  2. H. S. M. Coxeter (1969). Introduction to Geometry