phosgene
- 145
- 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
h(x,y,z, λ_{1}, λ_{2}) = f(x,y,z) + λ_{1}g_{1}(x,y,z) + λ_{2}g_{2}(x,y,z)
The Attempt at a Solution
In this case our f(x,y,z) is the volume of the rectangular prism, so f(x,y,z)=xyz, where we take x to be the length, y the widge and z the depth. g_{1}(x,y,z)=λ_{1}(xy + yz + zx - 1), the surface area constraint and g_{2}(x,y,z)=λ_{2}(x+y+z-3) (the edge length constraint).
The function to be optimised is then h(x,y,z, λ_{1}, λ_{2}) = xyz + λ_{1}(xy + yz + zx - 1) + λ_{2}(x+y+z-3)
Obtain all the partial derivatives:
1. \frac{∂h}{∂x} = yz + λ_{1}(y+z) + λ_{2} = 0
2. \frac{∂h}{∂y} = xz + λ_{1}(x+z) + λ_{2} = 0
3. \frac{∂h}{∂z} = yx + λ_{1}(y+z) + λ_{2} = 0
4. \frac{∂h}{∂λ_{1}} = xy + yx + zy -1 = 0
5. \frac{∂h}{∂λ_{2}} = x + y + z -3 = 0
Add 1, 2 and 3. Then sub in 4 and 5 to obtain the result λ_{1}=-(3λ_{2}+1)/6
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
\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)}
But doesn't this imply that x=y=z? This cannot satisfy both 4 *and* 5.