logo

Derivation of the Formula to Calculate the Distance Between Two Parallel Lines 📂Geometry

Derivation of the Formula to Calculate the Distance Between Two Parallel Lines

Formulas

20170206\_182952.png

d=2km2+1 d=\frac { |2k| }{ \sqrt { m^{ 2 }+1 } }

Explanation

When solving problems involving the tangent to a conic section, one often needs to calculate the distance between two tangents. While it’s not particularly challenging, thanks to the formula for the distance from a given point to a line, having an easy and quick formula for this distance can help to reduce calculation time.

Derivation

Let’s assume two parallel lines have the equation y=mx±ky=mx\pm k. The distance from any point (x,y)(x,y) to the line y=mx+ky=mx+k is mxy+km2+1 \frac { |mx-y+k| }{ \sqrt { m^{ 2 }+1 } } For a point (x1,y1)(x_1,y_1) on the line y=mxky=mx-k, we have k=mx1y1 k=mx_1-y_1 Substituting mx1y1=kmx_1-y_1=k into the distance formula, we get mx1y1+km2+1=k+km2+1 {{ |mx_{1}-y_{1}+k| }\over{ \sqrt { m^{ 2 }+1 } }} = {{ |k+k| }\over{\sqrt { m^{ 2 }+1 }}} Therefore, the distance between the two parallel lines y=mx±ky=mx\pm k is 2km2+1 \frac { |2k| }{ \sqrt { m^{ 2 }+1 } }