[Math] Finding the Shortest Distance from Point to Plane

multivariable-calculusoptimizationpartial derivative

I am trying to find the shortest distance from the point (3,0,-8) to the plane x+y+z = 8 and I keep getting the same incorrect solution. First, I found the equation fo the distance to be: $d=\sqrt{(x-3)^2 + (y^2) + (z+8)^2}$. Then I found the critical points of $d^2$. The critical point is $(\frac{14}{3}, \frac{5}{3}).$ The minimum distance must be at this critical point so I substituted these values into the equation for distance, with $z$ in terms of $x$ and $y$: $d=\sqrt{((\frac{14}{3})-3)^2 + (\frac{5}{3}^2) + (16-\frac{14}{3} – \frac{5}{3})^2}.$ This yields $3\sqrt{11}$, which is not the correct answer. Could someone help me understand what I am doing incorrectly?

Best Answer

You are trying to minimize $d=\sqrt{(x−3)^2+y^2+(z+8)^2}$ subject to $x+y+z = 8$. This is equivalent to minimizing $$ (x−3)^2+y^2+(z+8)^2 $$ s.t. $$ x+y+z=8 $$ because the new function is a strictly monotonic transformation of the original function. If you make the relevant substitution $z=8-x-y$ your FOC's would look like $$ 2(x-3) - 2(16-x-y) = 0 $$ and $$ 2y - 2(16-x-y) = 0 $$ implying that $$ x = y+3. $$ It should be straightforward from here onwards.

note: thanks Carl below for suggesting edit.

Related Question