# Distance in the Coordinate Plane

### Learning Outcomes

- Use the distance formula to find the distance between two points in the plane.
- Use the midpoint formula to find the midpoint between two points.

**Pythagorean Theorem**, the

**distance formula**is used to find the distance between two points in the plane. The Pythagorean Theorem, [latex]{a}^{2}+{b}^{2}={c}^{2}[/latex], is based on a right triangle where

*a*and

*b*are the lengths of the legs adjacent to the right angle, and

*c*is the length of the hypotenuse. The relationship of sides [latex]|{x}_{2}-{x}_{1}|[/latex] and [latex]|{y}_{2}-{y}_{1}|[/latex] to side

*d*is the same as that of sides

*a*and

*b*to side

*c.*We use the absolute value symbol to indicate that the length is a positive number because the absolute value of any number is positive. (For example, [latex]|-3|=3[/latex]. ) The symbols [latex]|{x}_{2}-{x}_{1}|[/latex] and [latex]|{y}_{2}-{y}_{1}|[/latex] indicate that the lengths of the sides of the triangle are positive. To find the length

*c*, take the square root of both sides of the Pythagorean Theorem.

### A General Note: The Distance Formula

Given endpoints [latex]\left({x}_{1},{y}_{1}\right)[/latex] and [latex]\left({x}_{2},{y}_{2}\right)[/latex], the distance between two points is given by### Example: Finding the Distance between Two Points

Find the distance between the points [latex]\left(-3,-1\right)[/latex] and [latex]\left(2,3\right)[/latex].Answer:
Let us first look at the graph of the two points. Connect the points to form a right triangle.
Then, calculate the length of *d *using the distance formula.

### Try It

Answer: [latex]\sqrt{125}=5\sqrt{5}[/latex]

### Try it

In the graph below, you can move the points around the coordinate plane by clicking on them and dragging them. Try it out to see how the distance between them changes. Choose two points and answer the following questions:- Calculate the lengths of the sides of the triangle made by the two points you chose and the corner point connected to them by green dotted lines.
- What parts of the distance formula are these lengths?

### Example: Finding the Distance between Two Locations

Let’s return to the situation introduced at the beginning of this section. Tracie set out from Elmhurst, IL to go to Franklin Park. On the way, she made a few stops to do errands. Each stop is indicated by a red dot. Find the total distance that Tracie traveled. Compare this with the distance between her starting and final positions.Answer: The first thing we should do is identify ordered pairs to describe each position. If we set the starting position at the origin, we can identify each of the other points by counting units east (right) and north (up) on the grid. For example, the first stop is 1 block east and 1 block north, so it is at [latex]\left(1,1\right)[/latex]. The next stop is 5 blocks to the east so it is at [latex]\left(5,1\right)[/latex]. After that, she traveled 3 blocks east and 2 blocks north to [latex]\left(8,3\right)[/latex]. Lastly, she traveled 4 blocks north to [latex]\left(8,7\right)[/latex]. We can label these points on the grid. Next, we can calculate the distance. Note that each grid unit represents 1,000 feet.

- From her starting location to her first stop at [latex]\left(1,1\right)[/latex], Tracie might have driven north 1,000 feet and then east 1,000 feet, or vice versa. Either way, she drove 2,000 feet to her first stop.
- Her second stop is at [latex]\left(5,1\right)[/latex]. So from [latex]\left(1,1\right)[/latex] to [latex]\left(5,1\right)[/latex], Tracie drove east 4,000 feet.
- Her third stop is at [latex]\left(8,3\right)[/latex]. There are a number of routes from [latex]\left(5,1\right)[/latex] to [latex]\left(8,3\right)[/latex]. Whatever route Tracie decided to use, the distance is the same, as there are no angular streets between the two points. Let’s say she drove east 3,000 feet and then north 2,000 feet for a total of 5,000 feet.
- Tracie’s final stop is at [latex]\left(8,7\right)[/latex]. This is a straight drive north from [latex]\left(8,3\right)[/latex] for a total of 4,000 feet.

From/To | Number of Feet Driven |
---|---|

[latex]\left(0,0\right)[/latex] to [latex]\left(1,1\right)[/latex] | 2,000 |

[latex]\left(1,1\right)[/latex] to [latex]\left(5,1\right)[/latex] | 4,000 |

[latex]\left(5,1\right)[/latex] to [latex]\left(8,3\right)[/latex] | 5,000 |

[latex]\left(8,3\right)[/latex] to [latex]\left(8,7\right)[/latex] | 4,000 |

Total | 15,000 |

## Using the Midpoint Formula

When the endpoints of a line segment are known, we can find the point midway between them. This point is known as the midpoint and the formula is known as the**midpoint formula**. Given the endpoints of a line segment, [latex]\left({x}_{1},{y}_{1}\right)[/latex] and [latex]\left({x}_{2},{y}_{2}\right)[/latex], the midpoint formula states how to find the coordinates of the midpoint [latex]M[/latex].

### Example: Finding the Midpoint of the Line Segment

Find the midpoint of the line segment with the endpoints [latex]\left(7,-2\right)[/latex] and [latex]\left(9,5\right)[/latex].Answer: Use the formula to find the midpoint of the line segment.

### Try It

Find the midpoint of the line segment with endpoints [latex]\left(-2,-1\right)[/latex] and [latex]\left(-8,6\right)[/latex].Answer: [latex]\left(-5,\frac{5}{2}\right)[/latex]

### Example: Finding the Center of a Circle

The diameter of a circle has endpoints [latex]\left(-1,-4\right)[/latex] and [latex]\left(5,-4\right)[/latex]. Find the center of the circle.Answer: The center of a circle is the center or midpoint of its diameter. Thus, the midpoint formula will yield the center point.

### Try It

In the graph below, there is a circle with a diameter whose endpoints are (0,5) and (10,5).- Find the center of the circle.
- Place a point at the center of the circle.
- Now move the endpoints of the diameter by clicking on them and dragging them. Notice that the size and location of the circle changes.
- Now graph the center point of a circle of any radius given that the equation for a circle of any radius with any center [latex](h,k)[/latex] is [latex](x-h)^2+(y-k)^2 = r^2[/latex].

## Licenses & Attributions

### CC licensed content, Original

- Revision and Adaptation.
**Provided by:**Lumen Learning**License:**CC BY: Attribution. - Midpoint Interactive.
**Authored by:**Lumen Learning.**Located at:**https://www.desmos.com/calculator/j2blmpiid7.**License:**CC BY: Attribution. - Distance in the Plane Interactive.
**Authored by:**Lumen Learning.**Located at:**https://www.desmos.com/calculator/nrtjcgmy69.**License:**Public Domain: No Known Copyright.

### CC licensed content, Shared previously

- College Algebra.
**Provided by:**OpenStax**Authored by:**Abramson, Jay et al..**License:**CC BY: Attribution.**License terms:**Download for free at http://cnx.org/contents/[email protected]. - Question ID 19140.
**Authored by:**Amy Lambert.**License:**CC BY: Attribution.**License terms:**IMathAS Community License CC- BY + GPL. - Question ID 2308.
**Authored by:**David Lippman.**License:**CC BY: Attribution.**License terms:**IMathAS Community License CC- BY + GPL. - Question ID 110938.
**Authored by:**Lumen Learning.**License:**CC BY: Attribution.**License terms:**IMathAS Community License CC- BY + GPL. - Example: Determine the Distance Between Two Points.
**Authored by:**James Sousa (Mathispower4u.com).**License:**CC BY: Attribution.

### CC licensed content, Specific attribution

- College Algebra.
**Provided by:**OpenStax**Authored by:**OpenStax College Algebra.**Located at:**https://cnx.org/contents/[email protected]:1/Preface.**License:**CC BY: Attribution.