How does the Pythagorean theorem lead to the distance formula?
In Euclidean geometry, the distance formula is derived directly from the Pythagorean theorem, which states that for any right triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides ().123
To find the distance between two points, such as and on a Cartesian coordinate system, you can construct a right triangle by identifying a third point at . The horizontal leg of this triangle has a length equal to the difference between the x-coordinates (), and the vertical leg has a length equal to the difference between the y-coordinates ().1
By applying the Pythagorean theorem, the square of the distance (the hypotenuse) is the sum of the squares of these legs:
Taking the square root of both sides yields the standard distance formula:
This logic extends to three-dimensional space by including the difference between the z-coordinates.41