Length of a Line Segment
How long is a slanted segment on a grid? You can’t just count squares, but you can turn the segment into the hypotenuse of a right triangle and use the Pythagorean theorem. That idea gives the length formula (also called the distance formula), which you’ll use to find perimeters, compare side lengths, and later to build the equation of a circle.
Key ideas
Section titled “Key ideas”Horizontal and vertical segments
Section titled “Horizontal and vertical segments”If two points are on the same horizontal line, the length is just the difference in -coordinates. From to the length is . For a vertical segment, use the difference in -coordinates. Lengths are never negative, so subtract the smaller from the larger.
Slanted segments: build a right triangle
Section titled “Slanted segments: build a right triangle”For a slanted segment , draw a horizontal leg from and a vertical leg up (or down) to . They meet at a right angle, so is the hypotenuse.
The horizontal leg is the change in , and the vertical leg is the change in . By the Pythagorean theorem:
The length formula
Section titled “The length formula”The length of the segment joining and is
Squaring makes every term positive, so it doesn’t matter which point you call , and a negative change in or is fine.
Exact and decimal answers
Section titled “Exact and decimal answers”Often the answer is a square root that isn’t a whole number, like . That’s the exact answer. You can also give a decimal approximation, like . Keep the exact form while you’re still working, and round only at the end. If you’ve learned to simplify radicals, you can write .
Classifying triangles by side lengths
Section titled “Classifying triangles by side lengths”Find all three side lengths, then compare:
| Type | Side lengths |
|---|---|
| Equilateral | all three sides equal |
| Isosceles | exactly two sides equal |
| Scalene | no sides equal |
To check for a right triangle, test the Pythagorean theorem backwards: if the squares of the two shorter sides add up to the square of the longest side, the triangle has a right angle. (You can also use slopes, as on verifying geometric properties.)
Worked examples
Section titled “Worked examples”Example 1: A whole-number length
Section titled “Example 1: A whole-number length”Find the length of the segment joining and .
Solution.
This is the segment in the figure above: legs of and , hypotenuse .
Example 2: Exact and decimal answers
Section titled “Example 2: Exact and decimal answers”Find the length of , with and . Give the exact answer and a decimal to two decimal places.
Solution.
The exact length is (or ), which is about .
Notice that . Squaring a negative change gives a positive number.
Example 3: Classifying a triangle
Section titled “Example 3: Classifying a triangle”A triangle has vertices , and . Classify it by its side lengths, and decide whether it’s a right triangle.
Solution. Find all three lengths:
, so the triangle is isosceles.
Now test for a right angle. The longest side is . Compare squares:
The squares match, so the triangle is also a right triangle, with the right angle at (the vertex opposite the longest side). It’s an isosceles right triangle.
Squared lengths are easy here: , so you never need to round.
Example 4: Perimeter of a garden
Section titled “Example 4: Perimeter of a garden”A garden plan uses a grid in metres. The garden has corners , , and . Fencing costs $18 per metre. Find the perimeter, and the cost to fence the garden.
Solution. Find each side, going around the shape in order:
The perimeter is about m. The cost is , so it costs about $379.49 to fence the garden.
Keep the extra decimal places until the last step, so your rounding doesn’t change the cost.
Common mistakes
Section titled “Common mistakes”Adding the changes instead of squaring them. The length from to is not . Walking along the two legs is longer than cutting straight across. Square, add, then take the square root.
Taking the square root of each term separately. is , not . Add first, then take the root.
Sign errors with negative coordinates. , not . Use brackets when you substitute a negative coordinate. Once you square, a negative change becomes positive anyway, but only if you subtracted correctly first.
Mixing coordinates from different points. Subtract from and from , using the same two points. Label the points and before you substitute.
Rounding too early. Rounding each side before adding can change the perimeter. Keep exact values (or at least three decimal places) until the final answer.
Testing the wrong sides for a right angle. The longest side must be on its own: check whether the two shorter sides’ squares add to the longest side’s square.
Practice
Section titled “Practice”1. (Warm-up) Find the length of each segment.
- (a) and
- (b) and
Solution
(a)
(b) The segment is horizontal: .
2. (Warm-up) Find the length of each segment. Give exact answers, and a decimal to two decimal places where needed.
- (a) and
- (b) and
Solution
(a)
(b) (exact: )
3. (Core) Find the length of the segment from to , exactly and to two decimal places.
Solution
4. (Core) Classify the triangle with vertices , and by its side lengths. Is it a right triangle?
Solution
, so the triangle is isosceles.
The longest sides are and (both ). Test: , which is not . No pair works, so it is not a right triangle.
5. (Core) Find the perimeter of the triangle with vertices , and , to one decimal place.
Solution
The perimeter is about units.
6. (Core) A delivery drone flies in a straight line from to on a grid measured in metres.
- (a) How far does it fly?
- (b) At m/s, how long does the flight take?
Solution
(a)
The drone flies m.
(b) seconds.
7. (Core) The point is units from . Find all possible values of .
Solution
Set the length equal to and square both sides:
Check : . ✓ Check : . ✓
8. (Challenge) Find the point on the -axis that is the same distance from as from .
Solution
A point on the -axis has the form . Set the squared distances equal (squaring avoids the square roots):
The point is .
Check: distance squared to is , and to is . ✓
9. (Challenge) A triangle has vertices , and . Join the midpoints of the three sides to make a smaller triangle. Find the side lengths of the smaller triangle, and compare them with the sides of triangle . What do you notice?
Solution
Midpoints: gives , gives , and gives .
Smaller triangle:
Triangle :
Each side of the smaller triangle is half the side of that it doesn’t touch: is half of , is half of , and is half of . (You can check .) This is the midsegment property, which you’ll prove on verifying geometric properties.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
When a square root isn’t a whole number, give the exact answer and a decimal rounded to two places.
Foundations
Section titled “Foundations”H1. (Foundations) Find the length of each segment.
- (a) and
- (b) and
- (c) and
H2. (Foundations) Segment joins and . Segment joins and . Which segment is longer, or are they the same length? Decide by comparing the squares of the lengths, without using a calculator.
H3. (Core) A quadrilateral has vertices , , and . Find its perimeter, exactly and to one decimal place.
H4. (Core) Classify each triangle as scalene, isosceles or equilateral, and decide whether it is a right triangle. If it is, name the vertex with the right angle.
- (a) , ,
- (b) , ,
H5. (Core) A trail map of a (hypothetical) provincial park in Nova Scotia uses a grid where each unit is km. A hiker walks in straight lines from the campsite to a lookout , then to a lake , then straight back to the campsite.
- (a) Find the length of each leg of the hike.
- (b) Find the total distance, to the nearest tenth of a kilometre.
- (c) The hiker averages km/h. About how long does the loop take, in hours and minutes?
H6. (Core) The point is units from .
- (a) Find all possible values of , and check each one.
- (b) Explain why no point of the form can be units from .
Challenge
Section titled “Challenge”H7. (Challenge) Two students find the length of the segment from to .
- Noor writes .
- Theo writes “the changes are and , so the length is .”
Answer these:
- (a) Explain each student’s mistake.
- (b) Find the correct length.
H8. (Challenge) Points on the -axis have the form .
- (a) Find all points on the -axis that are units from .
- (b) Find all points on the -axis that are units from , and all that are units from .
- (c) Explain, using a sketch or the distance from to the -axis, why the number of answers changes from (a) to (b).
H9. (Challenge) A triangle has vertices , and , where .
- (a) Show that the triangle is isosceles for every value of .
- (b) Find all values of that make the triangle equilateral.
- (c) Find all values of that make it a right triangle. Explain why the right angle can’t be at or .
H10. (Challenge) If point lies on segment , then . If is not on the segment, then is greater than .
- (a) Use lengths only (no slopes) to show that , and lie on one line, with between and .
- (b) Use lengths to show that , and do not lie on one line.
- (c) Explain why can never be less than .