Marginal analysis examines the costs and benefits of small incremental changes to determine the optimal level of a decision variable. It works by comparing the marginal benefit and marginal cost of an additional unit. If the marginal benefit exceeds the marginal cost, the decision variable should be increased as net benefits will rise. For example, a firm considers producing one more widget. If the extra widget's marginal revenue of $1,200 is less than its marginal cost of $1,500, the firm should not produce it, as net profits would fall. Marginal analysis provides a framework for maximizing benefits given scarce resources.