Show that the rectangle of largest possible area, for a given perimeter, is a square.
My Attempt:
Let $\textrm {length}=x$ and $\textrm {breadth}=y$. Then,
Perimeter of rectangle $=2(x+y)$
Also, Area of rectangle $=x.y$ $$A=x.y$$ Now, $\dfrac {dA}{dx}=x.\dfrac {dy}{dx}+y.\dfrac {dx}{dx}$ $$=x.\dfrac {dy}{dx}+y$$
You need to use the perimeter of the rectangle $P=2(x+y)$, or $y=P/2-x$. It should be easy to take the derivative. Replace $y$ and $dy/dx$ in your last equation, equate it to $0$, and you obtain that $x=P/4$. Then $y=P/4=x$.