The Cost Function, shows the relationship between the price of inputs and the quantity produced. A firm’s costs of production depend on the prices and quantities of its factors of production. When a firms’ output changes we can also expect the firm’s costs to change. The relationship between the production function and the cost function is that the cost function is derived from the production function.