You can put this solution on YOUR website! Let L and W be the length and width of the rectangle.
The perimeter is,
So,
The area of the rectangle is,
From the perimeter,
Substitute,
To find the extremum, set the derivative of A equal to zero.
So then,
The maximum area for a given perimeter is actually a square.