Derivative using chain rule with multi variable function

79 Views Asked by At

How would I calculate the total derivative using the chain rule with a multi-variable function? I need a total derivative with respect to $(t)$

$$R(t) = \max_x f(x^*(t, p), t)$$

Is this correct? $$ \frac{\partial R}{\partial t} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial t} \frac{\partial x}{\partial p} + \frac{\partial f}{\partial t} $$

Or do I need to extend it out?

$$ \frac{\partial R}{\partial t} = \frac{\partial f}{\partial x} \frac{\partial x}{\partial t} + \frac{\partial f}{\partial x}\frac{\partial p}{\partial t} + \frac{\partial f}{\partial t} $$

1

There are 1 best solutions below

3
On BEST ANSWER

I'm not sure how you got to your first option, but your second option is almost right. The only thing missing is the partial of $x^*$ with respect to $p$ in the second term.

\begin{align} \frac{\mathrm d R}{\mathrm d t} &= \frac{\partial f}{\partial x^*} \frac{\mathrm d x^*}{\mathrm d t} + \frac{\partial f}{\partial t}\\ &= \frac{\partial f}{\partial x^*} \left( \frac{\partial x^*}{\partial t} + \frac{\partial x^*}{\partial p}\frac{\partial p}{\partial t} \right) + \frac{\partial f}{\partial t}\\ &= \frac{\partial f}{\partial x^*} \frac{\partial x^*}{\partial t} + \frac{\partial f}{\partial x^*}\frac{\partial x^*}{\partial p}\frac{\partial p}{\partial t} + \frac{\partial f}{\partial t} \end{align}