Distance between two parallel lines

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

The distance between two parallel lines in the plane is the minimum distance between any two points.

Formula and proof

[edit | edit source]

Because the lines are parallel, the perpendicular distance between them is a constant, so it does not matter which point is chosen to measure the distance. Given the equations of two non-vertical parallel lines

y=mx+b1
y=mx+b2,

the distance between the two lines is the distance between the two intersection points of these lines with the perpendicular line

y=x/m.

This distance can be found by first solving the system of linear equations

{y=mx+b1y=x/m,

and

{y=mx+b2y=x/m,

to get the coordinates of the intersection points. The solutions to the linear systems are the points

(x1,y1) =(b1mm2+1,b1m2+1),

and

(x2,y2) =(b2mm2+1,b2m2+1).

The distance between the points is

d=(b1mb2mm2+1)2+(b2b1m2+1)2,

which reduces to

d=|b2b1|m2+1.

When the lines are given by

ax+by+c1=0
ax+by+c2=0,

the distance between them can be expressed as

d=|c2c1|a2+b2.

More generally, when the coefficients of

x

and

y

are different, i.e. the parallel lines are given by the

a1x+b1y+c1=0

and the

a2x+b2y+c2=0

equations where

(a1,b1) || (a2,b2)

, the distance can be expressed as

d=(a1c2a2c1)2+(b1c2b2c1)2|a1b1+a2b2|

See also

[edit | edit source]

References

[edit | edit source]
  • Abstand In: Schülerduden – Mathematik II. Bibliographisches Institut & F. A. Brockhaus, 2004, Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)., pp. 17-19 (German)
  • Hardt Krämer, Rolf Höwelmann, Ingo Klemisch: Analytische Geometrie und Lineare Algebra. Diesterweg, 1988, Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)., p. 298 (German)
[edit | edit source]