2
$\begingroup$

This is perhaps more of a mathematical than an economic question, but since it's from an economic problem, I'm posing it here.

Suppose I have, in a macro model, a perfectly competitive final goods producer combining a continuum of differentiated intermediate goods using the Dixit-Stiglitz (CES) aggregator

$$ Y_t = \left[ \int_0^1 (Y_{i,t})^{\frac1\lambda} di \right]^\lambda $$

This producer chooses $Y_{i,t}$ for all $0 \le i \le 1$ to maximize profits, taken as given input and output prices,

$$ \max_{\{Y_{i,t}\}} P_t Y_t - \int_0^1 P_{i,t} Y_{i,t} di $$

The first-order condition (FOC) for this problem is obtained by taking the derivative of profit (let's call it $\Pi_t$) w.r.t. $Y_{i,t}$, and textbooks invariably give this as

$$ \frac{\partial}{\partial Y_{i,t}}\Pi_t = P_t \left[ \frac{ Y_t }{ Y_{i,t} } \right]^{\frac{\lambda-1}\lambda} - P_{i,t} $$

But how do you arrive there? Specifically, when taking the derivative of an integral such $\int_0^1 P_{j,t} Y_{j,t} dj$ (where I've renamed the integration dummy to avoid confusion) w.r.t. some $Y_{i,t}$ (with $i$ fixed), how does one proceed, mathematically?

My approach would've been to say that since the integral bounds do not depend on $i$, we can switch differentiation and integration by Leibniz rule to get that

$$ \frac{\partial}{\partial Y_{i,t}} \int_0^1 P_{j,t} Y_{j,t} dj = \int_0^1 \frac{\partial}{\partial Y_{i,t}} \left[ P_{j,t} Y_{j,t} \right] dj $$

The derivative inside the integral is $P_{i,t}$ if $i = j$, zero otherwise. So I would think that we should have

$$ \frac{\partial}{\partial Y_{i,t}} \int_0^1 P_{j,t} Y_{j,t} dj = \int_0^1 P_{i,t} \cdot \mathbf{1}(i = j) dj $$

(where $\mathbf{1}$ is the indicator function for the given condition). But since the integrand is then zero almost everywhere (except for at one point), the integral should evaluate to zero:

$$ \frac{\partial}{\partial Y_{i,t}} \int_0^1 P_{j,t} Y_{j,t} dj = 0 $$

Clearly that's not the standard result, which is that

$$ \frac{\partial}{\partial Y_{i,t}} \int_0^1 P_{j,t} Y_{j,t} dj = P_{i,t} $$

instead.

In the discrete case, the result is different, of course. If the integral is replaced with a finite sum (running from $i = 1$ to $N$ for some $N < \infty$), then everything works out. And since an integral is, in a sense, the continuous limit of a discrete sum, the standard result also makes sense.[1,2]

The same holds, mutatis mutandis, for the other integral encountered when deriving the FOC for the Dixit-Stiglitz aggregator ($\frac{\partial}{\partial Y_{i,t}} P_t Y_t$).

I don't doubt that the standard result is correct. However, I wish to understand why it is and how I can arrive at it in a way that's mathematically rigorous.

(There is a related question here, but the answer merely states that the continuous case "follows as a sort of limiting extension", which is too handwavy for me. It also links to Dingel's The basics of “Dixit-Stiglitz lite”, but there's nothing in there.)

Any help is welcome, especially pointers to relevant documents. Thanks!

Footnotes:

  1. My result also makes some intuitive sense to me: since there is a continuum of intermediate goods, it makes sense that a change in the amount used for production of just one (generally, a null set) would leave overall profits unchanged.
  2. Mathematically speaking, since the integral is from 0 to 1, I feel that the more appropriate discrete sum it's a limit of is perhaps actually $\sum_{i=1}^N \frac1N P_{i,t} Y_{i,t}$, and when letting $N \to \infty$ there the limit of the partial derivative is indeed zero.
$\endgroup$

2 Answers 2

4
$\begingroup$

The `heuristic' way of taking first order conditions is indeed a bit 'mathematically' dodgy.

For this type of problems, where you are maximizing over an entire function, the first order conditions are (usually) obtained by applying `calculus of variation' principles. The idea is that you look at small perturbations from the optimal solution and require that any such variation does not improve the optimal solution.

First, I'm going to ignore some details, like corner (boundary) constraints that require for instance that inputs should always be non-negative. Also, I'm skipping quite a lot of details here.

To get started, let $C^1[0,1]$ be the class of continuous functions $g: [0,1] \to \mathbb{R}$ that are differentiable on $(0,1)$. The following holds:

Lemma [fundamental lemma of the calculus of variation] If $h:[0,1] \to \mathbb{R}$ is continuous and if for all $g \in C^1[0,1]$, $\int_0^1 h(x) g(x) dx = 0$ then $h(x) = 0$ for all $x \in [0,1]$.

I'm not going to give the proof, but the idea is that if $h(x_0) \ne 0$ for some $x_0$, then (as $h$ is continuous) there is an interval containing $x_0$ on which $h$ is either strictly positive or negative. Then choosing $g$ to be also strictly positive or negative only on a sub-interval of this interval guarantees that the integral $\int_0^1 h(x) g(x) \ne 0$ giving a contradiction.

Now, let $Y: [0,1] \to \mathbb{R}$ be a function such that $Y(x)$ represents the amount chosen for input $x \in [0,1]$. We assume that this function is continuous. Consider our profit function, which depends on this function $Y$. $$ \pi(Y) = \left[\int_0^1 (Y(x))^{1/\lambda} dx \right]^\lambda - \int_0^1 P(x) Y(x) dx $$ Here $P(x)$ is the price of input $x$, which we assume to be fixed (and continuous).

We would like to find the function $Y^\ast: [0,1] \to \mathbb{R}$ that maximizes $\pi(Y)$.

In order to get a set of necessary first order conditions, we are going to use the calculus of variation.

First assume that we know the optimal solution $Y^\ast: [0,1] \to \mathbb{R}$. We are going to look at small variations (perturbations) to this optimal solution, and require that none of these perturbations improves the profit. To obtain these small variations, let $g \in C^1[0,1]$ and consider for a small enought $\varepsilon \in \mathbb{R}$, a new function: $$ Y_\varepsilon(x) = Y^\ast(x) + \varepsilon g(x). $$ The function $Y_\varepsilon$ can be considered as a small perturbation of the optimal function $Y^\ast$. Note that for $\varepsilon = 0$, $Y_0(x) = Y^\ast(x)$. As such, $\pi(Y_\varepsilon)$ reaches a maximum value for $\varepsilon = 0$. Given that $\varepsilon$ is a real number, we can use the usual first order condition with respect to $\varepsilon$.

This gives: $$ \left. \frac{d \pi(Y_\varepsilon)}{d\varepsilon} \right|_{\varepsilon = 0} = 0 $$

Note that: $$ \pi(Y_\varepsilon) = \left[\int_0^1 (Y^\ast(x) + \varepsilon g(x))^{1/\lambda} dx\right]^{\lambda} - \int_0^1 P(x)(Y^\ast(x) + \varepsilon g(x)) dx. $$ Taking the derivative of with respect to $\varepsilon$ and evaluating at $\varepsilon = 0$ gives: $$ \begin{align*} &\left[\int_0^1 (Y^\ast(x))^{1/\lambda} dx\right]^{\lambda-1} \int_0^1 Y^\ast(x)^{\frac{1 - \lambda}{\lambda}} g(x) dx - \int_0^1 P(x) g(x) dx,\\ &=\int_0^1 \underbrace{\left\{ \left[\int_0^1 (Y^\ast(x))^{1/\lambda} dx\right]^{\lambda-1} Y^\ast(x)^{\frac{1 - \lambda}{\lambda}} - P(x) \right\}}_{h(x)} g(x) dx = 0\\ \end{align*} $$ Given that $g \in C^1[0,1]$ was arbitrary, we can use the Fundamental lemma of the calculus of variation to obtain that $h(x) = 0$ for all $x$, which gives the collection of first order conditions that you were looking for.

$\endgroup$
1
  • $\begingroup$ Excellent, thank you so much; this really helps. So if I understand correctly, economically speaking, the key insight is that we're not taking the derivative wrt $Y(x)$ for each given $x$ in isolation, but instead for all $x$ at the same time? In other words, we're differentiating wrt. to the entire function $Y(\cdot)$, and obtaining one single functional FOC for $Y^*(\cdot)$. Given that, could we also obtain the result using a suitable notion of functional derivatives (eg Hadamard)? $\endgroup$
    – chsk
    Commented Jun 30 at 10:22
1
$\begingroup$

For reference, an explicit derivation akin to @tdm's, using the calculus of variations, is also given in Heer and Maußner (2024), Dynamic General Equilibrium Modeling: Computational Methods and Applications, 3rd edition, specifically section 4.6 and its appendices.

$\endgroup$
1
  • 1
    $\begingroup$ Thank you for the reference '+1' $\endgroup$ Commented Jul 23 at 7:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.