walls, 2Lh+2Lw, cost 200 per m^2
floor, Lw, cost 100 per m^2
roof, Lw, cost 500 per m^2
length = twice width L=2w
budget allows only $1,200,000
what is the rectangular prism with largest volume not over budget?
here's the solution to a different problem, same but with w=L
dimensions are:
height=30sqr(5/3) = about 38.73 meters
length & width each 20sqr(5/3) = about 25.82 meters
max volume = 20,000sqr(5/3) = 25,819.89 cubic meters
largest would be a cube, with L=w=h, but not cheapest given different prices for the sides
V=Lwh= hw^2
Total Cost = 1,200,000 =600w^2 + 800wh
solve for h
substiute into V
take V' and set = 0, solve for w=L
back to the original posted problem with L=2w
then
dimensions are
width = 20 meters
Length = 40 meters
height = 30 meters
Volume = 24,000 cubic meters
Total Cost = $1,200,000
Total Cost = cost of floor + cost of roof + cost of 4 sides
= 100(20)(40) + 500(20)(40) + 2(200)(20)(30) +2(200)(40)(30)
= 480,000 + 720,000
=1,200,000