Find the point on the plane $ \frac x2 + \frac y4 + \frac z4=1$ that is closest to the point (0, 0, 1)
To minimize the distance, I have the function $f(x, y, z)=(\frac x2)^2+(\frac y4)^2+(\frac z4 -1)^2$ to start with.
However my professor put an X next to this, indicating that it is wrong. I can't think of what else to do.
So you should have a distance formula like
$$ f(x,y,z)=x^2+y^2+(z-1)^2 $$
However, now you must enforce that $(x,y,z)$ is a pair of numbers that satisfies $x/2+y/4+z/4=1$, one way to do this is solve for $z$, $z=4-2x-y$ and substitute into the distance formula.
$$ d(x,y)=x^2+y^2+(4-2x-y-1)^2 $$
The short answer is that you did not enforce the constraint $x/2+y/4+z/4=1$.