How much GAA training space can you enclose with 40 m of fencing?
Your GAA club has forty metres of fencing for a rectangular training area. A long, narrow rectangle uses all the fencing. A wider one can use it all too. Which shape gives you the most room to train?
Think back to curve sketching. The derivative gives you the slope of the tangent. Read the curve from left to right: it rises, levels off, then falls. The slope goes from positive to zero to negative, so the marked point is a maximum.
Call the width x and the length y, both in metres. The fencing goes around two widths and two lengths, so two x plus two y equals forty. Divide by two to get x plus y equals twenty. That's your perimeter constraint.
You have thirty metres of fencing this time. The width is x metres. Use the fact that the width plus the length is half the perimeter, then pick the expression for the length.
Back to forty metres. Since x plus y is twenty, the length is twenty minus x. Area is width times length, so put twenty minus x in place of y. Now you have an area function that depends only on x.
Your width must be positive. Your length, twenty minus x, must also be positive. Together these conditions put x strictly between zero and twenty. As x approaches either end, the area approaches zero. For comparison, use the same formula on the closed interval, including both ends.
Expand and differentiate to get twenty minus two x. Set it to zero: only x equals ten works. That gives one hundred square metres. Both endpoint areas are zero. The polynomial is continuous on the closed interval and differentiable inside it, so these are all the candidates. Ten is feasible and wins.
Now you have twenty-four metres of fencing. If the width is x, the length is twelve minus x. Write the area, find its stationary point and compare its area with the boundary values. Pick the greatest area.
After seeing zero at both boundaries, you might call it the minimum. Every feasible rectangle has positive area, though. You can make that area as small as you like by letting the width approach zero. Since you never reach zero, there is no least possible area.
Look for the wording: find the dimensions of the rectangle for which the area is a maximum. Ten gives you the width. Use the constraint to find the length as well. Finish with both dimensions in metres: ten metres by ten metres.