
Victoria V. answered 11/17/18
20+ years teaching Calculus
Hi Kayla,
If you draw a box with a square top and bottom, you will have 6 different surfaces. The top and bottom are both squares, so the area for each will be x * x = x2. The four sides will be "z" tall and "x" wide, so the area of each of the side panels is xz.
Since the COST is the thing you want to minimize, the cost of the top and bottom material needs to be multiplied by the area in the top and bottom. The cost of the metal for the sides needs to be multiplied by the area in the sides. So your primary equation is
COST = ($3)(2)x2 + ($8)(4)xz
Your constraint (secondary equation) is the information about the volume.
V = (x)(x)(z) = 40 cubic feet.
Solving this for z, find that z = 40/(x2). Substitute this into the primary equation for COST and get
COST = 6x2 + (32)(x)(40/x2)
COST = 6x2 + 1280/x
Now ready to differentiate the expression for COST, set the derivative =0, and find x, then plug it into z=40/x2 and find z.