Sub topic 13
Distance Between Parallel Lines
Prerequisites and the main idea
Assume you can work with fractions, solve linear equations, and recognize a line in standard form:
\[ Ax+By+C=0 \]
Parallel lines have the same direction, so they have the same slope. The distance between them is measured along a perpendicular segment, not along a horizontal or vertical path.
For two parallel lines with matching coefficients for \(x\) and \(y\),
\[ Ax+By+C_1=0 \]
and
\[ Ax+By+C_2=0, \]
the distance between them is
\[ \boxed{d=\frac{|C1-C2|}{\sqrt{A^2+B^2}}}. \]
The absolute value makes the distance positive.
Using the formula
Consider the lines
\[ 3x+4y-10=0 \]
and
\[ 3x+4y+5=0. \]
Here, \(A=3\), \(B=4\), \(C1=-10\), and \(C2=5\). Substitute these values:
\[ d=\frac{|(-10)-5|}{\sqrt{3^2+4^2}} =\frac{15}{5} =3. \]
Therefore, the lines are 3 units apart.
The denominator is the length of the normal vector \(\langle A,B\rangle\). A normal vector is perpendicular to the line. This explains why the formula measures the shortest distance between the lines.
First make the coefficients match
The formula requires the two equations to have the same \(A\) and \(B\) values. Equations that describe the same line can be multiplied by any nonzero number, so first rewrite one equation if necessary.
Find the distance between
\[ 2x+3y-7=0 \]
and
\[ 4x+6y+8=0. \]
Multiply the first equation by 2:
\[ 4x+6y-14=0. \]
Now the equations have matching \(x\)- and \(y\)-coefficients. Use the formula:
\[ d=\frac{|(-14)-8|}{\sqrt{4^2+6^2}} =\frac{22}{\sqrt{52}} =\frac{11}{\sqrt{13}}. \]
Rationalizing the denominator gives
\[ d=\frac{11\sqrt{13}}{13}. \]
An approximate value is \(3.05\) units.
| Step | Action |
|---|---|
| 1 | Rewrite both lines in standard form. |
| 2 | Multiply one equation so the \(x\) and \(y\) coefficients match. |
| 3 | Subtract the constant terms and take the absolute value. |
| 4 | Divide by \(\sqrt{A^2+B^2}\). |
Common errors
- Do not use \(|C1-C2|\) by itself. That measures a difference in equation constants, not a geometric distance.
- Do not compare only the constant terms before matching the other coefficients.
- Do not use a horizontal or vertical difference unless the lines are horizontal or vertical.
- Check that the equations really represent parallel lines. Their slopes must match, unless both lines are vertical.
Python can calculate the formula while preserving the exact structure:
import math
def parallel_lines_distance(A, B, C1, C2):
return abs(C1 - C2) / math.hypot(A, B)
distance = parallel_lines_distance(3, 4, -10, 5)
print(distance) # 3.0For exact answers, leave the result in radical or fraction form instead of rounding.
Exercise
Find the distance between 5x - 12y + 9 = 0 and 5x - 12y - 17 = 0.
Show answer
d = |9 - (-17)| / sqrt(5^2 + (-12)^2) = 26 / 13 = 2 units.