Factorising functions out of partial derivatives

derivativesordinary differential equationspartial derivativepartial differential equations

I have been doing that work that requires me to use the chain rule on second order partial derivatives to replace variables (x, y) with (u, v) where u and v are functions of x and y. My question is whether the technique below is allowed and why.Image of techniqueTaken from http://www.ucl.ac.uk/~ucahmdl/LessonPlans/Lesson5.pdf

I didn't think that you'd be allowed to factorise a function of the variable that you will differentiate partially with respect to (can i take out functions of x from partial derivatives with respect to x) as shown in the image?

Any help would be greatly appreciated, thank you.

my question in particular:
My question

Best Answer

If I understood your question correctly, it may help clarifying what is done right in the first step.

Note that the derivative of $z$ w.r.t. to $y$ is a function, i.e.

$$\frac{\partial z}{\partial y}(u, v)$$

makes sense and we can rename it to, say, $f(u,v) = \frac{\partial z}{\partial y}(u,v) = x^2 \frac{\partial z}{\partial u} + 2\frac{\partial z}{\partial v}$.

Now let me derive $f$ w.r.t. to $x$:

$$\frac{\partial f}{\partial x} = \frac{\partial}{\partial x}\left(\frac{\partial z}{\partial y} \right) = \frac{\partial}{\partial x}\left(x^2 \frac{\partial z}{\partial u} + 2\frac{\partial z}{\partial v} \right)$$

Now what was done was, first distribute the derivative w.r.t. $x$:

$$\frac{\partial}{\partial x}\left(x^2 \frac{\partial z}{\partial u} + 2\frac{\partial z}{\partial v} \right) = \frac{\partial}{\partial x}\left(x^2 \frac{\partial z}{\partial u} \right) + \frac{\partial}{\partial x}\left(2\frac{\partial z}{\partial v} \right)$$

Now "taking $x$ out" is really the product rule $(ab)' = a'b + ab'$:

$$\frac{\partial}{\partial x}\left(x^2 \frac{\partial z}{\partial u} \right) = \frac{\partial}{\partial x}(x^2)\times \frac{\partial z}{\partial u} + x^2 \times \frac{\partial}{\partial x}\frac{\partial z}{\partial u} = 2x\frac{\partial z}{\partial u} + x^2 \frac{\partial}{\partial x}\frac{\partial z}{\partial u}$$

From there we just use the chain rule to find $ \frac{\partial}{\partial x}\frac{\partial z}{\partial u}$.

Is it clearer now?

Related Question