For example when solving Romer’s model (1990) in continuous time, for the firm producing final goods, its production function is:
$ Y(t) = \int_{0}^{M(t)} (A(t) L_Y)^{1-\alpha} {x(i,t)}^{\alpha} di$,
where $A(t)$ is labor productivity, $L_Y$ the labor hired to produce the final good $Y$ and $x(i,t)$ is the quantity used of the $i$-th intermediate good, with $t$ being time.
$M(t)$ is the quantity of different (non-homogeneous) intermediate goods.
Suppose the final good $Y$ is the numeraire, i.e. its price is set to $p_Y = 1$.
With this, the profit function is given by
$\Pi^Y = \int_{0}^{M(t)} (A(t) L_Y)^{1-\alpha} {x(i,t)}^{\alpha} di - w(t) L_Y - \int_{0}^{M(t)} p(i,t) x(i,t) di$
where $w(t)$ is the wage and $p(i,t)$ is the price of $x_i$ (the $i$-th intermediate good).
The way I learned to get the f.o.c.’s for my class is
$\frac{\partial \Pi^Y}{\partial x_i} = \alpha (A(t) L_Y)^{1-\alpha} {x(i,t)}^{\alpha -1} - p(i,t) = 0$.
However, to do the actual differentiation, wouldn’t we have to use some sort of chain rule which would still leave us with an integral, instead of differentiating pretending there is no integral at all?
Similarly with the $\frac{\partial \Pi^Y}{\partial L_Y}$ f.o.c.
I asked my professor about it, and he said it’s just a hand wavy thing Economists do to solve this kind of models.
As a math guy, I would like to know the underlying reason why that works. I’d appreciate any insight about it.
This model appeared in my third course in Macroeconomics which covers many long-run growth models, such as Solow (the only one not involving summation/integration), Ramsey, Romer (1986), Lucas (1989), Aghion and Howitt (1992), as well as this one [Romer (1990)].
Whenever we work with continuous time versions of some of the above models, we take the f.o.c’s with the same method.
I remember I answered a question here months ago before getting to this topic, involving finding an f.o.c. for a function involving integrals; and the discrepancy between my answer and OP’s book’s answer was that I had extra integrals from the chain rule, probably due to the same method.