The distance between two lines means that the parallel lines can be determined from one point to another on the opposite line. It is often referred to as the shortest distance between two parallel lines or the perpendicular distance between two lines. In coordinate geometry, we have several formulas, out of which distance formula is one of the most commonly used formulas. In this article, you will learn how to derive the formula for distance between two lines and the distance of a point from a line along with examples.
Distance Between Two Lines in Coordinate geometry
The distance between any two parallel lines can be determined by the distance of a point from a line, and it is equivalent to the length of the vertical distance from any point on one of the lines to another line. So let’s understand how to derive the formula for the distance of a line from a point.
Also, check: |
Distance Between Point and Line Derivation
The general equation of a line is given by Ax + By + C = 0.Â
Â Consider a line L : Ax + By + C = 0 whose distance from the point P (x_{1}, y_{1}) is d.
Draw a perpendicular PM from the point P to the line L, as shown in the figure below.
Let Q and R be the points where the line meets the x-and y-axes, respectively.
Coordinates of the points can be written as Q(-C/A, 0) and R(0, -C/B).
Letâ€™s derive the formula using the formulas of the area of the triangle in different aspects.
In triangle PQR,
ar(Î”PQR) = (1/2) Ã— Base Ã— Height = (1/2) Ã— PM Ã— QR
â‡’ PM = [2 ar(Î”PQR)]/2â€¦.(i)
In coordinate geometry, the area of triangle with vertices (x_{1}, y_{1}), (x_{2}, y_{2}) and (x_{3}, y_{3}) is
Î” = (1/2) |x_{1}(y_{2} â€“ y_{3}) + x_{2}(y_{3} â€“ y_{1}) + x_{3}(y_{1} â€“ y_{2})|
Here,
(x_{1}, y_{1}) = P(x_{1}, y_{1})
(x_{2}, y_{2}) = Q(-C/A, 0)
(x_{3}, y_{3}) = R(0, -C/B)
Now, by substituting these values in area formula, we get;
ar(Î”PQR) = (1/2) |x_{1}(0 + C/B) + (-C/A)(-C/B â€“ y_{1}) + 0(y_{1} â€“ 0)|
ar(Î”PQR) = (1/2) |x_{1}(C/B) + (C^{2}/AB) + y_{1}(C/A)|
â‡’ 2 ar(Î”PQR) = |C/AB| . |Ax_{1} + By_{1} + C|â€¦.(ii)
Distance QR = âˆš[(0 + C/A)^{2} + (C/B â€“ 0)^{2}]
= âˆš[(C^{2}/A^{2}) + (C^{2}/B^{2})]
Letâ€™s find QR using the distance formula.
QR = |C/AB| âˆš(A^{2} + B^{2})â€¦.(iii)
Substituting (ii) and (iii) in (i),
PM = [|C/AB| . |Ax_{1} + By_{1} + C|] / [|C/AB| âˆš(A^{2} + B^{2})]
d = |Ax_{1} + By_{1} + C|]/ âˆš(A^{2} + B^{2})
Therefore, the perpendicular distance (d) of a line Ax + By+ C = 0 from a point (x_{1}, y_{1}) is given by
d = |Ax_{1} + By_{1} + C|]/ âˆš(A^{2} + B^{2})
Based on this formula, we can derive the formula for the distance between two parallel lines.
Distance Between Two Parallel Lines
The distance between two parallel lines is equal to the perpendicular distance between the two lines. We know that the slopes of two parallel lines are the same; therefore, the equation of two parallel lines can be given as:
yy = mx + c_{1}….(1)
and yy = mx + c_{2}….(2)
The point AA is the intersection point of the second line on the x-axis.
The perpendicular distance would be the required distance between two lines
The distance between the point
Thus, we can conclude that the distance between two parallel lines is given by:
If we consider the general form of the equation of straight line, and the lines are given by:
Then, the distance between them is given by:
Shortest Distance Between Two parallel Lines
The shortest distance between the two parallel lines can be determined using the length of the perpendicular segment between the lines. It does not matter which perpendicular line you are choosing, as long as two points are on the line.
Thus, we can now easily calculate the distance between two parallel lines and the distance between a point and a line.
Solved Examples
Example 1:
Find the distance between two lines 3x + 4y = 9 and 6x + 8y = 15.
Solution:
Given equations of lines are:
3x + 4y = 9â€¦.(i)
6x + 8y = 15 Or 3x + 4y = 15/2 â€¦.(ii)
Let us check whether the given lines are parallel or not.
From (i),
4yÂ = -3x + 9
y = (-Â¾)x + (9/4)
Here, slope = m_{1} = -Â¾
From (ii),
8y = -6x + 15
y = (-6/8)x + (15/8)
y = (-Â¾)x + (15/8)
Here, slope = m_{2} = -Â¾
Thus, the slope of the given lines is equal so they are parallel to each other.
Now, by comparing with the standard form of parallel lines equations, we get:
A = 3, B = 4, C_{1} = -9, C_{2} = -15/2
d = |C_{1} – C_{2}|/âˆš(A^{2} + B^{2})
= |-9 + (15/2)|/âˆš(9 + 16)
= |-18 + 15|/2âˆš25
= |-3|/(2 Ã— 5)
= 3/10
Therefore, the distance between the given lines is 3/10 units.
Example 2:Â
The distance between two parallel lines 5x – 12y + 2 = 0 and 5x – 12y + k = 0 is given by 5/13 units. Find the value of k.
Solution:
Given equations of lines are:
5x – 12y + 2 = 0â€¦.(i)
5x – 12y + k = 0 â€¦.(ii)
Let us check whether the given lines are parallel or not.
From (i),
12y = 5x + 2
y = (5/12)x + (2/12)
Here, slope = m_{1} = 5/12
From (ii),
From (i),
12y = 5x + k
y = (5/12)x + (k/12)
Here, slope = m_{2} = 5/12
Thus, the slope of the given lines is equal so they are parallel to each other.
Now, by comparing with the standard form of parallel lines equations, we get:
A = 5, B = -12, C_{1} = 2, C_{2} = k
d = |C_{1} – C_{2}|/âˆš(A^{2} + B^{2})
5/13 = |2 – k|/âˆš(25 + 144)
5/13 = |2-k|/âˆš169
5/13 = |2 – k|/13
5 = 2 – k
k = 2 – 5 = -3
Comments