<meta http-equiv="refresh" content="1; url=/nojavascript/"> Distance Formula in the Coordinate Plane ( Read ) | Geometry | CK-12 Foundation
You are viewing an older version of this Concept. Go to the latest version.

# Distance Formula in the Coordinate Plane

%
Best Score
Practice Distance Formula in the Coordinate Plane
Best Score
%

# The Distance Formula

Find the area of the triangle below.

#### Watch This

http://www.youtube.com/watch?v=TiAEH1qPTQU James Sousa: The Distance Formula

#### Guidance

When working on a coordinate plane, you can always find the distance between two points (or the length of a line segment) by creating a right triangle and using the Pythagorean Theorem.

For example, suppose you want to find the length of $\overline{AB}$ .

Draw a right triangle such that $\overline{AB}$  is the hypotenuse.

You can find the lengths of $\overline{BC}$  and $\overline{AC}$  by counting because they are vertical and horizontal line segments.

Use the Pythagorean Theorem to find the length of $\overline{AB}$ .

$(AB)^2 &=2^2+4^2 \\AB &=\sqrt{20}=2\sqrt{5} \ un$

Notice that $AB=\sqrt{BC^2+AC^2}$ . This generalizes to a formula known as the distance formula. The distance formula states that the distance between $(x_1,y_1)$  and $(x_2,y_2)$  is $\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$ . You will prove this generalized distance formula in Example A.

With the help of the distance formula, you can find the perimeter of polygons on a coordinate plane by finding the sum of the lengths of all the sides. You can also find the area of polygons by finding the lengths of key line segments like bases and heights.

Example A

Use the Pythagorean Theorem to show that the distance between the two points below is $\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$ .

Solution: Draw in a right triangle. The lengths of the legs are $(x_2-x_1)$  and $(y_2-y_1)$ . For now, let the length of the hypotenuse of the triangle (the distance you are trying to find) be “ $k$ ”.

By the Pythagorean Theorem, $(x_2-x_1)^2+(y_2-y_1)^2=k^2$ . Therefore, $k=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$ . The distance between the two points is $\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$ .

Example B

Find the perimeter of the triangle below.

Solution: Use the distance formula to find the length of each side.

$AB &= \sqrt{2^2+3^2}=\sqrt{13}\approx3.61 \ un \\BC &= \sqrt{1^2+2^2}=\sqrt{5}\approx2.24 \ un \\AC &= \sqrt{2^2+4^2}=\sqrt{20}=2\sqrt{5}\approx4.47 \ un$

The perimeter of the triangle is the distance around the triangle, which is the sum of the lengths of the three sides. The perimeter is $\sqrt{13}+\sqrt{5}+2\sqrt{5}=\sqrt{13}+3\sqrt{5}\approx10.31$  units.

Example C

Find the distance between  $(2, 7)$ and $(-1, 5)$ .

Solution: You can use the distance formula without plotting the points. Let $(x_1,y_1)$ $=(2,7)$  and $(x_2,y_2)=(-1,5)$ .

$\text{Distance} = \sqrt{(-1-2)^2+(5-7)^2}=\sqrt{(-3)^2+(-2)^2}=\sqrt{9+4}=\sqrt{13} \ un$

Note that it doesn't matter which point you choose for $(x_1,y_1)$ . You could have also calculated the distance the other way, with $(x_1,y_1)=(-1,5)$ :

$\text{Distance} = \sqrt{(-2-1)^2+(7-5)^2}=\sqrt{(-3)^2+(2)^2}=\sqrt{9+4}=\sqrt{13} \ un$

Concept Problem Revisited

Consider the triangle with its three side lengths labeled (lengths found in Example B).

To find the area of the triangle, you can use the formula $A=\frac {bh}{2}$ . Any of the three sides can be the base, but you need a height that is perpendicular to the base you choose. Here, let $\overline{AC}$  be the base, so $b=4.47 \ un$

Now, you need to find a line perpendicular to $\overline{AC}$  through point $B$ . $\overline{AC}$  has a slope of $\frac {1}{2}$ . A line perpendicular to $\overline{AC}$ will have a slope of -2. You need to find a line with a slope of -2 that passes through the point $(1, 4)$ .

$4 &= -2(1)+b \\6 &= b$

The equation is $y=-2x+6$ .

Next, you need to find where this line intersects $\overline{AC}$ . The equation of the line that contains $\overline{AC}$  is $y=\frac {1}{2}x+ \frac {3}{2}$ . Solve the system of equations to find the point of intersection.

$y=-2x+6$  and $y=\frac {1}{2}x+ \frac {3}{2}$

$-2x+6 &= \frac {1}{2}x+ \frac {3}{2} \\\frac {9}{2} &= \frac {5}{2}x \\x &= 1.8 \\y &= -2(1.8)+6 \\y &= 2.4$

The point of intersection is $(1.8, 2.4)$ .

Next, you need to find the length of the height, which is the distance from  $(1.8, 2.4)$ to $(1, 4)$ .

$h=\sqrt{(1.8-1)^2+(2.4-4)^2}=1.79 \ un$

Now that you know the lengths of the base and the height, you can find the area of the triangle. The area of the triangle is:

$A &=\frac {bh}{2} \\A &=\frac {(4.47)(1.79)}{2} \\A & \approx4 \ un^2$

#### Vocabulary

The distance formula is a formula that helps calculate the distance between two points or the length of a line segment in the coordinate plane. The distance between $(x_1,y_1)$  and $(x_2,y_2)$  is $\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$ .

#### Guided Practice

1. Find the perimeter of the rectangle below.

2. Find the area of the rectangle from #1.

3. Find the distance between  $(-16, 4)$ and $(312, 211)$ . How does this calculation help to show why having the distance formula is helpful?

1. Because the polygon is a rectangle, its opposite sides are the same length. Use the distance formula to find the length of two of the sides.

$AB &= \sqrt{3^2+1^2}=\sqrt{10} \\BC &= \sqrt{6^2+2^2}=\sqrt{40}=2\sqrt{10}$

The perimeter of the rectangle is:

$P=\sqrt{10}+2\sqrt{10}+\sqrt{10}+2\sqrt{10}=6\sqrt{10} \ un$

2. To find the area of the rectangle, use the formula $A=bh$ . The base and the height lengths were found in #1.

$A &= \left ( \sqrt{10} \right ) \left ( 2\sqrt{10} \right ) \\A &= 20 \ un^2$

3. Let $(x_1,y_1)$ $=(-16,4)$  and $(x_2,y_2)=(312,211)$ .

$d=\sqrt{(312-(-16))^2+(211-4)^2}\approx387.01 \ un$

Because these two points are so far apart, it would have been unrealistic to plot them and try to find the distance between them by drawing in a right triangle and using the Pythagorean Theorem. The distance formula makes these types of calculations much quicker.

#### Practice

Find the distance between each pair of points.

1.  $(7, 11)$ and $(4, 23)$ .

2.  $(19, 56)$ and $(-21, 45)$ .

3. $(-11,91)$ and $(89, 16)$ .

For #4-#5, use the rectangle below.

4. Find the perimeter of the rectangle.

5. Find the area of the rectangle.

For #6-#7, use the triangle below.

6. Find the perimeter of the triangle.

7. Find the area of the triangle.

For #8-#9, use the rectangle below.

8. Find the perimeter of the rectangle.

9. Find the area of the rectangle.

For #10-#11, use the triangle below.

10. Find the perimeter of the triangle.

11. Find the area of the triangle.

For #12-#14, find the perimeter of each polygon.

12.

13 .

14.

15. What does the distance formula have to do with the Pythagorean Theorem?