Answer:
- 12' by 8'4" . . . . $1458
- 13'4" by 7'6" . . $1455
- 15' by 6'8" . . . . $1455
Explanation:
The cost of the area of the deck is fixed, because the area is fixed. It will be ...
($12/ft²)×(100 ft²) = $1200
__
The cost of the railing is proportional to its length, so it will be minimized by minimizing the length of the railing. If the length of it is x feet parallel to the house, then the length of it perpendicular to the house (for a deck area of 100 ft²) is 100/x.
The total length of the railing is ...
r = 2(100/x) + x
We can minimize this by setting its derivative with respect to x equal to zero:
dr/dx = -200/x² +1 = 0
Multiplying by x² and adding 200, we get ...
x² = 200
x = √200 ≈ 14.142
So, the minimum railing cost will be had when the deck is 14.142 ft by 7.071 ft. That railing cost is about ...
$9 × (200/√200 +√200) ≈ $254.56
__
We might imagine that dimensions near these values would have almost the same cost. Here are some other possibilities:
- 13'4" by 7'6" ⇒ $255.00
- 15' by 6'8" ⇒ $255.00
- 12' by 8'4" ⇒ $258.00
- 10' by 10' ⇒ $270.00
__
Then the total cost for a couple of possible deck sizes will be $1200 plus the railing cost, or ...
- 12' by 8'4" . . . . $1458
- 13'4" by 7'6" . . $1455
- 15' by 6'8" . . . . $1455
_____
Note on the solution process
It can be helpful to use a spreadsheet or graphing calculator to do the repetitive computation involved in finding suitable dimensions for the deck.