Distance Formula

Learn the distance formula in coordinate geometry using simple student-friendly notes, Pythagoras understanding, examples, special cases, and practice questions.

1. Introduction

The distance formula helps us find the straight-line distance between two points in the Cartesian plane. Instead of counting squares on the graph, we use a formula based on the coordinates.

If the coordinates of two points are known, we can calculate how far apart they are using a simple method.

2. Using Geometry to Understand the Formula

To understand the distance formula, imagine two points:

\(A(x_1, y_1)\) and \(B(x_2, y_2)\)

If we draw a horizontal and vertical line through these points, they form a right-angled triangle.

  • The horizontal length = \(|x_2 - x_1|\)
  • The vertical length = \(|y_2 - y_1|\)

Using the Pythagoras Theorem:

Hypotenuse2 = base2 + height2

3. Distance Formula

Using Pythagoras Theorem, the distance between two points \(A(x_1, y_1)\) and \(B(x_2, y_2)\) is:

\(d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\)

This gives the direct (shortest) distance between the two points.

4. Special Cases

Sometimes the points lie on the same line, which makes calculations easier.

4.1. Case 1: Same X-coordinate

If \(x_1 = x_2\), the points lie vertically above one another.

Distance = \(|y_2 - y_1|\)

4.2. Case 2: Same Y-coordinate

If \(y_1 = y_2\), the points lie on the same horizontal line.

Distance = \(|x_2 - x_1|\)

5. Worked Examples

Here are some examples to understand the formula better.

5.1. Example 1: Simple Coordinates

Find the distance between A(2, 3) and B(6, 9).

Difference in x = 6 − 2 = 4

Difference in y = 9 − 3 = 6

\(d = \sqrt{4^2 + 6^2} = \sqrt{16 + 36} = \sqrt{52} = 2\sqrt{13}\)

5.2. Example 2: Negative Coordinates

Find the distance between A(-3, 4) and B(5, -2).

Difference in x = 5 − (-3) = 8

Difference in y = -2 − 4 = -6

\(d = \sqrt{8^2 + (-6)^2} = \sqrt{64 + 36} = 10\)

5.3. Example 3: Same Y-coordinates

Find the distance between A(7, -1) and B(-5, -1).

Same y → horizontal line

Distance = |7 − (−5)| = 12

6. Common Mistakes

  • Forgetting to square the differences.
  • Mixing up x and y values.
  • Ignoring negative signs while subtracting.
  • Taking square root incorrectly.

7. Quick Practice

Find the distance between the following pairs of points:

  1. (1, 2) and (4, 6)
  2. (-2, -3) and (3, 4)
  3. (0, 5) and (0, -3)
  4. (7, 1) and (-1, 1)

8. Summary

  • The distance formula is based on the Pythagoras Theorem.
  • Formula: \(d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\)
  • Useful for finding shortest distance between two points.
  • Special cases simplify the formula when x or y coordinates match.