Given the point P(3,−2) and the line y=2x+1, 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+1). The squared distance from P is
d2(x)=(x−3)2+(2x+1−(−2))2=(x−3)2+(2x+3)2.
Minimizing d2 is equivalent to minimizing d. Differentiating:
dxdd2=2(x−3)+2(2x+3)⋅2=2x−6+8x+12=10x+6.
Setting to zero: 10x+6=0⇒x=−53=−0.6, and y=2(−0.6)+1=−0.2. Hence
R=(−53,−51)=(−0.6,−0.2).
The second derivative 20>0 confirms the minimum. The minimum distance:
dmin=22+12∣2⋅3−(−2)+1∣=5∣6+2+1∣=59≈4.025.R=(−0.6,−0.2),dmin=59≈4.025