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.

### Suggested Videos

## 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(x_{1}, y_{1}) and B(x_{2}, y_{2}) lying on the same line**. **The length or the distance between the two is**Â **((x_{2} âˆ’ x_{1})^{2} + (y_{2} âˆ’ y_{1})^{2})^{1/2}**Â **.

Also, we know the area of a triangle formed by three points is given byÂ _{ Â½} |x_{1}(y_{2} âˆ’ y_{3}) + x_{2}(y_{3} âˆ’ y_{1}) + x_{3}(y_{1} âˆ’ y_{2})|. Let us study the way to find the distance of point from a line.

**You can download Straight Lines Cheat Sheet by clicking on the download button below**

## 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(x_{1}, y_{1}) 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) = Â½ |x_{1}(y_{2} âˆ’ y_{3}) + x_{2}(y_{3} âˆ’ y_{1}) + x_{3}(y_{1} âˆ’ y_{2})|

Or, Â½ | x_{1} (0 + C/B) + (âˆ’C/A) (âˆ’C/B âˆ’ y_{1}) +0 (y_{1} âˆ’ 0)| = Â½ |x_{1} C/B + y_{1} C/A + C^{2}/AB|

Or, Â½ |C/ (AB) |.|Ax_{1} + By_{1} + C|â€¦ (II)

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

Putting (II) & (III) in (I), we have

NM = d = |Ax_{1} + By_{1} + C| / (A^{2} + B^{2})^{Â½}.

It is interesting to find out the distance between two parallel lines.

**Browse more Topics Under Straight 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 *l _{1 }*and

*l*in XY-plane with equal slope = m. The equations of the parallel lines:

_{2}y = mx + c_{1} â€¦ (I)

y = mx + c_{2} â€¦ (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 *l _{1}* from M (âˆ’ c

_{2}/m, 0). We know that the distance between two lines is:

d =|Ax_{1} + By_{1} + C| / (A^{2} + B^{2})^{Â½}.

Here, A = m, B = 1 and C = c_{1}**Â **(comparing y = mx + c_{1Â }and Ax + By + C = 0)

And, x_{1}**Â **= âˆ’ c_{2}/m and y_{1} = 0

So, d = |m (âˆ’ c_{2}/m) + 0 + c_{1}| / (m^{2} + 1)^{Â½} = |c_{1} âˆ’ c_{2}| / (m^{2} + 1)^{Â½}

Generalizing the above, we have, d = |C_{1} âˆ’ C_{2}| / (A^{2} + B^{2})^{Â½}

(If *l _{1}*: Ax + By + C

_{1}= 0 and

*l*: Ax + By + C

_{2}_{2}= 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, C_{1} = 6 and C_{2} = âˆ’6. The required distance between the two lines is,

d = |C_{1} â€“ C_{2}| / (A^{2} + B^{2})^{Â½} = |6 âˆ’ (âˆ’6)| / (5^{2} + 3^{2})^{Â½} = 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, x_{1} = 2, y_{1} = 3. The required distance of the point from the line is d =|Ax_{1} + By_{1} + C | / (A^{2} + B^{2})^{Â½} = |2.2 + 5.3 + 10| / (2^{2} + 5^{2})^{Â½} = |4 + 15 + 10| /âˆš29 = Â âˆš29.

Hi