Tutorials › Calculus I › Maximizing The Volume Of An Open Box

Optimization and Newton's Method · Tutorial 870 of 1495

Maximizing The Volume Of An Open Box

Learn how to express the box’s volume in terms of the corner cut, find the feasible domain, and prove which cut size gives the maximum.

Advanced 10 min read

What You'll Learn

  • Translate a rectangular sheet and equal corner cuts into the box’s three dimensions
  • Determine the feasible cut sizes from both sheet dimensions
  • Derive and differentiate the cubic volume function
  • Identify which critical point lies in the feasible domain
  • Compare the critical point with boundary values to establish a global maximum
  • Check the result using exact dimensions and volume

From a Flat Sheet to an Open Box

Cutting equal squares from the corners of a rectangular sheet and folding up the remaining sides is a standard way to make an open-top box. The optimization question is to find the cut size that gives the largest volume. The dimensions of the sheet constrain the cut, and the resulting volume depends on all three dimensions of the folded box.

Let the sheet have length \(L\) and width \(W\), with \(L\ge W>0\). Cut a square of side \(x\) from each of its four corners. After folding, the height of the box is \(x\). Each horizontal dimension is reduced at both ends, so the base has length \(L-2x\) and width \(W-2x\).

Definition: For a rectangular sheet with dimensions \(L\ge W>0\), the open box formed by cutting four corner squares of side \(x\) has height \(x\), base dimensions \(L-2x\) and \(W-2x\), and volume \(V(x)=x(L-2x)(W-2x)\).

Here \(L\), \(W\), and \(x\) are lengths in the same units. The volume is measured in cubic units. The factor of \(2\) in each base dimension matters: a cut removes material from both ends of that dimension.

Feasible Cut Sizes

A physical box with positive height and positive base dimensions requires \(x>0\), \(L-2x>0\), and \(W-2x>0\). Since \(L\ge W\), the width constraint is the more restrictive one. Thus the cut sizes that produce a nondegenerate box satisfy

$$ 0<x<\frac{W}{2}. $$

For comparing boundary values, it is useful to extend the volume formula to the closed interval \(0\le x\le W/2\). At \(x=0\), the height is zero, so the volume is zero. At \(x=W/2\), the base width is zero, so the volume is again zero. Neither endpoint produces a positive-volume box, but both are legitimate boundary values of the extended function.

Substituting the dimensions into the volume formula gives the objective function

$$ V(x)=x(L-2x)(W-2x) =4x^3-2(L+W)x^2+LWx. $$

This is a continuous function on the closed feasible interval. Its maximum on that interval must occur at a boundary point or at an interior critical point, where the derivative is zero. The boundary values alone cannot be the maximum if an interior cut gives positive volume.

Finding the Critical Points

Differentiate the expanded cubic:

$$ V'(x)=12x^2-4(L+W)x+LW. $$

Setting the derivative equal to zero gives a quadratic equation. The quadratic formula produces two roots. Define \(D=\sqrt{L^2-LW+W^2}\), which is positive because \(L\) and \(W\) are positive. The roots are

$$ x_-=\frac{L+W-D}{6}, \qquad x_+=\frac{L+W+D}{6}. $$

Having two algebraic roots does not mean both are feasible. Only a root in the interval \(0<x<W/2\) can describe a nondegenerate box. The shorter sheet dimension determines which root is relevant.

Theorem: If \(L\ge W>0\), then \(x_-\) lies strictly between \(0\) and \(W/2\), while \(x_+\ge W/2\). Therefore the only interior critical point on the feasible interval is \(x_-=(L+W-\sqrt{L^2-LW+W^2})/6\).

Why the Feasible Critical Point Is the Global Maximum

We can establish the theorem and the maximum claim directly. First, \(D<L+W\): both quantities are positive, and

$$ (L+W)^2-D^2 =(L^2+2LW+W^2)-(L^2-LW+W^2) =3LW>0. $$

Thus \(x_->0\). To show \(x_-<W/2\), rearrange the inequality to \(L-2W<D\). If \(L-2W\le0\), this holds because \(D>0\). If \(L-2W>0\), then

$$ D^2-(L-2W)^2 =3W(L-W)\ge0. $$

In this case \(L>2W\), so \(L>W\) and the right-hand side is strictly positive. Both quantities being compared are positive, hence \(D>L-2W\). This proves \(x_-<W/2\).

For the other root, \(x_+\ge W/2\) is equivalent to \(D\ge2W-L\). If \(2W-L\le0\), that is immediate. If \(2W-L>0\), then

$$ D^2-(2W-L)^2=3W(L-W)\ge0. $$

Since both sides of \(D\ge2W-L\) are then nonnegative, the squared inequality implies the desired inequality. This proves that \(x_+\) is not an interior feasible critical point. When \(L=W\), it equals the boundary value \(W/2\); when \(L>W\), it lies beyond that boundary.

Finally, the derivative factors using its two roots:

$$ V'(x)=12(x-x_-)(x-x_+). $$

For \(0\le x<x_-\), both factors in parentheses are negative, so \(V'(x)>0\). For \(x_-<x<W/2\), the first factor is positive and the second negative, so \(V'(x)<0\). Thus the volume increases up to \(x_-\) and decreases after it across the feasible interval. The endpoint volumes are both zero, while \(V(x_-)>0\) because all three dimensions are positive there. Consequently, \(x_-\) gives the global maximum, not merely a local maximum.

Worked Example: A 16-by-10 Sheet

Worked Example: A 16-by-10 Sheet

A rectangular sheet measures \(16\text{ cm}\) by \(10\text{ cm}\). Find the corner cut that maximizes the volume, and verify the result.

Take \(L=16\) cm and \(W=10\) cm. The feasible interval is

$$ 0<x<\frac{10}{2}=5\text{ cm}. $$

The volume function and its derivative are

$$ V(x)=x(16-2x)(10-2x), \qquad V'(x)=12x^2-104x+160. $$

Factor the derivative:

$$ V'(x)=4(3x^2-26x+40) =4(3x-20)(x-2). $$

The critical points are \(x=20/3\) cm and \(x=2\) cm. Since \(20/3>5\), that root is outside the feasible interval. The feasible critical point is \(x=2\) cm. The resulting dimensions are height \(2\) cm, length \(16-2(2)=12\) cm, and width \(10-2(2)=6\) cm. Therefore

$$ V(2)=2\cdot12\cdot6=144\text{ cm}^3. $$

On the closed interval, the boundary values are \(V(0)=0\) and \(V(5)=5(16-10)(10-10)=0\). The interior critical point has positive volume, and the derivative changes from positive to negative there. Hence the maximum is \(144\text{ cm}^3\), achieved by cutting out \(2\text{ cm}\) squares.

As a check, the derivative factors as \(4(3x-20)(x-2)\), so its sign is positive between \(0\) and \(2\), and negative between \(2\) and \(5\). This confirms that the calculated volume is the maximum within the feasible interval.

Worked Example: A Square Sheet

Worked Example: A Square Sheet

A square sheet has side length \(12\text{ cm}\). Find the maximum-volume box and check the boundary and critical-point values.

Here \(L=W=12\) cm, so \(0<x<6\) cm and

$$ V(x)=x(12-2x)^2 =4x^3-48x^2+144x. $$

Differentiating and factoring gives

$$ V'(x)=12x^2-96x+144 =12(x-2)(x-6). $$

The critical points are \(x=2\) cm and \(x=6\) cm. The latter is the boundary, where the base dimensions vanish, so it does not produce a nondegenerate box. At \(x=2\) cm, the box has height \(2\) cm and a square base with side \(12-4=8\) cm. Its volume is

$$ V(2)=2\cdot8\cdot8=128\text{ cm}^3. $$

The closed-interval boundary values are \(V(0)=0\) and \(V(6)=6(0)(0)=0\). The derivative is positive on \(0<x<2\) and negative on \(2<x<6\), so \(x=2\) gives the global maximum. The maximum volume is \(128\text{ cm}^3\).

Worked Example: Rejecting an Infeasible Root

Worked Example: Rejecting an Infeasible Root

A sheet measures \(8\text{ cm}\) by \(5\text{ cm}\). Find the maximizing cut, paying particular attention to the feasible domain.

Set \(L=8\) cm and \(W=5\) cm. The cut must satisfy \(0<x<5/2\) cm. The volume and derivative are

$$ V(x)=x(8-2x)(5-2x) =4x^3-26x^2+40x, \qquad V'(x)=12x^2-52x+40. $$

Factor the derivative:

$$ V'(x)=4(3x^2-13x+10) =4(3x-10)(x-1). $$

The roots are \(x=10/3\) cm and \(x=1\) cm. Because \(10/3>5/2\), the first root is infeasible; it would make the shorter base dimension negative. The feasible critical point is \(x=1\) cm. The box dimensions are \(1\) cm high, \(8-2=6\) cm long, and \(5-2=3\) cm wide. Its volume is

$$ V(1)=1\cdot6\cdot3=18\text{ cm}^3. $$

The boundary values on the closed interval are \(V(0)=0\) and \(V(5/2)=0\), since the base width is zero at the latter point. The derivative is positive from \(0\) to \(1\) and negative from \(1\) to \(5/2\). Thus the cut of \(1\) cm gives the global maximum, \(18\text{ cm}^3\).

A Common Modeling Mistake

A frequent error is to subtract \(x\), rather than \(2x\), from each base dimension. For the \(16\text{ cm}\) by \(10\text{ cm}\) sheet, that mistake would assign a cut of \(2\text{ cm}\) the dimensions \(14\text{ cm}\) and \(8\text{ cm}\), and give the incorrect volume

$$ 2\cdot14\cdot8=224\text{ cm}^3. $$

But each horizontal dimension loses a corner square at both ends. The correct dimensions are \(16-2(2)=12\) cm and \(10-2(2)=6\) cm, giving \(2\cdot12\cdot6=144\text{ cm}^3\). The correction is to track the two removed lengths separately in each direction before writing the volume function.

A second important check is to test every critical point against the feasible interval. A derivative equation describes stationary points of the algebraic function, but a root outside the interval cannot describe a possible box. The \(8\)-by-\(5\) example shows why finding the roots is not the end of the optimization problem.

Why Boundary Values Matter

The maximum-volume cut is an interior point, but checking the boundaries completes the global comparison. The physical domain excludes both endpoints because each gives a degenerate shape rather than a box of positive height and base area. Nevertheless, the volume formula extends continuously to the closed interval, and its values at both endpoints are zero. The interior critical point has positive volume, so it exceeds both boundary values.

This comparison also distinguishes the problem’s actual geometry from the closed-interval method used to establish a maximum. The extended interval is a tool for checking all possible limiting cases; it does not make a zero-height or zero-width object a valid box. The final maximizing cut lies strictly inside the physical domain, so it is attainable.

Check Your Understanding

Use the volume model and feasible-domain reasoning to answer the following questions.

  1. For a sheet with \(L\ge W>0\), why is the feasible cut interval determined by \(W\) rather than \(L\)?
  2. Write the volume function for a sheet measuring \(14\) by \(8\) units, and state its feasible cut interval.
  3. Why must each base dimension decrease by \(2x\), rather than by \(x\)?
  4. What does it mean if a critical point of the volume function lies outside the feasible interval?
  5. For a positive feasible cut, why is its volume greater than the volume at either boundary of the closed interval?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon