Distance Between Two Points

Suppose, city A is located 50 km east and 20 km north from city B. Then, how can we calculate the distance between the two cities, without actually measuring it? Here, we can make use of Pythagoras theorem, by forming a right-triangle in a plane using the directions given. In this article, learn how we can use this theorem to find the distance between two Cartesian points and distance between two positions (points) in a plane.

To calculate the distance between two points in a plane, we have to use the distance formula derived in coordinate geometry. With the help of this formula, we can find the distance between any two points marked in the xy-plane. This is one of the important topics covered in Class 10 Maths Chapter 7.

Also, read:

How to use Pythagoras theorem to find the distance between two positions?

Consider the following situation.

A boy walks towards north 30 meters and took a turn to the east and walked for 40 meters more. How do we calculate the shortest distance between the initial place and final place?

A pictorial representation of the above situation is:

Distance Between Two Points

The initial point is A and final point is C. The distance between the points A, B is 30 m and between points B, C is 40 m.

The shortest distance between points A and C is AC.

This is calculated using Pythagoras theorem as follows.

AC2 = AB2 + BC2

\( AC \) = \( \sqrt{30^2~+~40^2}\) = 50 m

Hence, we got the distance between the start point and the endpoint. In the same way, the distance between two points in a coordinate plane is also calculated using the Pythagorean theorem or right-angles triangle theorem.

Before going to derive the formula for distance between two points in a coordinate plane, let us understand what are the coordinate points and how to locate them in the Cartesian plane.

Coordinates of a point

Two-dimensional geometry deals with coordinates of points, distance between the points etc. Coordinates of a point is a pair of numbers which exactly define the location of that point in the coordinate plane.

Coordinates of a point

Coordinates of the point P in the two-dimensional plane is (x, y) which means, P is x units away from y-axis and y units away from the x-axis.

Coordinates of a point on the x-axis are of the form (a, 0), where a is the distance of the point from the origin and on the y-axis is of the form (0, a), where a is the distance of the point from the origin.

Distance Formula

Let us take two points P(x1, y1)  and Q(x2, y2) in the coordinate plane. Let us represent these points in the figure.

Distance Between Two Points by Distance Formula

Note that we have taken our points P and Q in the first quadrant itself. What if the points are in other quadrants? As you shall observe in the following discussion, the final formula still remains the same, irrespective of which quadrant P and Q lie in.

PS, QT are perpendicular to x-axis and PR is parallel to the x-axis.

Distance between the points P and Q is calculated as follows:

S and T are the points on the x-axis which are endpoints of two parallel line segments PS and QT respectively.

⇒ PR = ST

Coordinates of S and T are (x1, 0) and  (x2, 0) respectively.

OS =  xand OT = x2

ST = OT – OS = x2– x1 = PR

Similarly,

PS =  RT

QR = QT – RT = QT – PS = y2– y1

By Pythagoras theorem,

PQ= PR+ QR2

PQ = √[(x2– x1)2+ (y2– y1)2]

Therefore,

Distance between two points (x1,y1) and (x2,y2) is given by:

PQ = √[(x2– x1)2+ (y2– y1)2]

It is known as distance formula.

Observe that (x2– x1)2  is the square of the difference in x – coordinates of P and Q and is always positive. The same can be said about (y2– y1)as well. Use this point and try to see for yourself why the formula remains the same for any coordinates of P and Q, in any quadrant.

Distance between a point from the origin

Suppose a point P(x, y) in the xy – plane as shown in the figure below:

Distance Formula

Let us calculate the distance between point P and the origin. P is x units away from y-axis and y units away from the x-axis.

By Pythagoras theorem,

OP2 = x+ y2

\( OP \) = \( \sqrt{x^2~+~y^2} \)

Therefore distance between any point (x, y) in xy-plane and the origin (0, 0) is \( \sqrt{x^2~+~y^2} \).

Examples

Example 1: Find the value of a, if the distance between the points P(3, -6) and Q(-3, a) is 10 units.

Solution:

Let the given points be:

P(3, -6) = (x1, y1)

Q(-3, a) = (x2, y2)

Using distance formula,

Distance between the points P(3, -6) and Q(-3, a) is:

[(-3 – 3)+ (a + 6)2] = 10 units (given)

Squaring on both sides of the equation,

(-6)+ (a + 6)2 = 100

(a + 6)2 = 100 – 36 = 64 

Taking root on both the sides, we get;

a + 6 = ±8

Case I: Considering +8,

a + 6 = 8 ,

a = 8 – 6 = 2

Case II: Considering -8

a + 6 = -8

a = -8 – 6

a = -14

Therefore, the coordinates are either P(3, -6) and Q(-3, 2) or P(3, -6) and Q(-3, -14).

Example 2: Find a relation between x and y such that the point (x, y) is equidistant from the points (7, 1) and (3, 5).

Solution: Let P(x, y) be the point which is equidistant from the points A(7, 1) and B(3, 5).

Given,

AP = BP

⇒ AP= BP2
(x – 7)+ (y – 1)= (x – 3)+ (y – 5) (by distance formula)
x– 14x + 49 + y– 2y + 1 = x– 6x + 9 + y– 10y + 25

-14x + 50 – 2y + 6x + 10y – 34 = 0

-8x + 8y = -16
x – y = 2
This is the required relation between x and y.

Example 3: Find a point on the y-axis which is equidistant from the points A(6, 5) and B(– 4, 3).

Solution: We know that a point on the y-axis is of the form (0, y). So, let the point P(0, y) be equidistant from A and B. Then:

AP = BP

⇒ AP= BP2

(6 – 0)+ (5 – y)= (– 4 – 0)+ (3 – y)2
36 + 25 + y2– 10y = 16 + 9 + y– 6y

61 – 10y = 25 – 6y

⇒ 10y – 6y = 61 – 25
⇒ 4y = 36
⇒ y = 9

So, the required point is (0, 9).

Verification:

AP = √[(6 – 0)+ (5 – 9)2]

= √(36+16)

= √52

BP =  √[(-4-0)2+(3-9)2]

=√(16+36)

=√52

Hence, we conclude that, the point (0, 9) is equidistant from the give two points.

Distance Between Two Points in 3D

The distance between two points A(x1, y1, z1) and B(x2, y2, z2) in a three-dimensional plane is given by the formula:

AB = √[(x2 – x1)2 + (y2 – y1)2 + (z2 – z1)2]

Here,

(x2– x1)2  is the square of the difference in x – coordinates of A and B and is always positive.

Similarly, (y2– y1)and (z2– z1)are equal to the square of the difference between the corresponding y and z– coordinates of A and B.

To learn more about coordinate geometry and related topics, log onto www.byjus.com. To watch interesting videos on the topic, download BYJU’S – The Learning App.

Leave a Comment

Your email address will not be published. Required fields are marked *

BOOK

Free Class