Find the maximum and minimum value of $f(x)=x^2+2y^2+3z^2$ in the region $D=\{(x,y,z)\in \mathbb R^3| x^2+y^2+z^2=1\}$. and find a unit vector at which the maximum and minimum are attained respectively.
Attempt: I know I need to proceed by Lagrange multiplier method, but I am not sure how to proceed after a step
we will get the equations as $$x=\lambda x$$$$y=\frac{\lambda}{2} y$$$$z=\frac{\lambda}{3} z$$$$x^2+y^2+z^2=1$$
Now how to solve them?