A paradox in differential calculus

455 Views Asked by At

Say I have a function $f=f(x,y)$ where $x,y$ are independent variables.
Now, it is given that $p=x+y$.

It can be shown that, since $x,y$ are independent, we get $$\frac{\partial p}{\partial x}=\frac{\partial x}{\partial x}+\frac{\partial y}{\partial x} \implies \frac{\partial p}{\partial x}=1+0 \implies \frac{\partial x}{\partial p}=1$$ and similarly $$\frac{\partial p}{\partial y}=\frac{\partial x}{\partial y}+\frac{\partial y}{\partial y} \implies \frac{\partial p}{\partial y}=0+1 \implies \frac{\partial y}{\partial p}=1$$

Now I can write that $$\frac{\partial f}{\partial p}=\frac{\partial f}{\partial x}\cdot\frac{\partial x}{\partial p}+\frac{\partial f}{\partial y}\cdot\frac{\partial y}{\partial p}$$ And using the above values, we get that $$\frac{\partial f}{\partial p}=\frac{\partial f}{\partial x}\cdot1+\frac{\partial f}{\partial y}\cdot1=\frac{\partial f}{\partial x}+\frac{\partial f}{\partial y} \tag1$$

So if I replace $f$ by $p$ in $(1)$, which is quite valid since, like $f$, $p$ is also a function in $x,y$, we get that $$\frac{\partial p}{\partial p}=\frac{\partial p}{\partial x}+\frac{\partial p}{\partial y} \implies \large\color{red}{1=2}$$

How is this possible? Where is the error? Can someone point it out for me?


Addendum as per Surb's answer and comments:

If, as Surb concludes, for $x,y$ being independent, $\frac{\partial x}{\partial p}=\frac{\partial y}{\partial p}=0$, so I will get $\frac{\partial f}{\partial p}=0$ for all $f=f(x,y)$. But this is not true at all. How about $f=p^2=(x+y)^2$?

So where is the mistake?

3

There are 3 best solutions below

0
On BEST ANSWER

Your mistake is thinking in terms of "dependent" / "independent" symbols without introducing precise mathematical meaning for that.

You can't say that $\frac{\partial p}{\partial x}=1$ implies $\frac{\partial x}{\partial p}=1$. $p$ is a function of two variables $(x,y)$, and to calculate $\frac{\partial x}{\partial p}$, you should introduce another variable, say, $q(x,y)$, such that $(p, q)$ form a coordinate system.

For example, let $q = x-y$. Now $(p,q)$ are a coordinate system, and we can express $x$ and $y$ in terms of them:

$$x=\frac{p+q}{2}$$ $$y=\frac{p-q}{2}$$

So, it now happens that $$\frac{\partial x}{\partial p} = \frac{1}{2} \color{red}{\neq} \left(\frac{\partial p}{\partial x}\right)^{-1}$$

Note that introducing an other coordinate instead of $q$ will affect $\frac{\partial x}{\partial p}$ too, so you can't speak of $\frac{\partial x}{\partial p}$ alone.

4
On

By using $\frac{\partial x}{\partial p}\neq 0$ and $\frac{\partial y}{\partial p}\neq 0$, you make $x$ and $y$ depending on $p$ ! Therefore, it has no sense to consider $p(x,y)$. Indeed, if $p(x,y)$ would have sense, then $p$ would be dependent and independent of $x$ and $y$, which is impossible.

0
On

It is wrong at very beginning.

$p$ is a function change with $x$ and $y$.

If only $x$ changes and $y$ is invariant, $\frac{\partial x}{\partial p}=1$ and $\frac{\partial y}{\partial p}=0$ because $\frac{\partial x}{\partial p} = \lim_{\triangle p->0} \frac{\triangle x}{\triangle p} $

If only $y$ changes and $x$ is invariant, $\frac{\partial y}{\partial p}=1$ and $\frac{\partial x}{\partial p}=0$.

One can guess that $\frac{\partial y}{\partial p}+\frac{\partial x}{\partial p}=1$.