Maximise the volume of a rectangular prism with 2 constraints

In summary, the OP attempted to optimize a function h(x,y,z, λ_{1}, λ_{2}) which satisfied the constraints of surface area 2m^2 and total edge length 12m. However, due to errors in the constraints, the OP was unable to find a solution. However, by using one of the constraints to eliminate one of the variables, a Lagrange multiplier method could be used to find a solution.
  • #1
phosgene
146
1

Homework Statement



Maximise the volume of a rectangular prism with the following constraints: the surface area must equal 2m^2 and the total edge length must be 12m.

Homework Equations



Using Lagrange multipliers, we construct the function we want to optimise with

[itex]h(x,y,z, λ_{1}, λ_{2}) = f(x,y,z) + λ_{1}g_{1}(x,y,z) + λ_{2}g_{2}(x,y,z)[/itex]

The Attempt at a Solution



In this case our f(x,y,z) is the volume of the rectangular prism, so [itex]f(x,y,z)=xyz[/itex], where we take x to be the length, y the widge and z the depth. [itex]g_{1}(x,y,z)=λ_{1}(xy + yz + zx - 1)[/itex], the surface area constraint and [itex]g_{2}(x,y,z)=λ_{2}(x+y+z-3)[/itex] (the edge length constraint).

The function to be optimised is then [itex]h(x,y,z, λ_{1}, λ_{2}) = xyz + λ_{1}(xy + yz + zx - 1) + λ_{2}(x+y+z-3)[/itex]

Obtain all the partial derivatives:

1. [itex]\frac{∂h}{∂x} = yz + λ_{1}(y+z) + λ_{2} = 0[/itex]

2. [itex]\frac{∂h}{∂y} = xz + λ_{1}(x+z) + λ_{2} = 0[/itex]

3. [itex]\frac{∂h}{∂z} = yx + λ_{1}(y+z) + λ_{2} = 0[/itex]

4. [itex]\frac{∂h}{∂λ_{1}} = xy + yx + zy -1 = 0 [/itex]

5. [itex]\frac{∂h}{∂λ_{2}} = x + y + z -3 = 0 [/itex]

Add 1, 2 and 3. Then sub in 4 and 5 to obtain the result [itex]λ_{1}=-(3λ_{2}+1)/6[/itex]

But from here I'm totally lost. I can re-arrange 1,2 and 3 to get λ2 by itself, then equate them all to get

[itex]\frac{\frac{1}{6}(y+z) - yz}{1-\frac{1}{2}(y+z)}=\frac{\frac{1}{6}(y+x) - yx}{1-\frac{1}{2}(y+x)}=\frac{\frac{1}{6}(z+x) - zx}{1-\frac{1}{2}(z+x)}[/itex]

But doesn't this imply that x=y=z? This cannot satisfy both 4 *and* 5.
 
Physics news on Phys.org
  • #2
What that tells you is that the constraints are impossible- you cannot have a rectangular prism with surface area 2 square meters and total edge length 12 meters.
 
  • #3
HallsofIvy said:
What that tells you is that the constraints are impossible- you cannot have a rectangular prism with surface area 2 square meters and total edge length 12 meters.

No, you can have such a prism. In fact, over the physically allowable region ##x,y,z \geq 0, x+y+z = 3## the half-area ##A = xy + xz + yz## ranges from ##A = 0## at the points ##(x,y,z) = (3,0,0), (0,3,0), (0,0, 3)## to ##A = 3## at the point ##(x,y,z) = (1,1,1)##. Any value of ##A## from 0 to 3 is attainable.

However, the OP made a number of errors (perhaps typographical, perhaps not).

I found it much easier to use one of the constraints to eliminate one of the variables. For example, from ##g_2 = 3## we have ##z = 3 - x - y##, and putting that in ##g_1## yields ##G_1(x,y) = g_1(x,y,3-x-y) = 3x+3y-x^2-y^2-xy-1## Now the problem is to maximize ##F = x y (3-x-y)##, subject to ##G_1(x,y) = 0##. This can be attacked using a Lagrange multiplier method; there are solutions.
 
Last edited:

Related to Maximise the volume of a rectangular prism with 2 constraints

What is the definition of a rectangular prism?

A rectangular prism is a three-dimensional shape with six rectangular faces, where each face is a parallelogram. It has a length, width, and height, and all three dimensions are perpendicular to each other.

What are the two constraints when maximizing the volume of a rectangular prism?

The two constraints are the fixed surface area and the fixed perimeter.

How do you calculate the volume of a rectangular prism?

The volume of a rectangular prism is calculated by multiplying its length, width, and height. The formula for volume is V = l * w * h.

How do you determine the dimensions that will maximize the volume of a rectangular prism with 2 constraints?

To determine the dimensions that will maximize the volume of a rectangular prism with 2 constraints, you can use the following steps:

  • Calculate the surface area and perimeter of the prism given the fixed constraints.
  • Use the surface area and perimeter values to create a system of equations.
  • Substitute one variable in terms of the other and solve for either the length, width, or height.
  • Plug in the value for the solved variable into the volume formula to find the maximum volume.

What are some real-life applications of maximizing the volume of a rectangular prism with 2 constraints?

Some real-life applications include maximizing storage space in a room or warehouse, maximizing the capacity of a shipping container, and maximizing the amount of water that can be held in a reservoir given a fixed perimeter or surface area.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
486
  • Calculus and Beyond Homework Help
Replies
2
Views
558
  • Calculus and Beyond Homework Help
Replies
1
Views
472
  • Calculus and Beyond Homework Help
Replies
14
Views
677
  • Calculus and Beyond Homework Help
Replies
6
Views
678
  • Calculus and Beyond Homework Help
Replies
11
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
566
  • Calculus and Beyond Homework Help
Replies
6
Views
872
  • Calculus and Beyond Homework Help
Replies
27
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
558
Back
Top