I've got this question in a book of questions I'm doing. Can someone show me step by step how to solve this?
Using Lagrange Multipliers for two constraints, determine the maximum and minimum of the function $f(x,y,z) = 3x^2 + y^2 + 3z^2$ subject to the constraints $x^2 + y^2 + z^2 = 6$ and $x - y + z = 0 $.
We have three functions:
Take the partial derivatives of the three functions, and make a system of equations:
$\begin{cases}f_x=g_x\lambda+h_x\mu \\ f_y=g_y\lambda+h_y\mu \\ f_z=g_z\lambda+h_z\mu \end{cases}$
Solve this system for $x$, $y$ and $z$ respectively, and plug those into the constraints.
This forms a new system of equations:
$\begin{cases}g(\text{with the found }x, y, z \text{ plugged in})=6 \\ h(\text{with the found }x, y, z \text{ plugged in})=0 \end{cases}$
Solve this system for $\lambda$ and $\mu$ and substitute those back into the original equations. This will give the coordinates of the point.