Example 1 — Most area from 24 m of fence
Show the steps and the answer
Name the roles: the perimeter is fixed at 24 m, and the area is to be as large as possible.
Every optimization has one constraint and one goal, and mixing them up leads to the wrong answer.
Use the constraint: length plus width is m, so the sides could be 1 and 11, 3 and 9, 5 and 7, or 6 and 6.
The fence covers two lengths and two widths, so one length plus one width is half of it.
Compare the areas: , , , m².
The area rises as the sides get closer together and peaks when they are equal.
Confirm with the formula: m².
The square with side m gives the largest area for a fixed perimeter.
Answer: m, area m
Takeaway: With a fixed perimeter, a rectangle's area is largest when it is a square; here the square beats the skinniest option by more than three times.