A function $f(x,y)$ is transformed to variables $(u,v)$ with $x=uv$ and $y=\dfrac{u}{v}$ so the first partial derivative with respect to $u$ is $$\frac{\partial f}{\partial u}=v\frac{\partial f}{\partial x}+\frac1v\frac{\partial f}{\partial y}\tag{1}$$ Show that the second partial derivative with respect to $u$ can be written as $$\frac{\partial^2 f}{\partial u^2}=v\left[v\frac{\partial^2 f}{\partial x^2}+\frac{1}{v}\frac{\partial^2 f}{\partial x \,\partial y}\right]+\frac{1}{v}\left[v\frac{\partial^2 f}{\partial y \,\partial x}+\frac{1}{v}\frac{\partial^2 f}{\partial y^2}\right]$$
My working:
\begin{align*}\frac{\partial^2 f}{\partial u^2}&=\frac{\partial}{\partial u}\frac{\partial f}{\partial u}\\&=\frac{\partial}{\partial u}\left(v\frac{\partial f}{\partial x}+\frac1v\frac{\partial f}{\partial y}\right)\,\qquad\text{By substituting equation (1)}\\&=\fbox{$v\frac{\partial}{\color{red}{\partial u}}\frac{\partial f}{\color{blue}{\partial x}}+\frac1v\frac{\partial}{\color{red}{\partial u}}\frac{\partial f}{\color{blue}{\partial y}}$}\qquad\text{Distributed then changed order of operators}\\&=\fbox{${v\frac{\partial}{\color{blue}{\partial x}}\frac{\partial f}{\color{red}{\partial u}}+\frac1v\frac{\partial}{\color{blue}{\partial y}}\frac{\partial f}{\color{red}{\partial u}}}$}\,\qquad{\text{Switched the order of the denominators}}\\&=v\frac{\partial}{\partial x}\left(v\frac{\partial f}{\partial x}+\frac1v\frac{\partial f}{\partial y}\right)+\frac1v\frac{\partial}{\partial y}\left(v\frac{\partial f}{\partial x}+\frac1v\frac{\partial f}{\partial y}\right)\\&=v\left[v\frac{\partial^2 f}{\partial x^2}+\frac{1}{v}\frac{\partial^2 f}{\partial x \,\partial y}\right]+\frac{1}{v}\left[v\frac{\partial^2 f}{\partial y \,\partial x}+\frac{1}{v}\frac{\partial^2 f}{\partial y^2}\right]\end{align*}$\fbox{}$
I am asking this question because I know that differential operators in general do not commute. But I cannot find a way to solve the problem without switching the order of the operators.
Therefore my doubt is whether or not the boxed expressions are valid.
I did manage to reach the desired result, but is the proof correct?
I think that this proof is wrong but I am unable to find a correct proof.
Could someone please either explain or give hints on what the correct proof should look like or point out and explain my errors?
Many thanks.
Here we look at first at the general situation and develop the second partial derivative by consequently applying the chain rule. This way we can better see symmetries which is helpful when calculating the special case.
First partial derivative:$\quad\frac{\partial f}{\partial u}$
Second partial derivative:$\quad\frac{\partial^2 f}{\partial u^2}$
Comment: This is for presentation issues a rather lengthy calculation. Usually we would skip (3) and (4) and obtain (5) directly from (2).
In (2) we apply the chain rule as we did in (1)
In (3) we use the linearity of the differential operator
In (4) we apply the product rule
In (5) we apply the chain rule again
In (6) we multiply out and do a few rearrangements
$$ $$
$$ $$
$$ $$