MathorynMathematical Formula Database

Analytic Geometry

Distance Between Parallel Lines

Two parallel lines Ax+By+C1=0Ax+By+C_1=0 and Ax+By+C2=0Ax+By+C_2=0 are a constant distance apart, given by this formula. It is used to find the width of strips and channels in coordinate geometry and follows from the point-to-line distance formula.

d=∣C1−C2∣A2+B2d=\frac{|C_1-C_2|}{\sqrt{A^2+B^2}}
LaTeXd=\frac{|C_1-C_2|}{\sqrt{A^2+B^2}}

Variables

dd
distance between the lines
A, BA,\ B
common coefficients
C1, C2C_1,\ C_2
constant terms

Example

Find the distance between 3x+4y−5=03x+4y-5=0 and 3x+4y+10=03x+4y+10=0.

  1. ∣−5−10∣=15|{-5}-10|=15, 9+16=5\sqrt{9+16}=5.
  2. d=155d=\frac{15}{5}.

Answer: d=3d=3.

Related formulas