Back to homeMathematics · 5th Year OL · Change subject
Start for free
5th Year OL · Mathematics
Coordinate geometry · Coordinate geometry

Distance between two points

Before you start, make sure you know: Pythagoras' Theorem (2nd Year, Junior Cycle)

Imagine a map of Ireland with Dublin Airport at the origin. An air traffic controller needs to know "how far is that plane from the airport?". On the coordinate plane that question is always answered in the same way: with Theorem 14, Pythagoras' theorem.

The distance formula

Right-angled triangle with hypotenuse |AB| and the other two sides formed by the horizontal and vertical differences in coordinates. A B x₂ − x₁ y₂ − y₁ |AB|
Practice★☆☆Not started
Calculate the exact distance between the points $A(2, 3)$ and $B(5, 7)$ in the Cartesian plane.

Calculate the exact distance between the points $A(2, 3)$ and $B(5, 7)$ in the Cartesian plane.

Solve
Practice★☆☆Not started
A ship is at coordinates $P(-4, 1)$ and a lighthouse at $Q(2, -7)$. If each unit on the plane equals one kilometre, what is the straight-line distance from the ship to…

A ship is at coordinates $P(-4, 1)$ and a lighthouse at $Q(2, -7)$. If each unit on the plane equals one kilometre, what is the straight-line distance from the ship to the lighthouse?

Solve
Practice★☆☆Not started
Find the length of the segment whose endpoints are the origin of coordinates $O(0, 0)$ and the point $M(-8, 6)$.

Find the length of the segment whose endpoints are the origin of coordinates $O(0, 0)$ and the point $M(-8, 6)$.

Solve
Practice★☆☆Not started
Cian wants to calculate the distance between the points $A(-1, 5)$ and $B(3, 2)$ in a Cartesian plane. In his notebook, he writes the following steps: $$d(A,B) =…

Cian wants to calculate the distance between the points $A(-1, 5)$ and $B(3, 2)$ in a Cartesian plane. In his notebook, he writes the following steps:

$$d(A,B) = \sqrt{(3 - (-1))^2 + (2 - 5)^2} = \sqrt{4^2 + (-3)^2} = 4 + (-3) = 1$$
  1. a) Precisely point out the conceptual and algebraic error that Cian makes in the last step and explain why the square root of a sum is not equal to the sum of the square roots.
  2. b) Correct the procedure and calculate the exact numerical value of the Euclidean distance between $A$ and $B$.
Solve

Perimeters and classifying triangles

With the distance formula you can calculate the perimeter of any polygon (by adding up the lengths of its sides) and check whether a triangle is equilateral, isosceles or right-angled, without needing to draw it to scale.

Practice★☆☆Not started
The vertices of a triangle are $A(1, 1)$, $B(4, 1)$ and $C(1, 5)$. Calculate the perimeter of this triangle by adding the lengths of its three sides.

The vertices of a triangle are $A(1, 1)$, $B(4, 1)$ and $C(1, 5)$. Calculate the perimeter of this triangle by adding the lengths of its three sides.

Solve
Practice★★☆Not started
On an architectural plan, three main columns will be situated at coordinates $P(-2, 1)$, $Q(2, 4)$ and $R(5, 0)$. Prove mathematically whether the triangle formed by…

On an architectural plan, three main columns will be situated at coordinates $P(-2, 1)$, $Q(2, 4)$ and $R(5, 0)$. Prove mathematically whether the triangle formed by these three columns is isosceles.

Solve
Practice★★☆Not started
Prove, by calculating the lengths of the three sides and using Pythagoras' theorem, that the triangle with vertices $A(2, 1)$, $B(6, 1)$ and $C(2, 4)$ is a right-angled…

Prove, by calculating the lengths of the three sides and using Pythagoras' theorem, that the triangle with vertices $A(2, 1)$, $B(6, 1)$ and $C(2, 4)$ is a right-angled triangle.

Solve
Practice★★☆Not started
A bicycle courier leaves the shop located at $O(0,0)$, travels in a straight line to the first delivery at $A(6, 8)$ and then changes direction towards the second…

A bicycle courier leaves the shop located at $O(0,0)$, travels in a straight line to the first delivery at $A(6, 8)$ and then changes direction towards the second delivery at $B(15, -4)$. If each unit on the plane represents $100$ metres, what is the total distance travelled in kilometres?

X Y O(0,0) A(6,8) B(15,-4)
Solve

Finding points at a given distance

Sometimes the distance is the given information and the unknown is a point: in that case you set up the distance equation and solve it.

Circle centred at point M that meets the x-axis at two points a given distance away. M fixed P₁ P₂
Practice★★☆Not started
The distance between points $A(1, 2)$ and $B(x, 5)$ is exactly $5$ units. Find the two possible values of the coordinate $x$.

The distance between points $A(1, 2)$ and $B(x, 5)$ is exactly $5$ units. Find the two possible values of the coordinate $x$.

Solve
Practice★★☆Not started
Find the coordinates of all points on the x-axis (axis of abscissas) that are at a distance of exactly $10$ units from the point $M(-6, 8)$.

Find the coordinates of all points on the x-axis (axis of abscissas) that are at a distance of exactly $10$ units from the point $M(-6, 8)$.

Solve
Practice★★★Not started
A straight pipe must connect a well located at point $A(-3, 2)$ to a water pump $P$ that must be installed on the y-axis (axis of ordinates). If pressure constraints…

A straight pipe must connect a well located at point $A(-3, 2)$ to a water pump $P$ that must be installed on the y-axis (axis of ordinates). If pressure constraints require the length of the pipe to be exactly $\sqrt{29}$ units, find the possible coordinates for the pump $P$.

Solve

Collinearity and equidistant points

Three collinear points A, B and C on a dashed line, showing that B lies between A and C. A B C
Practice★★★Not started
The vertices of a triangular plot of land are $A(-4, -2)$, $B(2, 6)$ and $C(6, 3)$. First prove that the land forms a right-angled triangle, and then calculate its…

The vertices of a triangular plot of land are $A(-4, -2)$, $B(2, 6)$ and $C(6, 3)$. First prove that the land forms a right-angled triangle, and then calculate its perimeter and its exact area.

Solve
Practice★★★Not started
An automated irrigation system consists of a circular sprinkler centred at $C(x, y)$ that must equally water three trees located at coordinates $T_1(0, 0)$, $T_2(6, 0)$…

An automated irrigation system consists of a circular sprinkler centred at $C(x, y)$ that must equally water three trees located at coordinates $T_1(0, 0)$, $T_2(6, 0)$ and $T_3(0, 8)$. Determine the coordinates where the sprinkler $C$ should be placed and what its exact coverage radius will be.

Solve
Practice★★★Not started
Determine whether the points $A(-2, 1)$, $B(1, 3)$ and $C(7, 7)$ are collinear. To do this, calculate the distances $d(A,B)$, $d(B,C)$ and $d(A,C)$, and check whether…

Determine whether the points $A(-2, 1)$, $B(1, 3)$ and $C(7, 7)$ are collinear. To do this, calculate the distances $d(A,B)$, $d(B,C)$ and $d(A,C)$, and check whether the equality $d(A,B) + d(B,C) = d(A,C)$ holds.

Solve
Practice★★★Not started
To check whether the points $A(-1, -2)$, $B(1, 2)$, and $C(3, 6)$ are collinear on the same line, two different mathematical strategies are proposed: Method 1 (Metric):…

To check whether the points $A(-1, -2)$, $B(1, 2)$, and $C(3, 6)$ are collinear on the same line, two different mathematical strategies are proposed:

  • Method 1 (Metric): Calculate the three distances $d(A,B)$, $d(B,C)$, and $d(A,C)$ using the magnitude of the displacements and verify whether the sum of the two smaller ones equals the largest one.

  • Method 2 (Vector): Calculate the components of vectors $\vec{AB}$ and $\vec{BC}$ and verify whether they are directly proportional.

  1. a) Apply Method 1 simplifying the radicals as much as possible to work with exact values.
  2. b) Apply Method 2.
  3. c) Compare both approaches and argue which one is preferable from the point of view of computational economy and safety in avoiding rounding errors when distances turn out to be irrational numbers.
Solve

Collinearity by slopes

You can also test collinearity with slopes: $A$, $B$, $C$ are collinear if the slope of $[AB]$ equals the slope of $[BC]$.

Equidistant points

A point $P(x,y)$ is equidistant from $A$ and $B$ when $|PA|=|PB|$. Squaring both sides removes the roots and gives an equation in $x$ and $y$.

Practice★★★Not started
Find the coordinates of a point $P$ located on the angle bisector of the first quadrant (the line $y = x$) that is equidistant from the fixed points $A(2, 0)$ and…

Find the coordinates of a point $P$ located on the angle bisector of the first quadrant (the line $y = x$) that is equidistant from the fixed points $A(2, 0)$ and $B(0, 4)$.

Solve
Practice★★★Not started
The points $A(-1, 3)$, $B(4, 5)$ and $C(2, -2)$ are three consecutive vertices of a parallelogram $ABCD$. Find the coordinates of the fourth vertex $D$ and calculate the…

The points $A(-1, 3)$, $B(4, 5)$ and $C(2, -2)$ are three consecutive vertices of a parallelogram $ABCD$. Find the coordinates of the fourth vertex $D$ and calculate the exact length of both diagonals of the parallelogram.

X Y A B C D(?)
Solve
Practice★★☆Not started
Design the coordinates of three distinct points in the Cartesian plane, $A$, $B$, and $C$, all located in the first quadrant and with non-zero integer coordinates, that…

Design the coordinates of three distinct points in the Cartesian plane, $A$, $B$, and $C$, all located in the first quadrant and with non-zero integer coordinates, that simultaneously satisfy the following conditions:

  1. The distance between $A$ and $B$ must be exactly $\sqrt{13}$ units.

  2. The distance between $B$ and $C$ must be exactly $\sqrt{52}$ units.

  3. The three points must be collinear, satisfying the relationship $d(A,B) + d(B,C) = d(A,C)$.

Explain the reasoning you followed to construct their coordinates and analytically prove, by calculating the distance $d(A,C)$, that the points are indeed collinear without relying on a drawing.

Solve
Practice★★★Not started
A telecommunications company plans to install a repeater tower to provide coverage to two rural villages represented on a regional map by the points $A(-3, 2)$ and…

A telecommunications company plans to install a repeater tower to provide coverage to two rural villages represented on a regional map by the points $A(-3, 2)$ and $B(5, 6)$ (coordinates measured in kilometres). For technical access reasons, the station must be built on a straight road whose route corresponds to the equation $y = 3x - 4$. Furthermore, to balance the received signal strength in both municipalities, the station $P(x, y)$ must be equidistant from both ($d(P,A) = d(P,B)$).

  1. a) Model the equidistance condition by expanding the equality $d(P,A)^2 = d(P,B)^2$ and obtain the general linear equation of the perpendicular bisector of the segment connecting both villages.
  2. b) Set up and solve the system of equations to find the exact coordinates of the antenna's location.
  3. c) Calculate the exact distance in kilometres from the antenna to each of the two municipalities, checking that they coincide.
Solve

Distance in three dimensions

Applying the theorem of Pythagoras twice gives the distance between two points in space: for $P_1(x_1,y_1,z_1)$ and $P_2(x_2,y_2,z_2)$,

$$|P_1P_2| = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}$$
Practice★★★Not started
In a 3D spaceflight simulator, a spacecraft moves from coordinate $P_1(2, -1, 4)$ to the orbital station at $P_2(5, 3, 16)$. Calculate the exact linear distance…

In a 3D spaceflight simulator, a spacecraft moves from coordinate $P_1(2, -1, 4)$ to the orbital station at $P_2(5, 3, 16)$. Calculate the exact linear distance travelled by the spacecraft in space.

Solve

Back to the beginning: If the radar at Dublin Airport, the origin $(0,0)$, detects a plane at $(12, 5)$ km, the direct distance in a straight line is found with the formula: $d = \sqrt{12^2 + 5^2} = \sqrt{144 + 25} = \sqrt{169} = 13$ km.

Summary

See all the exercises in this section