Our box has 6 sides. Obviously, front and back sides are the same. So are top and bottom sides. And left and right sides too.
We can calculate areas of each side. And then multiplying it by its cost we can find its total price.
For example, dimentions of the front side are "w" and "h" . So area is "S_1=wh". Its price is "P_1=3wh" . In this way we can construct function.
"f(w,l,h)=6wh+6lh+8wl" is a function which shows us the full price of the box.
Obviously, "wlh=452" .
We should minimize "f" providing "wlh=452" .
Let's construct Lagrange function.
"L(w,l,h)=6wh+6lh+8wl+\\lambda (wlh-452)"
Derivatives are:
"\\frac{\\partial L}{\\partial w}=6h+8l+\\lambda lh"
"\\frac{\\partial L}{\\partial l}=6h+8w+\\lambda wh"
"\\frac{\\partial L}{\\partial h}=6w+6l+\\lambda wl"
Next step is to solve the system
"\\begin {cases}\n 6h+8l+\\lambda lh=0\\\\\n 6h+8w+\\lambda wh=0\\\\\n 6w+6l+\\lambda wl = 0\\\\\n wlh=452\n\\end {cases}" "\\iff" "\\begin {cases}\n h(6+\\lambda l)=-8l\\\\\n 6h+8w+\\lambda wh=0\\\\\n w(6+\\lambda l)=-6l\\\\\n wlh=452\n\\end {cases}" "\\iff" "\\begin {cases}\n h=\\frac{-8l}{(6+\\lambda l)}\\\\\n 6h+8w+\\lambda wh=0\\\\\n w=\\frac {-6l}{(6+\\lambda l)}\\\\\n wlh=452\n\\end {cases}" "\\iff" "\\begin {cases}\n h=\\frac{-8l}{(6+\\lambda l)}\\\\\n 6\\frac{-8l}{(6+\\lambda l)}+8\\frac {-6l}{(6+\\lambda l)}+\\lambda \\frac{-8l}{(6+\\lambda l)}\\frac {-6l}{(6+\\lambda l)}=0\\\\\n w=\\frac {-6l}{(6+\\lambda l)}\\\\\n \\frac {-6l}{(6+\\lambda l)}l\\frac{-8l}{(6+\\lambda l)}=452\n\\end {cases}" "\\iff" "\\begin {cases}\n h=\\frac{-8l}{(6+\\lambda l)}\\\\\n \\frac{2l}{(6+\\lambda l)}= \\frac{\\lambda l^2}{(6+\\lambda l)^2}\\\\\n w=\\frac {-6l}{(6+\\lambda l)}\\\\\n \\frac {48l^3}{(6+\\lambda l)^2}=452\n\\end {cases}" "\\iff" "\\begin {cases}\n h=\\frac{-8l}{(6+\\lambda l)}\\\\\n 2l(6+\\lambda l)= \\lambda l^2\\\\\n w=\\frac {-6l}{(6+\\lambda l)}\\\\\n \\frac {48l^3}{(6+\\lambda l)^2}=452\n\\end {cases}" "\\iff" "\\begin {cases}\n h=\\frac{-8l}{(6+\\lambda l)}\\\\\n \\lambda l=-12\\\\\n w=\\frac {-6l}{(6+\\lambda l)}\\\\\n \\frac {48l^3}{(6+\\lambda l)^2}=452\n\\end {cases}" "\\iff" "\\begin {cases}\n h=\\frac {4l}{3}\\\\\n \\lambda l=-12\\\\\n w=l\\\\\n \\frac {48l^3}{36}=452\n\\end {cases}"
From the last equation it follows "l^3=339" and finally, "l=\\sqrt[3]{339}" (other roots are complex)
"\\begin {cases}\n h=\\frac {4\\sqrt[3]{339}}{3}\\\\\n \\lambda = \\frac {-12}{\\sqrt[3]{339}}\\\\\n w=\\sqrt[3]{339}\\\\\n l=\\sqrt[3]{339}\n\\end {cases}"
Comments
Leave a comment