Tutorials › Calculus III › Cylindrical Tanks With Unequal Material Costs

Applied Multivariable Optimization · Tutorial 481 of 999

Cylindrical Tanks With Unequal Material Costs

Learn how unequal side and end material prices determine the least-cost radius and height of a closed cylindrical tank with fixed capacity.

Advanced 10 min read

What You'll Learn

  • Write the cost and volume constraint for a closed cylindrical tank
  • Use Lagrange equations to derive the optimal height-to-radius ratio
  • Find the radius and height from the capacity and material costs
  • Prove that the candidate is the unique global minimum
  • Check units and avoid omitting the cost derivative of the two ends

Why Different Material Costs Change the Design

A closed cylindrical tank uses material for its curved side and for its two circular ends. If the materials have different costs per unit area, minimizing the tank’s total surface area is not the same as minimizing its total cost. The least-cost design may be taller or shorter than the familiar design in which every part has the same unit cost.

Let \(r\) be the tank’s radius and \(h\) its height. We assume the tank is a true cylinder with \(r>0\) and \(h>0\), has a fixed positive capacity \(V\), and is made using uniform side and end materials with positive costs per unit area \(c_s\) and \(c_e\), respectively. The tank is closed, so both circular ends are included.

Model: The side area is \(2\pi rh\), the combined area of the two ends is \(2\pi r^2\), and the capacity is \(\pi r^2h\). The material cost and capacity constraint are therefore $$ C(r,h)=2\pi c_srh+2\pi c_er^2, \qquad \pi r^2h=V. $$

The objective is to minimize \(C\) among all positive \(r\) and \(h\) satisfying the capacity constraint. The material costs are positive constants; this model does not include additional costs such as seams, labor, or material waste.

Deriving the Optimal Shape

The fixed-capacity condition makes \(r\) and \(h\) dependent: choosing a radius determines the height required to hold volume \(V\). We can find the optimal shape using the Lagrange multiplier method for one equality constraint. At an interior constrained extremum, when the constraint gradient is nonzero, the objective gradient must be a scalar multiple of the constraint gradient.

Set \(g(r,h)=\pi r^2h\). Both partial derivatives of \(g\) are positive for \(r,h>0\), so its gradient is nonzero on the feasible set. The Lagrange equations, with variables ordered as \((r,h)\), are:

$$ \begin{aligned} C_r&=2\pi c_sh+4\pi c_er, &g_r&=2\pi rh,\\ C_h&=2\pi c_sr, &g_h&=\pi r^2, \end{aligned} $$

Thus, for some multiplier \(\lambda\), the equations are \(C_r=\lambda g_r\) and \(C_h=\lambda g_h\). The derivative \(4\pi c_er\) in \(C_r\) matters: the end-material cost changes when the radius changes, even if the height is held fixed.

$$ 2\pi c_sh+4\pi c_er=\lambda\,2\pi rh, \qquad 2\pi c_sr=\lambda\,\pi r^2. $$

Since \(r>0\), the second equation gives \(\lambda=2c_s/r\). Substituting this into the first gives the relationship between the optimal height and radius:

$$ \begin{aligned} 2\pi c_sh+4\pi c_er &=\frac{2c_s}{r}\,2\pi rh\\ &=4\pi c_sh,\\ 4\pi c_er&=2\pi c_sh,\\ h&=\frac{2c_e}{c_s}\,r. \end{aligned} $$

Now use the capacity constraint to determine the dimensions. Substitution of \(h=(2c_e/c_s)r\) into \(\pi r^2h=V\) gives the optimal radius; the constraint or the height-to-radius relationship then gives the optimal height.

Candidate dimensions: For positive capacity \(V\) and positive unit costs \(c_s,c_e\), the Lagrange equations give $$ r_*=\left(\frac{c_sV}{2\pi c_e}\right)^{1/3}, \qquad h_*=\frac{2c_e}{c_s}\,r_*. $$ The positive cube root is used because a physical radius must be positive.

Why This Candidate Is the Global Minimum

The multiplier calculation identifies an interior candidate, but by itself it does not establish that the candidate minimizes cost. To check the global behavior, use the capacity condition to express height in terms of radius:

$$ h=\frac{V}{\pi r^2},\qquad r>0. $$

Substituting this expression in the cost gives a one-variable function on the entire feasible set:

$$ C(r)=\frac{2c_sV}{r}+2\pi c_er^2,\qquad r>0. $$

Its first and second derivatives are

$$ C'(r)=-\frac{2c_sV}{r^2}+4\pi c_er, \qquad C''(r)=\frac{4c_sV}{r^3}+4\pi c_e. $$

Because \(c_s,c_e,V,r\) are positive, \(C''(r)>0\) for every \(r>0\). Thus \(C'\) is strictly increasing and can have at most one zero. It tends to negative infinity as \(r\) approaches zero from above, and to positive infinity as \(r\) increases without bound, so it has exactly one zero. Setting \(C'(r)=0\) gives \(r^3=c_sV/(2\pi c_e)\), the radius already obtained from the Lagrange equations.

Moreover, \(C(r)\) tends to infinity both as \(r\) approaches zero and as \(r\) increases without bound. Since the unique critical point is a minimum and the cost grows toward either end of the feasible radius range, it is the unique global minimum. This reduction also checks that no feasible radius has been excluded: every \(r>0\) determines exactly one feasible height \(V/(\pi r^2)\).

Worked Example: A Side Material That Costs Twice as Much

Worked Example: A Side Material That Costs Twice as Much

Suppose a closed tank must hold \(V=8\pi\) cubic metres. Let the side material cost \(c_s=2\) dollars per square metre and the end material cost \(c_e=1\) dollar per square metre. Find the least-cost dimensions and check the resulting capacity and cost.

First calculate the radius:

$$ r_*^3 =\frac{c_sV}{2\pi c_e} =\frac{2(8\pi)}{2\pi(1)} =8, \qquad r_*=2\text{ m}. $$

Then calculate the height from \(h_*=(2c_e/c_s)r_*\):

$$ h_*=\frac{2(1)}{2}(2)=2\text{ m}. $$

The capacity check is \(\pi(2\text{ m})^2(2\text{ m})=8\pi\text{ m}^3\), as required. The side area is \(2\pi(2)(2)=8\pi\text{ m}^2\), so its cost is \(2(8\pi)=16\pi\) dollars. The two ends have area \(2\pi(2)^2=8\pi\text{ m}^2\), so their cost is \(1(8\pi)=8\pi\) dollars. Therefore the total cost is \(16\pi+8\pi=24\pi\) dollars.

Here the weighted side cost is twice the weighted end cost. This is consistent with the optimum: the side area, which depends on both radius and height, balances the cost contribution from the two ends.

Worked Example: More Expensive End Material

Worked Example: More Expensive End Material

Now let \(V=8\pi\) cubic metres again, but let \(c_s=1\) dollar per square metre and \(c_e=4\) dollars per square metre. Determine the optimal dimensions and total cost.

The radius is

$$ r_*^3 =\frac{1(8\pi)}{2\pi(4)} =1, \qquad r_*=1\text{ m}. $$

The height is

$$ h_*=\frac{2(4)}{1}(1)=8\text{ m}. $$

Check the capacity: \(\pi(1\text{ m})^2(8\text{ m})=8\pi\text{ m}^3\). The side area is \(2\pi(1)(8)=16\pi\text{ m}^2\), and its cost is \(16\pi\) dollars. The combined end area is \(2\pi(1)^2=2\pi\text{ m}^2\), and its cost is \(4(2\pi)=8\pi\) dollars. The total is \(16\pi+8\pi=24\pi\) dollars.

Compared with the first example, the costly ends lead to a larger height-to-radius ratio: \(h_*/r_*=8\), rather than \(1\). A narrow tank has less end area for a given volume, although it needs more side area. The formula balances those competing cost effects.

Worked Example: Checking Nearby Feasible Designs

Worked Example: Checking Nearby Feasible Designs

Take \(V=36\pi\) cubic metres, \(c_s=3\) dollars per square metre, and \(c_e=2\) dollars per square metre. The formula gives

$$ r_*^3=\frac{3(36\pi)}{2\pi(2)}=27, \qquad r_*=3\text{ m}, \qquad h_*=\frac{2(2)}{3}(3)=4\text{ m}. $$

The capacity is \(\pi(3)^2(4)=36\pi\text{ m}^3\). The side area is \(2\pi(3)(4)=24\pi\text{ m}^2\), costing \(3(24\pi)=72\pi\) dollars. The two ends have area \(2\pi(3)^2=18\pi\text{ m}^2\), costing \(2(18\pi)=36\pi\) dollars. The total cost is \(108\pi\) dollars.

For comparison, choose radius \(2\) m and enforce the same capacity. The corresponding height is \(36\pi/(\pi(2)^2)=9\) m. Its side cost is \(3[2\pi(2)(9)]=108\pi\) dollars, and its end cost is \(2[2\pi(2)^2]=16\pi\) dollars, giving \(124\pi\) dollars in total.

Alternatively, choose radius \(4\) m. The capacity constraint gives height \(36\pi/(\pi(4)^2)=9/4\) m. Its side cost is \(3[2\pi(4)(9/4)]=54\pi\) dollars, and its end cost is \(2[2\pi(4)^2]=64\pi\) dollars, giving \(118\pi\) dollars in total. Both feasible comparisons cost more than \(108\pi\) dollars, in agreement with the global-minimum result.

A Common Derivative Mistake

A frequent error is to differentiate only the side-material term with respect to \(r\). That term does depend on \(r\), but so does the end-material cost \(2\pi c_er^2\). For example, the calculation \(C_r=2\pi c_sh\) is wrong because it omits the derivative of the end cost.

$$ \frac{\partial}{\partial r}(2\pi c_er^2) =4\pi c_er, \qquad C_r=2\pi c_sh+4\pi c_er. $$

Using the incorrect derivative in the first Lagrange equation, while keeping the correct second equation, would give \(\lambda=2c_s/r\) and then \(2\pi c_sh=4\pi c_sh\), forcing \(h=0\). That contradicts the positive capacity constraint. The contradiction is a warning that the derivative was incomplete, not a feature of the tank design. Differentiating every cost term before forming the multiplier equations prevents this error.

Interpreting the Result

The ratio \(h_*/r_*=2c_e/c_s\) describes how the relative prices affect the shape. If end material is more expensive relative to side material, the optimal tank is taller relative to its radius. If side material is more expensive, the optimal tank is shorter relative to its radius. These are relative comparisons: the absolute dimensions also depend on the required capacity.

When the two unit costs are equal, \(c_s=c_e\), the ratio becomes \(h_*/r_*=2\), or \(h_*=2r_*\). Unequal costs therefore adjust the familiar equal-cost shape by changing the balance between the side and end contributions. At the optimum, the cost of the side material is \(4\pi c_er_*^2\), while the cost of both ends is \(2\pi c_er_*^2\), so the side cost is twice the combined end cost.

These formulas are useful for preliminary design when capacity and material prices are known. They describe the optimum under the stated idealized model; real construction may impose additional requirements or costs that change the design problem.

Check Your Understanding

Use the cost model and capacity constraint to answer these questions.

  1. Why does the cost derivative with respect to radius include a term from the two circular ends?
  2. If the end material costs four times as much per unit area as the side material, what is the optimal ratio \(h_*/r_*\)?
  3. For positive costs and capacity, why does the one-variable cost function have only one critical point?
  4. What height is required if a tank has radius \(r\) and fixed capacity \(V\)?
  5. When the side and end materials have equal unit costs, what relationship holds between the optimal height and radius?