- Foundation
- About 16 min
- 5 practice questions
Distance between two points
Find the distance between any two points in the plane using the Baudhāyana–Pythagoras theorem, including points with negative coordinates, and see why reflecting a figure in an axis keeps its lengths the same.
If something looks wrong, please tell us.
By the end of this lesson you can
- Turn the segment between two points into the hypotenuse of a right triangle with sides along the axis directions.
- Use the distance formula √[(x₂ − x₁)² + (y₂ − y₁)²], including with negative coordinates.
- Write the image of a point reflected in either axis and explain why reflection keeps lengths unchanged.
You can already find the distance between two points when the segment joining them is horizontal or vertical. Most segments are slanted. The trick is to build a right triangle around the slanted segment and use the theorem you met in Class 8: in a right triangle, the square on the hypotenuse equals the sum of the squares on the other two sides. In India this result appears in Baudhāyana's Śulba-sūtra, so it is called the Baudhāyana–Pythagoras theorem.
Building the right triangle
Take A (x₁, y₁) and B (x₂, y₂). From A, move horizontally to the point C (x₂, y₁), then vertically up or down to B. The angle at C is a right angle. The horizontal side AC has length |x₂ − x₁| and the vertical side CB has length |y₂ − y₁|. The slanted segment AB is the hypotenuse.
Finding the distance between A (x₁, y₁) and B (x₂, y₂)
- Horizontal shift Find x₂ − x₁.
- Vertical shift Find y₂ − y₁.
- Square both shifts Squares are never negative, so signs no longer matter.
- Add the squares This gives AB².
- Take the square root AB = √[(x₂ − x₁)² + (y₂ − y₁)²]
Distance formula: the distance between (x₁, y₁) and (x₂, y₂) is √[(x₂ − x₁)² + (y₂ − y₁)²]. In particular, the distance of (x, y) from the origin is √(x² + y²).
Worked example 1: a slanted segment in Quadrant I
Find the distance between A (1, 2) and B (7, 10). Working: horizontal shift = 7 − 1 = 6; vertical shift = 10 − 2 = 8. AB² = 6² + 8² = 36 + 64 = 100. AB = √100 = 10 units.
Worked example 2: points in different quadrants
Find the distance between P (−3, 4) and Q (2, −8). Working: horizontal shift = 2 − (−3) = 5; vertical shift = −8 − 4 = −12. PQ² = 5² + (−12)² = 25 + 144 = 169. PQ = √169 = 13 units. The negative shift −12 caused no trouble, because squaring makes it 144. It also does not matter which point you call the first: from Q to P the shifts are −5 and 12, and the squares are the same.
Worked example 3: an answer that is not a whole number
Find the distance of the point R (2, −3) from the origin. Working: R's distance from O is √(2² + (−3)²) = √(4 + 9) = √13 units, which is a little more than 3.6. Many distances are square roots that are not whole numbers; leave them in √ form unless asked for a decimal.
Reflection keeps lengths the same
Reflecting a point in the y-axis is like folding the plane along the y-axis: the point moves to the other side at the same distance, so the x-coordinate changes sign and the y-coordinate stays. Reflecting in the x-axis changes the sign of y and keeps x.
| Reflection in | Image of (x, y) | Example: image of (3, −5) |
|---|---|---|
| y-axis | (−x, y) | (−3, −5) |
| x-axis | (x, −y) | (3, 5) |
Worked example 4: lengths before and after reflection
Triangle with A (2, 1), B (6, 1) and C (6, 4) is reflected in the y-axis. Compare AC with A′C′. Working: the images are A′ (−2, 1), B′ (−6, 1) and C′ (−6, 4). AC: shifts 6 − 2 = 4 and 4 − 1 = 3, so AC = √(16 + 9) = √25 = 5. A′C′: shifts −6 − (−2) = −4 and 4 − 1 = 3, so A′C′ = √(16 + 9) = 5. The shift along x only changed sign, and squaring removes the sign, so the length is unchanged. The same happens for every side: reflection changes the positions and the direction the triangle faces, but not its side lengths.
Key takeaways: for any two points, form the horizontal shift x₂ − x₁ and the vertical shift y₂ − y₁, square both, add, and take the square root. Signs do not matter after squaring, so the order of the points does not matter either. Distance from the origin is √(x² + y²). Reflection in the y-axis sends (x, y) to (−x, y); in the x-axis it sends (x, y) to (x, −y); either way lengths stay the same.
Check your understanding
-
1. What is the distance between (3, 1) and (9, 9)?
- 14 units
- 10 units
- 8 units
- √28 units
Show answer
Answer: B. Shifts: 9 − 3 = 6 and 9 − 1 = 8. Distance = √(6² + 8²) = √(36 + 64) = √100 = 10 units.
-
2. What is the distance of the point (−5, 12) from the origin?
- 7 units
- 13 units
- 17 units
- √119 units
Show answer
Answer: B. Distance from O = √((−5)² + 12²) = √(25 + 144) = √169 = 13 units. Squaring −5 gives +25.
-
3. What is the image of the point (−4, 7) when it is reflected in the x-axis?
- (4, 7)
- (4, −7)
- (7, −4)
- (−4, −7)
Show answer
Answer: D. Reflection in the x-axis keeps the x-coordinate and changes the sign of the y-coordinate: (−4, 7) becomes (−4, −7).
-
4. What is the distance between M (−2, −1) and N (1, 3)?
- 5 units
- √5 units
- 7 units
- 3 units
Show answer
Answer: A. Shifts: 1 − (−2) = 3 and 3 − (−1) = 4. Distance = √(3² + 4²) = √(9 + 16) = √25 = 5 units.
-
5. A segment PQ has length 6 units. It is reflected in the y-axis to give P′Q′. What is the length of P′Q′?
- −6 units
- 12 units
- 6 units
- It depends on which quadrant PQ is in
Show answer
Answer: C. Reflection in the y-axis only changes the sign of the x-shift between the two points. Squaring removes the sign, so the distance is unchanged: P′Q′ = 6 units. Lengths are never negative.
Sign in to keep track of the lessons you finish.