← Back to learning objective

Maximizing enclosed area with fixed fencing along a river

A farmer wants to enclose a rectangular region along a straight river using 400 m of fencing. Since the river forms one side of the rectangle naturally, no fencing is needed along that side — the farmer only needs to fence the other three sides.

Let xx be the length (in meters) of each of the two sides perpendicular to the river, and let yy be the length (in meters) of the side parallel to the river. The farmer has exactly 400400 m of fencing to use on these three sides. What is the maximum possible enclosed area, in square meters?

Hint

Write the constraint 2x+y=4002x + y = 400 and the area A=xyA = xy. Use the constraint to eliminate yy, express AA as a function of xx alone, determine the domain from the requirement that xx and yy be positive, then find the critical point of A(x)A(x).

Step-by-step solution

The fencing constraint is 2x+y=4002x + y = 400, since two sides of length xx and one side of length yy use all the fencing. Solving for yy gives y=400−2xy = 400 - 2x. The area to maximize is A=xy=x(400−2x)=400x−2x2A = xy = x(400 - 2x) = 400x - 2x^2, defined for 0<x<2000 < x < 200 so that both xx and yy stay positive.

Differentiating gives A′(x)=400−4xA'(x) = 400 - 4x. Setting A′(x)=0A'(x) = 0 yields x=100x = 100, and since A′′(x)=−4<0A''(x) = -4 < 0, this critical point is a maximum. Then y=400−2(100)=200y = 400 - 2(100) = 200, so the maximum area is A=100⋅200=20,000A = 100 \cdot 200 = 20{,}000 square meters.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap