I'd like to find the point of $E: 2x+3y+z = 14$ which has the smallest distance to the point of origin (0,0,0).
I think I have $ d(x,y,z) = \sqrt{x^2+y^2+z^2}$ with constraint $2x+3y+z = 14$.
What exactly do I have to do in such a case? Is the lagrange multiplier the only way?
Thank you very much for any kind of help! =)
Hint
Let $d^2(x,y,z)=f(x,y,z)=x^2+y^2+z^2$ and $g(x,y,z)=2x+3y+z-14=0$ and use Lagrange multipliers as follow
$$\begin{cases} f_x=\lambda g_x \\ f_y=\lambda g_y\\ f_z=\lambda g_z\\ g(x,y,z)=0 \end{cases} $$ After some algebra I got $$x=2, y=3, z=1$$