How is the pythagorean theorem related to the distance formula?

1 Answer

We generally define the distance between two points using the Pythagorean theorem.

Consider a two dimensional Cartesian coordinate system (the same ideas can be extended to any number of dimensions. The natural way to think about the geometry of this coordinate system is using vectors.

The distance d(0,P)d(0,P) between the origin 00 and a certain point PP in the coordinate system is given by:

d(0,P) = sqrt(x_1^2+x_2^2),d(0,P)=x21+x22,

where x_1x1 and x_2x2 are the coordinates (or, thinking of the point as a vector, the lengths of it's components) of the point.

Since the Cartesian system is orthogonal, the components of any vector in this space are orthogonal. Therefore, they form the two smaller sides of a right triangle, with the distance being the length of the hypothenuse of this triangle, wich can be seen as the vector joining 00 and PP. Using the Pythagorian theorem, we get the aforementioned distance formula.

For the distances between two points PP and QQ, just consider the vector obtained from the difference between vectors joining the origin to those points and aply the Pythagorian theorem to that vector, which should give you:

d(P,Q) = sqrt((x_1-y_1)^2+(x_2-y_2)^2),d(P,Q)=(x1y1)2+(x2y2)2,

where y_1y1 and y_2y2 are the coordinates of the point QQ.

In more advanced Maths, it's useful to think of the distance as a more general concept, and different definitions of distance can arise, leading to the theory of metric spaces .