• Support PF! Buy your school textbooks, materials and every day products via PF Here!

Optimization of a rectangular box with no top

  • Thread starter Derill03
  • Start date
I am told in the problem that i am to minimize the amount of cardboard needed to make a rectangular box with no top have a volume of 256 in^3? I am to give dimensions of box and amount of cardboard needed.

Can anyone help
let x, y, z be sides of the box. try to maximise the volume first to find the relations between x, y, z
let x, y, z be sides of the box. try to maximise the volume first to find the relations between x, y, z
The OP doesn't need to maximize the volume--it's given as 256 cu. in. Also, I would use l, w, and h as variables, instead of x, y, and z.

Is your description of the problem exactly as you were given it? The way you wrote it, the area function will be in two variables.
Let x, y, z be the dimensions of the box.


V = xyz = 256.
A = xy + 2xz + 2yz (is the function you want to minimize).

Set up a system of equations and solve using calculus. You will need to use the second derivative test with partial derivatives for this.

Answer (to check yourself against):

=> x = 8.
=> y = 8.
=> z = 4.
can you help me find the function i need to apply partials and derivative test too, that is my trouble with this problem?
It's the "A" function. Typically, when you want to minimize the material to make a thinly-walled box, you are interested in the surface area.

So A = xy + 2xz + 2yz is the function that needs minimizing.

We know that x = 256/yz. So

A = 256/z + 256/y + 2yz

Take the partials with respect to y, z, and set equal to zero. Solve. Yields critical point.
I keep getting A= 256/z + 512/y + 2yz because the 2xz term multiplies the 256*2? Is this correct or how did you get 256/y?


Science Advisor
Homework Helper
You can also use the "Lagrange multiplier" method. In order to minimize f(x,y,z), while subject to the condition g(x,y,z)= constant, then the gradients must be in the same direction- [itex]\nabla f[\itex] must be a multiple of [itex]\nabla g[/itex] or [itex]\nabla f= \lambda\nabla g[/itex] ([itex]\lambda[/itex] is the "Lagrange multiplier")- so you differentiate both functions.

Here, f(x,y,z)= 2xy+ 2yz+ 2xz and g(x,y,z)= xyz= 256. [itex]\nabla f= (2y+ 2z)\vec{i}+ (2x+2z)\vec{j}+ (2y+ 2x)\vec{k}[/itex] and [itex]\nabla g= yz\vec{i}+ xz\vec{j}+ xy\vec{k}[/itex] so [itex]2y+ 2z= \lambda yz[/itex], [itex]2x+ 2z= \lambda xz[/itex], [itex]2y+ 2x= \lambda xy[/itex]. Since we don't really need to determine [itex]\lambda[/itex] one method I like to solve equations like these is to divide one equation by another:
[tex]\frac{2y+ 2z}{2x+ 2z}= \frac{y}{x}[/tex]
[tex]\frac{2x+ 2y}{2y+ 2x}= \frac{x}{z}[/tex]

Those can be written as [itex]y^2+ zy= xy+ yz[/itex] or y= x and [itex]xz+ yz= xy+ x^2[/itex] or z= x. That is, x= y= z (which is reasonable from symmetry considerations). Putting x= y= z into xyz= 256, we have x3= 256= 28= 43(4) so [itex]x= y= z= 4\sqrt[4]{4}[/itex].
Derill03: you're right, it should be 512 and not 256.
HallsOfIvy: You're wrong, just because you didn't read the question carefully enough. It's a box with no top; your f(x) is wrong.

I actually worked this out without doing a line of math, and I think you hearing it is good for you.

You probably already know that a cube has the lowest A/V ratio of any parallelpiped (box).

You're looking for what is essentially a parallelpiped sliced in half which, were it whole, would have area 512. The best one for you is an 8x8x8 cube.

Cut it in half, and you have an 8x8x4 shape with exactly the characteristics you wanted. If the cube was the best parallelpiped, the half-cube will be the best half-parallelpiped.

Related Threads for: Optimization of a rectangular box with no top


Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving