The distance between two straight lines
- If the straight lines coincide or are secant, the distance between them is zero,
. - If the straight lines are parallel, the distance between them can be calculated at any point of one of the lines,
or , and finding the distance to the other straight line: -
If the straight lines cross, the following general formula is deduced to calculate the distance between them:
We take a point
belonging to and another point belonging to . Let and be the governing vectors of and . We join the points and . The volume of the parallelepiped determined by , and , is the absolute value of the mixed product of these vectors:On the other hand we can also calculate this volume by multiplying the area of the base and the height:
Therefore:
Example
We are going to calculate the distance between the straight lines:
First we determine its relative position. To do it we must write the implicit equations of the straight line:
And we calculate the rank of the matrix of the resulting systems of equations:
Therefore
For the straight line
For the straight line
So we have:
Finally: