I have been trying to solve this lagrange problem for an hour with no result. I can't seem to isolate any variable.
$$f(x,y) = y^2 -4xy +4x^2$$
With constraint:
$$x^2 + y^2 = 1$$
I have found $x$ to = $-\left(\frac{λ-4}{2}\right)^2 + 1$. Using the constraint $x$ is also equal to $\sqrt{1-y^2}$. This still leaves me with two unknowns. I have tried solving for lambda and setting them equal to each other and I end up with $x^2 = y^2-\frac{3xy}{2}$.
There are still two unknown variables here. I am not sure what I should be isolating to get an answer to work with.
I would say the most direct way to do this would be to but this into matrix form.
$f(x,y)= \mathbf x^T A \mathbf x$
That is $f(x,y)= \begin{bmatrix} x&y \end{bmatrix} \begin{bmatrix} 4&-2\\-2&1 \end{bmatrix}\begin{bmatrix} x\\y \end{bmatrix}$
And the eigenvalues:
$\lambda$ is an eigevalue and $\mathbf v$ is and eigenvector if
$A\mathbf v = \lambda \mathbf v\\ (A-\lambda I)\mathbf v = \mathbf 0\\ \det (A-\lambda I) = 0$
$A-\lambda I = \begin{bmatrix} 4-\lambda&-2\\-2&1-\lambda \end{bmatrix}\\ \det (A-\lambda I) = \lambda^2 - 5\lambda = 0$
$\lambda = 0,5$ which will be the min and the max. And the normalized eigenvalues are the coordiniates that maximise and minimize.
$\lambda = 0\\ A\mathbf v = \mathbf 0\\ \begin{bmatrix} 4&-2\\-2&1 \end{bmatrix}\mathbf v = 0\\ \mathbf v = \begin{bmatrix} 1\\2 \end{bmatrix}$
$\lambda = 5\\ (A-2I)\mathbf v = \mathbf 0\\ \begin{bmatrix} -1&-2\\-2&-4 \end{bmatrix}\mathbf v = 0\\ \mathbf v = \begin{bmatrix} -2\\1 \end{bmatrix}$
But that isn't Lagrange multipliers:
Before getting to far, notice:
$f(x,y) = (y-2x)^2$
$\forall x,y, f(x,y) \ge 0$
There is an $(x,y)$ pair that satisfies the constraint such that $f(x,y) = 0$
$(\frac {1}{\sqrt5},\frac {2}{\sqrt5}),(-\frac {1}{\sqrt5},-\frac {2}{\sqrt5})$
Method of Lagrange multipliers:
$F(x,y,\lambda) = (y-2x)^2 + \lambda(x^2+y^2 -1 )\\ \frac {\partial F}{\partial x} = -4(y-2x) + 2\lambda x = 0\\ \frac {\partial F}{\partial y} = 2(y-2x) + 2\lambda y = 0\\ $
Adding twice the second to the first we get
$2\lambda x + 4\lambda y = 0$
Either $\lambda = 0$ and $y = 2x.$ This is the minimum we found above.
$x = -2y$ must be our maximum. Plug it into the constraint ...
$(\frac{2}{\sqrt 5},-\frac {1}{\sqrt 5}),(-\frac{2}{\sqrt 5},\frac {1}{\sqrt 5})$
$f(\frac{2}{\sqrt 5},-\frac {1}{\sqrt 5}) = 5$