Skip to main content

Cost minimization and profit maximization

Author
Affiliation

Department of Economics, University of Houston

Published

November 29, 2026

Part of Production, Preferences, and Equilibrium: Theory and Applications.
Main Micro4Econ site | View this section in the book | Author: Fan Wang
Date: 2026-11-29 | HTML | PDF | QMD

1 Cost minimization and profit maximization

1.1 The COO’s problem: cost minimization

Consider a production function \(f(\left\{x_i\right\}_{i=1}^N)\), where \(x_i \ge 0\) are inputs. Assume that a firm can choose non-negative levels of inputs \(i=1\) through \(M\le N\). The output quantity target is \(q\). Assume the firm is a price taker on the input market and input prices are \(w_i\), the cost minimization problem for the firm is:

\[ \begin{gathered} \min_{ \left\{ x_i \right\}_{i=1}^M } \sum_{i=1}^N w_i\cdot x_i\\ \text{such that, } q \le f\left(\left\{x_i\right\}_{i=1}^N\right) \end{gathered} \]

The first \(M\) inputs are choices. The remaining \(O=(N-M)\) inputs potentially impact the marginal productivity of the \(M\) input choices, and carry with them sunk cost that will not impact optimal choices.

Using vector notations, we can represent variable inputs with \(x^v \in R^M_+\), represent fixed inputs with \(x^f \in R^{O}_+\), and represent all inputs with \(x \in R^{N}_+\). And the corresponding price vectors are \(w \in R^N_{++}\), \(w^v \in R^M_{++}\) and \(w^f \in R^{O}_{++}\). The cost minimization problem can be rewritten as:

\[ \begin{gathered} \min_{ x^v } {x}' w\\ \text{such that, } q \le f\left(x\right) \end{gathered} \]

Setting up the Lagrangian and solving the cost-minimization problem, we end with the following solution functions:

  • The conditional factor demand function: \(x^{\ast,\text{cost-min}}_i\left(\left\{w_j\right\}_{j=1}^{M}, \left\{x_j\right\}_{j=M+1}^N, q\right)\). Optimal choice is a function of the prices on inputs to be chosen, the quantities of fixed inputs, along with output level requirement.
  • The cost function is: \[\text{COST}^{\ast}\left(\left\{w_j\right\}_{j=1}^{N}, \left\{x_j\right\}_{j=M+1}^N, q\right) = \sum_{i=1}^{M} w_i \cdot x^{\ast,\text{cost-min}}_i\left(\left\{w_j\right\}_{j=1}^{M}, \left\{x_j\right\}_{j=M+1}^N, q\right) + \sum_{i=M+1}^N w_i \cdot x_i\] Cost given cost minimizing choices is a function of all prices and the non-chosen inputs, along with the output level requirement.

The cost minimization problem is the “COO’s problem”: the operational manager of the firm does not decide on how much to produce, just adjusts inputs to guarantee meeting the output requirement at the minimum cost.

In the firm’s overall problem, the firm demands inputs and supply outputs. In the COO’s problem, we isolate the firm inputs demand problem and solve this without worry about how is buying the outputs and at what prices.

1.1.1 Solving the cost minimization problem

Solving the constrained optimization problem, the Lagrangian is set up as follows:

\[ \begin{aligned} \mathcal{L}\left(\left\{x_i\right\}_{i=1}^M, \lambda\right) &= \sum_{i=1}^N w_i \cdot x_i - \lambda \left(f\left(\left\{x_i\right\}_{i=1}^N\right) - q\right) \end{aligned} \]

For an interior optimum with a binding output constraint and a regular differentiable technology, the first-order conditions with respect to the choice variables and multiplier are:

\[ \begin{aligned} \frac{\partial \mathcal{L}}{\partial x_i} &= w_i - \lambda \frac{\partial f\left(\left\{x_i\right\}_{i=1}^N\right)}{\partial x_i} = 0, \quad i=1,\ldots,M\\ \frac{\partial \mathcal{L}}{\partial \lambda} &= q - f\left(\left\{x_i\right\}_{i=1}^N\right) = 0 \end{aligned} \]

Corner solutions or a slack output constraint instead require the corresponding complementary-slackness conditions.

1.2 The CEO’s problem given the COO’s solutions: profit maximization over quantity

Given solutions to the COO’s problem, the CEO solves the quantity optimization problem. Let \(p\) be the price per unit of output, and assume that the firm is a price taker on the output market as well. We have:

\[ \begin{gathered} \max_{ q } p \cdot q - \text{COST}^{\ast}\left(\left\{w_j\right\}_{j=1}^{N}, \left\{x_j\right\}_{j=M+1}^N, q\right)\\ \end{gathered} \]

In vector notation, we have:

\[ \begin{aligned} \max_{ q } \left( p \cdot q - \text{COST}^{\ast}\left(w, x^f, q\right) \right)\\ \end{aligned} \]

The CEO maximizes the profit function by choosing the optimal quantity, the solutions to the profit maximization problem are:

  • The optimal output quantity: \(q^{\ast}\left(\left\{w_j\right\}_{j=1}^{M}, \left\{x_j\right\}_{j=M+1}^N, p\right)\), which is a function of the prices on inputs to be chosen, the quantities of fixed inputs, along with the output price level.

  • The factor demand function,

    \[ \begin{aligned} x^{\ast,\text{profit-max}}_i\left(\left\{w_j\right\}_{j=1}^{M}, \left\{x_j\right\}_{j=M+1}^N, p\right) &= x^{\ast,\text{cost-min}}_i\left(\left\{w_j\right\}_{j=1}^{M}, \left\{x_j\right\}_{j=M+1}^N, q^{\ast}\left(\left\{w_j\right\}_{j=1}^{M}, \left\{x_j\right\}_{j=M+1}^N, p\right)\right)\\ x^{\ast,\text{profit-max}}_i\left( w, x^f, p \right) &= x^{\ast,\text{cost-min}}_i\left( w, x^f, q^{\ast}\left(w, x^f, p \right)\right) \end{aligned} \]

    is equal to optimal quantity choice from the cost minimization problem evaluated at the optimal output quantity, which is a function of all prices on inputs to be chosen, the quantities of fixed inputs, along with the output price level.

  • The profit function is a function of all wages, unchosen quantities, and output price:

\[ \begin{aligned} &\text{PROFIT}^{\ast}\left(\left\{w_j\right\}_{j=1}^{N}, \left\{x_j\right\}_{j=M+1}^N, p\right)\\ =& p \cdot q^{\ast}\left(\left\{w_j\right\}_{j=1}^{M}, \left\{x_j\right\}_{j=M+1}^N, p\right)\\ &- \text{COST}^{\ast}\left(\left\{w_j\right\}_{j=1}^{N}, \left\{x_j\right\}_{j=M+1}^N, q^{\ast}\left(\left\{w_j\right\}_{j=1}^{M}, \left\{x_j\right\}_{j=M+1}^N, p\right)\right)\\ \end{aligned} \]

1.2.1 Solving the profit maximization problem over quantities

Given the profit maximization problem over quantities, the first-order condition for the optimal output quantity is obtained by differentiating the profit function with respect to \(q\) and setting it equal to zero:

\[ \frac{\partial}{\partial q} \left( p \cdot q - \text{COST}^{\ast}\left(\left\{w_j\right\}_{j=1}^{N}, \left\{x_j\right\}_{j=M+1}^N, q\right) \right) = 0. \]

We have two components above, marginal revenue, \(p\), and marginal cost, \(MC(q)\). Note that marginal revenue, for a price taking firm, is constant. The marginal cost, \(MC(q)\), is the derivative of the cost function with respect to output quantity \(q\).

If the MC function starts at zero for \(q\) small, and asymptotes to positive infinity as \(q\) gets larger, and is strictly increasing, there will be a unique optimal output quantity where marginal revenue equals marginal cost.

But this solution is unique solution is not guaranteed. For example, if MC is always below \(p\), there will be no finite optimal output quantity, and the firm will produce up to infinity.

The unique solution could also be to not operate the firm at all: if MC is always above \(p\), the optimal output quantity will be zero.