This document provides 8 examples of applying the principles of maximizing and minimizing functions to determine optimal output levels, prices, and profits for firms producing single products, joint products, or substitute products. The examples involve solving systems of demand, marginal revenue, marginal cost, and budget constraint equations to find the profit-maximizing or utility-maximizing levels of output and prices for the products under different cost and demand conditions.