As the title says i want to find $(x,y,z)\in \mathbb{R}$ that are connected with thse two "equations": $$z^2-x^2-y^2=0$$ $$x-2z-3=0$$ And are the closest or most far away from origin $(0,0,0)$ So i know i need to use Lagrange multipliers and than find maximums and minimums with a system, but i get lost at trying to get that. Normally i had a function and then some "sub"functions but now i don't have a main function or i just don't notice how to solve it using calculus. I think it's solved with Lagrange multiplier, if not i am ope for suggestions.
Any help would be appreciated.
A first remark, if I may : minimizing the distance is the same as minimizing the square of the distance.
So, you want to minimize $$f=x^2+y^2+z^2$$ subject to the constraints $$z^2-x^2-y^2=0\qquad , \qquad x-2z-3=0$$ So, let us define $$F=x^2+y^2+z^2+\lambda(z^2-x^2-y^2)+\mu(x-2z-3)$$ and work as usual. $$F'_x=2x -2 \lambda x+\mu$$ $$F'_y=2 y-2 \lambda y$$ $$F'_z=2z+2 \lambda z-2 \mu $$ $$F'_\lambda=z^2-x^2-y^2$$ $$F'_\mu=x-2z-3$$ At the extremum, all the derivatives must be $0$.
I am sure that you can take it from here.