Free Mathematics Class 9 CBSE notes · practise this chapter with an AI quiz

← All study notes

Two Points and a Right Triangle You Draw Yourself

Learn to derive the distance between two points from a right triangle, apply the distance formula, classify a triangle from its side lengths, and find an unknown coordinate from a given distance.

How do you find the straight-line distance between two points on a grid?

By drawing a right-angled triangle that was not there, and then using the theorem you already know.

Take and . Nothing joins them but a slanting line whose length you cannot read off the grid.

So make a triangle. Go across from until you are directly below , then go up to . The across step is units and the up step is units, and both can be read straight off the grid.

Those two steps and the slanting line form a right-angled triangle, so by the Baudhayana-Pythagoras theorem:



The slanting distance was never measured. It was calculated from two distances that could be. This page covers the second part of the CBSE Class 9 Mathematics chapter on the use of coordinates.

How is the distance formula derived from a right triangle?

By taking the two steps as the legs of a right-angled triangle and the join as the hypotenuse.

Take any two points and . Draw a horizontal line through and a vertical line through , and let them meet at . That gives a right-angled triangle with the right angle at .

The two legs can be read off directly:

- The horizontal leg has length , since both and are at the same height and differ only in their -coordinates
- The vertical leg has length , since and differ only in their -coordinates

Applying the Baudhayana-Pythagoras theorem to triangle :



Worked derivation with numbers. For and , the meeting point is .

-
-
- , so

Check the triangle is genuinely right-angled. is horizontal and is vertical, so they meet at by construction. That is why the theorem may be applied — the right angle was built, not assumed.

Worked derivation for a second pair. For and , the meeting point is .

-
-
- , so

The subtraction handles the negative coordinate automatically. , and no separate rule was needed for a point in a different quadrant. That is worth noticing, because it is the reason the formula works for any two points anywhere on the plane.

Why the differences, and not the coordinates themselves. The legs of the triangle are gaps between the points, so each leg is a difference. For and the horizontal leg is , and it is certainly not or . Squaring the coordinates instead of their difference is the single commonest error in the whole chapter, and the triangle picture is the cure — you can see that the leg runs between the two points.
Formula

What is the distance formula and how do you use it?

For any two points and :



and for the distance of a point from the origin, where :



Worked example 1. and .



Worked example 2 — from the origin. .



Worked example 3 — with negatives. and .



Worked example 4 — both points negative. and .



Worked example 5 — a larger case. and .



Worked example 6. and .



Worked example 7. and .



The order of the points does not matter. Because each difference is squared, . So in worked example 7 you could equally write and get the same answer.

That also means a distance can never come out negative. If a negative appears, something has been done outside the formula — most often a subtraction taken after the squaring instead of before it.

Subtract first, then square. For to the first term is . Writing would give instead of — wrong, because it has squared the coordinates rather than their difference. Write the bracket, fill in the subtraction, and only then square.

How do you tell what kind of triangle three points form?

Find all three side lengths, then compare them — and compare their squares to test for a right angle.

The tests:

- All three sides equalequilateral
- Exactly two sides equalisosceles
- All three differentscalene
- The sum of the squares of the two shorter sides equals the square of the longestright-angled

A triangle may be both isosceles and right-angled, so check both tests rather than stopping at the first.

Worked example 1 — right-angled. , , .



Testing the right angle: . So the triangle is **right-angled at , and since all three sides differ it is also scalene.

Worked example 2 — isosceles and right-angled.** , , .







Two sides equal, so isosceles. And , so it is **right-angled at as well. A right-angled isosceles triangle, and stopping after the first test would have missed half the answer.

Worked example 3 — equilateral.** , , .







All three sides are , so the triangle is equilateral.

Worked example 4 — scalene and not right-angled. , , .



All different, so scalene. Testing for a right angle: , so it is not right-angled.

Compare the squares, not the sides. In worked example 4 the sides are , and , and comparing surds is awkward. Comparing , and is immediate, and it answers both questions — equal squares mean equal sides, and the right-angle test is a statement about squares anyway. **Stop at and only take the square root if the question asks for a length.

Always test both properties. Worked example 2 was isosceles and** right-angled, and a question asking what kind of triangle expects both facts. Naming only one is an incomplete answer even though it is not a wrong one.

How do you find an unknown coordinate from a given distance?

Substitute into the formula, square both sides to remove the root, and solve — and expect two answers.

**Worked example 1 — a missing .** The distance between and is . Find .







Check both. With : . With : . Both are genuine answers, and giving only one loses half the marks.

**Worked example 2 — a missing .** The distance from to is .





**Worked example 3 — a point on the -axis, equidistant from two points.** Find the point on the -axis equidistant from and .

A point on the -axis has , so call it . Equidistant means the two squared distances are equal:







The terms cancel:



So the point is .

Check. To : . To : . Equal, so correct.

**Worked example 4 — a point on the -axis.** Find the point on the -axis equidistant from and .

A point on the -axis is :







The point is . Check: to gives ; to gives . Correct.

**Notice why the or terms cancel. Both sides contain the unknown squared, so expanding removes it and leaves a linear** equation with one answer. That is why an equidistant question gives one point while a given distance question gives two — and knowing which to expect tells you whether you have finished.

Equate the squares, never the roots. Writing and then squaring is the same step done in two lines; going straight to the squares saves the surds and removes the chance of an error inside a root sign.
Exam tip

Exam tip: subtract inside the bracket before squaring

Write the brackets first, fill in the subtractions, and only then square: . Squaring the coordinates instead of their differences is the commonest error in the chapter.

For to the first term is , not .

The order of the two points does not matter, because each difference is squared — so a distance can never come out negative.

Stop at the square. Compare , and to classify a triangle, and only take the root if a length is asked for. Comparing , and beats comparing surds.

For a right angle, check whether the two smaller squares add to the largest: .

Test both properties — a triangle can be isosceles and right-angled, and naming only one is incomplete.

For an unknown coordinate from a given distance, expect two answers: gives and . Check both and quote both.

For an equidistant point, equate the squared distances. The squared unknown cancels, leaving a linear equation with one answer.

A point on the **-axis** is and on the **-axis** is — write that down before substituting.

And verify your answer by computing both distances — one extra line, complete certainty.
Did you know

Why the same three numbers keep appearing

Work through the examples on this page and one pattern is hard to miss. The answer is again and again, from the legs and . Then , from the legs and . And , from and .

Those are Pythagorean triples — sets of three whole numbers for which the sum of two squares is exactly the third square.



They are chosen deliberately in textbook questions, and for a good reason: the answer comes out as a whole number instead of an awkward surd, so the arithmetic stays visible and the method is what gets tested rather than the decimals.

Notice that is not a new triple but with everything doubled. Multiply a triple by any whole number and you get another triple, because both sides of the equation scale by the square of that number. So and work too, and the family is infinite.

There is a practical use for this that has nothing to do with examinations. A mason wanting a true right angle measures units along one wall and along the other, and adjusts until the diagonal between the marks is exactly . No instrument is needed — the triple guarantees the right angle, and the same trick works with any multiple, so cm, cm and cm is convenient on a real building site.

That is the theorem being used in reverse. Everywhere on this page it was used to find a length from a known right angle; the mason uses it to create a right angle from known lengths. Same statement, read the other way round.
Exam relevance

How is the distance formula used in JEE Main?

It is the first formula of coordinate geometry and it is used in almost every problem of the subject, so this page is genuinely foundational rather than merely introductory.

This is the foundation for the Class 11 Mathematics chapter Straight Lines and for the whole of Conic Sections, both examined in JEE Main. The distance formula is the definition every conic is built from:

- A circle is the set of points at a fixed distance from a centre, so its equation is the distance formula with the root removed
- An ellipse is defined by the sum of the distances from two fixed points being constant
- A hyperbola by the difference of those distances being constant
- A parabola by the distance from a point equalling the distance from a line

Every one of those definitions is the formula on this page applied twice and then simplified. A student who can write the distance between two general points fluently can derive all four equations; one who cannot has to memorise them.

The section formula, the midpoint formula and the area of a triangle are added in Class 10 and Class 11, and they are used alongside this one in the same problems.

Where the triangle classification is reused. Class 11 Straight Lines asks for the type of triangle formed by three given points or three given lines, and the method is exactly the one on this page — compute the squares of the sides and compare. Questions asking for the circumcentre, orthocentre or incentre of a triangle begin with the same step.

The equidistant technique becomes the standard way of finding the perpendicular bisector of a segment and the centre of a circle through given points, both recurring JEE Main situations. The observation on this page that the squared unknown cancels is exactly why that method produces a linear equation.

What the questions look like. For board work, numericals on distance, triangle type and equidistant points are standard and quick. For JEE Main, this material appears as the opening step of a longer problem — find a distance, then use it in a condition — so accuracy matters more than novelty. Assertion-reason and match-the-column forms are rare here; it is almost entirely computational.

How board and competitive emphasis differ. A board paper asks you to find the distance between two given points, show that three points form a particular kind of triangle, and find a point on an axis equidistant from two others — each a self-contained question. A competitive paper embeds the same steps inside a conic or a straight-line problem, where the distance is a means rather than the answer. So the board paper rewards setting out, and the competitive paper rewards speed without error.

The single trap that costs the most marks. Squaring the coordinates instead of their differences. For and the correct first term is , and the tempting is wrong. Write the bracket, put the subtraction inside it, and square afterwards — and the triangle picture from the second section is the reason it must be a difference.

A second trap worth naming. Giving one answer where a squared equation has two. yields and , and both satisfy the original distance. Unless the question's geometry rules one out, both must be quoted — and a question asking for the values rather than the value is telling you so.
Key takeaways

The distance formula and its uses: quick revision

- Derivation: go across and then up between two points to build a right-angled triangle, with legs and , then apply the Baudhayana-Pythagoras theorem.
-
- to gives ; origin to gives ; to gives ; to gives .
- to gives ; origin to gives ; to gives .
- Subtract inside the bracket, then square. For to the first term is , not .
- The order of the points does not matter, since each difference is squared — so a distance is never negative.
- Classify a triangle by its three sides: all equal is equilateral, exactly two equal is isosceles, all different is scalene, and the two smaller squares summing to the largest means right-angled.
- , , gives sides , , with right-angled and scalene.
- , , gives , , with isosceles and right-angled.
- , , gives three sides of equilateral.
- , , gives , , with scalene, not right-angled.
- Compare the squares, not the sides, and test both properties — a triangle can be isosceles and right-angled.
- Unknown coordinate from a distance: to being gives , so or . Both check.
- to being gives , so or .
- **Equidistant on the -axis**: from and , equate squares to get , so the point is .
- **Equidistant on the -axis**: from and , gives .
- Equate the squared distances, never the roots. The squared unknown cancels, leaving a linear equation — which is why an equidistant question has one answer and a given-distance question has two.
- Textbook answers use Pythagorean triples such as and , and any multiple of a triple is another triple.

Take three points of your own choosing, compute all three squared side lengths, and classify the triangle both ways — the habit of testing for a right angle after finding the sides is what completes the answer.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Orienting Yourself: The Use of Coordinates — Part 2Create a free account
← Back to all articles