plane $x+y-z=-2$ intersects $z^2=x^2+y^2$
I need to use Lagrange multipliers to determine the point of intersection which is the closest to the origin.
As far as I understand, to use Lagrange I need a function $f(x,y,z)$ so that: $$f(x,y,z)=\lambda G(x,y,z)+\mu F(x,y,z)$$
But what function $f$ should I use here?
$f(x,y,z)=\sqrt{x^2+y^2+z^2}$ assuming that you are talking about the Euclidean minimum distance
Here you have two constraints, that means two Lagrangian multipliers namely
$\lambda_1$ and $\lambda_2$ for the constraints $x+y-z+2=0$ and $x^2+y^2-z^2=0$. One can write them all as
$$\mathcal{L}(x,y,z,\lambda_1,\lambda_2)=\sqrt{x^2+y^2+z^2}+\lambda_1(x+y-z+2)+\lambda_1(x^2+y^2-z^2)$$