Eighth Grade Mathematics: Deriving and Using the Coordinate Distance Formula

Calculating the physical distance between two locations on a flat map is a foundational task in navigation, computer graphics, and geographic information systems. While measuring horizontal or vertical distances on a Cartesian coordinate plane is as simple as counting grid intervals, finding the length of a tilted diagonal segment requires a more sophisticated tool. In this chapter, you will use the Pythagorean Theorem to derive the coordinate Distance Formula from first principles, master computing exact and approximate distances, and apply the formula to geometric figures.

Deriving the Distance Formula from the Pythagorean Theorem

Consider two arbitrary points plotted on the Cartesian plane: Point 1 with coordinates (x1, y1) and Point 2 with coordinates (x2, y2). We wish to find the straight-line distance d separating them.

                    y
                    |
              (x2, y2) * Point 2
                    | /|
                    |/ |
             d     /|  | Vertical change = |y2 - y1|
                  / |  |
                 /  |  |
        Point 1 *---+--+ (x2, y1)  Right-angle vertex
            (x1, y1)|
                    +--------------------------------> x
                      Horizontal change = |x2 - x1|

To calculate d, construct a right triangle by drawing a horizontal line segment from Point 1 and a vertical line segment from Point 2. These two auxiliary lines intersect at the coordinate point (x2, y1), forming a 90-degree right angle.

The Dimensions of the Right Triangle:
- Horizontal Leg length (run):  a = |x2 - x1|
- Vertical Leg length (rise):    b = |y2 - y1|
- Hypotenuse length:            c = d (the distance between Point 1 and Point 2)

Now apply the Pythagorean Theorem, a^2 + b^2 = c^2:

(x2 - x1)^2 + (y2 - y1)^2 = d^2

Extract the principal square root of both sides to isolate the distance d:

The Coordinate Distance Formula:
d = sqrt( (x2 - x1)^2 + (y2 - y1)^2 )

This derivation proves that the Distance Formula is not an arbitrary formula to memorize; it is simply the Pythagorean Theorem dressed in coordinate clothes!

Applying the Distance Formula Step by Step

To find the distance between any two coordinate points, execute this four-step sequence:

Step 1: Identify coordinates:  (x1, y1) and (x2, y2).
Step 2: Find horizontal change (x2 - x1) and vertical change (y2 - y1).
Step 3: Square both differences (both squared values become POSITIVE!).
Step 4: Add the squared values and extract the square root.
Example 1 (Integer Result): Find distance between A(-2, 3) and B(4, 11).
Step 1: (x1, y1) = (-2, 3),  (x2, y2) = (4, 11)
Step 2: x2 - x1 = 4 - (-2) = 6
        y2 - y1 = 11 - 3 = 8
Step 3: (6)^2 = 36
        (8)^2 = 64
Step 4: d = sqrt(36 + 64) = sqrt(100) = 10 units.
Example 2 (Irrational Result): Find distance between C(1, -4) and D(6, -1).
Step 1: (x1, y1) = (1, -4),  (x2, y2) = (6, -1)
Step 2: x2 - x1 = 6 - 1 = 5
        y2 - y1 = -1 - (-4) = 3
Step 3: (5)^2 = 25
        (3)^2 = 9
Step 4: d = sqrt(25 + 9) = sqrt(34) units (approx. 5.83 units).

Notice that squaring the differences eliminates any negative signs: (-5)^2 is +25. Distance can never be negative.

The Symmetry of Distance: Order Does Not Matter

Students often wonder whether it matters which point is labeled Point 1 and which is labeled Point 2. Because squaring a real number and squaring its opposite produce the exact same positive result:

(x2 - x1)^2 = (x1 - x2)^2   and   (y2 - y1)^2 = (y1 - y2)^2

For example, (4 - 7)^2 = (-3)^2 = 9, and (7 - 4)^2 = (3)^2 = 9. Therefore, you can subtract coordinates in either direction without changing the final distance.

Chapter Exercises

Exercise 1: Calculate the exact distance between the coordinate points P(-3, -2) and Q(5, 4). Show the subtraction of coordinates, the squaring of terms, the addition, and state whether the final distance is rational or irrational.

Exercise 2: A triangle has vertices at A(0, 0), B(3, 4), and C(7, 1). Use the Distance Formula to calculate the lengths of all three sides AB, BC, and AC. Determine whether the triangle is scalene, isosceles, or equilateral.

Exercise 3: Explain in paragraph form why the Distance Formula always produces a non-negative result, discussing the roles of squaring differences and principal square roots.

Solutions and Explanations

Solution 1: To find the distance between P(-3, -2) and Q(5, 4), assign (x1, y1) = (-3, -2) and (x2, y2) = (5, 4). Compute the horizontal difference: x2 - x1 = 5 - (-3) = 5 + 3 = 8. Compute the vertical difference: y2 - y1 = 4 - (-2) = 4 + 2 = 6. Now square both differences: 8^2 = 64, and 6^2 = 36. Add the squared values together: 64 + 36 = 100. Extract the principal square root: d = sqrt(100) = 10 units. Because 10 is an integer that can be expressed as 10/1, the distance is a rational number. (Notice that this forms a classic (6, 8, 10) right triangle).

Solution 2: To find the lengths of the three sides of Triangle ABC, apply the Distance Formula to each pair of vertices. For side AB between (0, 0) and (3, 4): d_AB = sqrt((3 - 0)^2 + (4 - 0)^2) = sqrt(3^2 + 4^2) = sqrt(9 + 16) = sqrt(25) = 5 units. For side BC between (3, 4) and (7, 1): d_BC = sqrt((7 - 3)^2 + (1 - 4)^2) = sqrt(4^2 + (-3)^2) = sqrt(16 + 9) = sqrt(25) = 5 units. For side AC between (0, 0) and (7, 1): d_AC = sqrt((7 - 0)^2 + (1 - 0)^2) = sqrt(7^2 + 1^2) = sqrt(49 + 1) = sqrt(50) units (approximately 7.07 units). Comparing the three side lengths: side AB = 5 units, side BC = 5 units, and side AC = sqrt(50) units. Because exactly two of the three sides have equal lengths (AB = BC = 5), Triangle ABC is classified as an Isosceles Triangle.

Solution 3: The Distance Formula always produces a non-negative result because of two foundational mathematical operations embedded within its structure: squaring real numbers and extracting principal square roots. First, when finding the horizontal and vertical displacements (x2 - x1) and (y2 - y1), the differences may be positive, negative, or zero depending on the direction of subtraction. However, squaring any real number always produces a non-negative result: a positive number squared is positive, and a negative number squared is also positive (for example, (-4)^2 = +16). Adding two non-negative squared quantities produces a sum that is greater than or equal to zero. Second, the radical symbol denotes the principal square root, which is defined by mathematical convention as the non-negative square root of a number. Therefore, the square root of this sum can never be negative. Geometrically, this aligns with reality: distance represents physical spatial separation between two points and cannot have a negative value.