Let l be a line described by equation ax+by+c=0 and let P(x,y) be a point not on l. Express the distance, d between landP in terms of the coefficients a,bandc of the equation of line?

enter image source here

1 Answer
Nov 14, 2016

d=c+ax0+by0a2+b2

Explanation:

Let lax+by+c=0 and p0=(x0,y0) a point not on l.

Supposing that b0 and calling d2=(xx0)2+(yy0)2 after substituting y=ax+cb into d2 we have

d2=(xx0)2+(c+axb+y0)2. The next step is find the d2 minimum regarding x so we will find x such that

ddx(d2)=2(xx0)2a(c+axb+y0)b=0. This occours for

x=b2x0aby0aca2+b2 Now, substituting this value into d2 we obtain

d2=(c+ax0+by0)2a2+b2 so

d=c+ax0+by0a2+b2