Question

Minimizing the cost of an open-top rectangular box

Original question: You Try:

  1. Consider an open-top box which is to have a volume of 216 cubic inches. Suppose the material for the base is 20 cents/in2^2 and the cost of the material for the sides is 30 cents/in2^2. What are the dimensions of the box that would minimize the cost to build the box?

V=x2hV = x^2h

216=x2h216 = x^2h

216x2=h\dfrac{216}{x^2} = h

Cost = .2x2+.3(4xh).2x^2 + .3(4xh)

C=.2x2+1.2xhC = .2x^2 + 1.2xh

C=.2x2+1.2x(216x2)C = .2x^2 + 1.2x\left(\dfrac{216}{x^2}\right)

2nd -> trace -> min

(8.65,44.93)(8.65, 44.93)

x=8.65x = 8.65

h=2168.652=2.89h = \dfrac{216}{8.65^2} = 2.89

8.65in×8.65in×2.89in8.65\,\text{in} \times 8.65\,\text{in} \times 2.89\,\text{in}

Expert Verified Solution

thumb_up100%(1 rated)

Key concept: This is a classic constrained optimization problem: one variable determines the box dimensions, and the cost function is minimized with calculus.

Step by step

Set up the constraint and cost function

Let the square base have side length xx and height hh. Since the volume is fixed at 216 cubic inches,

x2h=216,x^2h=216,

so

h=216x2.h=\frac{216}{x^2}.

The cost is different for the base and the sides. The base costs 20 cents per square inch, so its cost is

0.2x2.0.2x^2.

The sides have total area 4xh4xh, and they cost 30 cents per square inch, so the side cost is

0.3(4xh)=1.2xh.0.3(4xh)=1.2xh.

That gives the cost function

C(x)=0.2x2+1.2x(216x2)=0.2x2+259.2x.C(x)=0.2x^2+1.2x\left(\frac{216}{x^2}\right)=0.2x^2+\frac{259.2}{x}.

Differentiate and find the critical point

Differentiate with respect to xx:

C(x)=0.4x259.2x2.C'(x)=0.4x-\frac{259.2}{x^2}.

Set the derivative equal to zero:

0.4x259.2x2=0.0.4x-\frac{259.2}{x^2}=0.

Multiply by x2x^2:

0.4x3=259.2.0.4x^3=259.2.

So

x3=648,x^3=648,

and therefore

x=6483=8.64.x=\sqrt[3]{648}=8.64.

Since the cost function has a positive second derivative for x>0x>0, this critical point gives a minimum.

Compute the height and interpret the result

Now substitute x=8.64x=8.64 into the volume equation:

h=2168.6422.89.h=\frac{216}{8.64^2}\approx 2.89.

So the dimensions that minimize cost are

8.64 in×8.64 in×2.89 in.8.64\text{ in} \times 8.64\text{ in} \times 2.89\text{ in}.

This makes sense physically: when side material is more expensive than base material, the optimal box is relatively wider and shorter rather than tall and narrow.

Common calculus takeaway

The key idea is to rewrite the cost in one variable before differentiating. If you leave both xx and hh in the expression, you cannot minimize efficiently. The volume equation is what lets you eliminate hh and build a single-variable optimization problem.

Pitfall alert

A common mistake is treating the side area as 4x24x^2 instead of 4xh4xh. The sides are rectangles, not squares, so each side has area xhxh, and there are four of them. Another frequent error is forgetting to convert cents into dollars consistently. The units do not change the minimizing dimensions, but they do matter if you want a correct cost function. Finally, some students stop after finding a critical point without checking whether it is a minimum; here, the second derivative test or the shape of the cost graph confirms the result.

Try different conditions

If the box were not square-based and instead had a rectangular base with length xx and width yy, the setup would change to xyh=216xyh=216 and the cost would depend on both xx and yy. For example, if the problem became: "An open-top box has base dimensions xx by 2x2x with volume 216," then the single-variable cost function would be different, and the minimizing dimensions would not be equal on the base. The optimization method is the same, but the algebra changes because the geometry of the base changes.

Further reading

constrained optimization, cost function, open-top box

FAQ

How do you build the cost function for an open-top box with a fixed volume?

Use the volume equation to write the height in terms of the base side length, then express the base cost and side cost with that single variable. Add them to form one cost function before differentiating.

Why does the derivative give the box dimensions with minimum cost?

Critical points of the cost function occur where the slope is zero. For this problem, the cost function is convex for positive dimensions, so the critical point corresponds to the minimum cost box.

chat