
Jay T. answered 11/29/18
Retired Engineer/Math Tutor
The distance from a point, (x0,y0) to a line is the length of a line segment from the point to the line that is perpendicular to that line. If the equation OF THAT LINE IS Ax + By + C = 0, then the distance d is given by the formula:
d = |Ax0 + By0 + C| / sqrt(A2 + B2) eq(1)
In this case, the equation of the line y=x-5 is the equivalent of x – y – 5 = 0, so:
A= 1
B = -1
C = -5, and:
x0 = -7
y0 = 4
Plugging these values into eq(1):
d = |1*(-7) + (-1)*4 - 5| / sqrt(12 + (-1)2)
= |-7 - 4 – 5| / sqrt(2)
= 15/sqrt(2)
= 10.6061 (approximated)