Section 3.17 The Distance Formula
If you want to find the distance between two objects in the real world, you measure the distance with a ruler (unless you are an astrophysicist and the distances are too large or you are a particle physicist and the distances are too small!). But, if you are a theoretician and you want to put the distance into a formula, things are not quite so simple. First, you need information about where the two objects are. Perhaps you know coordinates of the two points in some rectangular coordinate system, say \((x_1, y_1, z_1)\) and \((x_2, y_2, z_2)\text{.}\) Then the three-dimensional version of the Pythagorean theorem shows that the distance between the objects is
Question 3.17.1. The Pythagorean Theorem in 3 Dimensions.
Use the Pythagorean Theorem in 2 dimensions to derive formula (3.17.1) for the Pythagorean Theorem in 3 dimensions.
To determine the length of the heavy red line, first project it into the \(xy\)-plane. Use the Pythagorean theorem twice, first on the (projected) red triangle and then on the (vertical) blue triangle in Figure 3.17.1.
But what if the theoretician wants to use a coordinate independent expression in her formulas. How does she say where the objects are? By using the position vectors \(\vec{r}_1\) and \(\vec{r}_2\text{.}\) Figure 3.17.2 shows the position vectors \(\vec{r}_1\) and \(\vec{r}_2\) for two objects, as well as their difference, \(\vec{r}_2-\vec{r}_1\text{.}\) The magnitude of this latter vector is the distance between the two objects. The magnitude property of the dot product says that the magnitude of any vector is the square root of the dot product of the vector with itself. Therefore, the distance between the two objects, in coordinate independent form is:
Question 3.17.2. Two Distance Formulas.
Show that the two equations for the distance Equation (3.17.1) and Equation (3.17.2) are equivalent.
Plug rectangular coordinates for the position vectors into Equation (3.17.2) to obtain Equation (3.17.1).