📐 ICSE Class 9 Mathematics

Distance Formula

Start MCQ Practice →

Distance Formula

Subject: ICSE Class 9 Mathematics Chapter: Coordinate Geometry Topic: 8.7 Distance Formula – Calculate distance between two points

1. Introduction

In earlier classes we measured the distance between two points lying on a straight number line, but the points of the Cartesian plane do not all lie on one line. Two points may differ in their horizontal position, in their vertical position, or in both, and the straight distance between them is not simply read from either axis. To solve this problem, coordinate geometry provides the distance formula, which calculates the straight-line distance between any two points from their coordinates alone. This formula is one of the most famous results in the whole of the ICSE Class 9 coordinate geometry syllabus, and it appears in the examination every year in one form or another.

The idea behind the formula is simple and elegant. The difference between the abscissas of the two points gives the horizontal separation, and the difference between the ordinates gives the vertical separation. These two separations are the two legs of a right-angled triangle, and the distance between the two points is the hypotenuse of that triangle. By applying Pythagoras' theorem, the length of the hypotenuse, and therefore the distance between the points, is found from the two separations. The whole formula is thus nothing more than Pythagoras' theorem dressed in the language of coordinates.

In this chapter we will derive the distance formula from first principles, learn to apply it to any pair of points, and study its special simplifications for points that lie on the same horizontal or vertical line. We will also use the formula in two common kinds of examination problems, proving that three points form an isosceles triangle or a right-angled triangle, and showing that two given points coincide or that a point lies on an axis. A thorough mastery of the distance formula equips a student to solve a wide variety of geometric problems without drawing a single diagram.

2. Derivation of the Distance Formula

Consider two points A and B with coordinates A (x1, y1) and B (x2, y2). We draw the line AB and also complete the right-angled triangle by drawing a horizontal line through A and a vertical line through B, so that the two lines meet at a point C. The horizontal side AC has length equal to the difference of the abscissas, namely x2 - x1, and the vertical side CB has length equal to the difference of the ordinates, namely y2 - y1. Since the angle at C is a right angle, the side AB is the hypotenuse of the right-angled triangle.

By Pythagoras' theorem, the square of the hypotenuse is equal to the sum of the squares of the other two sides, so AB squared equals (x2 - x1) squared plus (y2 - y1) squared. Taking the positive square root of both sides, since distance is always positive, gives the distance formula: AB = square root of [(x2 - x1) squared + (y2 - y1) squared]. This formula works for points in any quadrant, because the differences are squared and the squares remove any negative signs.

The order in which the two points are taken makes no difference to the result, because x2 - x1 and x1 - x2 are negatives of each other and their squares are equal. Similarly y2 - y1 and y1 - y2 give the same square. This means the distance between A and B is exactly the same as the distance between B and A, as it must be. For this reason we can subtract in either direction, whichever is more convenient, and still obtain the same distance.

3. Applying the Distance Formula

To apply the formula we identify the coordinates of the two points, subtract the abscissas, square the difference, subtract the ordinates, square that difference, add the two squares, and take the square root. The result is the distance in the same units as the coordinates. The working should always be shown clearly, because the examination awards method marks even if a final square root is slightly careless.

Worked Example: Find the distance between the points A (2, 3) and B (6, 6).

Solution: Here x1 = 2, y1 = 3, x2 = 6 and y2 = 6. The difference of the abscissas is 6 - 2 = 4, and the difference of the ordinates is 6 - 3 = 3. Then AB squared = 4 squared + 3 squared = 16 + 9 = 25, so AB = square root of 25 = 5 units. Hence the distance between the two points is 5 units.

Worked Example: Find the distance between the points P (-1, 2) and Q (3, -1).

Solution: The difference of the abscissas is 3 - (-1) = 3 + 1 = 4, and the difference of the ordinates is -1 - 2 = -3. Squaring the differences gives 4 squared = 16 and (-3) squared = 9. Hence PQ squared = 16 + 9 = 25, so PQ = square root of 25 = 5 units. Notice that the negative sign in the ordinate difference disappears on squaring, so the distance is again 5 units.

A useful special case occurs when the two points lie on the same horizontal line, meaning their ordinates are equal. The vertical difference is then zero, and the distance reduces to the positive difference of the abscissas, giving the same answer as reading the points on the number line. Similarly, when the two points lie on the same vertical line, the abscissas are equal and the distance is just the positive difference of the ordinates. Recognising these special cases saves time in the examination.

4. Applications: Triangles and Collinearity

The distance formula is used to prove many geometric statements without drawing. To show that three points form an isosceles triangle, we calculate the three distances and show that two of them are equal. To show that three points form a right-angled triangle, we calculate the three distances and show that the square of the largest distance equals the sum of the squares of the other two, which is the converse of Pythagoras' theorem.

Worked Example: Show that the points A (1, 2), B (4, 6) and C (7, 2) form an isosceles triangle.

Solution: Calculate the three distances. AB squared = (4 - 1) squared + (6 - 2) squared = 3 squared + 4 squared = 9 + 16 = 25, so AB = 5. BC squared = (7 - 4) squared + (2 - 6) squared = 3 squared + (-4) squared = 9 + 16 = 25, so BC = 5. AC squared = (7 - 1) squared + (2 - 2) squared = 6 squared + 0 squared = 36, so AC = 6. Since AB = BC = 5, two sides are equal, and therefore triangle ABC is isosceles.

Three points are said to be collinear when they lie on a single straight line. A quick test using the distance formula is to check whether the sum of the two smaller distances equals the largest distance; if it does, the points are collinear, because the two smaller gaps exactly make up the larger gap. If the sum is greater than the largest distance, the three points form a triangle instead. This test is a fast way of deciding collinearity, although the slope method learned in later classes also gives the same conclusion.

5. Quick Revision Tables

Table 1: The Distance Formula at a Glance

Quantity Symbol Value
Difference of abscissas x2 - x1 Horizontal separation
Difference of ordinates y2 - y1 Vertical separation
Distance squared AB squared (x2 - x1) squared + (y2 - y1) squared
Distance AB Square root of AB squared

Table 2: Special Cases of the Distance Formula

Condition on the points Value used Distance
Same ordinate (horizontal line) y1 = y2 x2 - x1 taken positive
Same abscissa (vertical line) x1 = x2 y2 - y1 taken positive
Same point x1 = x2 and y1 = y2 Zero

6. Mind Map

flowchart TD
    A[Distance Formula] --> B[Idea behind the formula]
    A --> C[Formula itself]
    A --> D[Applications]
    B --> B1[Horizontal separation x2 - x1]
    B --> B2[Vertical separation y2 - y1]
    B --> B3[Right-angled triangle formed]
    C --> C1[AB = sqrt of sum of squares]
    C --> C2[Always positive]
    C --> C3[Order of points does not matter]
    D --> D1[Isosceles triangle test]
    D --> D2[Right triangle test]
    D --> D3[Collinearity test]

7. Important Diagrams (SVG)

The following diagrams show how the distance formula is derived from the right-angled triangle formed by two points, and how the distance is applied to prove that a triangle is isosceles.

Deriving the Distance Formula from Pythagoras X Y O A (x1, y1) B (x2, y2) C (x2, y1) horizontal = x2 - x1 vertical = y2 - y1 AB AB squared = (x2 - x1) squared + (y2 - y1) squared Golden Rule The distance formula is Pythagoras' theorem applied to the horizontal and vertical separations of the points.

Isosceles Triangle by the Distance Formula X Y O A (1, 2) B (4, 6) C (7, 2) AB = 5 BC = 5 AC = 6 Since AB = BC, two sides are equal, so the triangle is isosceles. Golden Rule A triangle is isosceles when two of its distances are equal, and right-angled when the square of one distance equals the sum of the other two squares.

8. Common Mistakes

  1. Many students forget to square the differences and add the squares, jumping straight to the square root of the sum of the plain differences.
  2. A frequent error is to use the abscissa of one point with the ordinate of the other, mixing the coordinates instead of subtracting matching ones.
  3. Some students drop the negative sign of a difference and then square a wrong number; always square the full difference including its sign.
  4. Students often forget to take the square root at the end and leave the answer as the squared distance.
  5. A common mistake is to write the distance as negative; distance is always positive, being a length.
  6. Many students subtract x1 - x2 and y1 - y2 in different orders, which is harmless, but then doubt their working when signs differ.
  7. Some students conclude that three points form a right-angled triangle merely because two distances are equal; an isosceles triangle has equal sides, while a right triangle needs Pythagoras' test.
  8. Students often forget the special case that the distance between a point and the origin is the square root of x squared plus y squared.

9. Exam Tips

  1. Memorise the distance formula AB = square root of [(x2 - x1) squared + (y2 - y1) squared] exactly, including the squares and the root.
  2. Write down x1, y1, x2, y2 separately before substituting, to avoid mixing the coordinates of the two points.
  3. For a point (x, y) and the origin, remember the simplified distance square root of x squared plus y squared, which is asked often.
  4. When checking whether points form a right-angled triangle, compute all three distances and test the largest one against the other two squares.
  5. When checking collinearity, add the two smaller distances and compare with the largest; equality means the points are collinear.
  6. Practise problems with negative coordinates thoroughly, because sign handling is the main source of lost marks.
  7. Show every step of the working, since the examiner awards method marks for correct substitution even when the final root is wrong.

10. Conclusion

The distance formula is one of the most useful tools of coordinate geometry, because it measures the gap between any two points purely by arithmetic, with no drawing required. In this chapter we have derived the formula from the right-angled triangle formed by the horizontal and vertical separations of two points, seen how it follows directly from Pythagoras' theorem, and learned to apply it correctly to points in every quadrant, including points with negative coordinates. We have also studied the special simplifications when the points share an ordinate or an abscissa, and used the formula to prove that three points form an isosceles or a right-angled triangle and to test whether points are collinear. Each application shows the same underlying idea: the distance between two points is the square root of the sum of the squares of their coordinate differences. With this algebraic tool in hand, the final section of the chapter applies all the coordinate geometry learned so far to a range of problems, bringing the whole topic together.