6

What is the partial derivative of $$\frac{\partial x}{\partial y}$$

when $x$ and $y$ are a part of a function $f(x,y)$?

Using an example of:

$$f(x,y) = x+y$$ Given the definition of holding all else constant and varying x with respect to y (thus setting the function to zero), would it be corrrect to say that the partial derivative is simply negative one?

One motivation for this is the formula (note that this is just re-arranged formula for total derivative or differential):

$$\frac{dy}{dx} = -\frac {\partial F /\partial x}{\partial F / \partial y} +\frac{dF }{dx }\frac{\partial y}{\partial F}$$

And whether the Fs in the 2nd term can in fact be factored out. If that is the case, then:

$$\frac{\partial x}{\partial y} = \frac {\partial F /\partial x}{\partial F / \partial y} =\frac{dF }{dx }\frac{\partial y}{\partial F}-\frac{dy}{dx} $$

Dole
  • 2,653

2 Answers2

2

Partial derivatives are defined in terms of functions. Total derivatives are defined in terms of variables. They are the same concept defined in 2 different languages.

Partial derivatives, when used correctly, are always the derivative of a function with respect to one of it's parameters. So, for example, suppose you are given to assume:

$$f(x, y) = x^2y + \sin(x)$$

And asked to calculate $\frac{\partial f}{\partial x}$. Here, you see that the denominator is $x$, and so you look for that in the definition of $f$, see that it is the first parameter, and take the derivative of $f$ with respect to that first parameter. So

$$\frac{\partial f}{\partial x} = 2xy + \cos(x)$$

$\frac{\partial f}{\partial z}$ in this case is meaningless, because $z$ is not used as one of the parameters defining $f$. Suppose you were asked to calculate

$$\frac{\partial f(z, {\color{red} x}^2)}{\partial {\color {green} x}}$$

First, realize that the red $x$ and the green $x$ represent 2 different things. The red $x$ is a variable, the green $x$ represents the parameter used to define $f$. They are not interchangable, it is rude to use the same name for 2 different concepts, but it is not too uncommon.

Second, the above is a shorthand for $\left(\frac{\partial f}{\partial x}\right)(z, x^2)$, that is, take the derivative then apply the arguments. It's value is $2zx^2 + \cos(z)$.

What is the partial derivative of $$\frac{\partial x}{\partial y}$$

when $x$ and $y$ are a part of a function $f(x,y)$?

It is never correct to take the partial derivative of a variable with respect to another variable, or to take the partial derivative of a parameter with respect to another parameter. It is only meaningly to take the partial derivative of a function with respect to one of it's parameters. It's should be mentioned that referring to a parameter outside of the definition of a function is an abuse of notation, the name is not in scope at that point.

A total derivative is always of a variable with respect to another variable. Sometimes, a total derivative will be written as the derivative of a function with respect to a variable, but there the function is just a shorthand for "the variable representing the output of a function".

Suppose you are given

$$f(x) = x^2$$

And asked to calculate $\frac{{\rm d}f}{{\rm d}x}$. That is not defined. The $x$ in the definition is a parameter, the $x$ in the denominator is a variable.

On the other hand, what if you are asked to calculate $\frac{{\rm d}f(x)}{{\rm d}x}$, then both the previous $x$s represent variables. To evaluate this, you apply the argument, then calculate the derivative:

$$\frac{{\rm d}f(x)}{{\rm d}x}$$ $$\frac{{\rm d}x^2}{{\rm d}x}$$ $$2x$$

Note that the is the opposite order of what is done with partial derivatives.

With a partial derivative, you first calculate the derivative, then apply the arguments. With a total derivative, you first apply the arguments, then calculate the derivative.

Total derivatives are the type of notation you would expect a scientist to use, because the variables represent concepts like time, temperature, gravitational force, etc. Partial derivatives are what purists use, because functions are very easy to define concepts and make it easier to connect differential calculus to formal foundations of mathematics.

It is common to see these notations confused and used incorrectly even in college textbooks.

DanielV
  • 23,556
  • It seems to me that many things in your answer are not really common among mathematicians. To me, $\frac{d f(x^2)}{dx}$ simply means "compute $df$ and then evaluate it at $x^2$. – Siminore Jun 26 '16 at 19:18
  • Suppose $f(x) = x$. What do you think $\frac{{\rm d}f(x^2)}{{\rm d}x}$ should be? Or to put it another way, if $y = x^2$, what should $\frac{{\rm d}y}{{\rm d}x}$ be? – DanielV Jun 26 '16 at 19:23
  • One, I suppose. – Siminore Jun 26 '16 at 19:26
  • @Siminore It's only 1 with partial derivatives. You are implicitly associating the $x$ in the denominator with the parameter. Suppose you are given $g(z) = z$. What is $\frac{{\rm d}g(x^2)}{{\rm d}x}$ ? – DanielV Jun 26 '16 at 19:29
  • The way I interpret $\frac{df (x^2)}{dx}$ is that $x^2$ is an inner function in the sense of function concatenation and chain rule, like we could write $\frac{df(g(x))}{dx}, g(x) = x^2$. To be pedantic one should require a set of parentheses after the d in the numerator. Like this $\frac{d{f (x^2)}}{dx}\left(x_0\right)$ to be clear what expression the differential operator should take on and what is the function value it should be evaluated at $(x_0)$. This way we can express Siminores interpretation like this $\frac{d{f}}{dx}(x^2)$. – mathreadler Jun 26 '16 at 20:18
  • In any case, my answer remains 1. Anyway, that notation for the derivative should not be used at all. We differentiate functions, not variables. Functions are defined by dummy variables, so a dummy variable should be avoided as long as possible. For instance $\partial _ f $ is much better than $\partial f /\partial x $. – Siminore Jun 26 '16 at 21:06
  • @Siminore From your answers, it seems that you don't distinguish at all between ${\rm d}$ and $\partial$. Can you construct a case where $\frac{\partial \text{Expression}}{\partial x}$ differs from $\frac{{\rm d} \text{Expression}}{{\rm d} x}$, under your convention? Aside, despite differential calculus having been invented by physicists, you stated (I presume seriously) that every physics book which treats differentiation as a transform of variables is wrong. I hope you might consider otherwise. – DanielV Jun 26 '16 at 22:14
  • @DanielV Partial derivatives are reserved to functions defined on a cartesian product, like $f \colon X \times Y \to Z$. In this case, $\partial_1 f$, or $\partial_X f$, is the derivative of the function in which the $Y$-variable is kept fixed. It seems so simple to me, and indeed this is the viewpoint of the French school of Dieudonné. I never teach my students how to differentiate variables, only functions. – Siminore Jun 27 '16 at 08:01
1

If in an $n$-dimensional "environment" $\Omega$ an $n$-tuple $(x_1,x_2,\dots, x_n)$ of coordinate functions has been selected then functions $f:\>\Omega\to{\mathbb R}$ appear as "functions of $n$ variables", and one denotes the value of $f$ at ${\bf p}=(p_1,\ldots,p_n)$ by $f(p_1,\ldots,p_n)$. It is only in such a situation that it makes sense to talk about partial derivatives ${\partial f\over\partial x_k}$ which then themselves are functions $\Omega\to{\mathbb R}$.

In the situation at hand we have the agreed on coordinate functions $x:\>{\mathbb R}^2\to{\mathbb R}$, and similarly $y$. Therefore any real-valued function $f$ defined on some open domain $\Omega\subset{\mathbb R}^2$ may have partial derivatives ${\partial f\over\partial x}$ and ${\partial f\over\partial y}$. In particular this is the case for the coordinate functions $x$ and $y$ themselves. Thinking about it one comes to the conclusion that $${\partial x\over\partial x}\equiv1,\qquad{\partial x\over \partial y}\equiv0\ ,$$ and similarly for $y$.