Distance

Now we return to two-dimensional space, where the notion of distance is a familiar one. In the figure below, ( x 1 , x 2 ) and ( y 1 , y 2 ) are two points in the plane, and the distance between them is the hypotenuse of the triangle with vertices
( x 1 , x 2 ) , ( y 1 , x 2 )  and  ( y 1 , y 2 )
or
( y 1 x 1 ) 2 + ( y 2 x 2 ) 2
by the theorem of Pythagoras.

Illustration for Distance

It is of some interest to give a very simple and often unfamiliar proof of the theorem of Pythagoras, as follows: We wish to prove that if a and b are the legs of a right triangle and c is its hypotenuse, then a 2 + b 2 = c 2 . Let us form a square of side a + b , and decompose it in two ways:

Illustration for Distance

From (1), the area of the square is
c 2 + 4 Δ
where Δ is the area of a right triangle with legs a and b. From (2), its area is
a 2 + b 2 + 4 Δ
Thus
a 2 + b 2 + 4 Δ = c 2 + 4 Δ
or a 2 + b 2 = c 2
which was to be proved.

By applying the theorem of Pythagoras twice, we see that the distance between two points ( x 1 , x 2 , x 3 ) and ( y 1 , y 2 , y 3 ) in 3-space is
( y 1 x 1 ) 2 + ( y 2 x 2 ) 2 + ( y 3 x 3 ) 2


Thus we are led to define the distance between two points ( x 1 , x 2 , , x n ) and ( y 1 , y 2 , , y n ) in n-space to be ( y 1 x 1 ) 2 + ( y 2 x 2 ) 2 + + ( y n x n ) 2

We observe that this is equal to
( x 1 y 1 ) 2 + ( x 2 y 2 ) 2 + + ( x n y n ) 2

We also note that the distance between two points is 0 only if the points are not actually distinct, i.e., only if x 1 = y 1 , x 2 = y 2 , , x n = y n . (Why?)

NOTE. When we write b = a , where a is positive or zero, we refer to that number b which is positive or zero and such that b 2 = a .