
William W. answered 11/13/20
Experienced Tutor and Retired Engineer
This is actually easy in geometry. The point on a line closest to another point is the point on the line that intersects the line perpendicular to the line going through that point. The line -5x + 7y - 3 = 0 is also y = 5/7x + 3/7 meaning the slope is 5/7. The perpendicular would have a slope of -7/5 and the line with a slope of -7/5 going through (5, 1) is y - 1 = -7/5(x - 5) or y = -7/5x + 8. To find the intersection (the point on the line closest to (5, 1) just set them equal to each other:
5/7x + 3/7 = -7/5x + 8
35(5/7x + 3/7) = 35(-7/5x + 8)
25x + 15 = -49x + 280
74x = 265
x = 265/74
Then plugging that in: y = 5/7x + 3/7 we get
y = 5/7(265/74) + 3/7 = 221/74
So the point is (265/74, 221/74)
To do this using calculus is a little harder. Let the point on the line -5x + 7y - 3 = 0 be (x1, y1) since y = 5/7x + 3/7 then y1 = 5/7x1 + 3/7 so the point is (x1, (5/7x1 + 3/7))
The distance between (x1, (5/7x1 + 3/7)) and (5, 1) can be found using the distance formula:
d = √((x2 - x1)2 + (y2 - y1)2) or, in this case with the points being (x1, (5/7x1 + 3/7)) and (5, 1):
d(x1) = √((5 - x1)2 + (1 - (5/7x1 + 3/7))2)
d(x1) = √((5 - x1)2 + (4/7 - 5/7x1))2)
d(x1) = √((25 - 10x1 + x12) + (16/49 - 40/49x1 + 25/49x12))
d(x1) = √(1241/49 - 530/49x1 + 74/49x12)
d(x1) = 1/7√(1241 - 530x1 + 74x12)
d(x1) = 1/7(1241 - 530x1 + 74x12)1/2
To minimize it, we take the derivative and set it equal to zero. To take the derivative, use the power rule and the chain rule.
d'(x1) = (1/2)1/7(1241 - 530x1 + 74x12)-1/2(148x1 - 530)
d'(x1) = (148x1 - 530)/(14(1241 - 530x1 + 74x12)-1/2)
d'(x1) = (74x1 - 265)/(7(1241 - 530x1 + 74x12)1/2)
Setting this equal to zero we will only get a solution if the numerator equals zero so:
74x1 - 265 = 0
x1 = 265/74 which is the same value we got using geometry.
Plugging this into y = 5/7x1 + 3/7 we get y1 = 221/74
Again, the point closest to (5, 1) is (265/74, 221/74)