Distance Between Two Points: From Axes to Diagonals
How a 2,800-year-old theorem turns coordinate subtraction into the distance between any two points
AI Generation Prompt
Ultra-wide cinematic banner (16:5 ratio). A single straight line of bright golden light cuts diagonally across a deep, starry navy sky. From each endpoint of this diagonal, a faint pillar of light extends — one horizontal, one vertical — meeting at a right angle just below the diagonal, forming a perfect right triangle visible only as overlapping beams of light. The image conveys: the distance between two points in a plane is just the hypotenuse of a hidden right triangle. Painterly cinematic illustration in the style of mathematical wonder. Dark background. No text, no labels.
Two points sit on the same horizontal line at and . The distance between them is 5 units — you found this on a previous page just by subtracting the x-coordinates.
Now let me move one of those points slightly: stays, but the other becomes . The two points are no longer on the same line. What is the distance between them now?
Is it still 5? More? Less? And how would you compute it without a ruler?
If you draw a horizontal line from one point and a vertical line from the other, you build a right triangle. The diagonal you want is its hypotenuse.
The Baudhāyana–Pythagoras Theorem
दीर्घचतुरस्रस्य अक्ष्णयारज्जुः
पार्श्वमानी तिर्यङ्मानी च
यत् पृथग् भूते कुरुतः तदुभयं करोति॥
(dīrghacaturasrasya akṣṇayārajjuḥ / pārśvamānī tiryaṅmānī ca / yat pṛthag bhūte kurutaḥ tadubhayaṃ karoti)
'किसी आयत के विकर्ण-पर बना वर्ग, उसकी दोनों भुजाओं पर बने वर्गों के योग के बराबर होता है।'
'The square on the diagonal of a rectangle equals the sum of the squares on the two sides.'
This is the Pythagoras theorem. Baudhāyana wrote it down in the Śulba-sūtra around 800 BCE — over 300 years before Pythagoras. In modern symbols: . You will use this verse, exactly, on every problem on this page.
Easy distances first: along an axis or parallel to it
On previous pages you found distances between points whenever the segment between them was parallel to one of the axes. The rule was simple subtraction:
- Two points and on the same horizontal line (same y-coordinate): the distance is .
- Two points and on the same vertical line (same x-coordinate): the distance is .
For example, in Reiaan's room (Page 5), the room door to is horizontal — its width is ft. Easy.
But the segment from to is not parallel to either axis. Subtracting the x-coordinates gives 5, subtracting the y-coordinates gives 4 — neither of these is the distance between the two points. They are something else: the legs of a right triangle whose hypotenuse is the distance we want.
This is the moment Baudhāyana's theorem becomes a tool of coordinate geometry.
Triangle ADM: the worked example
Consider three points in Quadrant I:
Draw segments , , on graph paper. The result is a triangle entirely inside Quadrant I. Triangle ADM is acute-angled (all three angles are less than 90°). Now we ask the obvious question: how long are its sides , , ?
None of these segments is parallel to an axis. Plain subtraction will not give us any of the three side lengths directly. But we can build a right triangle for each side, where the side is the hypotenuse and the legs are parallel to the axes.
AI Generation Prompt
Cartesian plane diagram on green graph paper over a dark background. Two thick green axes meet at the origin. Tick marks at every integer from −1 to +10 on x-axis and from 0 to +6 on y-axis. Three points plotted as small dark dots, each labelled with both name and coordinates: A(3, 4), D(7, 1), M(9, 6). Three green line segments connect them to form an acute-angled triangle ADM in Quadrant I. Style: clean educational mathematics illustration. Dark background, orange accent labels, clean technical illustration style.
Focus on side first. The endpoints are and . To find :
- Drop a vertical line from down to the level of (i.e. to ). Call the foot . Then .
- Now we have three points: , , . Notice that — is directly below and directly left of , so the segment is vertical and the segment is horizontal. Triangle is right-angled at .
- Now compute the two legs by simple subtraction:
- = horizontal distance =
- = vertical distance =
- By Baudhāyana–Pythagoras: , so .
The diagonal distance from to is exactly 5 units. This is the same 3-4-5 right triangle Baudhāyana would have used to lay out a perfect right angle on the ground 2,800 years ago — and it works because of the same theorem he proved.
The pattern is so important it deserves a name. The distance between two points in a plane is the hypotenuse of the right triangle whose legs are parallel to the axes.
Loading simulator…
Find the length of the segment from to .
Step 1 — Find the legs of the right triangle.
- Horizontal leg =
- Vertical leg =
Step 2 — Apply Baudhāyana–Pythagoras.
Step 3 — Take the square root.
Answer: units.
Notice that for and , both simple coordinate subtractions give: and . Neither of these is the distance .
Why is the distance not just one of these subtractions, the way it was for points on a horizontal or vertical line?
Find the length of the segment from to .
Step 1 — Find the legs.
- Horizontal leg =
- Vertical leg =
Step 2 — Apply Baudhāyana–Pythagoras.
Step 3 — Take the square root.
Answer: units (≈ 5.39 units).
Note: Unlike the previous problem, is not a whole number — it is irrational. This is normal in coordinate geometry. Most distances between integer-coordinate points are irrational; only certain special pairs (like 3-4-5, 5-12-13) give nice whole-number hypotenuses.
Find the length of the segment from to .
Step 1 — Find the legs.
- Horizontal leg =
- Vertical leg =
Step 2 — Apply Baudhāyana–Pythagoras.
Step 3 — Take the square root.
Answer: units (≈ 6.32 units).
Triangle ADM has sides: , , . Notice all three are different — this is a scalene triangle, and (since no side² equals the sum of the other two squared) it is acute-angled. ✓
India's Scientific Contributions — Baudhāyana, the Original Source
Baudhāyana, who lived around 800 BCE, wrote the Śulba-sūtra — 'the rules of the cord' — as a manual for laying down sacred Vedic fire-altars. Hidden inside that practical text is the earliest known statement of the theorem we now call Pythagoras' theorem.
Practice Yourself — Distances by Pythagoras
Find the distance between each pair of points. Cover the answers and try it.
- and
- and
- and
- and
- and
- and
- and
- and
- and
- and
Answers: 1. 5 · 2. 5 · 3. 5 · 4. 5 · 5. 13 · 6. 5 (parallel to y-axis) · 7. 10 · 8. 17 · 9. 10 · 10. 6 (parallel to x-axis).
Notice: Six of these involve 3-4-5, 5-12-13, 6-8-10, or 8-15-17 Pythagorean triples — these are favourites in textbook problems because they give whole-number answers. Other pairs give answers, which are equally valid.
Ready to Go Beyond
On the next page the same right-triangle technique becomes a single, named formula — the distance formula — that lets you compute the distance between any two points without redrawing the triangle each time. In Class 10 you'll meet the midpoint formula and the section formula, both close cousins. In 3-D (Class 11), the formula extends naturally to — same idea, one more dimension.
Plot the point on the Cartesian plane. Construct a right-angled triangle and find the lengths of its three sides.
Note: The choice of and is up to you — different students can choose differently. Pick any two points and such that triangle is right-angled at .
Q1.Two points are at and . What is the distance between them?
AI Generation Prompt
Ultra-wide cinematic banner (16:5 ratio). A single straight line of bright golden light cuts diagonally across a deep, starry navy sky. From each endpoint of this diagonal, a faint pillar of light extends — one horizontal, one vertical — meeting at a right angle just below the diagonal, forming a perfect right triangle visible only as overlapping beams of light. The image conveys: the distance between two points in a plane is just the hypotenuse of a hidden right triangle. Painterly cinematic illustration in the style of mathematical wonder. Dark background. No text, no labels.
Two points sit on the same horizontal line at and . The distance between them is 5 units — you found this on a previous page just by subtracting the x-coordinates.
Now let me move one of those points slightly: stays, but the other becomes . The two points are no longer on the same line. What is the distance between them now?
Is it still 5? More? Less? And how would you compute it without a ruler?
If you draw a horizontal line from one point and a vertical line from the other, you build a right triangle. The diagonal you want is its hypotenuse.
The Baudhāyana–Pythagoras Theorem
दीर्घचतुरस्रस्य अक्ष्णयारज्जुः
पार्श्वमानी तिर्यङ्मानी च
यत् पृथग् भूते कुरुतः तदुभयं करोति॥
(dīrghacaturasrasya akṣṇayārajjuḥ / pārśvamānī tiryaṅmānī ca / yat pṛthag bhūte kurutaḥ tadubhayaṃ karoti)
'किसी आयत के विकर्ण-पर बना वर्ग, उसकी दोनों भुजाओं पर बने वर्गों के योग के बराबर होता है।'
'The square on the diagonal of a rectangle equals the sum of the squares on the two sides.'
This is the Pythagoras theorem. Baudhāyana wrote it down in the Śulba-sūtra around 800 BCE — over 300 years before Pythagoras. In modern symbols: . You will use this verse, exactly, on every problem on this page.
Easy distances first: along an axis or parallel to it
On previous pages you found distances between points whenever the segment between them was parallel to one of the axes. The rule was simple subtraction:
- Two points and on the same horizontal line (same y-coordinate): the distance is .
- Two points and on the same vertical line (same x-coordinate): the distance is .
For example, in Reiaan's room (Page 5), the room door to is horizontal — its width is ft. Easy.
But the segment from to is not parallel to either axis. Subtracting the x-coordinates gives 5, subtracting the y-coordinates gives 4 — neither of these is the distance between the two points. They are something else: the legs of a right triangle whose hypotenuse is the distance we want.
This is the moment Baudhāyana's theorem becomes a tool of coordinate geometry.
Triangle ADM: the worked example
Consider three points in Quadrant I:
Draw segments , , on graph paper. The result is a triangle entirely inside Quadrant I. Triangle ADM is acute-angled (all three angles are less than 90°). Now we ask the obvious question: how long are its sides , , ?
None of these segments is parallel to an axis. Plain subtraction will not give us any of the three side lengths directly. But we can build a right triangle for each side, where the side is the hypotenuse and the legs are parallel to the axes.
AI Generation Prompt
Cartesian plane diagram on green graph paper over a dark background. Two thick green axes meet at the origin. Tick marks at every integer from −1 to +10 on x-axis and from 0 to +6 on y-axis. Three points plotted as small dark dots, each labelled with both name and coordinates: A(3, 4), D(7, 1), M(9, 6). Three green line segments connect them to form an acute-angled triangle ADM in Quadrant I. Style: clean educational mathematics illustration. Dark background, orange accent labels, clean technical illustration style.
Focus on side first. The endpoints are and . To find :
- Drop a vertical line from down to the level of (i.e. to ). Call the foot . Then .
- Now we have three points: , , . Notice that — is directly below and directly left of , so the segment is vertical and the segment is horizontal. Triangle is right-angled at .
- Now compute the two legs by simple subtraction:
- = horizontal distance =
- = vertical distance =
- By Baudhāyana–Pythagoras: , so .
The diagonal distance from to is exactly 5 units. This is the same 3-4-5 right triangle Baudhāyana would have used to lay out a perfect right angle on the ground 2,800 years ago — and it works because of the same theorem he proved.
The pattern is so important it deserves a name. The distance between two points in a plane is the hypotenuse of the right triangle whose legs are parallel to the axes.
Loading simulator…
Find the length of the segment from to .
Step 1 — Find the legs of the right triangle.
- Horizontal leg =
- Vertical leg =
Step 2 — Apply Baudhāyana–Pythagoras.
Step 3 — Take the square root.
Answer: units.
Notice that for and , both simple coordinate subtractions give: and . Neither of these is the distance .
Why is the distance not just one of these subtractions, the way it was for points on a horizontal or vertical line?
Find the length of the segment from to .
Step 1 — Find the legs.
- Horizontal leg =
- Vertical leg =
Step 2 — Apply Baudhāyana–Pythagoras.
Step 3 — Take the square root.
Answer: units (≈ 5.39 units).
Note: Unlike the previous problem, is not a whole number — it is irrational. This is normal in coordinate geometry. Most distances between integer-coordinate points are irrational; only certain special pairs (like 3-4-5, 5-12-13) give nice whole-number hypotenuses.
Find the length of the segment from to .
Step 1 — Find the legs.
- Horizontal leg =
- Vertical leg =
Step 2 — Apply Baudhāyana–Pythagoras.
Step 3 — Take the square root.
Answer: units (≈ 6.32 units).
Triangle ADM has sides: , , . Notice all three are different — this is a scalene triangle, and (since no side² equals the sum of the other two squared) it is acute-angled. ✓
India's Scientific Contributions — Baudhāyana, the Original Source
Baudhāyana, who lived around 800 BCE, wrote the Śulba-sūtra — 'the rules of the cord' — as a manual for laying down sacred Vedic fire-altars. Hidden inside that practical text is the earliest known statement of the theorem we now call Pythagoras' theorem.
Ready to Go Beyond
On the next page the same right-triangle technique becomes a single, named formula — the distance formula — that lets you compute the distance between any two points without redrawing the triangle each time. In Class 10 you'll meet the midpoint formula and the section formula, both close cousins. In 3-D (Class 11), the formula extends naturally to — same idea, one more dimension.
Plot the point on the Cartesian plane. Construct a right-angled triangle and find the lengths of its three sides.
Note: The choice of and is up to you — different students can choose differently. Pick any two points and such that triangle is right-angled at .
Q1.Two points are at and . What is the distance between them?