# Distance of Point From a Line

How can you find the distance between two objects say two street lights? By measuring the length between them. By the length between the two street lights, we can find the distance. How can you measure the distance between your house and your friend’s? We have to measure the length between the two. Similarly, for finding the distance between two points, we measure the length between them. Here, we will study how to find the distance of point from a line.

## Distance Between Two Points

We are familiar with the representation of points on a graph sheet. In coordinate geometry, we learned to find the distance between two points, say A and B. Suppose the coordinates of two points are A(x1, y1) and B(x2, y2) lying on the same line. The length or the distance between the two isÂ ((x2 âˆ’ x1)2 + (y2 âˆ’ y1)2)1/2Â .

Also, we know the area of a triangle formed by three points is given byÂ  Â½ |x1(y2 âˆ’ y3) + x2(y3 âˆ’ y1) + x3(y1 âˆ’ y2)|. Let us study the way to find the distance of point from a line.

## Perpendicular Distance of Point from a Line

Have you ever thought of measuring the distance of the point from a line? How can we do this? The point is not lying on the line. How to do it? Letâ€™s find out.

Before we start, learn the formula of distance here.

Suppose a line l in XYâˆ’plane and N(x1, y1) is any point at a distance d from the line l. This line is represented by Ax + By + C = 0. The distance of point from a line, â€˜dâ€™ is the length of the perpendicular drawn from N to l. The x and y-intercepts are âˆ’C/A and âˆ’C/B respectively.

The line meets the y and the x axes at points A and B respectively. The coordinates of the points are A (0, âˆ’C/B) and B (âˆ’C/A, 0). The area of the triangle is given by

area (Î” NAB) = Â½ baseÂ Ã— height = Â½ ABÂ Ã— NM,
â‡’Â NM = 2 area (Î” NAB) / AB â€¦ (I)

Also, area (Î” NAB) = Â½ |x1(y2 âˆ’ y3) + x2(y3 âˆ’ y1) + x3(y1 âˆ’ y2)|
Or, Â½ | x1 (0 + C/B) + (âˆ’C/A) (âˆ’C/B âˆ’ y1) +0 (y1 âˆ’ 0)| = Â½ |x1 C/B + y1 C/A + C2/AB|
Or, Â½ |C/ (AB) |.|Ax1 + By1 + C|â€¦ (II)

Distance of the line AB = ((0 + C/A)2 + (C/B âˆ’ 0)2)Â½ = |C| Ã— ((1/A2) + (1/B2))Â½
Or, Distance, AB = |C/AB| (A2 + B2)Â½ â€¦ (III)

Putting (II) & (III) in (I), we have
NM = d = |Ax1 + By1 + C| / (A2 + B2)Â½.
It is interesting to find out the distance between two parallel lines.

## Distance between Two Parallel Lines

Two lines are parallel to each other if the distance between them at any point remains the same. In other words, if the slopes of both the lines are the same, they will be parallel to each other. Suppose there are two parallel lines l1 and l2 in XY-plane with equal slope = m. The equations of the parallel lines:

y = mx + c1 â€¦ (I)
y = mx + c2 â€¦ (II)

The distance between two parallel lines is calculated by the distance of point from a line. It is equal to the length of the perpendicular distance from any point to one of the lines. Let N be the point through which the perpendicular or normal is drawn to l1 from M (âˆ’ c2/m, 0). We know that the distance between two lines is:

d =|Ax1 + By1 + C| / (A2 + B2)Â½.
Here, A = m, B = 1 and C = c1Â (comparing y = mx + c1Â and Ax + By + C = 0)
And, x1Â = âˆ’ c2/m and y1 = 0
So, d = |m (âˆ’ c2/m) + 0 + c1| / (m2 + 1)Â½ = |c1 âˆ’ c2| / (m2 + 1)Â½

Generalizing the above, we have, d = |C1 âˆ’ C2| / (A2 + B2)Â½

(If l1: Ax + By + C1 = 0 and l2: Ax + By + C2 = 0)

Understand the concept of coordinates here in detail.

## Solved Example for You

Problem: Find the distance between two lines 5x + 3y + 6 = 0 and 5x + 3y â€“ 6 = 0.
Solution: Here, A = 5, B = 3, C1 = 6 and C2 = âˆ’6. The required distance between the two lines is,
d = |C1 â€“ C2| / (A2 + B2)Â½ = |6 âˆ’ (âˆ’6)| / (52 + 32)Â½ = 12/âˆš34.

Problem: Find the distance between the line x/5 + y/2 + 1 = 0 and a point (2, 3).
Solution: The equation of the line can be written as 2x + 5y + 10 = 0. Here, A = 2, B = 5, C = 10, x1 = 2, y1 = 3. The required distance of the point from the line is d =|Ax1 + By1 + C | / (A2 + B2)Â½ = |2.2 + 5.3 + 10| / (22 + 52)Â½ = |4 + 15 + 10| /âˆš29 = Â âˆš29.

Share with friends

## Customize your course in 30 seconds

##### Which class are you in?
5th
6th
7th
8th
9th
10th
11th
12th
Get ready for all-new Live Classes!
Now learn Live with India's best teachers. Join courses with the best schedule and enjoy fun and interactive classes.
Ashhar Firdausi
IIT Roorkee
Biology
Dr. Nazma Shaik
VTU
Chemistry
Gaurav Tiwari
APJAKTU
Physics
Get Started

1. Teju says:

Hi