Sub topic 2
Distance and Midpoint Between Two Points
Assume you can work with fractions, negative numbers, decimals, square roots, and the Pythagorean theorem. This chapter uses ordered pairs in the coordinate plane.
The Working Model
Two points, \(P(x1,y1)\) and \(Q(x2,y2)\), determine a horizontal change and a vertical change:
- Horizontal change: \(x2-x1\)
- Vertical change: \(y2-y1\)
These changes form the legs of a right triangle. The segment from \(P\) to \(Q\) is the hypotenuse.
Distance Formula
Applying the Pythagorean theorem gives the distance formula:
\[ PQ=\sqrt{(x2-x1)^2+(y2-y1)^2} \]
Because each change is squared, the order of the points does not affect the distance. However, keep the coordinates paired correctly. Subtract x-coordinates from x-coordinates and y-coordinates from y-coordinates.
Worked Example
Find the distance between \(P(1,2)\) and \(Q(4,6)\).
\[ PQ=\sqrt{(4-1)^2+(6-2)^2} =\sqrt{3^2+4^2} =\sqrt{25}=5 \]
The points are 5 units apart.
import math
p = (1, 2)
q = (4, 6)
distance = math.sqrt((q[0] - p[0])**2 + (q[1] - p[1])**2)
print(distance) # 5.0Midpoint Formula
The midpoint is the point exactly halfway between two endpoints. Average the x-coordinates and average the y-coordinates:
\[ M=\left(\frac{x1+x2}{2},\frac{y1+y2}{2}\right) \]
For \(P(1,2)\) and \(Q(4,6)\):
\[ M=\left(\frac{1+4}{2},\frac{2+6}{2}\right) =\left(\frac52,4\right) =(2.5,4) \]
The midpoint formula uses averages, not differences.
| Task | Formula | Result for \(P(1,2), Q(4,6)\) |
|---|---|---|
| Distance | \(\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\) | \(5\) |
| Midpoint | \(\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)\) | \((2.5,4)\) |
GRE Applications and Common Errors
GRE questions may give a distance and ask for an unknown coordinate. Substitute the known values into the distance formula, then square both sides before solving when possible.
For a horizontal segment, the y-coordinates are equal, so the distance is the absolute difference of the x-coordinates. For a vertical segment, the distance is the absolute difference of the y-coordinates.
Check whether a square root simplifies. For example, \(\sqrt{36}=6\), but \(\sqrt{20}=2\sqrt5\). In a quantitative comparison question, an exact expression may be enough; do not approximate unless the comparison requires it.
Exercise
What are the distance and midpoint between \((-2,5)\) and \((4,-3)\)?
Show answer
The distance is \(\sqrt{6^2+(-8)^2}=\sqrt{100}=10\). The midpoint is \(\left(\frac{-2+4}{2},\frac{5+(-3)}{2}\right)=(1,1)\).