Skip to content
Study Hall
Lesson 3 of 4Analytic Geometry
Unit 2 · Lesson 3 of 4

Slopes, Perpendicular Bisectors and Distance to a Line

Parallel lines share a slope and perpendicular lines have negative reciprocal slopes. Use those facts with the midpoint and length formulas to write the equation of a perpendicular bisector, and to find the shortest distance from a point to a line.

6 min read11 practice questionsAsk AI about this →

Key things to remember

  1. 1Slope: (undefined for a vertical line, where ).
  2. 2Non-vertical parallel lines have equal slopes. Perpendicular lines that are neither horizontal nor vertical have negative reciprocal slopes, whose product is .
  3. 3The perpendicular bisector of passes through the midpoint of with the negative reciprocal of the slope of ; every point on it is equidistant from and .
  4. 4The distance from a point to a line is measured along the perpendicular: build the perpendicular, find the foot by solving a system, then use the length formula.
  5. 5To find in , substitute a known point and the slope, then solve.

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 lineSlope of a parallel lineSlope of a perpendicular line
(horizontal)Undefined (vertical line)
Perpendicular slopes multiply to negative 1, except for a horizontal line paired with a vertical line.
Horizontal and vertical lines
A horizontal line such as and a vertical line such as are perpendicular, but the product rule cannot show it, because the vertical line has no slope to multiply. Recognize this pair by its equations: one has the form and the other , where and are constants.

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.

  1. Find the midpoint of the segment.
  2. Find the slope of the segment.
  3. Take the negative reciprocal to get the slope of the bisector.
  4. Substitute and the new slope into and solve for .
  5. Check: satisfies the equation, and a second point on the bisector is equally far from both endpoints.
Perpendicular bisector of ABShortest distance from Q to a line−4−2246−2246xyA(−3, −1)B(5, 3)M(1, 1)P(−1, 5)y = −2x + 3M = (1, 1); slope of AB = 4/8 = 1/2bisector: slope −2 through MPA² = 2² + 6² = 40, PB² = 6² + 2² = 40−2246−2246xyQ(4, −1)F(2, 3)y = 0.5x + 2√205perpendicular through Q: y = −2x + 7meets the line at F(2, 3); QF = √20 ≈ 4.5vertical path from Q to the line: 5
Fig 1Left: segment AB from A(−3, −1) to B(5, 3), its midpoint M(1, 1), and its perpendicular bisector y = −2x + 3; the point P(−1, 5) on the bisector is the square root of 40 from both A and B. Right: the shortest path from Q(4, −1) to the line y = 0.5x + 2 runs along a perpendicular and meets the line at F(2, 3); a vertical path to the same line is longer.

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.

VideoFind the midpoint, take the negative reciprocal of the slope, and write the equation of the perpendicular bisector.Watch on YouTube

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.

  1. Find the slope of the given line (rearrange to if needed).
  2. Write the equation of the line through the point with the negative reciprocal slope.
  3. Solve the two equations as a system to find the intersection point , the foot of the perpendicular.
  4. Use the length formula to find the distance from the point to .
Shortcut for horizontal and vertical lines
The perpendicular to a horizontal line is vertical, so the distance from to is just . Likewise, the distance from to the vertical line is .
VideoFind the shortest distance from a point to a line by building the perpendicular line, finding where the two lines meet, and measuring the length.Watch on YouTube

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Line 1 passes through and . Line 2 passes through and . Are the lines parallel, perpendicular or neither?
Example 2
Find the equation of the line through that is perpendicular to .
Example 3
Find the equation of the perpendicular bisector of the segment from to .
Example 4
A farm is at and a straight highway follows (units in kilometres). Find the shortest distance from the farm to the highway, exactly and to one decimal place.

Where marks get lost

  • Taking only half of "negative reciprocal": the slope perpendicular to is , not (negative only) and not (reciprocal only).
  • Using the segment's own slope through the midpoint. That line is the segment's line, not its bisector. For and , is wrong; is right.
  • Drawing the perpendicular through an endpoint instead of the midpoint. That line is perpendicular to the segment but does not bisect it.
  • Measuring the distance to a line along a vertical or horizontal path. From straight up to is km; the true (perpendicular) distance is km.
  • Stopping at the foot of the perpendicular. The intersection point is where the shortest path ends; the distance is the length from to that point.

Flashcards 8

Slope formula
Parallel lines (not vertical)
Perpendicular lines (neither horizontal nor vertical)
Perpendicular bisector
+ 4 more

Practice

1
What is the slope of a line perpendicular to a line with slope ?
2
Find the slope of the line through and .
3
Which pair of lines is perpendicular?
4
The line through perpendicular to is . What is ?
5
Which is the equation of the perpendicular bisector of the segment from to ?
6
Which point is the same distance from and ?
7
What is the distance from the point to the line ?
units
8
Find the distance from to the line , to one decimal place.
units
9
The line through and is perpendicular to a line with slope . Find .
10
Match each slope with the slope of a perpendicular line.
  1. A.
  2. B.
  3. C.
  4. D.Undefined (a vertical line)
11
Put the steps for finding the distance from a point to a line in order.
  1. 1Use the length formula from the point to the foot
  2. 2Solve the system of the two lines to find the foot of the perpendicular
  3. 3Write the equation of the perpendicular line through the point
  4. 4Find the slope of the given line
  5. 5Take the negative reciprocal to get the perpendicular slope

Spot a mistake on this page? Let us know