Learn / Library / Calculus
A pen against a wall
A farmer has m of fencing to build a rectangular pen along a long straight wall, so only sides need fencing. What is the largest possible area of the pen, in m²? Give the answer as an integer.
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Take the side perpendicular to the wall as the variable and write the area as a quadratic.
Solution
- Let each side perpendicular to the wall be ; the side parallel to it is then .
- The area is .
- Then , which is zero at , and the parabola opens downward, so this is the maximum.
- The pen is by , and its area is .
Answer: