Lesson 1

Distance between two points

Theory and examples

The same old triangle, just moved

In circular equations, you already met a useful idea: the distance from the origin to a point can be found with Pythagoras.

For example, the point (3,4)(3,4) is 33 units across and 44 units up from the origin. Those two movements form the short sides of a right-angled triangle.

O(0,0)(3,4)3 across4 updistance
From the origin to (3,4)(3,4), the horizontal and vertical moves form a right-angled triangle.

Distance from the origin

d2=32+42d^2=3^2+4^2
d2=25d^2=25
d=5d=5

Now here is the small leap. The triangle does not need to start at the origin. If we want the distance between two points, we can still make a right-angled triangle. We just need to find the horizontal gap and the vertical gap between the points.

A(2,1)B(8,5)6 across4 updistance
The distance between two points is the diagonal side of a right-angled triangle.

Take A(2,1)A(2,1) and B(8,5)B(8,5). To get from AA to BB, we move 66 units across and 44 units up.

How do we know this? we take the difference between the two xx components and the difference between the two yy components.

The distance is the hypotenuse

d2=62+42d^2=6^2+4^2
d2=36+16=52d^2=36+16=52
d=52=213d=\sqrt{52}=2\sqrt{13}

The distance formula

That is the whole idea. The distance formula is not a new piece of magic. It is just a tidy way of doing that same calculation when the points are written generally.

Here we have the formal definition:

Distance formula

d=(x2−x1)2+(y2−y1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

The first bracket finds the horizontal gap. The second bracket finds the vertical gap. Squaring them means the order does not matter, but keeping the pairs together does matter.

Let us use a pair with a negative coordinate, because this is where small sign mistakes tend to appear.

Example: watch the brackets

Find the distance between (−1,3)(-1,3) and (5,11)(5,11).

d=(5−(−1))2+(11−3)2d=\sqrt{(5-(-1))^2+(11-3)^2}
d=62+82d=\sqrt{6^2+8^2}
d=100=10d=\sqrt{100}=10

In Methods-style work, exact answers are often preferred. If the square root does not simplify nicely, leave it exact unless the question asks for a decimal.

Common mistakes

  • Mixing an x-coordinate with a y-coordinate.
  • Dropping brackets around negative numbers.
  • Rounding too early when an exact surd answer is cleaner.
  • Forgetting to square both gaps before adding them.

Optional mastery

Mastery questions

Do you want a high study score? Be disciplined. Do the mastery questions.

Open mastery questions

Checkpoint

Multiple-choice questions

Answer every question correctly to unlock the next lesson. If something is marked red, change your answer and check again.

Question 1
What is the distance formula really based on?
Question 2
What is the horizontal gap between A(2,1)A(2,1) and B(8,5)B(8,5)?
Question 3
Find the distance between (−1,3)(-1,3) and (5,11)(5,11).