Q: Find the maximum and minimum values of $f(x,y,z)=x+y+z$ subject to the constraints $x^2-y^2=z$ and $x^2+z^2=4$
My approach: The objective function is $f(x,y,z)=x+y+z$ and the constraint functions are $g(x,y,z)=x^2-y^2-z$ and $h(x,y,z)=x^2+z^2-4$.
then calculate the gradients of $f,g,\text{ and }h$:
\begin{align*}
\vec{\nabla}f(x,y,z)&=<1,1,1> \\
\vec{\nabla}g(x,y,z)&=<2x,-2y,-1>\\
\vec{\nabla}h(x,y,z)&=<2x,0,2z>
\end{align*}
Using $\vec{\nabla}f(x,y,z)=\lambda\vec{\nabla}g(x,y,z)+\mu\vec{\nabla}h(x,y,z)$ and the constraint functions we get:
\begin{align*}
1=\lambda(2x)+\mu(2x)\\
1=\lambda(-2y)\\
1=\lambda(-1)+\mu(2z)\\
x^2-y^2=z\\
x^2+z^2=4
\end{align*}
Now it seem difficult to solve this system of equation as it contain both linear and quadratic equations.
Is there an unofficial general crude checklist I should follow to reduce massive steps to solve this system? Or is this one of those cases where practice makes perfect?
Thanks for your time.
Thanks in advance .


With $$z=x^2-y^2$$ we get $$F(x,y,x^2-y^2)=x+y+x^2-y^2$$ and $$y^2_{1,2}=x^2\pm\sqrt{4-x^2}$$ so we get $$f(x,\pm\sqrt{x^2\pm\sqrt{4-x^2}}x^2-x^2\pm\sqrt{4-x^2})=x\pm\sqrt{x^2\pm\sqrt{4-x^2}}+x^2-x^2\pm\sqrt{4-x^2}$$