Math · Optimization
Dimensions and maximum area of a rectangular pen
A farmer has 200 m of fence and wants to enclose a rectangular pen against a long wall (with no fence along the wall). Find the dimensions of the pen that give the largest area, and determine that maximum area.
- Total length of fencing
- 200 m
- Number recomputed
Recomputed from the given data. Side perpendicular to wall x (m): 200 / 4 = 50 matches. Side parallel to wall y (m): 200 / 2 = 100 matches. Maximum area (m^2): (200 / 4) * (200 / 2) = 5000 matches. - Steps not machine-checked
The computer algebra check could not read the formulas of this solution (words, units, or equations to solve are not checked). - A second model agrees
A second model solved it without seeing the first answer and got the same numbers: The pen should be 50 m perpendicular to the wall and 100 m along it, giving a maximum area of 5,000 m².
Solution
Define the dimensions of the rectangular pen and write the constraint equation for the total length of the fence. Let be the length in meters of each of the two sides perpendicular to the wall, and let be the length in meters of the side parallel to the wall. Since no fencing is needed along the wall, the total fencing of equals the sum of these three sides.
(1)Use the formula for the area of a rectangle, , and substitute to express the area as a function of a single variable (with ).
(2)Apply the first derivative test for optimization (or the vertex formula for a downward-opening parabola) by setting to find the critical point that maximizes the area.
(3)Area of the Pen as a Function of Side Length x · The area A(x) = 200x - 2x² reaches its maximum of 5000 m² at x = 50 m. Since , the critical point gives the absolute maximum area. Substitute back into the constraint and area equations to find the parallel side and the maximum area .
(4)Optimal Rectangular Pen Against the Wall · Top view of the 50 m by 100 m rectangular pen enclosed by 200 m of fence on three sides against the wall along the top edge.
Answer
The dimensions that maximize the area are 50 m perpendicular to the wall by 100 m parallel to the wall, giving a maximum area of 5000 m².