
William W. answered 04/04/20
Experienced Tutor and Retired Engineer
This is a problem easily done by geometry. The shortest distance is the perpendicular line. The perpendicular line has a slope that is the negative reciprocal of the slope of 3x + y = 5 (which is -3) so it must be 1/3. It goes through the point (-5, 2) so the equation (using point-slope) is y - 2 = 1/3(x + 5) which converts to y = 1/3x + 11/3. Now, find the intersection point by substituting this into the original to get 3x + (1/3x + 11/3) = 5 gives x = 0.4. Plugging that in to either equation gives y = 3.8 so the point closest is (0.4, 3.8).
However, to make this hard, you could use Calculus. The distance from the line 3x + y = 5 to (-5, 2) can be put into an equation using the distance formula d = sqrt[(x2 - x1)2 + (y2 - y1)2] where (x1, y1) is (-5, 2) and (x2, y2) is some point on 3x + y = 5. Since 3x + y = 5, we can say y = -3x + 5 so the point (x2, y2) can be written as (x, -3x + 5). Plugging the 2 points into the distance formula, we get:
d = sqrt[(x2 - x1)2 + (y2 - y1)2]
d = sqrt[(x - -5)2 + (-3x + 5 - 2)2]
d = sqrt[(x + 5)2 + (-3x + 3)2]
d = sqrt(x2 + 10x + 25 + 9x2 -18x + 9)
d = sqrt(10x2 - 8x + 34)
Now, minimize this by taking the derivative (requires the chain rule) and setting it equal to zero.
d' = (20x - 8)/[2sqrt(10x2 - 8x + 34)]
(20x - 8)/[2sqrt(10x2 - 8x + 34)] = 0 Note this only = 0 when the numerator = 0 so:
20x - 8 = 0
20x = 8
x = 8/20 = 0.4
Plugging that into the 3x + y = 5 gives y = 3.8
So the point on 3x + y = 5 closest to (-5, 2) is (0.4, 3.8) [But like I said, it's way easier to solve using geometry]