I am trying to find the largest possible area of a rectangular box having diagonal length L, by method of Lagrange Multipliers.
Here is my approach:
Let $f(x,y) = xy$ define the area of a rectangular box with length $x$, width $y$.
By Pythagorean Theorem, $L^2 = x^2 + y^2$, so that $L = \sqrt{x^2+y^2}$.
Define the constraint function $G(x,y) = \sqrt{x^2 + y^2} - L$
Computing the gradients,
$\nabla f(x,y) = (y,x)$
$\nabla G(x,y) = (x(x^2+y^2)^{-1/2}, y(x^2+y^2)^{-1/2})$
Then by method of Lagrange Multipliers,
$$ y = \lambda x(x^2 + y^2)^{-1/2} $$
$$ x = \lambda y (x^2+y^2)^{-1/2}$$
It is clear to me that one candidate for a critical point is when $x = y = 0$ (from the gradient of f), and $f(0,0) = 0$. With some algebra you can also determine that $x^2 = y^2$ so that $x = y$. But that's as far as I can go. As I don't have any numerical values, I assume I'm finding a general expression that determines the largest possible area of the box.
Any help appreciated.