The distance, midpoint and slope formulas answer different questions about the same two points. Check whether you need a length, a coordinate pair or a rate of change.
Where this helps
Connecting points, lines, and lengths on a coordinate grid.
Before you start
Try the examples to see what you’ll practice. Check the answer form and any stated conditions.
From (−1, 2) to (2, 6), the horizontal change is 3 and the vertical change is 4.
d = √(3² + 4²) = 5.
For points (x₁, y₁) and (x₂, y₂), use d = √((x₂ − x₁)² + (y₂ − y₁)²). The changes form the legs of a right triangle. Distance is the nonnegative square root.
Average matching coordinates
The midpoint of (−2, 1) and (4, 5) is:
x = (−2 + 4)/2 = 1
y = (1 + 5)/2 = 3
So the midpoint is (1, 3). Average the two x-coordinates and the two y-coordinates separately: ((x₁ + x₂)/2, (y₁ + y₂)/2). Use the coordinate the question asks for.
Slope is rise divided by run
From (1, 5) to (4, −1), the vertical change is −1 − 5 = −6 and the horizontal change is 4 − 1 = 3.
Slope = −6/3 = −2.
In general, m = (y₂ − y₁)/(x₂ − x₁). Use the same point order in both differences. If the horizontal change is zero, the line is vertical and its slope is undefined.
Try a few examples
Real practice. Real progress.
Example 1 of 4
complete the coordinate distance formula
The two points have real Cartesian coordinates and distance denotes the principal nonnegative square root.