Mathematics · Ch 11 — Straight Lines
Distance of a Point from a Line
Distance of a Point from a Line
Given a line and a point not on , this section finds the length of the perpendicular dropped from to — the shortest possible distance from the point to the line.
Setting up. Let be the foot of the perpendicular from to (Figure), so the required distance is . Assume, for the derivation, that neither nor is zero (the two axis-parallel cases were already covered directly in Section 4). Let meet the x-axis at and the y-axis at — its intercepts, from Section 8.
Derivation (area method). Consider the triangle . Its area can be computed in two different ways, and equating them isolates .
First way — the coordinate area formula, applied to vertices , , ; after simplifying the determinant expansion, this reduces to
Second way — as , using as the base and as the corresponding height (since by construction, being part of ):
(by the distance formula of Section 1, applied to and ).
Equating the two areas and cancelling the common factor from both sides gives
— the distance formula. Although derived here assuming all non-zero, the formula is checked to hold for every line (including and ) by direct substitution, and so may be used unconditionally.
Distance between two parallel lines. Two parallel lines share the same (up to a common scalar), differing only in the constant term: and . Picking any point on (so ) and applying the distance formula to find its distance from :
…
What this figure shows. A straight line L drawn across a pair of coordinate axes, together with a single point P marked clearly off the line (not on it). A second line segment is drawn from P straight down to the line L, meeting it at a foot point M, such that this segment PM is perpendicular to L; a small square (right-angle marker) is drawn in the corner at M to indicate the 90-degree angle between PM and L. The length of the segment PM is labelled d, representing the required shortest distance from P to L. The line L is also shown extended to cross both axes, with its x-intercept point Q and y-intercept point R marked, and the straight segment QR drawn connect …