1.Distance, midpoints, slopes, and lines
Coordinates turn a picture into arithmetic. Every point of the plane is a pair measured from two perpendicular axes, so every geometric question about points can be restated as a question about those pairs. The most basic bridge is the distance formula. If and , draw the horizontal and vertical segments that complete to a right triangle. Its legs have lengths and , so the Pythagorean theorem gives the length of the hypotenuse .
Stated precisely, . The absolute values disappear because they are squared, so the order of the two endpoints never matters. The formula needs no special case for tilted segments or for segments running through any quadrant: the signs of the legs are irrelevant once they are squared. This is why one formula handles every position of the segment, and why it is the first tool to reach for whenever a figure is placed in coordinates.
The midpoint of is the point whose coordinates are the averages, . To justify this, note that , so sits exactly halfway in the horizontal direction, and the same computation works vertically. A useful consequence: if you know one endpoint and the midpoint, the other endpoint is , computed coordinate by coordinate.
Slope measures steepness: when . Any two points on the same line give the same slope, because the right triangles formed by the rise and the run are similar. A line can be written in slope-intercept form , in point-slope form , or in general form . The general form is the safe choice when the line might be vertical: a vertical line has no slope, but it has the equation .
Perpendicularity is the most useful relation among slopes, and it is really a dot product fact. Direction vectors of the two lines are and , and the lines are perpendicular exactly when these vectors have zero dot product, which is . So . The same idea works without slopes: the line has normal vector , and two lines are perpendicular exactly when their normal vectors are perpendicular.
Contest problems are often easier after a smart choice of axes. If the figure has a right angle, put that vertex at the origin with the legs on the axes. If it has a symmetry axis, make that axis a coordinate axis. Then the distance and slope formulas become short, and the answer usually falls out after one substitution. Choosing coordinates well is a skill that pays off in every later section of this topic.
- d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
- M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)
- m=\frac{y_2-y_1}{x_2-x_1},\qquad y-y_1=m(x-x_1)
- \ell_1\perp\ell_2 \iff m_1m_2=-1 \text{ (when neither line is vertical)}
Spot it: The problem places points or a figure at explicit coordinates, or lets you choose axes; any question about the length of a tilted segment, a midpoint, or perpendicular lines.
- Dividing by when the segment is vertical. A vertical line has no slope; write its equation as instead.
- Dropping the square on one term, or taking the square root of only part of the sum. The distance is the square root of the whole sum of squares.
- Treating as the perpendicular slope of . The perpendicular slope is the negative reciprocal, , and the sign matters.
Points and are given. Find the length of segment .