Given the point P(4,4) and the line y=−2x+3, find the point R on the line at minimum distance from P, setting up the problem as a minimization.
Solution
A generic point on the line is R=(x,−2x+3). The squared distance from P is
d2(x)=(x−4)2+(−2x+3−4)2=(x−4)2+(−2x−1)2.
Differentiating:
dxdd2=2(x−4)+2(−2x−1)(−2)=2x−8+8x+4=10x−4.
Setting to zero: 10x−4=0⇒x=52=0.4, and y=−2(0.4)+3=2.2. Hence
R=(52,511)=(0.4,2.2).
The second derivative 20>0 confirms the minimum. The minimum distance:
dmin=(−2)2+12∣−2⋅4−4+3∣=5∣−8−4+3∣=59≈4.025.R=(0.4,2.2),dmin=59≈4.025