A farmer has 500 feet of fencing to enclose a rectangular
field. A barn will be used as part of one side of the field
(see figure). Prove that the area of the field is greatest
when the rectangle is a square.
