A competitive firm's short run total cost function is given by TC = Q^2 + 40 Q + 81
(a) Determine the range of prices for which the firm incurs a loss but continues to produce. Also determine the range of prices for which the firm earns a profit.
(b) Calculate the profit maximizing output and the resulting profit when price is $100.