Im supposed to find the max/min values of $u$ where $u = x^2 + y^2 + z^2$ where $ax^2 +by^2+cz^2+2fyz+2gzx+2hxy=1 $
I have just learnt the principle of Lagrange multipliers so i tried doing $\nabla f= \lambda \nabla g$ to this problem but it becomes really really long and I don't think it simplifies too....can anyone please give me a hint of how to proceed in a simple manner?
You are being asked for the eigenvectors (specific multiple to be decided) of $$ W = \left( \begin{array}{ccc} a&h&g \\ h&b&f \\ g&f&c \\ \end{array} \right) $$ Various notes. If $W$ is positive definite, you have an ellipsoid, and a complete answer is possible. If $W$ is negative definite, the given set $x^T W x = 1$ is empty over the reals.
Anyway, as a column vector, the gradient of $x^T W x$ is just $2Wx.$ The gradient of the other thing is $2x.$ You are being asked for $Wx = \lambda x,$ meaning eigenvector. Suppose we start out by demanding unit eigenvector. Are we done? Well, we need $x^T W x = 1.$ Then $x^T \lambda x = \lambda (x \cdot x) = \lambda |x|^2 = 1.$ So we demand an eigenvector with $|x| = \frac{1}{\sqrt \lambda}$
I will need to think what sensible things might be said when $W$ is indefinite; mostly, you still get a minimum if there are any positive eigenvalues, but no maximum if there are any negative eigenvalues, think of hyperbolas.