Two towns want to share a new fire station, and they agree it must be the same distance from both. On a map in kilometres, the towns are at and . The midpoint is one fair spot, but it is not the only one: there is a whole line of fair spots, and finding its equation is the first goal of this lesson. The second goal is a different kind of shortest path. A farm at wants a straight driveway to a highway that runs along the line . Which point of the highway is closest, and how long is the driveway? Both problems are solved with slopes, perpendicular lines and the formulas from Lesson 1.
Slope and the equation of a line
The slope of a line measures its steepness: the rise divided by the run between any two points and on it, . A line that rises to the right has a positive slope, one that falls to the right has a negative slope, a horizontal line has slope , and a vertical line has an undefined slope (its run is , and you cannot divide by ). A non-vertical line can be written as , where is the y-intercept. To find when you know the slope and one point, substitute the point and solve: for slope through , , so and the line is .
Parallel and perpendicular slopes
Two different non-vertical lines are parallel exactly when they have the same slope: they rise at the same rate, so the gap between them never changes. Two lines are perpendicular when they meet at a right angle (). For lines that are neither horizontal nor vertical, perpendicular slopes are negative reciprocals: flip the fraction and change the sign. So a line of slope is perpendicular to a line of slope , and the product of the two slopes is . Here is why. A step along the first line of right and up, turned a quarter-turn counterclockwise, becomes a step of left and up. The turned line therefore has slope : the run and rise trade places (the reciprocal) and one of them changes sign (the negative).
| Slope of a line | Slope of a parallel line | Slope of a perpendicular line |
|---|---|---|
| (horizontal) | Undefined (vertical line) |
The perpendicular bisector of a segment
The perpendicular bisector (also called the right bisector) of a segment is the line that passes through the segment's midpoint and is perpendicular to it. It has a special property: every point on it is the same distance from both endpoints, and every point that is the same distance from both endpoints lies on it. To see why, pick any point on the bisector of , with midpoint . The triangles and share the side , have , and both have a right angle at . They are congruent (identical in size and shape), so . That is why the bisector of the segment joining the two towns is the line of fair spots for the fire station.
- Find the midpoint of the segment.
- Find the slope of the segment.
- Take the negative reciprocal to get the slope of the bisector.
- Substitute and the new slope into and solve for .
- Check: satisfies the equation, and a second point on the bisector is equally far from both endpoints.
For the towns, and the slope of is . The bisector's slope is the negative reciprocal, . Substituting : , so , and the bisector is . Test it with , which is on the line because . Then and so km. A fire station at would be fair to both towns.
Shortest distance from a point to a line
The distance from a point to a line means the shortest distance, and for a point that is not on the line, the shortest path meets the line at a right angle. Any other path from the point to the line is the hypotenuse of a right triangle whose one leg is the perpendicular path, and a hypotenuse is longer than either leg. In the figure, the perpendicular path from has length , while the vertical path to the same line has length . To find the distance, build the perpendicular, find where it meets the line (a linear system, like those in Unit 1), and measure. Worked Example 4 uses these steps to show that the farm's driveway is km long.
- Find the slope of the given line (rearrange to if needed).
- Write the equation of the line through the point with the negative reciprocal slope.
- Solve the two equations as a system to find the intersection point , the foot of the perpendicular.
- Use the length formula to find the distance from the point to .