- 1. Where is a point? A recap of coordinate geometry
- 2. How steep is a line? Inclination and slope
- 3. Slope from two points: rise over run
- 4. When are two lines parallel or perpendicular?
- 5. The angle between two lines
- 6. Writing a line as an equation: point-slope form
- 7. Two-point form and y = mx + c
- 8. Intercept form and the general equation Ax + By + C = 0
- 9. How far is a point from a line?
- 10. The distance between two parallel lines
- 11. Where lines meet: intersections, concurrency and areas
- 12. A line as a mirror: images, bounces and equal distances
- Review
10 of 12·NCERT §9.4.1·5 min
The distance between two parallel lines
The big ideaTwo parallel lines stay the same distance apart everywhere, and that distance is \( d = \dfrac{|c_1 - c_2|}{\sqrt{1 + m^2}} \) for \( y = mx + c_1 \), \( y = mx + c_2 \), or \( d = \dfrac{|C_1 - C_2|}{\sqrt{A^2 + B^2}} \) for \( Ax + By + C_1 = 0 \), \( Ax + By + C_2 = 0 \).
In simple words
Railway rails never come closer and never move apart. To find the gap between them, stand on one rail and measure straight across to the other. It does not matter where you stand, because the gap is the same everywhere. So we pick one handy spot on the first line and use the rule for "how far is a dot from a line".
One point is enough
Parallel lines have equal slopes, so we can write two of them as
\[ y = mx + c_1 \quad (1) \qquad \text{and} \qquad y = mx + c_2 \quad (2) \]Picture them as two tilted lines of the same steepness, one higher up the y-axis than the other. The distance between two parallel lines is the length of a perpendicular from any point of one to the other. Every such perpendicular has the same length, so we only need one point.
Try it: tilt the two lines together and compare the gap straight up with the gap straight across.
Deriving the formula
Take the point where line (1) crosses the x-axis (assume \( m \ne 0 \)). Putting \( y = 0 \) gives \( x = -\frac{c_1}{m} \), so the point is \( A\left(-\frac{c_1}{m}, 0\right) \). Write line (2) as \( mx - y + c_2 = 0 \) and use the point-to-line distance:
\[ d = \frac{\left| m\left(-\frac{c_1}{m}\right) - 0 + c_2 \right|}{\sqrt{m^2 + 1}} = \frac{|c_2 - c_1|}{\sqrt{1 + m^2}} \](If \( m = 0 \), the lines are \( y = c_1 \) and \( y = c_2 \), and the gap is simply \( |c_1 - c_2| \), which is what the formula gives.)
Distance between parallel lines
- For \( y = mx + c_1 \) and \( y = mx + c_2 \): \( d = \dfrac{|c_1 - c_2|}{\sqrt{1 + m^2}} \).
- For \( Ax + By + C_1 = 0 \) and \( Ax + By + C_2 = 0 \): \( d = \dfrac{|C_1 - C_2|}{\sqrt{A^2 + B^2}} \).
- The second formula needs the same \( A \) and \( B \) in both equations. Scale one equation first if they differ.
The second formula follows the same way: divide \( Ax + By + C = 0 \) by \( -B \) to get \( y = -\frac{A}{B}x - \frac{C}{B} \), so \( m = -\frac{A}{B} \) and \( c = -\frac{C}{B} \), and simplify. It is good practice to do this yourself.
Worked examples
Worked example 1
Find the distance between \( 6x + 8y - 5 = 0 \) and \( 6x + 8y + 15 = 0 \).
- Same \( A = 6 \), \( B = 8 \); \( C_1 = -5 \), \( C_2 = 15 \).
- \( d = \frac{|-5 - 15|}{\sqrt{36 + 64}} = \frac{20}{10} = 2 \) units.
Worked example 2: match the coefficients first
Find the distance between \( 3x - 4y + 2 = 0 \) and \( 6x - 8y - 11 = 0 \).
- The slopes are both \( \frac{3}{4} \), so the lines are parallel, but the coefficients differ.
- Divide the second by 2: \( 3x - 4y - 5.5 = 0 \). Now \( A = 3 \), \( B = -4 \), \( C_1 = 2 \), \( C_2 = -5.5 \).
- \( d = \frac{|2 - (-5.5)|}{5} = \frac{7.5}{5} = 1.5 \) units.
Using \( C_1 = 2 \) and \( C_2 = -11 \) without scaling would give \( \frac{13}{5} = 2.6 \), which is wrong.
Worked example 3: slope form
Find the distance between \( y = 2x + 1 \) and \( y = 2x - 4 \).
- \( m = 2 \), \( c_1 = 1 \), \( c_2 = -4 \).
- \( d = \frac{|1 - (-4)|}{\sqrt{1 + 4}} = \frac{5}{\sqrt{5}} = \sqrt{5} \approx 2.24 \) units.
Notice the vertical gap between the lines is 5 (at any \( x \), one is 5 higher), but the perpendicular gap is less, because the lines are tilted. Dividing by \( \sqrt{1 + m^2} \) corrects for the tilt.
Worked example 4: the width of a canal
On a plan drawn in metres, the two banks of a straight canal are \( 3x + 4y = 10 \) and \( 3x + 4y = 40 \). How wide is the canal?
- Write them as \( 3x + 4y - 10 = 0 \) and \( 3x + 4y - 40 = 0 \).
- \( d = \frac{|-10 - (-40)|}{5} = \frac{30}{5} = 6 \) m.
The line exactly halfway between the banks, the centre line, is \( 3x + 4y = 25 \): the constants average to \( \frac{10 + 40}{2} \).
Try it. (a) Find the distance between \( 5x + 12y - 7 = 0 \) and \( 5x + 12y + 19 = 0 \). (b) Find the distance between \( x + y = 1 \) and \( 2x + 2y = 5 \).
Answer
- Distance between parallel lines
- The length of a perpendicular from any point of one line to the other; the same everywhere.
- Slope form of the formula
- \( \frac{|c_1 - c_2|}{\sqrt{1 + m^2}} \) for \( y = mx + c_1 \), \( y = mx + c_2 \).
- General form of the formula
- \( \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}} \), with the same \( A \), \( B \) in both lines.
- Centre line
- The parallel line halfway between two parallel lines: \( Ax + By + \frac{C_1 + C_2}{2} = 0 \).
Words to know
What is the distance between \( 4x + 3y = 2 \) and \( 4x + 3y = 12 \)?
- 10
- 2
- 2.8
Before using \( \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}} \) on \( x - 2y + 3 = 0 \) and \( 3x - 6y + 1 = 0 \), what must you do?
- Check that they cross
- Make the \( x \) and \( y \) coefficients match
- Square both equations
The lines \( y = 3x + 2 \) and \( y = 3x + 7 \) are 5 apart measured straight up. Their perpendicular distance is
- 5
- \( \frac{5}{\sqrt{10}} \)
- \( \frac{5}{3} \)
Picture and video credits