4.4.5 Distance Between a Point and a Line

This is computationally intense, so it typically appears in the last column.

The Formula

For line ax+by+c=0ax + by + c = 0 and point (x0,y0)(x_0, y_0):

Distance=ax0+by0+ca2+b2\text{Distance} = \frac{|ax_0 + by_0 + c|}{\sqrt{a^2 + b^2}}

Example

Problem: Distance between point (3,1)(3, 1) and line 3x+4y=23x + 4y = -2

Solution: Rewrite as 3x+4y+2=03x + 4y + 2 = 0

d=3(3)+4(1)+232+42=9+4+225=155=3d = \frac{|3(3) + 4(1) + 2|}{\sqrt{3^2 + 4^2}} = \frac{|9 + 4 + 2|}{\sqrt{25}} = \frac{15}{5} = 3

Tip: The line equation is usually a Pythagorean triple (3-4-5, 5-12-13) to make the denominator easy!


Problem Set 4.4.5

Practice these problems. Type your answer and press Enter to check:

Dist: 3x−4y=6, point (5,1)
Dist: 3x−4y=3, point (4,1)
Dist: 3x−4y=−3, point (−2,−3)
Dist: 5x−12y=1, point (3,1)
Dist: 3x+4y=5, point (1,1)
Dist: 3x+4y=5, point (2,1)
Dist: 3x+4y=1, point (−2,2)
Dist: 4x+3y=11, point (−2,3)