3.6: The Distance Formula
Learning Objectives
- Find the distance between two points.
- Find the shortest distance between a point and a line and two parallel lines.
- Determine the equation of a perpendicular bisector of a line segment in the coordinate plane.
Review Queue
- What is the equation of the line between (-1, 3) and (2, -9)?
- Find the equation of the line that is perpendicular to through the point (-4, -5).
- Find the equation of the line that is parallel to through the point (3, 8).
Know What? The shortest distance between two points is a straight line. To the right is an example of how far apart cities are in the greater Los Angeles area. There are always several ways to get somewhere in Los Angeles. Here, we have the distances between Los Angeles and Orange. Which distance is the shortest? Which is the longest?
The Distance Formula
The distance between two points and can be defined as . This formula will be derived in Chapter 9.
Example 1: Find the distance between (4, -2) and (-10, 3).
Solution: Plug in (4, -2) for and (-10, 3) for and simplify.
Example 2: The distance between two points is 4 units. One point is (1, -6). What is the second point? You may assume that the second point is made up of integers.
Solution: We will still use the distance formula for this problem, however, we know and need to solve for .
At this point, we need to figure out two square numbers that add up to 16. The only two square numbers that add up to 16 are .
Therefore, the second point could have 4 possibilities: (5, -6), (-3, -6), (1, -10), and (1, -2).
Shortest Distance between a Point and a Line
We know that the shortest distance between two points is a straight line. This distance can be calculated by using the distance formula. Let’s extend this concept to the shortest distance between a point and a line.
Just by looking at a few line segments from to line , we can tell that the shortest distance between a point and a line is the perpendicular line between them. Therefore, is the shortest distance between and line .
Putting this onto a graph can be a little tougher.
Example 3: Determine the shortest distance between the point (1, 5) and the line .
Solution: First, graph the line and point. Second determine the equation of the perpendicular line. The opposite sign and reciprocal of is -3, so that is the slope. We know the line must go through the given point, (1, 5), so use that to find the intercept.
Next, we need to find the point of intersection of these two lines. By graphing them on the same axes, we can see that the point of intersection is (3, -1), the green point.
Finally, plug (1, 5) and (3,-1) into the distance formula to find the shortest distance.
Shortest Distance between Two Parallel Lines
The shortest distance between two parallel lines is the length of the perpendicular segment between them. It doesn’t matter which perpendicular line you choose, as long as the two points are on the lines. Recall that there are infinitely many perpendicular lines between two parallel lines.
Notice that all of the pink segments are the same length. So, when picking a perpendicular segment, be sure to pick one with endpoints that are integers.
Example 3: Find the distance between and .
Solution: Any line with number is a vertical line. In this case, we can just count the squares between the two lines. The two lines are units apart, or 8 units.
You can use this same method with horizontal lines as well. For example, and are units, or 4 units apart.
Example 4: What is the shortest distance between and ?
Solution: Graph the two lines and determine the perpendicular slope, which is . Find a point on , let’s say (-1, 2). From here, use the slope of the perpendicular line to find the corresponding point on . If you move down 1 from 2 and over to the right 2 from -1, you will hit at (1, 1). Use these two points to determine the distance between the two lines.
The lines are about 2.24 units apart.
Notice that you could have used any two points, as long as they are on the same perpendicular line. For example, you could have also used (-3, -2) and (-1, -3) and you still would have gotten the same answer.
Example 5: Find the distance between the two parallel lines below.
Solution: First you need to find the slope of the two lines. Because they are parallel, they are the same slope, so if you find the slope of one, you have the slope of both.
Start at the intercept of the top line, 7. From there, you would go down 1 and over 3 to reach the line again. Therefore the slope is and the perpendicular slope would be 3.
Next, find two points on the lines. Let’s use the intercept of the bottom line, (0, -3). Then, rise 3 and go over 1 until your reach the second line. Doing this three times, you would hit the top line at (3, 6). Use these two points in the distance formula to find how far apart the lines are.
Perpendicular Bisectors in the Coordinate Plane
Recall that the definition of a perpendicular bisector is a perpendicular line that goes through the midpoint of a line segment. Using what we have learned in this chapter and the formula for a midpoint, we can find the equation of a perpendicular bisector.
Example 6: Find the equation of the perpendicular bisector of the line segment between (-1, 8) and (5, 2).
Solution: First, find the midpoint of the line segment.
Second, find the slope between the two endpoints. This will help us figure out the perpendicular slope for the perpendicular bisector.
If the slope of the segment is -1, then the slope of the perpendicular bisector will be 1. The last thing to do is to find the intercept of the perpendicular bisector. We know it goes through the midpoint, (2, 5), of the segment, so substitute that in for and in the slope-intercept equation.
The equation of the perpendicular bisector is .
Example 7: The perpendicular bisector of has the equation . If is (-1, 8) what are the coordinates of ?
Solution: The easiest way to approach this problem is to graph it. Graph the perpendicular line and plot the point. See the graph to the left.
Second, determine the slope of . If the slope of the perpendicular bisector is , then the slope of is 3.
Using the slope, count down 3 and over to the right 1 until you hit the perpendicular bisector. Counting down 6 and over 2, you land on the line at (-3, 2). This is the midpoint of . If you count down another 6 and over to the right 2 more, you will find the coordinates of , which are (-5, -4).
Know What? Revisited Draw two intersecting lines. Make sure they are not perpendicular. Label the 26.3 miles along hwy 5. The longest distance is found by adding the distances along the 110 and 405, or 41.8 miles.
Review Questions
Find the distance between each pair of points. Round your answer to the nearest hundredth.
- (4, 15) and (-2, -1)
- (-6, 1) and (9, -11)
- (0, 12) and (-3, 8)
- (-8, 19) and (3, 5)
- (3, -25) and (-10, -7)
- (-1, 2) and (8, -9)
- (5, -2) and (1, 3)
- (-30, 6) and (-23, 0)
Determine the shortest distance between the given line and point. Round your answers to the nearest hundredth.
Use each graph below to determine how far apart each theparallel lines are. Round your answers to the nearest hundredth.
Determine the shortest distance between the each pair of parallel lines. Round your answer to the nearest hundredth.
Find the equation of the perpendicular bisector for pair of points.
- (1, 5) and (7, -7)
- (1, -8) and (7, -6)
- (9, 2) and (-9, -10)
- (-7, 11) and (-3, 1)
- The perpendicular bisector of has the equation . If is (-3, 0) what are the coordinates of ?
- The perpendicular bisector of has the equation . If is (6, -3) what are the coordinates of ?
- Construction Plot the points (5, -3) and (-5, -9). Draw the line segment between the points. Construct the perpendicular bisector for these two points. (Construction was in Chapter 1). Determine the equation of the perpendicular bisector and the midpoint.
- Construction Graph the line and the point (2, 5). Construct the perpendicular line, through (2, 5) and determine the equation of this line.
- Challenge The distance between two points is 25 units. One point is (-2, 9). What is the second point? You may assume that the second point is made up of integers.
- Writing List the steps you would take to find the distance between two parallel lines, like the two in #24.