Ex: Find a Demand Function and a Rebate Amount to Maximize Revenue and Profit