Skip to content

Mathematics · Ch 5 — Straight Line

Distance of a Point from a Line

5.4.2

Distance of a Point from a Line

5.4.2 The Distance of a Point from a Line

Theorem. The perpendicular distance of a point P(x1,y1)P(x_1,y_1) from the line ax+by+c=0ax+by+c=0 is

p=∣ax1+by1+c∣a2+b2.p = \frac{|ax_1+by_1+c|}{\sqrt{a^2+b^2}}.

Proof. This generalises the origin case. Let the line meet the axes at B(−ca,0)B\left(-\dfrac ca,0\right), C(0,−cb)C\left(0,-\dfrac cb\right), and let PM=pPM=p be the perpendicular from PP to the line. Computing the area of △PBC\triangle PBC two ways — once as 12⋅BC⋅p\tfrac12\cdot BC\cdot p (using BCBC from the earlier computation), and once using the coordinate/determinant formula for the area of a triangle with vertices P(x1,y1)P(x_1,y_1), BB, CC — and equating the two expressions leads, after simplification, to p=∣ax1+by1+c∣a2+b2p=\dfrac{|ax_1+by_1+c|}{\sqrt{a^2+b^2}}. (Setting x1=y1=0x_1=y_1=0 recovers exactly the origin-distance formula of 5.4.1, as it should.) ■\blacksquare …

Figure 5.4.2-Fig5.16Fig. 5.16

What this figure shows. Diagram showing the point P(x1,y1), the line ax+by+c=0, and the perpendicular PM of length p dropped from P onto the line, used in the area-based proof. This figure gives the reader a concrete visual reference for the geometric configuration described in the surrounding text, tying the abstract statement t …

Misc 5.4.2-Ex1Ex. 1 — distance of a point from a line

Worked out. Finds the distance of the point P(2,5) from the line 3x + 4y + 14 = 0 by direct substitution into the point-to-line distance formula, obtaining 8. …