Let C be the curve of intersection of the following two surfaces
$$x^2+y^2=1\tag1$$
$$2x^2+4y^4+z=3\tag2$$
Find points on C which are closest to and furthest from the origin
Given that we are maximizing/minimizing distance, we can define $$f(x,y,z)=d^2=(x-0)^2+(y-0)^2+(z-0)^2=x^2+y^2+z^2$$
My approach included that since we know that $x^2+y^2=1$, we can change $f(x,y,z)$ to $1+z^2$, and therefore only have the 2nd constraint instead of two constraints.
Taking the gradients of both, we get the following system of equations:
$$0=2λx$$
$$0=8λy$$
$$2z=λ$$
$$2x^2+4y^4+z=3$$
I am honestly at a complete loss of where to go from here. For the record, yes I could do this question without eliminating the first constraint, but I'm looking for how to do it this way. Any help would be great!
In fact your curve may be proyected to the plane $OYZ$ and this simplify the problem. This is so because the intersection of $(1)$ and $(2)$ is $$R(y,z)=4y^4-2y^2+z-1=0$$ Hence the functional to minimise is $$f(y,z) =y^2+z^2$$
it results $$\vec{grad}\,f(x,y,z) = \lambda\,\vec{grad}\,R(x,y,z)$$ Resulting $$2\left[\begin{array}{c} y\\ z \end{array}\right]=\lambda\left[ \begin{array}{c} 4y(4y^2-1)\\ 1\end{array}\right] \qquad with \qquad 4y^4-2y^2+z-1=0 $$ Clearly (if I have not committed any mistake) $\lambda=2z$ and the following system wil determine the values for $y$ and $z$ $$y\left[1-4z(4y^2-1)\right]=0$$ $$4y^4-2y^2+z-1=0$$ Since $x$ is not solved, we obtain it from the restriction $x^2+y^2=1$, and the global optimum will be the minimum of $|(x,y,z)|^2$ of the computed points