Distance Formula

Let us consider the following graph.

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_aff1022.png

In the above figure, O is the origin, A is a point at a distance of 3 units on x-axis, and B is a point at a distance of 4 units on y-axis.

Can we find the distance between the two points A and B?

In coordinate geometry, the distance formula has a lot of applications. Let us look at one of its applications.

What can you say about the three points (–6, 10), (–1, 1), and (3, –8)? Are they collinear?

Let us see.

If the sum of the distances of any point from the other two is equal to the distance between the other two points, then we can say that the given points are collinear.

For example, let (–6, 10), (–1, 1), and (3, –8) be denoted by A, B, and C respectively.

Now, using distance formula,https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_3eaf6dc5.gif , we obtain

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m64a9e234.gif

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m482490b6.gif

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_41898368.gif

Here, AB + BChttps://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m630ac80.gif

≠ AC

Therefore, the points A, B, and C are not collinear.

Let us solve some more examples based on the distance formula.

Example 1: Find the distance between the point (7, –1) and origin.

Solution:

Let the points (7, –1) and origin (0, 0) be denoted by A and O respectively. Then, using distance formula, we obtain

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_77a58d6f.gif

Thus, the distance between the points (7, –1) and (0, 0) is https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_287b5bbe.gif units.

Example 2: Find the value of a, if the distance between (a, –1) and (8, 3) is https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_2c4e135.gif.

Solution:

Let points (a, –1) and (8, 3) be denoted by A and B respectively. Then, using distance formula, we obtain

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m753c7ded.gif

The distance is given ashttps://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m138f5c2a.gif . Therefore, we can write

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_5e551fac.gif

On squaring both sides, we obtain

16 × 5 = 64 + a2 – 16a + 16

⇒ 80 – 64 – 16 = a2 – 16a

⇒ 80 – 80 = a2 – 16a

a2 – 16a = 0

a (a – 16) = 0

a = 0 and 16

Thus, the values of a are 0 and 16.

Example 3: Find the point on y-axis that is equidistant from (–5, 2) and (9, –2).

Solution:

The x-coordinate of all points on the y-axis is zero. Therefore, let (0, b) be the point which is equidistant from (–5, 2) and (9, –2).

∴ Distance between (0, b) and (–5, 2) = Distance between (0, b) and (9, –2) Using distance formula, we obtain

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m4dbba2c8.gif

On squaring both sides, we obtain

29 + b2 – 4b = 85 + b2 + 4b

⇒ 8b = 29 – 85

⇒ 8b = –56

b = –7

Thus, the point (0, –7) on the y-axisis equidistant from (–5, 2) and (9, –2).

Example 4: Check whether the points (–3, –2), (–2, 3), and (3, 4) are the vertices of an isosceles triangle or not.

Solution:

Let the vertices (–3, –2), (–2, 3), and (3, 4) be denoted as A, B, and C respectively as shown in the figure.

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_677426aa.png

Using distance formula, we obtain

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_299bb26d.gif

BChttps://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m1eade83a.gif

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_2ecffc16.gif

AChttps://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_3e3d5a8c.gif

https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m6acaee86.gif

Now, AB = BC = https://img-nm.mnimgs.com/img/study_content/lp/1/10/9/134/175/450/948/10.1.7.1.1_ok_SS_html_m519fd09a.gifunits

Thus, (–3, –2), (–2, 3), and (3, 4) are the vertices of an isosceles triangle.