dyn said:
Post #2 told me that for u=u( x , y ) with x=x(t) and y=y(t) ; then ∂/∂x (dx/dt) = 0 because dx/dt is not a function of x which does make sense but i am told this is wrong. Why is it wrong ?
I like the method used in #12 but i would like to know how to handle ∂/∂x (dx/dt) in this situation
If you are differentiating with respect to ##t##, then something like ∂/∂x (dx/dt) or ∂/∂y (dx/dt) don't make sense. You are trying to apply the chain rule to simple functions of ##t##. Let's say you had a function ##g(t)##, what you are trying to do is:
$$\frac{dg}{dt} = \frac{\partial g}{\partial x}x'(t) + \frac{\partial g}{\partial y}y'(t)$$
But, ##g## is a single-variable function of ##t##. Its partial derivatives with respect to ##x## and ##y## are not defined. There are no such functions. In the same way ∂/∂x (dx/dt) is simply not defined. ##dx/dt## is not a multi-variable function of ##x## and ##y## in the first place. ##dx/dt## is a single-variable function of ##t##.
This is how it should go. You have your first derivative:
$$\frac{du}{dt} = \frac{\partial f}{\partial x}(x(t), y(t))x'(t) + \frac{\partial f}{\partial y}(x(t), y(t))y'(t)$$
Note that I've emphasised that the partial derivatives are multi-variable functions. Then you just take the second derivative noting that the two partial derivatives must be treated like multi-variable functions when you differentiate them:
$$\frac{d^2u}{dt^2} = \frac{d}{dt}\big (\frac{\partial f}{\partial x}(x(t), y(t))x'(t)\big ) + \frac{d}{dt}\big ( \frac{\partial f}{\partial y}(x(t), y(t))y'(t)\big )$$
Now, I'll just do the first term (using the product rule):
$$\frac{d^2u}{dt^2} = \frac{d}{dt}\big (\frac{\partial f}{\partial x}(x(t), y(t))\big ) x'(t) + \big (\frac{\partial f}{\partial x}(x(t), y(t))\big )x''(t) + \dots$$
Then, you apply the chain rule to:
$$\frac{d}{dt}\big (\frac{\partial f}{\partial x}(x(t), y(t))\big )$$
Because ##\frac{\partial f}{\partial x}## is a multi-variable function of ##x## and ##y##.