<p>If you have a function</p>
<p><span class="math-container">$q = K(L)^a L^b$</span>,</p>
<p>then by the product and chain rules, the usual <span class="math-container">$L$</span>-derivative is</p>
<p><span class="math-container">$\frac{\partial q}{\partial L} = a K(L)^{a-1} K’(L) L^b + b K(L)^a L^{b-1}$</span></p>
<p>If you wanted to find the optimal level of <span class="math-container">$L$</span> for this function (since <span class="math-container">$L$</span> determines <span class="math-container">$K$</span>) you would do the procedure above.</p>
<p>You wouldn’t even differentiate with respect to <span class="math-container">$K$</span> as once you find the optimal level of <span class="math-container">$L$</span>, let’s call it <span class="math-container">$L^\star$</span>, you already know the optimal level of <span class="math-container">$K$</span>, let’s call it <span class="math-container">$K^\star$</span>, by the relationship <span class="math-container">$K^\star = K(L^\star)$</span>.</p>
<p>Moreover, the usual partial <span class="math-container">$K$</span>-derivative isn’t defined in the above case since <span class="math-container">$K$</span> isn’t a “purely” independent variable.</p>
<p>However, there is something called formal derivatives, in which you would ignore the dependence between the variables used as the function’s arguments.</p>
<p>In this case, the formal derivatives would be</p>
<p><span class="math-container">$\frac{\partial q}{\partial L} = b K^a L^{b-1}$</span></p>
<p><span class="math-container">$\frac{\partial q}{\partial K} = a K^{a-1} L^b$</span></p>
<p>This concept of formal derivative is used in the Euler-Lagrange equation from Calculus of Variations.</p>
<p>Whether you take the actual partial derivatives or the formal ones depends on what you want to accomplish.</p>
<p>As a rule of thumb, if you aren’t told to use formal derivatives, take the usual partial derivatives.</p>
<p>The Euler-Lagrange equation is</p>
<p><span class="math-container">$\frac{\partial f}{\partial y} - \frac{d}{dx} \frac{\partial f}{\partial y’} = 0$</span></p>
<p>where the partial derivatives are taken as formal derivatives.</p>
<p>This equation is used to find a continuously differentiable function <span class="math-container">$y = y(x)$</span> (over an interval <span class="math-container">$[a,b]$</span>), which maximizes or minimizes the following functional (a function whose argument is a function and spits out a real/complex number):</p>
<p><span class="math-container">$J[y(x)] = \int_{a}^{b} f(x,y(x),y’(x)) dx$</span></p>
<p>Here <span class="math-container">$f$</span> is twice-differentiable in each of its three arguments, and the functional <span class="math-container">$J[y]$</span> maps <span class="math-container">$J:C^{1}[a,b] \to \mathbb{R}$</span>.</p>

CC BY-SA 4.0
2023-04-01T22:56:33.667Z
2023-04-02T12:42:03.883Z
2023-04-02T12:42:03.883Z
Nicolas Torres
<p>I have a question for how would I treat a partial derivative for a function in which one or more of the variables are dependent on each other</p>
<p>for example: <span class="math-container">$q = K^aL^b$</span> and suggesting that you want to find the MPL but also stating that <span class="math-container">$K(L)$</span> or <span class="math-container">$K$</span> is a function of <span class="math-container">$L$</span>.</p>
<p>I'm thinking it would be something like <span class="math-container">$q = ab(K(L))^{a-1}L^{b-1}$</span> but I'm not sure.</p>
<p>Thanks in advance</p>

<mathematical-economics>
Partial Derivatives for dependent variables in functions?
ArrogantAssassin
# Partial Derivatives for dependent variables in functions?

(Asked by: username_0 on 2023-04-01)

I have a question for how would I treat a partial derivative for a function in which one or more of the variables are dependent on each other

for example: $q = K^aL^b$ and suggesting that you want to find the MPL but also stating that $K(L)$ or $K$ is a function of $L$.

I'm thinking it would be something like $q = ab(K(L))^{a-1}L^{b-1}$ but I'm not sure.

Thanks in advance

**Tags:** mathematical-economics


---

## 1 answers

### Answer by username_1 on 2023-04-01. Score: 3

If you have a function

$q = K(L)^a L^b$,

then by the product and chain rules, the usual $L$-derivative is

$\frac{\partial q}{\partial L} = a K(L)^{a-1} K’(L) L^b + b K(L)^a L^{b-1}$

If you wanted to find the optimal level of $L$ for this function (since $L$ determines $K$) you would do the procedure above.

You wouldn’t even differentiate with respect to $K$ as once you find the optimal level of $L$, let’s call it $L^\star$, you already know the optimal level of $K$, let’s call it $K^\star$, by the relationship $K^\star = K(L^\star)$.

Moreover, the usual partial $K$-derivative isn’t defined in the above case since $K$ isn’t a “purely” independent variable.

However, there is something called formal derivatives, in which you would ignore the dependence between the variables used as the function’s arguments.

In this case, the formal derivatives would be

$\frac{\partial q}{\partial L} = b K^a L^{b-1}$

$\frac{\partial q}{\partial K} = a K^{a-1} L^b$

This concept of formal derivative is used in the Euler-Lagrange equation from Calculus of Variations.

Whether you take the actual partial derivatives or the formal ones depends on what you want to accomplish.

As a rule of thumb, if you aren’t told to use formal derivatives, take the usual partial derivatives.

The Euler-Lagrange equation is

$\frac{\partial f}{\partial y} - \frac{d}{dx} \frac{\partial f}{\partial y’} = 0$

where the partial derivatives are taken as formal derivatives.

This equation is used to find a continuously differentiable function $y = y(x)$ (over an interval $[a,b]$), which maximizes or minimizes the following functional (a function whose argument is a function and spits out a real/complex number):

$J[y(x)] = \int\_{a}^{b} f(x,y(x),y’(x)) dx$

Here $f$ is twice-differentiable in each of its three arguments, and the functional $J[y]$ maps $J:C^{1}[a,b] \to \mathbb{R}$.


---

