A restaurant finds that less orders for their soup of the day are placed on warmer days so they discount the usual 7USD price to 5USD on warmer days. The cost of making the soup is given by $$ C = 0.1{q}^{2}+q+20 $$ where $q$ is the bowls of soup per day and the probability of a warm day is 0.45. How much soup should the restaurant make if it wants to maximize profits from the soup of the day? $$ --------------------------------- $$
I think we need an "expected revenue" function, but this is what I'm unsure about because my textbook has no examples like this. I'm assuming it's $$ R = 7*{q}_{cold} + 5*{q}_{warm} \\ R = 7*0.55*q + 5*0.45*q \\ R = 6.1q $$ Then we maximize profit on quantity: $$\pi = R-C \\ \pi = 6.1q-(0.1{q}^{2}+q+20) \\ \pi = - 0.1{q}^{2}+5.1q -20 \\ \frac{d\pi}{dq} = -0.2q + 5.1 = 0 \\ q = 25.5 $$ So the restaurant should usually prepare soup for 25.5 bowls, given the uncertainty about the weather. I have no answer keys, so I'm looking for a confirmation or correction.