Differentiate between marginal revenue and average revenue.
State the conditions for maximum profit function.