Lesson 7.4 · The Pythagorean Theorem
Distance on the coordinate plane
How far apart are two points on a map or a coordinate grid? If they line up horizontally or vertically, you can just count. If they don't, the grid gives you a right triangle for free, and the Pythagorean theorem does the rest.
Horizontal and vertical distances
When two points have the same -coordinate, they lie on a horizontal line. The distance between them is the difference of their -coordinates. When they have the same -coordinate, subtract the -coordinates.
- and : distance .
- and : distance .
Distance is never negative. If you subtract in the "wrong" order, just drop the negative sign: .
Slanted distances
Now take the points and . The segment between them is slanted, so you can't count squares along it. Instead, draw a horizontal leg and a vertical leg to make a right triangle.
- The horizontal leg goes from to , so it is units long.
- The vertical leg goes from to , so it is units long.
- The distance is the hypotenuse: .
Distance between two points
To find the distance between two points:
- Find the horizontal change (the difference of the -coordinates).
- Find the vertical change (the difference of the -coordinates).
- Use them as the legs of a right triangle: .
Worked example: Points in different quadrants
Find the distance between and , exactly and to the nearest tenth.
- Horizontal change: from to is units.
- Vertical change: from to is units.
Common mistake
Be careful when a coordinate is negative. From to is units, not . Subtracting a negative means adding: . You can also count the squares on the grid to check.
The distance formula
If you write the steps above with letters, you get a formula. For points and ,
This is just the Pythagorean theorem in disguise: is the horizontal leg and is the vertical leg. Because each difference is squared, it doesn't matter which point you call the first one. A negative difference becomes positive when you square it.
Worked example: Perimeter of a triangle
A triangle has vertices , and . Find its perimeter.
Find each side.
- : the points share , so .
- : horizontal change , vertical change . So .
- : horizontal change , vertical change . So .
The perimeter is units. (Two sides are equal, so the triangle is isosceles.)
Tip
Sketch the points before you compute, even roughly. A sketch shows you which way the legs go and gives you a quick estimate to check your answer against.
Practice
What is the distance between and ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the distance between and ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the distance from the origin to the point ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the distance between and ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the exact distance between and . (You can type a square root as sqrt(…).)
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the distance between and , to the nearest tenth.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which point is farther from the origin: or ?
A triangle has vertices , and . Find its perimeter to the nearest tenth.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.