In order to maximize profits in a perfectly competitive market, firms set marginal revenue equal to marginal cost (MR=MC). MR is the slope of the revenue curve, which is also equal to the demand curve (D) and price