Lagrange Multipliers, maximize $f=xy$ restricted to $g=x^2+y^2=r^2$ So I have to solve the system of equations
$$\cases{\nabla f = \lambda \nabla g\\x^2+y^2 = r^2}.$$
Then $y=2\lambda x, x=2\lambda y$. Sorry if this is obvious, but how can I get $x$ and $y$ only as a function of $\lambda$? Otherwise I'm not able to find the values $\lambda$ to evaluate them and find a maximum.

Since $y = 2\lambda x$ and $x = 2\lambda y$, $x^2 + y^2 = 4\lambda^2(x^2 + y^2)$, i.e., $r^2 = 4\lambda^2 r^2$. Thus $4\lambda^2 = 1$, yielding $\lambda = \pm 1/2$. If $\lambda = 1/2$, then $y = x$, so from the condition $x^2 + y^2 = r^2$, we obtain $x = y = \pm r/\sqrt{2}$. If $\lambda = -1/2$, then $y = -x$, so the condition $x^2 + y^2 = r^2$ results in $x = r/\sqrt{2}$ and $y = -r/\sqrt{2}$ or $x = -r/\sqrt{2}$ and $y = r/\sqrt{2}$. The point $ (r/\sqrt{2}, r/\sqrt{2})$ (and $(-r/\sqrt{2}, -r/\sqrt{2})$) maximizes $xy$, with maximum $r^2/2$.
