Exercise 1: Constraint, objective function and domain
A farmer has 200 metres of fencing to enclose a rectangular pen against the wall of a barn, which therefore needs no fence. We look for the maximum area.
- a) Draw the diagram, name the variables, then write the function to optimize and the constraint.
- b) Reduce the problem to a single variable and establish the physically admissible domain.
- c) Find the dimensions that maximize the area, and JUSTIFY that this really is an absolute maximum.
- d) What becomes of the answer if the pen must be fenced on all four sides? Compare the two shapes obtained and comment.
Show the solution
Answers
- a) with
- b) on
- c) m, m: m²
- d) Square of side m: m², half as much
Diagram: a rectangle with one side of length along the barn wall, and the other three sides fenced, namely the side opposite the wall and the two sides of width . Function to OPTIMIZE: the area . CONSTRAINT: the available fencing gives . Translating the statement decides everything: mixing up the two relations, or fencing four sides when the wall spares one, brings down the whole rest of the problem even if the computation that follows is flawless.
From the constraint, , which we substitute into the area: . Domain: we need and , that is, . The admissible domain is therefore , or if we accept the degenerate cases of zero area. Taking the CLOSED interval is convenient here, because it lets us invoke the Extreme Value Theorem directly in part c).
, which vanishes for . Then and the area is m². Justification: on the closed interval , the continuous function reaches its absolute maximum, and the candidates are the critical number and the endpoints. Now and , while : the absolute maximum is indeed reached at ✓. We could also conclude from , which shows a parabola that is concave down, so a vertex that is a maximum. The optimal dimensions are m parallel to the wall and m perpendicular to it.
With four fenced sides, the constraint becomes , that is, and . The area is , whose derivative vanishes at , hence : we get a SQUARE with sides of 50 m and an area of m². Comparison: with the same length of fencing, the pen against the wall reaches m², exactly TWICE as much. The optimal shape changes too: a square in the second case, a rectangle twice as long as it is wide in the first. The explanation fits in one sentence: the wall provides one side for free, and the optimum always consists in sharing the fencing evenly between the two DIRECTIONS, here 100 m for the direction parallel to the wall and m for the perpendicular direction. This principle of balance between directions comes back in almost every geometric optimization problem.
Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.