<p>You are really asking about the marginal product of a CES production function.
The LHS of your second equation is <span class="math-container">$P * dY/dY(i)$</span> where <span class="math-container">$Y_t$</span> is a CES aggregator of the <span class="math-container">$Y_t(i)$</span>.</p>
<p>Let's define <span class="math-container">$\rho = \frac{\epsilon-1}{\epsilon}$</span> so that <span class="math-container">$Y=[\int Y(i)^\rho]^ {\frac{1}{\rho}}$</span>.</p>
<p>Now apply the chain rule to get the derivative (also available for lookup in any micro text book):</p>
<p><span class="math-container">$\partial Y/\partial Y(i) = \frac{1}{\rho} (\int Y(i) di) ^ \left(\frac{1}{\rho}-1\right) \rho Y(i)^{(\rho-1)}$</span></p>
<p>Cancel a few terms and you have your answer.</p>

CC BY-SA 4.0
2020-08-09T17:52:55.003Z
Many thanks, the typo was the main contributor to my uncorrect solution.
SG9
CC BY-SA 4.0
2020-08-10T08:29:15.747Z
However, I cannot understand how to use the chain rule in case of $\frac{\delta}{\delta Y_t(i)} \int_0^1 P_t(i)Y_t(i)di$. What puzzles me the most is that the solution seems to neglect the fact that $Y_t(i)$ is inside an integral function. If I were to use the Leibniz rule, the derivative of that integral would be $\int_0^1 P_t(i)di $ and not $P_t(i)$ only.
SG9
CC BY-SA 4.0
2020-08-10T18:11:07.723Z
I don't think Leibniz rule is the right approach here. It deals with the case where you have a function $f(x, \theta)$, you integrate that and take the derivative w.r.to $\theta$. Here, you are basically changing one entry in a sum (the integral being a glorified sum).
LutzHendricks
CC BY-SA 4.0
2020-08-09T17:42:35.457Z
2020-08-10T07:51:33.337Z
2020-08-10T07:51:33.337Z
LutzHendricks
<p>I am struggling with the maximization of the following profit function in a New-Keynesian model. Here there is the FOC.</p>
<p><span class="math-container">$$\frac{\delta}{\delta Y_t(i)} P_tY_t- \int_0^1 P_t(i)Y_t(i)di = \frac{\delta}{\delta Y_t(i)} P_t\left[\int_0^1 {Y_t(i)}^{\frac{\epsilon-1}{\epsilon}} di\right]^{\frac{\epsilon}{\epsilon-1}} - \int_0^1 P_t(i)Y_t(i)di = 0 $$</span></p>
<p><span class="math-container">$Y_t(i)$</span> is the demand for the intermediate good and <span class="math-container">$Y_t$</span> is the demand for the final good. The solution should be:</p>
<p><span class="math-container">$$ \frac{\epsilon}{\epsilon -1}  P_t \frac{Y_t}{Y_t^\frac{\epsilon -1}{\epsilon}} \frac{\epsilon -1}{\epsilon} Y_t(i)^{-\frac{1}{\epsilon}} = P_t(i) $$</span></p>
<p>I tried to apply the Leibniz integral rule. However, I cannot understand how to behave when taking a derivative of an integral function.</p>
<p>May anyone explain to me the steps (and the mathematical theory) in order to get the correct solution?<br />
Thank you in advance for your patience and your support.</p>

<macroeconomics><profit-maximization><new-keynesian-economics>
Max of a profit function: partial derivative of an integral function?
SG9
# Max of a profit function: partial derivative of an integral function?

(Asked by: username_0 on 2020-08-09)

I am struggling with the maximization of the following profit function in a New-Keynesian model. Here there is the FOC.

$$\frac{\delta}{\delta Y\_t(i)} P\_tY\_t- \int\_0^1 P\_t(i)Y\_t(i)di = \frac{\delta}{\delta Y\_t(i)} P\_t\left[\int\_0^1 {Y\_t(i)}^{\frac{\epsilon-1}{\epsilon}} di\right]^{\frac{\epsilon}{\epsilon-1}} - \int\_0^1 P\_t(i)Y\_t(i)di = 0 $$

$Y\_t(i)$ is the demand for the intermediate good and $Y\_t$ is the demand for the final good. The solution should be:

$$ \frac{\epsilon}{\epsilon -1} P\_t \frac{Y\_t}{Y\_t^\frac{\epsilon -1}{\epsilon}} \frac{\epsilon -1}{\epsilon} Y\_t(i)^{-\frac{1}{\epsilon}} = P\_t(i) $$

I tried to apply the Leibniz integral rule. However, I cannot understand how to behave when taking a derivative of an integral function.

May anyone explain to me the steps (and the mathematical theory) in order to get the correct solution?  
Thank you in advance for your patience and your support.

**Tags:** macroeconomics, profit-maximization, new-keynesian-economics


---

## 1 answers

### Answer by username_1 on 2020-08-09. Score: 2 | Accepted answer

You are really asking about the marginal product of a CES production function.
The LHS of your second equation is $P \* dY/dY(i)$ where $Y\_t$ is a CES aggregator of the $Y\_t(i)$.

Let's define $\rho = \frac{\epsilon-1}{\epsilon}$ so that $Y=[\int Y(i)^\rho]^ {\frac{1}{\rho}}$.

Now apply the chain rule to get the derivative (also available for lookup in any micro text book):

$\partial Y/\partial Y(i) = \frac{1}{\rho} (\int Y(i) di) ^ \left(\frac{1}{\rho}-1\right) \rho Y(i)^{(\rho-1)}$

Cancel a few terms and you have your answer.

> **Comments:**
> **username_0**: Many thanks, the typo was the main contributor to my uncorrect solution.  
> **username_0**: However, I cannot understand how to use the chain rule in case of $\frac{\delta}{\delta Y_t(i)} \int_0^1 P_t(i)Y_t(i)di$. What puzzles me the most is that the solution seems to neglect the fact that $Y_t(i)$ is inside an integral function. If I were to use the Leibniz rule, the derivative of that integral would be $\int_0^1 P_t(i)di $ and not $P_t(i)$ only.  
> **username_1**: I don't think Leibniz rule is the right approach here. It deals with the case where you have a function $f(x, \theta)$, you integrate that and take the derivative w.r.to $\theta$. Here, you are basically changing one entry in a sum (the integral being a glorified sum).  

---

